@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600&family=Montserrat:wght@500;600&display=swap');

.gallery-hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.gallery-hero-media,
.gallery-hero-overlay {
  position: absolute;
  inset: 0;
  display: block;
}

.gallery-hero-media {
  background-image: linear-gradient(120deg, rgba(0, 0, 0, 0.45), rgba(17, 17, 17, 0.35)),
    url('../media/images/murima-night-pics/IMG-20251120-WA0055.jpg');
  background-size: cover;
  background-position: center;
  filter: saturate(1.05);
  z-index: -2;
}

.gallery-hero-overlay {
  background: linear-gradient(150deg, rgba(209, 31, 38, 0.75), rgba(0, 0, 0, 0.85));
  mix-blend-mode: multiply;
  z-index: -1;
}

.gallery-hero-content {
  color: #fff;
  max-width: 720px;
  width: min(720px, 90vw);
  margin: 0 auto;
  padding: 4rem 1rem;
}
.gallery-hero-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.8rem, 5vw, 3.6rem);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  color: #ffffff;
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.gallery-intro .section-header h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  letter-spacing: 0.2em;
}

.gallery-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.filter-btn {
  border-radius: 999px;
  padding: 0.85rem 1.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: transparent;
  color: #111;
  font-weight: 600;
  transition: all 0.2s ease;
}

.filter-btn.active {
  background: #d11f26;
  border-color: #d11f26;
  color: #fff;
  box-shadow: 0 15px 30px rgba(209, 31, 38, 0.4);
}

.filter-btn:focus-visible {
  outline: 2px solid #d11f26;
  outline-offset: 3px;
}

.gallery-grid {
  column-count: 3;
  column-gap: clamp(1rem, 2vw, 1.5rem);
}

.gallery-card {
  break-inside: avoid;
  margin: 0 0 1.25rem;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  cursor: zoom-in;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.video-frame {
  position: relative;
  padding-top: 56.25%;
  background: #000;
  border-radius: 18px 18px 0 0;
  overflow: hidden;
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.gallery-card--video {
  position: relative;
}

.gallery-card--video::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.gallery-card--video figcaption::before {
  content: '\25B6';
  display: inline-block;
  margin-right: 0.4rem;
  font-size: 0.9rem;
}

.gallery-card img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.gallery-card:focus-visible,
.gallery-card:hover {
  outline: none;
}

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

.gallery-card figcaption {
  padding: 1rem;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.gallery-card figcaption span {
  color: #111;
  font-weight: 600;
}

.gallery-card figcaption small {
  color: rgba(0, 0, 0, 0.6);
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(1, 1, 1, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease;
  z-index: 1200;
}

.gallery-lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox-inner {
  max-width: min(960px, 95vw);
  width: 100%;
  background: rgba(0, 0, 0, 0.85);
  border-radius: 18px;
  padding: 1.5rem;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.65);
  position: relative;
}

.lightbox-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: transparent;
  border: none;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  line-height: 1;
}

.lightbox-media img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}

.lightbox-caption {
  margin-top: 1rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.8);
  display: none;
}

@media (max-width: 1024px) {
  .gallery-grid {
    column-count: 2;
  }
}

@media (max-width: 640px) {
  .gallery-grid {
    column-count: 1;
  }

  .gallery-filter {
    gap: 0.5rem;
  }

  .filter-btn {
    flex: 1;
    text-align: center;
  }

  .gallery-hero-content {
    padding: 3rem 1rem;
  }
}

