body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    overflow-x: hidden;
  }

  /* --- Sectie structuur --- */
  .news-section {
    display: flex;
    flex-direction: column;
    align-items: center; /* intro centreren */
    padding: 0;
    overflow: visible;
  }

  .news-section .container {
    position: relative;
    z-index: 2;
  }

  .news-intro {
    max-width: 420px;
    width: 100%;
    text-align: center;
    margin: 0 auto;
  }

  /* --- Carousel basis (mobiel) --- */
  .news-carousel-wrapper {
    position: static;
    transform: none;
    width: 100%;
    padding-left: 0;
  }

  .news-carousel-inner {
    display: flex;
    gap: 0.5rem;
    scroll-behavior: smooth;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .news-carousel-inner::-webkit-scrollbar {
    display: none;
  }

  .news-tile {
    flex: 0 0 auto;
    width: 100%;
    height: 300px;
    position: relative;
    border-radius: 0.75rem;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    text-decoration: none;
    color: #fff;
    scroll-snap-align: start;
  }


.news-tile img {
  filter: brightness(0.90); /* 90% helderheid ≈ 10% donkerder */
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: transform 0.8s ease-in-out, filter 0.6s ease-in-out, opacity 0.6s ease-in-out;
}
	
.news-tile:hover img {
  /*filter: brightness(60%);*/
  filter: brightness(0.7);
  transform: scale(1.07);
  /*opacity: 0.9;*/
}
  .news-tile {
    position: relative;
    z-index: 1;
    /*width: 75%;*/
    font-weight: 800;
    font-size: 1.5rem;
    line-height: 1.5rem;
  }

.news-tile .title {
  position: absolute;
  bottom: 0;
  z-index: 2;
  width: 80%;
  font-weight: 800;
  font-size: 1.3rem;
  line-height: 1.3rem;
  -webkit-background-clip: text;
  -webkit-text-fill-color: white;
    padding: 1rem;
}

/* VIN */
.news-tile::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1; /* boven de img maar onder de tekst */
  background: linear-gradient(
    180deg,          /* van boven naar beneden */
    rgba(0,0,0,0) 0%,  /* transparant boven */
    rgba(0,0,0,0.4) 100% /* iets zwart onder */
  );
  pointer-events: none; /* zorgt dat je klikbare elementen niet blokkeert */
}


  /* --- Buttons onder carousel --- */
  .carousel-buttons-row {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
  }

  .carousel-buttons-row .btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    transition: opacity 0.2s, transform 0.15s;
  }

  .carousel-buttons-row .btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
  }

  .carousel-buttons-row .btn:hover:not(:disabled) {
    transform: scale(1.08);
  }

#impressieLightbox .modal-content {
  	border-radius: 0 !important;
	}
/*
#impressieLightbox .carousel-inner img {
  object-fit: contain;
  width: auto;
  height: auto;
  max-height: 80vh;
  max-width: 100%;
  display: block;
  margin: 0 auto;
}


#impressieLightbox .carousel-inner img {
  object-fit: cover;
  width: 100%;
  height: 80vh;
}
*/

/* Nieuws archief */
.news-card {
  display: block;
  position: relative;
  width: 100%;
  border-radius: 0.75rem;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  aspect-ratio: 5 / 4;
  margin-bottom: 1.25rem; /* <-- ruimte onder tile */
}

.news-card-feature {
  aspect-ratio: 5 / 4;	
}

.news-card-feature img {
	width: 100%;
	height: auto;
}

.news-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /*filter: brightness(0.9);*/ /* toepassen als het iets donkerder moet */
  z-index: 0;
  transition: transform 0.8s ease-in-out, filter 0.6s ease-in-out, opacity 0.6s ease-in-out;
}

.news-card:hover img {
  filter: brightness(0.6);
  transform: scale(1.07);
}

.news-card-title {
  position: absolute;
  bottom: 0;
  z-index: 1;
  padding: 1rem;
  width: 80%;
  font-weight: 800;
  font-size: 1.3rem;
  line-height: 1.3rem;
  -webkit-background-clip: text;
  -webkit-text-fill-color: white;
}

