/* ==========================================================================
   LEOPARD SAFARI — GALLERY PAGE STYLES
   Design Tokens: Primary (#1F3025), Secondary (#687052), Accent (#C49A55),
                  CTA (#B65C3A), Background (#FAF7F2), Text (#252923)
   ========================================================================== */

/* --- 1. GALLERY HERO SECTION --- */
.gallery-hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--primary);
  padding: 130px 0 60px;
}

.gallery-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.gallery-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  filter: contrast(1.05) brightness(1.05) saturate(1.04);
}

.gallery-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(90deg,
      rgba(10, 15, 12, 0.90) 0%,
      rgba(10, 15, 12, 0.70) 32%,
      rgba(10, 15, 12, 0.20) 56%,
      rgba(10, 15, 12, 0) 70%);
  pointer-events: none;
}

.gallery-hero-container {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.gallery-hero-content {
  max-width: 580px;
}

.gallery-hero-eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--accent);
  margin-bottom: 12px;
}

.gallery-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  font-weight: 500;
  line-height: 1.08;
  color: var(--white);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.gallery-hero-desc {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 24px;
}

.gallery-hero-tagline {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.75);
}

.gallery-hero-tagline .line {
  display: inline-block;
  width: 28px;
  height: 2px;
  background-color: var(--accent);
}

.gallery-hero-aside {
  text-align: right;
  padding-right: 20px;
}

.gallery-script-badge {
  font-family: 'Caveat', cursive;
  font-size: 2.2rem;
  line-height: 1.15;
  color: rgba(255, 255, 255, 0.9);
  display: inline-block;
  transform: rotate(-3deg);
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.5);
}

.gallery-script-badge .script-line {
  display: block;
  width: 36px;
  height: 2px;
  background-color: rgba(255, 255, 255, 0.6);
  margin: 8px 0 0 auto;
}

/* --- 2. GALLERY FILTER & SEARCH STRIP --- */
.gallery-filter-section {
  background-color: var(--background);
  padding: 28px 0 20px;
  border-bottom: 1px solid rgba(104, 112, 82, 0.14);
  position: sticky;
  top: 76px;
  z-index: 100;
  transition: all var(--transition-normal);
}

.gallery-filter-section.is-stuck {
  background-color: rgba(250, 247, 242, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  padding: 16px 0;
}

.gallery-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.gallery-filter-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.filter-group-primary {
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-divider {
  width: 1px;
  height: 26px;
  background-color: rgba(104, 112, 82, 0.25);
  margin: 0 4px;
}

.filter-group-secondary {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Filter Pill Buttons */
.filter-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 16px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text);
  background-color: var(--white);
  border: 1px solid rgba(104, 112, 82, 0.24);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.filter-btn:hover {
  border-color: var(--cta);
  color: var(--cta);
  background-color: rgba(182, 92, 58, 0.04);
}

.filter-btn.active {
  background-color: var(--primary);
  border-color: var(--primary);
  color: var(--white);
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(31, 48, 37, 0.2);
}

/* Right Controls: Search & Sort */
.gallery-filter-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.search-toggle-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background-color: var(--white);
  border: 1px solid rgba(104, 112, 82, 0.24);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.search-icon-btn:hover {
  border-color: var(--cta);
  color: var(--cta);
}

.search-icon-btn svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

/* Expandable Search Input (Desktop) */
.desktop-search-input {
  width: 0;
  opacity: 0;
  pointer-events: none;
  height: 38px;
  padding: 0;
  border: 1px solid rgba(104, 112, 82, 0.24);
  border-radius: 8px;
  background-color: var(--white);
  font-family: var(--font-body);
  font-size: 0.84rem;
  color: var(--text);
  transition: all var(--transition-normal);
  margin-right: 8px;
}

.desktop-search-input.active {
  width: 200px;
  opacity: 1;
  pointer-events: auto;
  padding: 0 12px;
  border-color: var(--cta);
}

/* Sort Dropdown */
.sort-select-wrap {
  position: relative;
}

.sort-select {
  height: 38px;
  padding: 0 32px 0 14px;
  border-radius: 8px;
  background-color: var(--white);
  border: 1px solid rgba(104, 112, 82, 0.24);
  font-family: var(--font-body);
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23687052' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 14px;
  transition: all var(--transition-fast);
}

.sort-select:hover,
.sort-select:focus {
  outline: none;
  border-color: var(--cta);
}

/* Mobile Search Bar (hidden on desktop) */
.mobile-search-bar {
  display: none;
}

.mobile-tune-btn {
  display: none;
}

/* --- 3. GALLERY GRID SECTION (Masonry Rhythm) --- */
.gallery-section {
  background-color: var(--background);
  padding: 40px 0 60px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

/* Gallery Card Base */
.gallery-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background-color: #162018;
  cursor: pointer;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  user-select: none;
}

.gallery-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.gallery-card-img-wrap {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.gallery-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-card:hover .gallery-card-img {
  transform: scale(1.05);
}

/* Card Proportions - Clean, Uniform, Premium Alignment */
.gallery-card,
.gallery-card.tall,
.gallery-card.medium,
.gallery-card.wide,
.gallery-card.square {
  height: 280px;
}

/* Card Vignette & Bottom Overlay */
.gallery-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
      rgba(10, 16, 12, 0.88) 0%,
      rgba(10, 16, 12, 0.45) 35%,
      transparent 65%);
  z-index: 2;
  transition: opacity var(--transition-normal);
}

.gallery-card-info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 18px 16px 14px;
  z-index: 3;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
}

