/* ===== Gallery page — extends design tokens from style.css ===== */

/* Hero — same pattern as About/Contact: image + upload fallback + dark overlay, left-aligned text */
.gallery-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  min-height: 460px;
  display: flex;
  align-items: center;
}
.gallery-hero-media { position: absolute; inset: 0; }
.gallery-hero-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-hero-fallback {
  display: none;
  position: absolute; inset: 0;
  flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  color: var(--gold);
  background: linear-gradient(160deg, var(--navy), var(--navy-deep));
}
.gallery-hero-fallback svg { width: 52px; height: 52px; }
.gallery-hero-fallback span { font-size: 0.9rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #cfe0ee; }
.gallery-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(8,37,66,0.94) 0%, rgba(8,37,66,0.82) 38%, rgba(8,37,66,0.35) 62%, rgba(8,37,66,0.08) 100%);
}
.gallery-hero-inner {
  position: relative; z-index: 2;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 70px 24px 90px;
  text-align: left;
  box-sizing: border-box;
}
.gallery-hero-inner .hero-text { max-width: 620px; margin-left: 0; margin-right: auto; }
.gallery-hero-eyebrow { color: #fff; font-size: clamp(2.2rem, 8vw, 5.2rem); font-weight: 900; }
.gallery-hero-heading {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: 0.01em;
  font-size: clamp(2rem, 4.6vw, 3.2rem);
  color: var(--gold);
  line-height: 1.1;
  margin-bottom: 16px;
}
.gallery-hero-lede { font-family: var(--font-display); color: #d6e4f0; font-size: clamp(1.02rem, 1.5vw, 1.15rem); max-width: 540px; margin: 0; }

/* Section titles — centered, uppercase, large */
.gallery-section-title {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: clamp(2rem, 4vw, 2.7rem);
  margin-bottom: 34px;
}

/* Photo grid — 3 columns, large square tiles */
.gallery-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.gallery-photo {
  position: relative;
  margin: 0;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(160deg, var(--navy), var(--navy-deep));
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.gallery-photo:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.gallery-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-photo-fallback {
  display: none;
  position: absolute; inset: 0;
  flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  color: var(--gold);
  border: 2px dashed rgba(240,180,41,0.5);
  border-radius: var(--radius);
}
.gallery-photo-fallback svg { width: 36px; height: 36px; }
.gallery-photo-fallback span { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: #cfe0ee; }

/* Video cards */
.gallery-video-card h3 { text-align: center; margin-top: 14px; margin-bottom: 0; }
.gallery-video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(160deg, var(--navy), var(--navy-deep));
}
.gallery-video-frame iframe,
.gallery-video-frame video { width: 100%; height: 100%; border: 0; display: block; object-fit: cover; background: #000; }
.gallery-video-fallback {
  display: none;
  position: absolute; inset: 0;
  flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  color: var(--gold);
  border: 2px dashed rgba(240,180,41,0.5);
  border-radius: 12px;
}
.gallery-video-fallback svg { width: 40px; height: 40px; }
.gallery-video-fallback span { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: #cfe0ee; }

@media (max-width: 900px) {
  .gallery-photo-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .gallery-photo-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .gallery-hero-inner { padding: 50px 20px 60px; }
}