/* ---------- intro (achtergrond + padding) ---------- */
.introproject {
  background: var(--clay);
  color: var(--cream);
  padding: 4rem 0 5rem;
}

/* ---------- Stadsmolens hero ---------- */
.stadsmolens-hero {
  max-width: 1100px;
  margin: 3rem auto 0;
  padding-inline: 2rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr; /* beeld groter dan tekst */
  gap: 3rem; /* vaste afstand tussen kolommen */
  align-items: start; /* bovenkanten gelijk */
}

/* Linkerkolom: beeld + pills */
.stadsmolens-hero .hero-left {
  grid-column: 1;
  grid-row: 1;
  align-self: start;
}

.stadsmolens-hero .hero-figure {
  margin: 0;
}

.stadsmolens-hero .hero-figure img {
  display: block;
  width: 100%;
  max-width: 640px;
  max-height: min(55vh, 520px); /* max height, schaal mee met viewport */
  height: auto;
  object-fit: contain;
  object-position: top left;
}

/* Pills onder de afbeelding */
.stadsmolens-hero .hero-pills {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}

.stadsmolens-hero .pill {
  background: var(--cream);
  color: var(--clay);
  font-weight: 700;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  box-shadow: var(--shadow);
  font-size: 0.95rem;
}

/* Rechterkolom: tekst + cards */
.stadsmolens-hero .hero-right {
  grid-column: 2;
  grid-row: 1;
  align-self: start;
}

.stadsmolens-hero .project-title {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 5vw + 0.5rem, 3.4rem);
  line-height: 1.1;
  color: var(--cream);
}

.stadsmolens-hero .hero-right p {
  margin: 0 0 1rem;
}

.stadsmolens-hero .hero-right h3 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1.05rem;
}

.stadsmolens-hero .hero-right ul {
  margin: 0 0 1.5rem 1.1rem;
}

/* Info cards */
.stadsmolens-hero .info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 0.5rem;
}

.stadsmolens-hero .info-card {
  border-radius: 1.25rem;
  padding: 1rem 1rem 1.1rem;
  box-shadow: var(--shadow);
  color: var(--text-dark);
  background: #fff;
}

.stadsmolens-hero .info-card h4 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 800;
}

.stadsmolens-hero .info-card ul {
  margin: 0;
  padding-left: 1.1rem;
}

/* Specifieke kleuren */
.stadsmolens-hero .info-materiaal {
  background: #7ed9cc;
}
.stadsmolens-hero .info-tools {
  background: var(--mustard);
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .stadsmolens-hero {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .stadsmolens-hero .hero-right,
  .stadsmolens-hero .hero-left {
    grid-column: 1;
  }

  .stadsmolens-hero .hero-right {
    max-width: 90%;
    margin-inline: auto;
  }

  .stadsmolens-hero .hero-figure img {
    max-width: 75vw;
    max-height: none;
  }
}

/* ---------- foto gallery---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 8px;
  padding: 8px;
}
.grid img,
.grid video {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  cursor: pointer;
  display: block;
  background: #eee;
  border-radius: 12px;
  transition: transform 0.2s ease;
}
.grid img:hover,
.grid video:hover {
  transform: scale(1.03);
}
/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999;
}
.lightbox.open {
  display: flex;
}
.lightbox .stage {
  max-width: 90vw;
  max-height: 90vh;
}
.lightbox img,
.lightbox video {
  max-width: 90vw;
  max-height: 90vh; /* behoud eigen verhouding */
  display: none;
  background: #000;
}
.lightbox img.show,
.lightbox video.show {
  display: block;
}

.close-btn {
  position: fixed;
  top: 10px;
  right: 10px;
  background: #fff;
  border: none;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 14px;
}
.nav-btn {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
  border: none;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 18px;
}
.nav-btn.prev {
  left: 10px;
}
.nav-btn.next {
  right: 10px;
}
/* ---------- Footer ---------- */
footer {
  background: var(--clay);
  color: var(--cream);
  padding: 3rem 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-left {
  flex: 1;
}

.footer-right {
  flex: 1;
  text-align: left;
}

.footer-right h4 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

footer a {
  color: var(--cream);
  text-decoration: underline;
  text-underline-offset: 3px;
}

footer a:hover {
  color: var(--cream-strong);
}
/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .stadsmolens-hero {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .stadsmolens-hero .hero-left,
  .stadsmolens-hero .hero-right {
    grid-column: 1;
    grid-row: auto; /* <<< belangrijk: laat ze onder elkaar stromen */
  }

  .stadsmolens-hero .hero-right {
    max-width: 90%;
    margin-inline: auto;
  }

  .stadsmolens-hero .hero-figure img {
    max-width: 75vw;
    max-height: none;
  }
}
