/* =========================================================================
   Media — event-fotogalerij. Layout 1-op-1 met de Ucraft-pagina:
   per event een rij met het coverbeeld links (2:1, lichte zwarte rand,
   border-radius 2%) en rechts de titel + editie + "VIEW ALBUM"-knop,
   verticaal gecentreerd. Op mobiel: beeld boven, tekst eronder, gecentreerd.
   ========================================================================= */

.media-gallery {
  background: #fff;
  padding-block: clamp(48px, 7vw, 88px);
}
/* sectiekop (zoals de kalender-kop op /events) */
.media-gallery__head {
  text-align: center;
  margin-bottom: clamp(44px, 7vw, 72px);
}
.media-gallery__head h2 {
  margin: 0 0 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: "Ford F-1 Bold Custom", "Ford F-1", sans-serif;
  font-weight: 700;
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
}
.media-gallery__divider {
  display: block;
  width: 60px;
  height: 0;
  margin: 0 auto;
  border-bottom: 6px solid #e8e8e8;
}

.media-gallery__grid {
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 4vw, 48px);
  max-width: 1040px;
  margin-inline: auto;
}
.media-gallery__status {
  text-align: center;
  color: var(--fpc-text);
  padding: 40px 0;
}
.media-gallery__status[data-state="error"] {
  color: #b3261e;
}

/* ---- rij: twee gelijke kolommen op desktop ----------------------- */
.media-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
}

/* scroll-reveal: de basis-fade/schuif staat in site.css ([data-reveal]).
   Hier alleen de rij-specifieke stagger-index (sneller na elkaar). */
.media-row[data-reveal] {
  --reveal-delay: calc(min(var(--reveal-i, 0), 5) * 30ms);
}
.media-row__media {
  display: block;
  position: relative;
  aspect-ratio: 2 / 1;
  overflow: hidden;
  border-radius: 6px;
  background: #eef0f4;
}
.media-row__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.media-row__media:hover img {
  transform: scale(1.03);
}
.media-row__placeholder {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #e7eaf0, #d9dee7);
}

.media-row__body {
  max-width: 380px;
}
.media-row__title {
  margin: 0 0 4px;
  font-family: "Ford F-1 Bold Custom", "Ford F-1", sans-serif;
  font-weight: 700;
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  line-height: 1.2;
  color: #000;
}
.media-row__title a {
  color: inherit;
  text-decoration: none;
}
.media-row__title a:hover {
  text-decoration: none;
}
.media-row__edition {
  margin: 0 0 12px;
  font-family: "Ford F-1 Semibold Custom", "Ford F-1", sans-serif;
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #9a9a9a;
}
.media-row__btn {
  margin-top: 16px;
  height: 36px;
  min-width: 0;
  padding-inline: 18px;
  font-size: 0.78rem;
}
/* met editie-subtitel ertussen: die levert al de ruimte, knop dichterbij */
.media-row__edition + .media-row__btn {
  margin-top: 4px;
}

/* ---- mobiel: 1 kolom, beeld boven, alles gecentreerd -------------- */
@media (max-width: 767.98px) {
  .media-gallery__grid {
    gap: clamp(36px, 9vw, 52px);
  }
  .media-row {
    grid-template-columns: 1fr;
    gap: 18px;
    justify-items: center;
    text-align: center;
  }
  .media-row__media {
    width: 100%;
  }
  .media-row__body {
    max-width: 100%;
  }
  .media-row__edition {
    margin-bottom: 14px;
  }
}