.gallery-card-meta {
  flex: 1;
}

.gallery-card-title {
  font-family: var(--font-body);
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 4px;
  line-height: 1.3;
}

.gallery-card-location {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-body);
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.8);
}

.gallery-card-location svg {
  width: 12px;
  height: 12px;
  stroke: var(--accent);
  stroke-width: 2;
  fill: none;
}

.gallery-card-type-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-card-type-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
}

/* Video Items Specific: Play Button & Duration Badge */
.gallery-card-duration {
  position: absolute;
  top: 12px;
  right: 12px;
  background-color: rgba(14, 23, 18, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 3px 8px;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--white);
  z-index: 3;
  letter-spacing: 0.04em;
}

.gallery-card-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1.8px solid rgba(255, 255, 255, 0.85);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  transition: transform var(--transition-fast), background-color var(--transition-fast);
}

.gallery-card-play-btn svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
  margin-left: 2px;
  /* optical center */
}

.gallery-card:hover .gallery-card-play-btn {
  transform: translate(-50%, -50%) scale(1.1);
  background-color: var(--cta);
  border-color: var(--cta);
}

/* No Results Notice */
.gallery-no-results {
  display: none;
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
}

.gallery-no-results.active {
  display: block;
}

.gallery-no-results h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--text);
  margin-bottom: 8px;
}

.gallery-no-results p {
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* --- 4. LOAD MORE BUTTON --- */
.gallery-load-more-wrap {
  text-align: center;
  margin-top: 44px;
}

.gallery-load-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 28px;
  background-color: transparent;
  border: 1.5px solid rgba(104, 112, 82, 0.35);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.86rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text);
  cursor: pointer;
  transition: all var(--transition-normal);
}

.gallery-load-more-btn:hover {
  background-color: var(--primary);
  border-color: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(31, 48, 37, 0.2);
}

.gallery-load-more-btn.loading {
  pointer-events: none;
  opacity: 0.7;
}

.gallery-load-more-btn svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition-fast);
}

.gallery-load-more-btn:hover svg {
  transform: translateX(3px);
}

/* --- 5. LARGE CTA BANNER --- */
.gallery-cta-section {
  position: relative;
  min-height: 400px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--primary);
  padding: 80px 0;
}

.gallery-cta-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.gallery-cta-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 62%;
  filter: contrast(1.06) brightness(1.04) saturate(1.06);
}

.gallery-cta-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(90deg,
      rgba(10, 15, 12, 0.88) 0%,
      rgba(10, 15, 12, 0.68) 32%,
      rgba(10, 15, 12, 0.18) 55%,
      rgba(10, 15, 12, 0) 72%);
  pointer-events: none;
}

.gallery-cta-container {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.gallery-cta-content {
  max-width: 860px;
}

.gallery-cta-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 3.2vw, 3.2rem);
  font-weight: 500;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 12px;
  white-space: nowrap;
}

.gallery-cta-desc {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 28px;
}

.gallery-cta-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.gallery-cta-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 50px;
  padding: 0 24px;
  background-color: var(--cta);
  color: var(--white);
  border: 1px solid var(--cta);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-normal);
  box-shadow: 0 4px 16px rgba(182, 92, 58, 0.32);
}

