/* ══ GALLERY PAGE ══════════════════════════════════════════ */

#gallery-main { background: var(--ink); padding: 64px 0 80px; }

/* ── Section layout ── */
.gallery-section { max-width: 1240px; margin: 0 auto; padding: 0 28px 72px; }

.gallery-section-head { text-align: center; margin-bottom: 40px; padding: 0 20px; }
.gallery-section-head .section-tag { color: var(--gold); }
.gallery-section-head .section-title { color: var(--parchment); }
.gallery-section-desc {
  font-family: 'Noto Serif', serif; font-style: italic;
  font-size: 0.98rem; color: rgba(245,237,216,0.6);
  max-width: 620px; margin: 0 auto; line-height: 1.75;
}

/* ── Section separator ── */
.gallery-sep {
  max-width: 1240px; margin: 0 auto 72px; padding: 0 28px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,147,58,.35), transparent);
}

/* ── Photo grid ── */
.photo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }

.photo-item {
  position: relative; overflow: hidden; cursor: pointer; background: #150d07;
}
.photo-item img {
  width: 100%; height: 280px; object-fit: cover; display: block;
  transition: transform .45s ease, filter .35s;
  filter: brightness(.85);
}
.photo-item:hover img { transform: scale(1.06); filter: brightness(1); }

.photo-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(26,18,11,.88) 0%, rgba(26,18,11,.05) 55%, transparent 100%);
  opacity: 0; transition: opacity .3s;
  display: flex; align-items: flex-end; padding: 16px 18px;
}
.photo-item:hover .photo-overlay { opacity: 1; }
.photo-overlay span {
  font-family: 'Cinzel', serif; font-size: 0.72rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-lt);
}

/* Champions section — slightly taller cells for landscape group shots */
.photo-grid--champs .photo-item img { height: 300px; }

/* Outdoor section — smaller cells (3 photos are lower resolution) */
.photo-grid--outdoor .photo-item img { height: 240px; }

/* ── Lightbox ── */
.lb-wrap {
  position: fixed; inset: 0; z-index: 9000;
  display: flex; align-items: center; justify-content: center;
  visibility: hidden; opacity: 0; transition: opacity .25s, visibility .25s;
}
.lb-wrap.active { visibility: visible; opacity: 1; }

.lb-backdrop { position: absolute; inset: 0; background: rgba(10,5,2,0.95); }

.lb-content {
  position: relative; z-index: 1;
  max-width: 90vw; max-height: 88vh; text-align: center;
}
#lb-img {
  max-width: 100%; max-height: 82vh; object-fit: contain;
  display: block; box-shadow: 0 8px 60px rgba(0,0,0,.7);
}
#lb-caption {
  font-family: 'Cinzel', serif; font-size: 0.72rem;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold-lt); margin-top: 14px;
}

.lb-close, .lb-prev, .lb-next {
  position: fixed; background: none; border: none;
  color: rgba(245,237,216,0.7); cursor: pointer; z-index: 2;
  transition: color .2s; padding: 12px; line-height: 1;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { color: var(--gold-lt); }
.lb-close { top: 20px; right: 28px; font-size: 2rem; }
.lb-prev  { top: 50%; left: 16px; transform: translateY(-50%); font-size: 2.4rem; }
.lb-next  { top: 50%; right: 16px; transform: translateY(-50%); font-size: 2.4rem; }

/* ── CTA Strip ── */
#cta-strip { background: var(--crimson); padding: 56px 24px; text-align: center; }
#cta-strip h3 { font-family: 'Cinzel', serif; font-size: 1.4rem; color: #fff; margin-bottom: 10px; }
#cta-strip p { color: rgba(255,255,255,.75); font-family: 'Noto Serif', serif; font-style: italic; margin-bottom: 24px; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .photo-grid, .photo-grid--champs, .photo-grid--outdoor { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 680px) {
  .photo-grid, .photo-grid--champs, .photo-grid--outdoor { grid-template-columns: repeat(2, 1fr); }
  .photo-item img { height: 200px; }
  .photo-grid--champs .photo-item img { height: 220px; }
  .photo-grid--outdoor .photo-item img { height: 180px; }
  .lb-prev { left: 6px; } .lb-next { right: 6px; }
}
@media (max-width: 400px) {
  .photo-grid, .photo-grid--champs, .photo-grid--outdoor { grid-template-columns: 1fr; }
}
