/* Module: NEWS */
.news_container {
	/* overflow: hidden; */ /* to have news-div surround floating pager, too (otherwise pager overlaps bottom content) */
}
.news_container .incms-button-container + .incms-button-container {
	margin-top: 10px;
}
.pinned {
	background-color: #fafafa;
}
.backbutton,
.news.button { display: block; float: left; background: #666; border: 1px solid #333; }
.backbutton a,
.news.button a { color: #fff !important; text-decoration: none; border-top: 1px solid #888; display: block; padding: 4px 10px 6px; }
.backbutton a:hover,
.news.button a:hover,
.backbutton a:visited,
.news.button a:visited { color: #fff !important; text-decoration: none; background: #777; border-top: 1px solid #999; }

.backbutton,
.backbutton a,
.news.button,
.news.button a {
	-webkit-border-radius: 0.2em;
	-moz-border-radius: 0.2em;
	border-radius: 0.2em;
}

.backbutton { margin: 10px 0 0; clear: both; }

.back { display: none; }

.news.button.archive, .news.button.rssfeed { margin-right: 5px; margin-top: 20px; }

.news.button.comments { margin: 0 20px 0 0; }

.news_item .ym-contain-dt{ margin: 0; border-top: 1px solid #ddd; padding: 20px 0 10px; clear: both; }
.news_detail { padding: 10px 0 0; }

.socialicons { float: left; margin: 2px 0 0; }
.news_detail .socialicons { margin: 10px 0 5px;}
.news_detail > .socialicons {clear: both; float: left;}

#news_add_comment { clear: both; margin: 10px 0 0; padding-top: 10px;}

.news_detail h2,
.news_item h2 { margin: 0; }

.news_detail .float-left,
.news_item .float-left {
	width: 200px;
	margin-bottom: 15px;
}
.ym-contain-dt ul{
	position: relative;
	left: 1em;
	margin-left: 0;
}
.img-lightbox {
	position: relative;
	z-index: 1;
}
.img-lightbox img {
	max-width: 100%;
	margin-top: 0 !important;
}
.img-lightbox, .img-lightbox img {display: block;}
/* List & Grit View Fix */
#news_items {
	margin: 0 -10px;
}
#news_items * {
	box-sizing: border-box;
}
.news_item {padding: 0 10px;}
.news_item.grid-view {
	display: inline-block;
	clear: none;
	vertical-align: top;
}
.news_item.grid-view.ym-g50:nth-child(2n+2),.news_item.grid-view.ym-g33:nth-child(3n+3),.news_item.grid-view.ym-g25:nth-child(4n+4) {
	margin-right: 0;
}
.news_item.grid-view.ym-g50 {
	width: 50%;
}
.news_item.grid-view.ym-g33 {
	width: 33.3333%;
}
.news_item.grid-view.ym-g25 {
	width: 25%;
}
#news_items img {max-width: 100%;}
.news-image, .list-view.fullimage .news-image {
	max-width: 200px;
	float: left;
	margin-right: 1.5em;
	margin-bottom: 10px;
}
.news-image a {
	display: block;
}
.fullimage .news-image,.ym-g33 .news-image,.ym-g25 .news-image{max-width: 100%;margin-right: 0;float: none;}
.list-view.fullimage .news-image {max-width: 100%;}
.news_item.fullimage.grid-view img {width: 100%;}
/* pager */

ul.pager,
ul.pager li { list-style-type: none; margin: 0; padding: 0; }

ul.pager { display: inline-block; float: right; padding-top: 20px; }
ul.pager li{ display: inline; }

ul.pager a { float: left; padding: 0 14px; line-height: 32px; text-decoration: none; border: 1px solid #ddd; border-left-width: 0; }

ul.pager li.current {float: left; padding: 0 14px; line-height: 32px; border: 1px solid #ddd; border-left-width: 0;  color: #888; cursor: default; background-color: #eee;}

ul.pager li:first-child a, ul.pager li.prev a { border-left-width: 1px; -webkit-border-radius: 3px 0 0 3px; -moz-border-radius: 3px 0 0 3px; border-radius: 3px 0 0 3px; }

ul.pager li:last-child a, ul.pager li.next a { -webkit-border-radius: 0 3px 3px 0; -moz-border-radius: 0 3px 3px 0; border-radius: 0 3px 3px 0; }

ul.pager li.active a{background-color: rgba(0, 0, 0, 0.1);}
.news_detail_info p { margin: 2px 0 0; }

ul.pager .placeholder { float: left; padding: 0 14px; line-height: 32px; text-decoration: none; border: 1px solid #ddd; border-left-width: 0; }

/* fb comments */
.fb-comments, .fb-comments iframe[style] { width: 100% !important; }
.fb-comments, .fb-comments span, .fb-comments.fb_iframe_widget span iframe {
	width: 100% !important;
}

@media screen and ( max-width: 480px) {
	.news_detail .float-left,
	.news_item .float-left {
		float: none;
		display: block;
		width: auto;
	}
	.grid-view {
		width: 100% !important;
	}
	.grid-view:first-child .ym-contain-dt{
		border: none;
		padding-top: 0;
	}
	.ym-g50 .news-image{max-width: 100%;margin-right: 0;float: none;}
	.list-view .news-image,
	.list-view.fullimage .news-image{
		max-width: 100%;
		margin-right: 0;
		float: none;
	}
}

@media screen and ( min-width: 481px) {
	.news_item.grid-view.ym-g50:nth-child(-n+2) .ym-contain-dt,.news_item.grid-view.ym-g33:nth-child(-n+3) .ym-contain-dt,.news_item.grid-view.ym-g25:nth-child(-n+4) .ym-contain-dt,.list-view:first-child .ym-contain-dt {
		border: none;
		padding-top: 0;
	}
}