.gallery-cta-btn-primary:hover {
  background-color: var(--cta-hover);
  border-color: var(--cta-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(182, 92, 58, 0.4);
}

.gallery-cta-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 50px;
  padding: 0 24px;
  background-color: rgba(20, 30, 24, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.gallery-cta-btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: var(--white);
  transform: translateY(-2px);
}

.gallery-cta-btn-secondary svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.gallery-cta-aside {
  text-align: right;
  padding-right: 20px;
}

.gallery-cta-script {
  font-family: 'Caveat', cursive;
  font-size: 2.3rem;
  line-height: 1.15;
  color: rgba(255, 255, 255, 0.9);
  display: inline-block;
  transform: rotate(-3deg);
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.5);
}

.gallery-cta-script .script-line {
  display: block;
  width: 36px;
  height: 2px;
  background-color: rgba(255, 255, 255, 0.6);
  margin: 8px 0 0 auto;
}

/* --- 6. INTERACTIVE LIGHTBOX MODAL --- */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  background-color: rgba(10, 16, 12, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-lightbox.active {
  display: flex;
  opacity: 1;
}

.lightbox-close-btn {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2010;
  transition: all var(--transition-fast);
}

.lightbox-close-btn:hover {
  background-color: var(--cta);
  border-color: var(--cta);
  transform: scale(1.08);
}

.lightbox-close-btn svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2.2;
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2010;
  transition: all var(--transition-fast);
}

.lightbox-nav-btn:hover {
  background-color: var(--cta);
  border-color: var(--cta);
  transform: translateY(-50%) scale(1.1);
}

.lightbox-nav-btn svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none;
}

.lightbox-prev-btn {
  left: 24px;
}

.lightbox-next-btn {
  right: 24px;
}

