/* ==========================================================
   BLOCK VIEW → EXACT CUSTOM3 GRID
   ========================================================== */

#mx_news_block,
.mx_news_block {

  max-width:1600px;
  margin:0 auto;

  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:20px;

  padding:0 20px;
}


/* BLOK */

.mx_news_block_item{

  display:flex;
  min-height:300px;
  overflow:hidden;

}


/* FOTO */

.mx_news_block_image{

  flex:0 0 50%;
  width:50%;

}

.mx_news_block_image img{

  width:100%;
  height:100%;
  object-fit:cover;
  display:block;

}


/* TEKST */

.mx_news_block_content{

  flex:0 0 50%;
  width:50%;

  padding:60px 50px 80px 50px;

  position:relative;

  display:flex;
  flex-direction:column;
  justify-content:center;

}


.mx_news_block_content h3{
  margin-bottom:16px;
  color:#fff;
}

.mx_news_block_content p{
  color:rgba(255,255,255,0.9);
  line-height:1.7;
}


/* ==========================================================
   BOVENSTE RIJ → FOTO RECHTS
   ========================================================== */

.mx_news_block_item:nth-child(1) .mx_news_block_content,
.mx_news_block_item:nth-child(2) .mx_news_block_content{
order:1;
}

.mx_news_block_item:nth-child(1) .mx_news_block_image,
.mx_news_block_item:nth-child(2) .mx_news_block_image{
order:2;
}


/* ==========================================================
   ONDERSTE RIJ → FOTO LINKS
   ========================================================== */

.mx_news_block_item:nth-child(3) .mx_news_block_image,
.mx_news_block_item:nth-child(4) .mx_news_block_image{
order:1;
}

.mx_news_block_item:nth-child(3) .mx_news_block_content,
.mx_news_block_item:nth-child(4) .mx_news_block_content{
order:2;
}


/* ==========================================================
   BLOK KLEUREN
   ========================================================== */

