.site-countdown-hidden {
  display: none !important;
}

.gallery-section {
  position: relative;
  overflow: hidden;
  padding: 7rem 1.5rem;
  background:
    radial-gradient(720px 420px at 12% 20%, color-mix(in oklab, var(--primary) 18%, transparent), transparent 62%),
    radial-gradient(720px 420px at 88% 18%, color-mix(in oklab, var(--gold) 20%, transparent), transparent 62%),
    var(--background);
}

.gallery-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, color-mix(in oklab, var(--secondary) 42%, transparent), color-mix(in oklab, var(--background) 16%, transparent));
  pointer-events: none;
}

.gallery-wrap {
  position: relative;
  width: min(72rem, 100%);
  margin: 0 auto;
}

.gallery-kicker {
  color: var(--primary);
  font-size: .625rem;
  letter-spacing: .4em;
  text-align: center;
  text-transform: uppercase;
}

.gallery-title {
  margin-top: .75rem;
  color: var(--deep);
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  font-weight: 500;
  line-height: 1.05;
  text-align: center;
}

.gallery-divider {
  width: 6rem;
  height: 1px;
  margin: .9rem auto 0;
  background: linear-gradient(90deg, transparent, var(--gold) 50%, transparent);
}

.gallery-subtitle {
  max-width: 42rem;
  margin: 1.25rem auto 0;
  color: var(--muted-foreground);
  font-size: 1rem;
  line-height: 1.7;
  text-align: center;
}

.gallery-shell {
  position: relative;
  margin-top: 3.5rem;
  border-radius: 1.5rem;
  box-shadow: var(--shadow-luxe);
}

.gallery-frame {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  aspect-ratio: 16 / 9;
  background: var(--deep);
}

.gallery-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.025);
  transition: opacity .55s ease, transform .8s ease;
}

.gallery-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.gallery-gradient {
  position: absolute;
  inset: auto 0 0;
  height: 35%;
  background: linear-gradient(180deg, transparent, rgb(0 0 0 / .48));
  pointer-events: none;
}

.gallery-caption {
  position: absolute;
  left: 1.25rem;
  bottom: 1.15rem;
  color: white;
  font-size: .9rem;
  font-weight: 600;
  text-shadow: 0 1px 12px rgb(0 0 0 / .45);
}

.gallery-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
}

.gallery-buttons {
  display: flex;
  gap: .65rem;
}

.gallery-button {
  display: inline-flex;
  width: 2.75rem;
  height: 2.75rem;
  align-items: center;
  justify-content: center;
  border: 1px solid color-mix(in oklab, var(--border) 80%, transparent);
  border-radius: 999px;
  background: color-mix(in oklab, var(--card) 86%, transparent);
  color: var(--deep);
  cursor: pointer;
  font-size: 1.35rem;
  line-height: 1;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.gallery-button:hover,
.gallery-button:focus-visible {
  transform: translateY(-2px);
  border-color: color-mix(in oklab, var(--gold) 62%, var(--border));
  box-shadow: var(--shadow-soft);
  outline: none;
}

.gallery-dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .4rem;
}

.gallery-dot {
  width: .6rem;
  height: .6rem;
  border-radius: 999px;
  background: color-mix(in oklab, var(--primary) 28%, transparent);
  cursor: pointer;
  transition: width .18s ease, background .18s ease;
}

.gallery-dot.is-active {
  width: 1.45rem;
  background: var(--gold);
}

.gallery-home-actions {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.gallery-page-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  border-radius: 999px;
  background: var(--gradient-gold);
  box-shadow: var(--shadow-glow);
  color: var(--deep);
  font-weight: 700;
  padding: .9rem 1.25rem;
  text-decoration: none;
  transition: transform .18s ease;
}

.gallery-page-link:hover,
.gallery-page-link:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.gallery-page-body {
  min-height: 100vh;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
}

.gallery-page-header {
  padding: 4rem 1.5rem 2rem;
  background: var(--gradient-hero);
}

.gallery-page-header-inner {
  width: min(72rem, 100%);
  margin: 0 auto;
}

.gallery-back {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: color-mix(in oklab, var(--deep) 78%, transparent);
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
}

.gallery-page-title {
  margin-top: 2rem;
  color: var(--deep);
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 500;
  line-height: 1;
}

.gallery-page-copy {
  max-width: 42rem;
  margin-top: 1rem;
  color: var(--muted-foreground);
  line-height: 1.7;
}

.gallery-page-main {
  width: min(72rem, 100%);
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.gallery-thumb {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  aspect-ratio: 4 / 3;
  border: 1px solid color-mix(in oklab, var(--border) 70%, transparent);
  background: var(--secondary);
  cursor: pointer;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .28s ease;
}

.gallery-thumb:hover img,
.gallery-thumb:focus-visible img {
  transform: scale(1.04);
}

.gallery-lightbox {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgb(0 0 0 / .86);
}

.gallery-lightbox.is-open {
  display: flex;
}

.gallery-lightbox img {
  max-width: min(96vw, 90rem);
  max-height: 86vh;
  border-radius: .75rem;
  box-shadow: 0 24px 90px rgb(0 0 0 / .45);
}

.gallery-lightbox-close {
  position: fixed;
  top: 1rem;
  right: 1rem;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  background: white;
  color: black;
  cursor: pointer;
  font-size: 1.5rem;
}

@media (max-width: 860px) {
  .gallery-section {
    padding: 5.5rem 1.25rem;
  }

  .gallery-frame {
    aspect-ratio: 4 / 3;
  }

  .gallery-controls {
    align-items: flex-start;
    flex-direction: column;
  }

  .gallery-dots {
    justify-content: flex-start;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}
