.festival-hero::after {
  background:linear-gradient(90deg,#070922ee 0%,#070922bb 29%,#07092241 62%,#0709220f 100%),
    linear-gradient(0deg,#07092295 0%,transparent 58%);
}
.festival-hero img { object-position:50% 48%; }
.festival-hero .hero-credit a { color:inherit; }
.coastal-hero-content { padding-block:4.5rem 3.8rem; }
.hero-lede { line-height:1.4; }

.home-gallery {
  display:grid;
  grid-template-columns:minmax(0,1.22fr) minmax(0,1fr);
  grid-template-rows:auto auto;
  gap:1rem 1.25rem;
  align-items:start;
}
.home-gallery .festival-photo:first-child { grid-row:span 2; }
.home-gallery .festival-photo:nth-child(n) { margin:0; }
.home-gallery .festival-photo img { aspect-ratio:2.25; }
.home-gallery .festival-photo:first-child img { aspect-ratio:1.06; }
.festival-photo { margin:0;min-width:0; }
.festival-photo button {
  display:block;width:100%;position:relative;padding:0;border:0;border-radius:.95rem;overflow:hidden;
  background:#e4e5ee;cursor:zoom-in;
}
.festival-photo img { aspect-ratio:1.6;width:100%;object-fit:cover;transition:transform .24s ease-out; }
.festival-photo-kapa-haka img { object-position:54% 54%; }
.festival-photo-kai-stalls img { object-position:50% 47%; }
.festival-photo-live-music img { object-position:50% 50%; }
.photo-open {
  display:grid;place-items:center;position:absolute;right:.65rem;bottom:.65rem;
  width:2.1rem;height:2.1rem;border-radius:50%;background:#070922dc;color:#fafbff;
}
.photo-open .icon { width:1rem; }
@media (hover:hover) {
  .festival-photo button:hover img { transform:scale(1.035); }
  .festival-photo button:hover .photo-open { background:#7026f8; }
}
.festival-photo figcaption { display:grid;gap:.15rem;padding:.52rem .08rem 0;color:var(--ink); }
.festival-photo figcaption small { color:var(--muted);font-size:.73rem;line-height:1.35; }
.festival-photo figcaption .text-link { min-height:0;display:inline; }
.gallery-story { margin-top:1.6rem; }
.gallery-story h2,.photo-archive h2 { font-size:clamp(1.45rem,3vw,2.2rem);margin-bottom:.85rem; }
.destination-gallery { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.05rem; }
.destination-gallery .festival-photo:first-child { grid-column:span 2; }
.destination-gallery .festival-photo:first-child img { aspect-ratio:2.4; }
.photo-archive {
  margin-top:2rem;display:grid;grid-template-columns:1fr 1.35fr;gap:1rem;
  border-top:1px solid var(--rule);padding-top:1.4rem;
}
.photo-archive .text-link { display:flex;min-height:40px; }
dialog.photo-dialog {
  width:min(calc(100vw - 2rem),920px);max-width:none;max-height:calc(100dvh - 1.6rem);
  border-radius:1rem;
}
.photo-dialog .dialog-body h2 { font-size:clamp(1.18rem,3vw,1.85rem);line-height:1.16; }
.photo-dialog .dialog-body { gap:.66rem; }
.photo-dialog .photo-viewer-image { object-fit:contain;max-height:min(62dvh,650px);border-radius:.6rem;background:#070922; }
.photo-dialog .small .text-link { min-height:0;display:inline; }
.photo-controls { display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:.65rem;text-align:center; }
.photo-controls button:first-child { justify-self:start; }
.photo-controls button:last-child { justify-self:end; }
.photo-controls span { color:var(--muted);font-variant-numeric:tabular-nums;font-size:.82rem; }

.stamp.stamped {
  position:relative;
  background:radial-gradient(circle at 34% 25%,color-mix(in srgb,var(--stamp-color),white 27%),var(--stamp-color) 58%);
  box-shadow:inset 0 0 0 4px var(--stamp-color),inset 0 0 0 5px currentColor,
    0 0 14px color-mix(in srgb,var(--stamp-color),transparent 78%);
}
.stamp-check {
  position:absolute;right:-.13rem;bottom:-.1rem;display:grid;place-items:center;
  width:1.23rem;aspect-ratio:1;background:#070922;border:1.5px solid var(--stamp-color);
  color:#fafbff;border-radius:50%;
}
.stamp-check .icon { width:.7rem; }
.passport-progress-label { display:flex;align-items:center;justify-content:space-between;gap:.75rem; }
.passport-progress-label>span { padding:.25rem .63rem;border-radius:2rem;background:#302e58;color:#fafbff;font-size:.74rem;white-space:nowrap; }
.passport-summary progress { height:.85rem; }
.completion {
  border:1px solid #7775a9;border-radius:.8rem;background:linear-gradient(125deg,#27254d,#161630);padding:.9rem 1rem;
}
.completion-heading { display:flex;align-items:center;gap:.58rem; }
.completion-heading>span {
  display:grid;place-items:center;border-radius:50%;width:2.05rem;aspect-ratio:1;flex:none;
  background:#03ced6;color:#070922;
}
.completion-heading .eyebrow { margin:0 0 .2rem;font-size:.64rem; }
.completion-heading h3 { margin:0;font-size:1.08rem; }
.checkpoint-photo { margin:1.1rem 0; }
.checkpoint-photo img { max-height:320px;object-fit:cover;object-position:50% 49%;border-radius:.85rem; }
.checkpoint-photo figcaption { margin-top:.4rem;color:var(--muted);font-size:.78rem; }
.checkpoint-photo .text-link { min-height:0;display:inline; }

@media(max-width:720px){
  .festival-hero::after {
    background:linear-gradient(0deg,#070922fa 0%,#070922b8 45%,#07092224 72%,#07092206 100%);
  }
  .festival-hero img { object-position:50% 42%; }
  .coastal-hero-content { padding-block:3rem 2.2rem; }
  .home-gallery { gap:.72rem;grid-template-columns:repeat(2,minmax(0,1fr)); }
  .home-gallery .festival-photo:first-child { grid-row:auto;grid-column:1/-1; }
  .home-gallery .festival-photo:first-child img { aspect-ratio:1.44; }
  .home-gallery .festival-photo img { aspect-ratio:1.38; }
  .destination-gallery { grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem; }
  .destination-gallery .festival-photo:first-child img { aspect-ratio:1.65; }
  .photo-archive { grid-template-columns:1fr;gap:.3rem; }
  .photo-archive h2 { margin:.3rem 0; }
  .photo-controls { gap:.35rem; }
  .photo-controls .btn { padding-inline:.54rem;font-size:.76rem; }
}
@media(prefers-reduced-motion:reduce){
  .festival-photo img { transition:none; }
  .festival-photo button:hover img { transform:none; }
}