.mx_news_block_item:nth-child(1) .mx_news_block_content{background:#84b96b;}
.mx_news_block_item:nth-child(2) .mx_news_block_content{background:#66ae91;}
.mx_news_block_item:nth-child(3) .mx_news_block_content{background:#52a5b3;}
.mx_news_block_item:nth-child(4) .mx_news_block_content{background:#3f9dc0;}


/* ==========================================================
   BORDER RADIUS
   ========================================================== */

/* foto rechts */

.mx_news_block_item:nth-child(1) .mx_news_block_content,
.mx_news_block_item:nth-child(2) .mx_news_block_content{
border-radius:0 20px 20px 0;
}

.mx_news_block_item:nth-child(1) .mx_news_block_image img,
.mx_news_block_item:nth-child(2) .mx_news_block_image img{
border-radius:20px 0 0 20px;
}


/* foto links */

.mx_news_block_item:nth-child(3) .mx_news_block_content,
.mx_news_block_item:nth-child(4) .mx_news_block_content{
border-radius:20px 0 0 20px;
}

.mx_news_block_item:nth-child(3) .mx_news_block_image img,
.mx_news_block_item:nth-child(4) .mx_news_block_image img{
border-radius:0 20px 20px 0;
}


/* ==========================================================
   KNOP
   ========================================================== */

.mx_news_block_content a{

  position:absolute;
  bottom:20px;

  padding:14px 40px 14px 30%;
right: auto;
    left: 0;
  background:#fff;

  color:#52a5b3;

  font-weight:bold;
  text-decoration:none;

  font-size:0.95rem;

  clip-path:polygon(
    0 0,
    100% 0,
    100% calc(100% - 50px),
    calc(100% - 20px) 100%,
    0 100%
  );

  transition:transform .2s, filter .2s;

}

.mx_news_block_content a:hover{
transform:translateY(-2px);
filter:brightness(1.1);
}


/* knop rechts bij bovenste blokken */

.mx_news_block_item:nth-child(1) .mx_news_block_content a,
.mx_news_block_item:nth-child(2) .mx_news_block_content a{

left:auto;
right:0;

padding:14px 30% 14px 40px;

clip-path:polygon(
0 0,
100% 0,
100% 100%,
20px 100%,
0 calc(100% - 50px)
);

}
@media (max-width:1500px){
	
	#mx_news_block, .mx_news_block {
     padding: 45px 20px;
}
}

/* ==========================================================
   MOBIEL
   ========================================================== */

@media (max-width:768px){
	

	

#mx_news_block,
.mx_news_block{

grid-template-columns:1fr;

}

.mx_news_block_item{

flex-direction:column;
min-height:unset;

}

.mx_news_block_image,
.mx_news_block_content{

width:100%;

}

.mx_news_block_image{

height:260px;
order:0!important;

}

.mx_news_block_content{

order:1!important;
padding:40px 30px 80px 30px;

}

.mx_news_block_image img,
.mx_news_block_content{

border-radius:0!important;

}

.mx_news_block_content a{

left:0!important;
right:auto!important;

padding:14px 40px 14px 30%;

}

}

/* ==========================================================
   CATEGORY VIEW → CUSTOM3 LAYOUT
   ========================================================== */

#mx_news_category{
  max-width:1600px;
  margin:0 auto;
  padding:0 20px;
  display:grid;
  grid-template-columns:repeat(1,1fr);
  gap:20px;
}


/* BLOK */

.mx_news_category_item{
  display:flex;
  min-height:480px;
  overflow:hidden;
}


/* FOTO */

.mx_news_category_image{
  flex:0 0 50%;
  width:50%;
}

.mx_news_category_image img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}


/* TEKST */

.mx_news_category_content{
  flex:0 0 50%;
  width:50%;
  padding:60px 50px 80px 50px;
  position:relative;
  display:flex;
  flex-direction:column;
  justify-content:center;
}

.mx_news_category_content h3{
  margin-bottom:16px;
  color:#fff;
}

.mx_news_category_content p{
  color:rgba(255,255,255,0.88);
  line-height:1.7;
}

.mx_news_category_content em{
  color:rgba(255,255,255,0.75);
  font-size:0.9rem;
  margin-bottom:10px;
}


/* ==========================================================
   BOVENSTE RIJ (1 + 2) → FOTO RECHTS
   ========================================================== */

.mx_news_category_item:nth-child(1) .mx_news_category_content,
.mx_news_category_item:nth-child(2) .mx_news_category_content{
  order:1;
}

.mx_news_category_item:nth-child(1) .mx_news_category_image,
.mx_news_category_item:nth-child(2) .mx_news_category_image{
  order:2;
}


/* ==========================================================
   ONDERSTE RIJ (3 + 4) → FOTO LINKS
   ========================================================== */

.mx_news_category_item:nth-child(3) .mx_news_category_image,
.mx_news_category_item:nth-child(4) .mx_news_category_image{
  order:1;
}

.mx_news_category_item:nth-child(3) .mx_news_category_content,
.mx_news_category_item:nth-child(4) .mx_news_category_content{
  order:2;
}


/* ==========================================================
   BLOK KLEUREN
   ========================================================== */

.mx_news_category_item:nth-child(1) .mx_news_category_content{background:#84b96b;}
.mx_news_category_item:nth-child(2) .mx_news_category_content{background:#66ae91;}
.mx_news_category_item:nth-child(3) .mx_news_category_content{background:#52a5b3;}
.mx_news_category_item:nth-child(4) .mx_news_category_content{background:#3f9dc0;}


/* ==========================================================
   BORDER RADIUS
   ========================================================== */

.mx_news_category_item:nth-child(1) .mx_news_category_content,
.mx_news_category_item:nth-child(2) .mx_news_category_content{
  border-radius:0 20px 20px 0;
}

.mx_news_category_item:nth-child(1) .mx_news_category_image img,
.mx_news_category_item:nth-child(2) .mx_news_category_image img{
  border-radius:20px 0 0 20px;
}

.mx_news_category_item:nth-child(3) .mx_news_category_content,
.mx_news_category_item:nth-child(4) .mx_news_category_content{
  border-radius:20px 0 0 20px;
}

.mx_news_category_item:nth-child(3) .mx_news_category_image img,
.mx_news_category_item:nth-child(4) .mx_news_category_image img{
  border-radius:0 20px 20px 0;
}


/* ==========================================================
   KNOP
   ========================================================== */

.mx_news_category_content a{
  position:absolute;
  left:0;
  right:auto;
  bottom:20px;
  padding:14px 40px 14px 30%;
  background:#fff;
  color:#52a5b3;
  font-weight:bold;
  text-decoration:none;
  font-size:0.95rem;
  letter-spacing:0.04em;
  clip-path:polygon(
    0 0,
    100% 0,
    100% calc(100% - 50px),
    calc(100% - 20px) 100%,
    0 100%
  );
  transition:transform .2s, filter .2s;
}

.mx_news_category_content a:hover{
  transform:translateY(-2px);
  filter:brightness(1.1);
}


/* knop rechts bij bovenste blokken */

.mx_news_category_item:nth-child(1) .mx_news_category_content a,
.mx_news_category_item:nth-child(2) .mx_news_category_content a{
  left:auto;
  right:0;
  padding:14px 30% 14px 40px;

  clip-path:polygon(
    0 0,
    100% 0,
    100% 100%,
    20px 100%,
    0 calc(100% - 50px)
  );
}


/* ==========================================================
   MOBIEL
   ========================================================== */

@media (max-width:768px){

#mx_news_category{
  grid-template-columns:1fr;
}

.mx_news_category_item{
  flex-direction:column;
  min-height:unset;
}

.mx_news_category_image,
.mx_news_category_content{
  width:100%;
}

.mx_news_category_image{
  height:260px;
  order:0!important;
}

.mx_news_category_content{
  order:1!important;
  padding:40px 30px 80px 30px;
}

.mx_news_category_image img,
.mx_news_category_content{
  border-radius:0!important;
}

.mx_news_category_content a{
  left:0!important;
  right:auto!important;
  padding:14px 40px 14px 30%;
}

}

/* ITEM VIEW (item.html.twig) */
#mx_news_item .addthis_toolbox {
	margin: 10px 0 10px -2px;
}

.mx_news_item_main_image {
	float: left;
	margin: 0 10px 10px 0;
}

.mx_news_item_main_image img {
	display: table;
}

.mx_news_item_image {
	border: 1px #DDD solid;
	display: table;
	padding: 5px;
	float: left;
	margin: 0 10px 10px 0;
	border-radius: 5px;
	-moz-border-radius: 5px;
	-webkit-border-radius: 5px;
}

.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;
}