/* Project-hero */

.project-hero {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 45vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.project-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #3e4633a7;
  z-index: 0;
}

.project-hero .hero-content {
  justify-content: center;
  background-color: transparent;
  border: none;
}

.project-hero .hero-text {
  flex: 0 1 700px;
  align-items: center;
  text-align: center;
}

.project-hero .hero-text h1,
.project-hero .hero-text h2 {
  color: #FFF9F5;
   text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.project-hero .hero-text h2 {
  font-weight: 400;
  font-size: 20px;
  line-height: 1.6;
}

/* ============================================= */
/* Typografische schaal + consistente verticale ritmiek
   h2 = sectietitels (26px, 20px eronder)
   h3 = subtitels (18-20px, 10px eronder)
   body = 16px */
/* ============================================= */

:root {
  --content-width: 1300px;
}

.case-container {
  width: 90%;
  max-width: var(--content-width);
  margin: 60px auto;
  font-family: 'Poppins', sans-serif;
}

.intro-section h2,
.iteration-section h2,
.carousel h2,
.section-title,
.conclusion-section h2 {
  color: #C3616C;
  font-family: 'Noto Serif', serif;
  font-size: 32px;
  line-height: 1.3;
  margin: 0 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.intro-section h2:not(.section-title) {
  justify-content: flex-start;
}

.intro-section h2 span,
.iteration-section h2 span,
.carousel h2 span,
.section-title span,
.conclusion-section h2 span {
  display: inline-block;
  padding: 10px 0px;
  margin-bottom: 10px;
}

.intro-section h2 {
  text-align: left;
}
 
.iteration-section h2 {
  text-align: center;
 
}

.carousel-slide h3,
.iteration-text h3, .conclusion-section h3 {
  color: #3E4633;
  font-family: 'Noto Serif', serif;
  font-size: 18px;
  margin: 0 0 10px;
}

.onderdelen li,
.iteration-text p,
.conclusion-section li, .conclusion-section p {
  color: #3E4633;
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 400;
  word-spacing: 0.05em;
  letter-spacing: 0.02em;
  line-height: 1.6em;
  text-align: left;
}

.iteration-text {
  display: flex;
  gap: 40px;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
  margin-bottom: 20px;
  margin-top: 20px;
}

.iteration-col {
  flex: 1 1 0;
  min-width: 0;
}

.iteration-col + .iteration-col {
  padding-left: 40px;
}

.iteration-col p.inspringen {
  text-indent: 1.5em;
}

@media (max-width: 768px) {
  .iteration-text {
    flex-direction: column;
  }

  .iteration-col + .iteration-col {
    border-left: none;
    padding-left: 0;
    padding-top: 20px;
  }
}

.iteration-text p {
  margin-bottom: 1em;
}

.case-info-bar {

  border-radius: 100px;
  padding: 15px 25px;
  max-width: 70%;
  margin: 0 auto 40px;
}

.case-info-bar ul {
  font-family: 'Poppins', sans-serif;
  color: #3E4633;
  font-size: 20px;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  font-weight: 500;
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

.intro-section {
  margin-bottom: 20px;
}

/* Intro-sectie in 2 kolommen (tekst | plaatje) */

.intro-flex {
  display: flex;
  gap: 3rem;
  align-items: flex-end;
  flex-wrap: wrap;
}

.intro-text-col {
  flex: 1 1 50%;
  min-width: 350px;
  max-width: 600px;
}

.intro-visual-col {
  flex: 1 1 35%;
  min-width: 240px;
  text-align: center;
}

.intro-visual-col img {
  width: 100%;
  max-width: 550px;
  border-radius: 30px;
  margin-bottom: 30px;
}

@media (max-width: 768px) {
  .intro-flex {
    flex-direction: column;
  }
}

.image-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 10px;
}

.image-box {
  overflow: visible;
  position: relative;
  transition: transform 1s ease;
}

.image-box img {
  width: 200px;
  height: auto;
  transition: transform 0.5s ease;
  display: block;
}

.image-box img:hover {
  transform: scale(1.3);
  z-index: 10;
  position: relative;
}

.end-product-section,
.iteration-section,
.conclusion-section {
  margin-bottom: 50px;
}

/* Carousel voor eindresultaat-schermen */

.carousel {
  position: relative;
  display: flex;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}

.carousel-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 15px 0 50px;
  scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
  text-align: center;
}

.carousel-btn {
  background: #C5D17A;
  color: #3E4633;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color 0.3s ease;
}

.carousel-btn:hover {
  background: #C3616C;
  color: #FFF9F5;
}

.carousel-btn.prev {
  margin-right: 10px;
}
.carousel-btn.next {
  margin-left: 10px;
}

@media (max-width: 600px) {
  .carousel-btn {
    display: none;
  }
}

/* Iteraties */
.iteration-section:first-of-type h2 {
  margin-top: 20px;
}

/* iteration-alt (gekleurde achtergrond) en iteration-wide (transparant,
   voor Iteratie 2) delen dezelfde full-bleed breedte, zodat de
   .iteration-gallery in alle drie de iteraties evenveel ruimte heeft
   om te groeien — dat maakt de afbeeldingen overal even breed.
   calc(-50vw + 50%) i.p.v. position:relative/left/right, want die
   laatste werkt niet correct zodra het element genest zit in een
   smallere ouder (zoals hier .case-container). */
.iteration-alt,
.iteration-wide {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  padding: 50px 20px;
  box-sizing: border-box;
}

.iteration-alt {
  background-color: #c3616c12;
}

/* Binnenkant van elke full-bleed iteratie-sectie, houdt de content
   op dezelfde leesbare breedte als de rest van de pagina (gebruikt
   dezelfde --content-width variabele als .case-container) */
.iteration-inner {
  width: 90%;
  max-width: var(--content-width);
  margin: 0 auto;
}

/* Overige plaatjes per iteratie, naast elkaar (3 stuks) */
.iteration-gallery {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
}

.iteration-gallery figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1 1 260px;
  max-width: 400px;
  margin: 0;
  text-align: center;
}