/* gradient overlay */
.news-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1; /* boven de img maar onder de tekst */
  background: linear-gradient(
    180deg,          /* van boven naar beneden */
    rgba(0,0,0,0) 0%,  /* transparant boven */
    rgba(0,0,0,0.4) 100% /* iets zwart onder */
  );
  pointer-events: none; /* zorgt dat je klikbare elementen niet blokkeert */
}

/* tekst boven alles */
.news-card .news-card-title {
  position: absolute;
  z-index: 2;
  color: white;
}
	
.news-card-date {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background-color: var(--bs-primary); /* Bootstrap primary color */
    color: #fff;
    font-weight: 700;
    font-size: 0.75rem; /* small */
    padding: 0.3rem 0.35rem;
    border-radius: 0.25rem;
    z-index: 3;
    text-align: center;
    line-height: 1;
}

.news-card-feature .news-card-date {
    font-size: 0.75rem; /* houdt het ook small voor feature tile */
    padding: 0.3rem 0.35rem;
}

.page-template-klantpagina .news-tile::after {
  content: none;
}

.page-template-klantpagina .news-tile img {
    filter: none;
}

  /* --- Tablets 768px t/m 991px --- */
  @media (min-width: 768px) {
	  
  .news-section {
    position: relative; /* referentie voor absolute positioning indien nodig */
  }
	  
	.news-tile {
      width: 280px;
      height: 400px;
    }
	  
  .news-carousel-wrapper {
    position: relative;
    width: 100vw;       /* volledige breedte van het scherm */
    margin-left: calc(-50vw + 50%); /* centeren van volledige breedte */
    padding-left: 1rem; /* optioneel */
  }

    .news-carousel-inner {
      gap: 1rem;
      scroll-snap-type: none;
    }
	 
	 /* nieuws archief */ 
    .news-card-feature {
        position: relative;
        aspect-ratio: 5 / 4;
        overflow: hidden;
        display: block;
    }

    .news-card-feature img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

   .news-card-feature .news-card-title {
		font-size: 1.8rem;
		line-height: 1.8rem;
	   width: 80%;
	   padding: 1rem;
    }
	  
	  
}
	
@media (min-width: 992px) {
	
  .news-carousel-wrapper {
    position: relative;
    width: 100%; /* ipv 100vw */
    margin-left: 0; /* verwijder de vw-correctie */
    padding-left: 1rem;
    overflow-x: hidden; /* extra bescherming */
  }

  .news-carousel-inner {
    gap: 1rem;
    scroll-snap-type: none;
  }
}
  /* --- Desktop vanaf 992px --- */
  :root {
    --intro-width: 420px; /* vaste breedte van de intro */
    --intro-gap: 1rem;    /* ruimte tussen intro en carousel */
  }

  @media (min-width: 992px) {
    .news-section {
      display: flex;
      flex-direction: column;
      align-items: stretch;
    }

    /* container wordt referentie voor absolute positionering */
    .news-section .container {
      position: relative;
    }

    /* Intro links, verticaal gecentreerd */
    .news-intro-desktop {
      display: block;
      position: absolute;
      left: 0;
      top: 50%;
      transform: translateY(-50%);
      width: var(--intro-width);
      max-width: 40%;
      z-index: 5;
      padding-right: 1rem;
      box-sizing: border-box;
    }

    /* Carousel begint na de intro */
    .news-carousel-wrapper {
      position: relative;
      width: 100%;
      margin-left: calc(var(--intro-width) + var(--intro-gap));
      padding-left: 0;
    }

    .news-tile {
      width: 340px;
      height: 400px;
    }
	  
	 .news-card-feature {
	  aspect-ratio: 16 / 9;	
	}
  }

  /* --- Large desktop 1200px+ --- */
  @media (min-width: 1200px) {
    .news-carousel-wrapper {
      margin-left: calc(var(--intro-width) + var(--intro-gap));
    }
  }

  @media (min-width: 1400px) {
    .news-carousel-wrapper {
      margin-left: calc(var(--intro-width) + var(--intro-gap));
    }
  }
  
/* Belangrijk ivm overflow tablets */	  
html, body {
  max-width: 100%;
  overflow-x: hidden;
	}
	
/* FIX uit beeld lopen */	
	
