/* BLOCK VIEW VA (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:25%; 
    height: auto;
    min-height:17vw;
	padding: 2% 3% 2.5% 3%;
	position:relative;
	background-size:cover;
	background-position:center center;
}

.mx_news_block_item a {
	display:block;
	width:100%;
	height:100%;
}

.mx_news_block_item .overlay {
	position:absolute;
	top:0;
	left:0;
	width:100%;
	height:100%;
	background-color:#B90164;
	z-index:1;
	opacity:0.8;
}

.mx_news_block_item:nth-of-type(2) .overlay {
background-color:#5e5e5e;
	opacity:1;
}

.mx_news_block_item:nth-of-type(3) .overlay {
background-color:#262B5E;
}

.mx_news_block_item:nth-of-type(4) .overlay {
background-color:#009CC4;
opacity:1;
}

.mx_news_block_item:nth-of-type(6) .overlay {
background-color:#0F406B;
opacity:1;
}

.mx_news_block_item:nth-of-type(7) .overlay {
background-color:#262B5E;
}

.mx_news_block_item:nth-of-type(5) .overlay {
background: rgb(0,156,196);
background: -moz-linear-gradient(90deg, rgba(38,43,94,0.9) 0%, rgba(0,156,196,0.9) 100%);
background: -webkit-linear-gradient(90deg, rgba(38,43,94,0.9) 0%, rgba(0,156,196,0.9) 100%);
background: linear-gradient(90deg,rgba(38,43,94,0.9) 0%, rgba(0,156,196,0.9) 100%);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#1f183a",endColorstr="#B90164",GradientType=1);
}

.mx_news_block_item:hover .overlay {
	opacity:0.9;
	transition: all 0.7s ease;
}

.mx_news_block_item:nth-of-type(5):hover .overlay{
	opacity:0.8;
}

.mx_news_block_item:nth-of-type(2):hover .overlay, .mx_news_block_item:nth-of-type(4):hover .overlay {
		opacity:0.9;
}

.mx_news_block_item p:last-child  {
	margin: 0;
	padding: 0;
	position:absolute;
	bottom:0;
	left:0;
}

.mx_news_block_content {
	z-index:2;
	position:relative;
	color:#FFFFFF;
	height:100%;
	padding-bottom:40px;
}

.mx_news_block_content h3 {
	color:#FFFFFF;
}

.mx_news_block_item:hover .button.outline {
	background-color:#FFFFFF;
	color:#B90164;
	transition: all 0.8s ease;
}

.mx_news_block_item:nth-of-type(5):hover .button {

}

.mx_news_block_item:nth-of-type(2):hover .button {
color:#8E737A;
}

.mx_news_block_item:nth-of-type(3):hover .button {
color:#1f183a;
}

.mx_news_block_item:nth-of-type(4):hover .button {
color:#8ACCCA;
}

.mx_news_block_item:nth-of-type(6):hover .button {
color:#0F406B;
}

.mx_news_block_item:nth-of-type(7):hover .button {
color:#1f183a;
}

@media screen and (max-width: 1240px) {
	.mx_news_block_content p:first-of-type {
		display:none;
	}
	
	.mx_news_block_item:nth-of-type(5) .mx_news_block_content p:first-of-type {
		display:block;
	}
}

@media screen and (max-width: 980px) {
	.mx_news_block_item {
		width:50%;
		padding:20px;
	}
	
	.mx_news_block_item:nth-of-type(5) {
		width:100% !important;
	}
	
	.mx_news_block_content p:first-of-type {
		display:block;
	}
	
	.mx_news_block_item:nth-of-type(6), .mx_news_block_item:nth-of-type(7) {
		display:none;
	}
}

@media screen and (max-width: 550px) {
	.mx_news_block_item {
		padding:15px;
	}
	
	.mx_news_block_content p:first-of-type {
		display:none;
	}
	
	.mx_news_block_content h3 {
		font-weight:normal;
		font-size:20px;
	}
	
	.mx_news_block_item:nth-of-type(5) .mx_news_block_content p:first-of-type {
		display:block;
	}
	
	.mx_news_block_item:nth-of-type(5) .mx_news_block_content h3 {
	   font-weight:bold;
		font-size:22px;
	}
}

@media screen and (max-width: 375px) {
	
	.mx_news_block_content h3 {
		font-size:17px;
	}
	
}



/* 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:#B90164;
	opacity:0.6;
}

.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:#B90164;
	border:solid 2px #B90164;
	transition: all 0.8s ease;
}

.mx_news_category_content .button.outline:hover {
	background-color:#B90164;
}

.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;
}