@media (max-width: 768px) {
  .iteration-gallery {
    flex-direction: column;
  }

  .iteration-gallery figure {
    max-width: 100%;
  }
}

/* Gedeelde stijl voor alle iteratie-afbeeldingen */
.iteration-gallery img {
  margin-top: 15px;
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 70px;
  border: 2px solid #3E4633;
  cursor: pointer;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.iteration-gallery img:hover {
  box-shadow: 0 12px 32px rgba(43, 51, 31, 0.35);
  transform: translateY(-4px) rotate(0.5deg);
}

.iteration-gallery figcaption {
  font-size: 14px;
  font-weight: 300;
  margin-top: 8px;
  margin-bottom: 20px;
  color: #3E4633;
  word-spacing: 0.16em;
  line-height: 1.5em;
  letter-spacing: 0.02em;
  text-align: center;
}

/* Conclusie: schermbrede sectie ("full-bleed"), zelfde calc()-techniek
   als hierboven, om dezelfde nesting-bug te voorkomen. Geen eigen
   achtergrondkleur (neutraal, zoals gewenst). */
.conclusion-section {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  margin-top: 0;
  margin-bottom: 0;
  padding: 40px 20px;
  box-sizing: border-box;
}

.conclusion-container {
  width: 90%;
  max-width: 800px;
  margin: 0 auto;
}

.conclusion-section h2 {
  text-align: center;
}

.conclusion-section ul {
  margin: 0;
  padding-left: 1.4rem;
}

/* Responsiveness */
@media (max-width: 768px) {
  .project-hero {
    min-height: 28vh;
  }

  .case-info-bar {
    max-width: 90%;
  }

  .case-info-bar ul {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/* Lightbox (klik op een iteratie-foto om 'm groter te zien) */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(19, 36, 46, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  z-index: 100;
}

.lightbox-overlay.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-img {
  max-width: 85vw;
  max-height: 85vh;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

/* Slide met maar 1 item: breder en gecentreerd, i.p.v. de kleine
   200px-mockups uit de originele 3-koloms opzet */
.carousel-slide .image-row.single-item .image-box img,
.carousel-slide .image-row.single-item .image-box video {
  width: 100%;
  max-width: 700px;
  margin-top: 10px;
}
 
.carousel-slide .image-row.single-item .image-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.carousel-slide .image-row.single-item {
  display: flex;
  align-items: center;
  align-content: center;
  min-height: 400px;
}
 
.carousel-slide .image-row.single-item .image-box img:hover,
.carousel-slide .image-row.single-item .image-box video:hover {
  transform: none;
}

.carousel {
  background-color: #8a9d112c;
  border-radius: 30px;
  padding: 20px;
}

 
.bloem {
height: 40px;
  flex-shrink: 0;
  margin-left: 5px;
  margin-right: 5px;
}

/* Alles gecentreerd op mobiel */
@media (max-width: 768px) {
  .intro-section h2,
  .intro-section h2:not(.section-title) {
    text-align: center;
    justify-content: center;
  }

  .iteration-text,
  .iteration-text h3,
  .iteration-text p,
  .onderdelen li,
  .conclusion-section p,
  .conclusion-section li {
    text-align: center;
  }

  /* Inspringing (tekst-indent) past niet meer bij gecentreerde tekst */
  .iteration-col p.inspringen {
    text-indent: 0;
  }
}