/* --- Ultra-wide schermen fix ( > 2128px ) --- */
@media (min-width: 2128px) {
  .news-carousel-wrapper {
    /* Laat de carousel netjes tot de rechterrand lopen,
       maar zonder achter de intro te schuiven */
    width: calc(100vw - var(--intro-width) - var(--intro-gap));
    margin-left: calc(var(--intro-width) + var(--intro-gap));
    padding-left: 0;
    overflow-x: hidden;
  }

  .news-carousel-inner {
    justify-content: flex-start;
    gap: 1rem;
  }

  /* Zorg dat de laatste tegel altijd netjes tot aan de rand komt */
  .news-carousel-inner::after {
    content: "";
    flex: 0 0 calc((100vw - (var(--intro-width) + var(--intro-gap))) % (340px + 1rem));
  }
}




/* ===========================================
   IMPRESSIES CAROUSEL — Afgeleid van Nieuws
   Geen intro, zelfde layoutberekeningen
   =========================================== */

/* Basisstructuur */
.impressions-section {
  --intro-width: 0px !important;
  --intro-gap: 0px !important;
}

/* Algemene sectiestyling */
.impressions-section .news-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
  overflow: visible;
}

.impressions-section .news-carousel-wrapper {
  position: static;
  transform: none;
  width: 100%;
  padding-left: 0;
  margin-left: 0;
}

/* --- Scrollbare binnenkant (mobiel) --- */
.impressions-section .news-carousel-inner {
  display: flex;
  gap: 0.5rem;
  scroll-behavior: smooth;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.impressions-section .news-carousel-inner::-webkit-scrollbar {
  display: none;
}

/* --- Tegels --- */
.impressions-section .news-tile {
  flex: 0 0 auto;
  width: 100%;
  height: 300px;
  position: relative;
  border-radius: 0.75rem;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  text-decoration: none;
  color: #fff;
  scroll-snap-align: start;
}

.impressions-section .news-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center; /* of 'center top' als dat mooier uitkomt */
  z-index: 0;
  opacity: 1;
  transition: transform 0.8s ease-in-out, filter 0.6s ease-in-out, opacity 0.6s ease-in-out;
}

.impressions-section .news-tile:hover img {
  filter: brightness(60%);
  transform: scale(1.07);
  opacity: 0.9;
}

/* -------------------------------------------
   Responsive gedrag (zelfde opbouw als Nieuws)
   ------------------------------------------- */

/* Tablets (768px t/m 991px) */
@media (min-width: 768px) {
  .impressions-section .news-tile {
    width: 400px;
    height: 300px;
  }

  .impressions-section .news-carousel-wrapper {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    padding-left: 1rem;
  }

  .impressions-section .news-carousel-inner {
    gap: 1rem;
    scroll-snap-type: none;
  }
}

/* Desktop (992px en groter) */
@media (min-width: 992px) {
  .impressions-section {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .impressions-section .container {
    position: relative;
  }

  .impressions-section .news-carousel-wrapper {
    position: relative;
    width: calc(100vw - var(--intro-width) - var(--intro-gap));
    margin-left: calc(var(--intro-width) + var(--intro-gap));
    padding-left: 0;
  }

  .impressions-section .news-tile {
    width: 600px;
    height: 400px;
  }

  .impressions-section .news-carousel-inner {
    gap: 1rem;
    scroll-snap-type: none;
  }
}

/* Large desktops (≥1200px) */
@media (min-width: 1200px) {
  .impressions-section .news-carousel-wrapper {
    margin-left: calc(var(--intro-width) + var(--intro-gap));
  }
}

@media (min-width: 1400px) {
  .impressions-section .news-carousel-wrapper {
    margin-left: calc(var(--intro-width) + var(--intro-gap));
  }
}

/* Ultra-wide schermen (≥2128px) */
@media (min-width: 2128px) {
  .impressions-section .news-carousel-wrapper {
    width: calc(100vw - var(--intro-width) - var(--intro-gap));
    margin-left: calc(var(--intro-width) + var(--intro-gap));
    padding-left: 0;
    overflow-x: hidden;
  }

  .impressions-section .news-carousel-inner {
    justify-content: flex-start;
    gap: 1rem;
  }

  /* Laat laatste tegel netjes tot aan rechterrand lopen */
  .impressions-section .news-carousel-inner::after {
    content: "";
    flex: 0 0 calc((100vw - (var(--intro-width) + var(--intro-gap))) % (340px + 1rem));
  }
}

/* Zorg dat body nooit horizontaal scrollt */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}
