/* BLOCK VIEW (block.html.twig) */

#mx_news_block {
 display:flex;
  flex-wrap:wrap;
  /*justify-content:space-around;*/
/*max-width:1700px;*/
margin: 0 auto;
}

.mx_news_block_item {
width:23.5%; 
height: auto;
margin:0 2% 30px 0;
-moz-border-radius: 20px;
-khtml-border-radius: 20px;
border-radius: 20px;
-webkit-box-shadow: 0px 0px 6px 0px rgba(153,153,153,0.4);
-moz-box-shadow: 0px 0px 6px 0px rgba(153,153,153,0.4);
box-shadow: 0px 0px 6px 0px
rgba(153,153,153,0.4);
overflow: hidden;
position:relative;
}

.mx_news_block_item:nth-of-type(4) {
	margin-right:0;
}

.mx_news_block_image {
	position:relative;
}

.mx_news_block_image img {
	width:100%;
	height:auto;
	display:block;
}

.mx_news_block_item .overlay {
	position:absolute;
	top:0;
	left:0;
	width:100%;
	height:100%;
	background-color:#5FB748;
	z-index:1;
	opacity:0.4;
}

.mx_news_block_content {
	padding:20px 20px 40px 20px;
}

.mx_news_block_item p:last-child  {
	margin: 0;
	padding: 0;
	position:absolute;
	bottom:20px;
	left:20px;
}

.mx_news_block_content .button.outline {
color:#5FB748;
border-color:#5FB748;
}

.mx_news_block_content .button.outline:hover {
background-color:#5FB748;
}

.mx_news_block_item:nth-of-type(2) .overlay {
background-color:#8E737A;
}

.mx_news_block_item:nth-of-type(2) .mx_news_block_content .button.outline {
color:#8E737A;
border-color:#8E737A;
}

.mx_news_block_item:nth-of-type(2) .mx_news_block_content .button.outline:hover {
background-color:#8E737A;
}

.mx_news_block_item:nth-of-type(3) .overlay {
background-color:#0055A0;
}

.mx_news_block_item:nth-of-type(3) .mx_news_block_content .button.outline {
color:#0055A0;
border-color:#0055A0;
}

.mx_news_block_item:nth-of-type(3) .mx_news_block_content .button.outline:hover {
background-color:#0055A0;
}

.mx_news_block_item:nth-of-type(4) .overlay {
background-color:#8ACCCA;
}

.mx_news_block_item:nth-of-type(4) .mx_news_block_content .button.outline {
color:#8ACCCA;
border-color:#8ACCCA;
}

.mx_news_block_item:nth-of-type(4) .mx_news_block_content .button.outline:hover {
background-color:#8ACCCA;
}

@media screen and (max-width: 980px) {
	
.mx_news_block_item {
width:48%; 
margin:0 4% 30px 0;
}

.mx_news_block_item:nth-of-type(2) {
	margin-right:0;
}

}

@media screen and (max-width: 550px) {
	
.mx_news_block_item {
width:100%; 
margin:0 0 30px 0;
}

}

/* CATEGORY VIEW (category.html.twig) */

.mx_news_category_item {
	display:flex;
    flex-wrap:wrap;
	width: 100%;
	margin-bottom: 35px;
	background-color:#FFFFFF;
-webkit-border-radius: 20px;
-moz-border-radius: 20px;
-khtml-border-radius: 20px;
border-radius: 20px;
-webkit-box-shadow: 0px 0px 6px 0px rgba(153,153,153,0.4);
-moz-box-shadow: 0px 0px 6px 0px rgba(153,153,153,0.4);
box-shadow: 0px 0px 6px 0px rgba(153,153,153,0.4);
overflow:hidden;
}

.mx_news_category_item:last-child {
	margin-bottom: 0;
}

.mx_news_category_item em {
	font-size:12px;
}

.mx_news_category_item p:last-child {
	margin: 0;
	padding: 0;
}

.mx_news_category_image a {
	display: block;
	height:100%;
background-color:#bf3571;
	opacity:0.8;
}

.mx_news_category_item:nth-of-type(2n) .mx_news_category_image a {
	background-color:#8E737A;
}

.mx_news_category_item:nth-of-type(3n) .mx_news_category_image a {
background-color:#1f183a;
}

.mx_news_category_item:nth-of-type(4n) .mx_news_category_image a  {
background-color:#8ACCCA;
}

.mx_news_category_image {
	float: left;
	width:40%;
	background-size:cover;
	background-position:center center;
}

.mx_news_category_content {
	float: left;
	width:60%;
	padding:30px 30px 30px 50px;
}

.mx_news_category_content .button.outline {
	background-color:#FFFFFF;
	color:#bf3571;
	border:solid 2px #bf3571;
	transition: all 0.8s ease;
}

.mx_news_category_content .button.outline:hover {
	background-color:#bf3571;
}

.mx_news_category_item:nth-of-type(2n) .mx_news_category_content .button.outline {
	color:#8E737A;
	border:solid 2px #8E737A;
}

.mx_news_category_item:nth-of-type(2n) .mx_news_category_content .button.outline:hover {
	background-color:#8E737A;
}

.mx_news_category_item:nth-of-type(3n) .mx_news_category_content .button.outline {
	color:#1f183a;
	border:solid 2px #1f183a;
}

.mx_news_category_item:nth-of-type(3n) .mx_news_category_content .button.outline:hover {
	background-color:#1f183a;
}

.mx_news_category_item:nth-of-type(4n) .mx_news_category_content .button.outline {
	color:#8ACCCA;
	border:solid 2px #8ACCCA;
}

.mx_news_category_item:nth-of-type(4n) .mx_news_category_content .button.outline:hover {
	background-color:#8ACCCA;
}

@media screen and (max-width: 860px) {
	
	.mx_news_category_image {
		width:45%;
		
	}
	
	.mx_news_category_content {
		width:55%;
		padding-left:30px;
	}
	
} /* end mediaquery */

@media screen and (max-width: 640px) {
	
	.mx_news_category_image {
		width:100%;
		height:60vw;
	}
	
	.mx_news_category_content {
		width:100%;
		padding-left:30px;
	}
	
} /* end mediaquery */

/* ITEM VIEW (item.html.twig) */
#mx_news_item .addthis_toolbox {
	margin: 10px 0 10px -2px;
}

.mx_news_item_main_image {

}

.mx_news_item_main_image img {
	display: block;
		margin: 0 auto 35px auto;
}

.mx_news_item_image {
	display: table;
	float: left;
	margin: 0 10px 10px 0;

}

.mx_news_item_image a {
	display: inline-block;
	width: 100%;
	height: 100%;
	float: left;
}

.mx_news_item_image img {
	float: left;
	clear: both;
}

.mx_news_item_image span {
	float: left;
	clear: both;
	width: 100%;
	line-height: 1em;
	margin: 7px 0 2px;
	display: inline-block;
	text-align: center;
	overflow: hidden;
	height: 1em;
	text-overflow: ellipsis;
	white-space: nowrap;
}