.lightbox-stage {
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.lightbox-media-wrap {
  max-width: 100%;
  max-height: 75vh;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
  background-color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  display: block;
}

.lightbox-video-sim {
  position: relative;
  width: 100%;
  max-width: 860px;
  aspect-ratio: 16 / 9;
  background-color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-video-sim img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lightbox-video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-caption-bar {
  width: 100%;
  max-width: 860px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 4px 0;
  color: var(--white);
}

.lightbox-caption-title {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.lightbox-caption-sub {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.7);
}

.lightbox-counter {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--accent);
  font-weight: 600;
}

/* --- 7. RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 1200px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1024px) {

  .gallery-hero-aside,
  .gallery-cta-aside {
    display: none;
  }

  .gallery-hero {
    min-height: 440px;
    padding: 110px 0 50px;
  }

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

@media (max-width: 767px) {

  /* Mobile Hero */
  .gallery-hero {
    min-height: 480px;
    padding: 125px 0 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .gallery-hero-bg img {
    object-position: 78% 20%;
    filter: contrast(1.08) brightness(1.08) saturate(1.08);
  }

  .gallery-hero-overlay {
    background: linear-gradient(180deg,
        rgba(10, 15, 12, 0.45) 0%,
        rgba(10, 15, 12, 0.72) 65%,
        rgba(10, 15, 12, 0.94) 100%);
  }

  .gallery-hero-eyebrow {
    font-size: 0.74rem;
    letter-spacing: 0.14em;
    margin-bottom: 6px;
  }

  .gallery-hero-title {
    font-size: 2.15rem;
    line-height: 1.12;
    margin-bottom: 8px;
  }

  .gallery-hero-desc {
    font-size: 0.84rem;
    line-height: 1.48;
    max-width: 290px;
    margin-bottom: 12px;
  }

  .gallery-hero-tagline {
    font-size: 0.7rem;
    letter-spacing: 0.12em;
  }

  .gallery-hero-tagline .line {
    width: 18px;
  }

  /* Mobile Filter Area */
  .gallery-filter-section {
    position: static;
    padding: 16px 0 10px;
    background-color: var(--background);
    border-bottom: none;
  }

  .gallery-filter-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  /* Mobile Search Input at Top of Filters */
  .mobile-search-bar {
    display: block;
    position: relative;
    width: 100%;
  }

  .mobile-search-bar input {
    width: 100%;
    height: 44px;
    padding: 0 14px 0 40px;
    border-radius: 10px;
    background-color: var(--white);
    border: 1px solid rgba(104, 112, 82, 0.25);
    font-family: var(--font-body);
    font-size: 0.86rem;
    color: var(--text);
  }

  .mobile-search-bar input:focus {
    outline: none;
    border-color: var(--cta);
  }

  .mobile-search-bar svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    stroke: #8C9286;
    stroke-width: 2;
    fill: none;
    pointer-events: none;
  }

  /* Hide Desktop Search & Sort on Mobile */
  .gallery-filter-right {
    display: none;
  }

  .filter-divider {
    display: none;
  }

  .gallery-filter-left {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
  }

  /* Mobile Filter Row 1 (All, Images, Videos) */
  .filter-group-primary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
    gap: 8px;
  }

  .filter-group-primary .filter-btn {
    width: 100%;
    height: 38px;
    font-size: 0.8rem;
    padding: 0;
  }

  /* Mobile Filter Row 2 (Jhalana, Jawai, Leopards, Wildlife, Settings Icon) - Smooth swipe */
  .filter-group-secondary {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    flex-wrap: nowrap;
    width: 100%;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .filter-group-secondary::-webkit-scrollbar {
    display: none;
  }

  .filter-group-secondary .filter-btn {
    height: 34px;
    padding: 0 14px;
    font-size: 0.78rem;
    border-radius: 6px;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .mobile-tune-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 6px;
    background-color: var(--white);
    border: 1px solid rgba(104, 112, 82, 0.24);
    color: var(--text);
    flex-shrink: 0;
    margin-left: auto;
  }

  .mobile-tune-btn svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
  }

  /* --- Mobile 2-Column Gallery Grid (Screenshot 2 Match) --- */
  .gallery-section {
    padding: 16px 0 40px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  /* Compact Uniform Heights for Mobile Cards */
  .gallery-card,
  .gallery-card.tall,
  .gallery-card.medium,
  .gallery-card.wide,
  .gallery-card.square {
    height: 190px;
  }

  .gallery-card-info {
    padding: 12px 10px 8px;
  }

  .gallery-card-title {
    font-size: 0.78rem;
    line-height: 1.25;
    margin-bottom: 2px;
  }

  .gallery-card-location {
    font-size: 0.68rem;
  }

  .gallery-card-type-icon svg {
    width: 14px;
    height: 14px;
  }

  .gallery-card-duration {
    top: 8px;
    right: 8px;
    padding: 2px 6px;
    font-size: 0.65rem;
  }

  .gallery-card-play-btn {
    width: 38px;
    height: 38px;
  }

  .gallery-card-play-btn svg {
    width: 16px;
    height: 16px;
  }

  /* Mobile Load More Button */
  .gallery-load-more-wrap {
    margin-top: 24px;
  }

  .gallery-load-more-btn {
    height: 44px;
    width: 100%;
    font-size: 0.8rem;
    border-radius: 8px;
  }

  /* Mobile CTA Banner */
  .gallery-cta-section {
    min-height: auto;
    padding: 48px 0;
    text-align: center;
  }

  .gallery-cta-overlay {
    background: linear-gradient(180deg,
        rgba(10, 15, 12, 0.45) 0%,
        rgba(10, 15, 12, 0.70) 50%,
        rgba(10, 15, 12, 0.85) 100%);
  }

  .gallery-cta-container {
    flex-direction: column;
    text-align: center;
  }

  .gallery-cta-content {
    max-width: 100%;
  }

  .gallery-cta-title {
    font-size: 1.85rem;
    line-height: 1.2;
    margin-bottom: 8px;
    white-space: normal;
  }

  .gallery-cta-desc {
    font-size: 0.88rem;
    margin-bottom: 22px;
  }

  .gallery-cta-actions {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }

  .gallery-cta-btn-primary,
  .gallery-cta-btn-secondary {
    width: 100%;
    height: 48px;
    font-size: 0.84rem;
  }

  /* Lightbox on Mobile */
  .lightbox-nav-btn {
    width: 38px;
    height: 38px;
  }

  .lightbox-prev-btn {
    left: 8px;
  }

  .lightbox-next-btn {
    right: 8px;
  }

  .lightbox-close-btn {
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
  }

  .lightbox-stage {
    max-width: 96vw;
  }

  .lightbox-caption-bar {
    padding: 10px 4px 0;
  }

  .lightbox-caption-title {
    font-size: 0.9rem;
  }

  .lightbox-caption-sub {
    font-size: 0.74rem;
  }

  /* Bottom padding for sticky action bar */
  .site-footer {
    padding-bottom: 110px;
  }
}