/* ─── Gallery Page Custom Styles ─────────────────────────────────────────
   Styles for gallery.php.
   Shared design-system components (ws-eyebrow, ws-section-heading,
   ws-btn, ws-body, ws-section, etc.) live in general.css.
─────────────────────────────────────────────────────────────────────── */

/* Page banner — position hero image */
.gallery-page .page-title {
  background-position: center 45%;
}

/* ══════════════════════════════════════════════════════════════════════
   VIDEO SECTION
══════════════════════════════════════════════════════════════════════ */
.ws-gallery-video-section {
  background: #ffffff;
}

.gallery-more-note {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #CB6015;
}

/* Video card wrapper */
.gallery-video-card {
  background: #0a0a0a;
  overflow: hidden;
}

/* Responsive 16:9 iframe embed */
.gallery-video-embed {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}
.gallery-video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* YouTube Shorts — 9:16 vertical aspect ratio */
.gallery-video-embed--short {
  padding-bottom: 177.78%;
}

/* Video card info bar */
.gallery-video-info {
  padding: 28px 36px 32px;
  border-top: 3px solid #0047BB;
}
.gallery-video-info h3 {
  font-family: 'Teko', sans-serif;
  font-size: 1.55rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 10px;
  line-height: 1.1;
}
.gallery-video-info p {
  font-family: 'Barlow', sans-serif;
  font-size: 0.93rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.75;
  margin: 0;
}

/* ══════════════════════════════════════════════════════════════════════
   PHOTO GALLERY SECTION
══════════════════════════════════════════════════════════════════════ */
.ws-gallery-photo-section {
  background: #f7f8fa;
}

/* ── Filter Tabs ──────────────────────────────────────────────────────── */
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}

.gallery-filter-btn {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 10px 22px;
  background: #ffffff;
  color: #555;
  border: 2px solid #e5e5e5;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.gallery-filter-btn:hover {
  background: #f0f0f0;
  border-color: #c0c0c0;
  color: #1a1a1a;
}
.gallery-filter-btn.active {
  background: #0047BB;
  color: #ffffff;
  border-color: #0047BB;
}

/* ── Photo Grid ───────────────────────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

@media (max-width: 1199px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 767px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 479px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Gallery Items ────────────────────────────────────────────────────── */
.gallery-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: #e5e5e5;
}

/* Smooth hide/show on filter */
.gallery-item-hidden {
  display: none;
}

.gallery-img-link {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.gallery-img-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.gallery-img-link:hover img,
.gallery-img-link:focus img {
  transform: scale(1.06);
}

/* Hover overlay with caption */
.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.82) 0%,
    rgba(0, 0, 0, 0.15) 50%,
    transparent 100%
  );
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 14px 16px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-img-link:hover .gallery-item-overlay,
.gallery-img-link:focus .gallery-item-overlay {
  opacity: 1;
}

.gallery-item-caption {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffffff;
  line-height: 1.3;
  flex: 1;
}

.gallery-item-icon {
  font-size: 1.25rem;
  color: #ffffff;
  flex-shrink: 0;
  margin-left: 8px;
  opacity: 0.9;
}

/* No results message */
.gallery-no-results {
  text-align: center;
  padding: 60px 20px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #75787B;
}

/* ══════════════════════════════════════════════════════════════════════
   CTA SECTION
══════════════════════════════════════════════════════════════════════ */
.ws-gallery-cta {
  background: #0047BB;
  padding: 100px 0;
}

.ws-gallery-cta .ws-eyebrow {
  justify-content: center;
}
.ws-gallery-cta .ws-eyebrow::before {
  background: #CB6015;
}
.ws-gallery-cta .ws-eyebrow span {
  color: rgba(255, 255, 255, 0.7);
}
.ws-gallery-cta .ws-section-heading {
  color: #ffffff;
}
