/*
 * Plugin Name: MND Press Library
 * Description: Styling the press templates.
*/


/* Remove default theme page thumbs
-------------------------------------------------------------- */

.single-mndpress_article .wp-post-image:not(.size-mndpress-article-thumb),
.single-mndpress_article .post-thumbnail,
.post-type-archive-mndpress_article .wp-post-image:not(.size-mndpress-article-thumb),
.post-type-archive-mndpress_article .post-thumbnail {
	display: none!important;
}


/* Single article
-------------------------------------------------------------- */

.mndpress-article-title {
	margin-top: 1.6em;
	margin-bottom: .5%;
}

.mndpress-article-details {
	margin-bottom: 1.6em;
	opacity: .75;
}

.mndpress-article-image,
.mndfilm-article-image {
	float: right;
	margin-bottom: 3%;
	margin-left: 3%;
}

.size-mndpress-article-thumb {
	max-width: 150px;
	height: auto;
}

.mndpress-credit {
	font-size: .87em;
	text-align: center;
	margin: 1.6em 0;
	opacity: .75;
}


/* Article list
-------------------------------------------------------------- */

.mndpress-article-list-row {
	display: table;
	width: 100%;
	padding: 10px 0;
	border-bottom: 1px dotted #ddd;
}

.mndpress-article-list-row:first-child {
	padding: 0 0 10px 0;
}

.mndpress-article-list-date,
.mndpress-article-list-publication,
.mndpress-article-list-title {
	display: table-cell;
}

.mndpress-article-list-date {
	width: 15%;
}

.mndpress-article-list-publication {
	width: 35%;
}

.mndpress-article-list-title {
	overflow: hidden;
	width: 50%;
	max-width: 100px;
	white-space: nowrap;
	text-overflow: ellipsis;
}


/* Article navigation
-------------------------------------------------------------- */

.mndpress-article-navigation .nav-previous {
	display: inline-block;
	float: left;
	width: 49.5%;
	vertical-align: top;
}

.mndpress-article-navigation .nav-next {
	display: inline-block;
	float: right;
	width: 49.5%;
	text-align: right;
	vertical-align: top;
}

.mndpress-article-navigation .meta-nav {
	font-weight: 700;
	display: block;
}


/* Accessibility
-------------------------------------------------------------- */

.post-type-archive-mndpress_article .screen-reader-text,
.single-mndpress_article .screen-reader-text {
	position: absolute !important;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	width: 1px;
	height: 1px;
}


/* Responsive
-------------------------------------------------------------- */

@media (max-width: 600px) {
	.mndpress-article-list-date,
    .mndpress-article-list-publication,
    .mndpress-article-list-title {
		display: block;
		width: 100%;
	}

	.mndpress-article-list-title {
		overflow: visible;
		max-width: none;
		white-space: normal;
		text-overflow: clip;
	}
}
