/**
 * RS Cricket Institute - Gallery Page Stylesheet (gallery.css)
 * Loaded exclusively on page-gallery.php
 * Signature Championship Gold (#DEAA2F) & Deep Luxury Dark (#0B0E14)
 * Modern Album-Based Fancybox Swiper Lightbox with Thumbnails & Video Support
 */

/* ========================================================
   GLOBAL & TYPOGRAPHY
   ======================================================== */
.gallery-page-wrapper {
  background-color: var(--color-white);
  color: var(--color-dark-elevated);
  overflow-x: clip;
}

.gallery-page-wrapper p {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.75;
}

.gallery-tag-gold {
  display: inline-block;
  color: var(--color-primary) !important;
  font-family: var(--font-heading);
  font-size: var(--fs-xs) !important;
  letter-spacing: 1.6px;
  font-weight: 700;
  text-transform: uppercase;
}

.text-gold-accent {
  color: var(--color-primary) !important;
}

/* ========================================================
   1. HERO BANNER SECTION (DEEP LUXURY DARK - 2 COLUMN SPLIT WITH SWIPER BACKGROUND)
   ======================================================== */
.gallery-hero-section {
  background-color: var(--color-dark-base);
  min-height: 520px;
  display: flex;
  align-items: center;
  position: relative;
  padding: 105px 0 85px 0;
  color: var(--color-white);
}

/* Background Image Swiper Slider */
.gallery-hero-bg-swiper {
  position: absolute !important;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  z-index: 0 !important;
  pointer-events: none;
}

.gallery-hero-bg-slide {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  transform: scale(1);
  transition: transform 7s ease-out;
}

.gallery-hero-bg-swiper .swiper-slide-active .gallery-hero-bg-slide,
.gallery-hero-bg-swiper .swiper-slide-active {
  transform: scale(1.05);
}

/* Hero Slider Pagination Bullets */
.gallery-hero-pagination {
  position: absolute !important;
  bottom: 22px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  z-index: 5 !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: auto !important;
}

.gallery-hero-pagination .swiper-pagination-bullet {
  width: 26px;
  height: 4px;
  border-radius: 4px;
  background: var(--color-white-35);
  opacity: 1;
  transition: all 0.3s ease;
  margin: 0 !important;
  cursor: pointer;
}

.gallery-hero-pagination .swiper-pagination-bullet:hover {
  background: var(--color-white-65);
}

.gallery-hero-pagination .swiper-pagination-bullet-active {
  background: var(--color-primary) !important;
  width: 44px;
  box-shadow: 0 0 10px color-mix(in oklab, var(--color-primary) 60%, transparent);
}

.gallery-hero-title {
  font-family: var(--font-heading);
  font-size: var(--fs-h1);
  font-weight: 800;
  color: var(--color-white);
  line-height: 1.15;
  letter-spacing: -0.5px;
}

.gallery-hero-desc {
  color: color-mix(in srgb, var(--color-white) 85%, transparent);
  font-size: var(--fs-lead);
  line-height: 1.75;
  max-width: 640px;
}

/* Breadcrumbs (matching screenshot) */
.gallery-hero-breadcrumbs {
  display: flex;
  align-items: center;
  font-family: var(--font-heading, sans-serif);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: color-mix(in srgb, var(--color-white) 55%, transparent);
}

.gallery-hero-breadcrumbs .gallery-bc-sep {
  margin: 0 10px;
  color: var(--color-white-35);
}

.gallery-hero-breadcrumbs .gallery-bc-curr {
  color: var(--color-primary);
  font-weight: 600;
}

/* Right Column: Glassmorphic Stat Cards (matching screenshot) */
.gallery-hero-stat-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-start;
}

@media (min-width: 992px) {
  .gallery-hero-stat-cards {
    justify-content: flex-end;
  }
}

.gallery-hero-stat-card {
  background: color-mix(in srgb, var(--color-dark-base) 58%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid color-mix(in srgb, var(--color-white) 14%, transparent);
  border-radius: 12px;
  padding: 22px 18px;
  min-width: 110px;
  flex: 1 1 calc(25% - 12px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-hero-stat-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in oklab, var(--color-primary) 50%, transparent);
  background: color-mix(in srgb, var(--color-dark-base) 78%, transparent);
  box-shadow: 0 14px 30px color-mix(in srgb, var(--color-black) 45%, transparent);
}

.gallery-hero-stat-card .stat-number {
  font-family: var(--font-heading);
  font-size: var(--fs-3xl);
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1.1;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.gallery-hero-stat-card .stat-label {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 500;
  color: color-mix(in srgb, var(--color-white) 82%, transparent);
  line-height: 1.35;
  text-transform: none;
  letter-spacing: normal;
}

@media (max-width: 1199px) {
  .gallery-hero-stat-card {
    flex: 1 1 calc(50% - 12px);
  }
}

@media (max-width: 991px) {
  .gallery-hero-section {
    min-height: auto;
    padding: 90px 0 60px 0;
  }
  .gallery-hero-title {
    font-size: var(--fs-h2);
  }
  .gallery-hero-stat-cards {
    justify-content: flex-start;
    margin-top: 15px;
  }
}

@media (max-width: 575px) {
  .gallery-hero-title {
    font-size: var(--fs-3xl);
  }
  .gallery-hero-stat-card {
    padding: 16px 14px;
  }
  .gallery-hero-stat-card .stat-number {
    font-size: var(--fs-2xl);
  }
  .gallery-hero-stat-card .stat-label {
    font-size: var(--fs-xs);
  }
}

/* ========================================================
   2. CATEGORY FILTER TOOLBAR & DRAWER TRIGGER
   ======================================================== */
.gallery-filter-section {
  background: var(--color-light-bg);
  padding: 16px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--color-black) 6%, transparent);
  position: relative;
  z-index: 5;
}

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

/* Category Filter Pills (Hidden per user request, managed via Filter Drawer) */
.gallery-filter-nav {
  display: none !important;
}

/* Live Filter Status Indicator */
.gallery-filter-status {
  font-family: var(--font-heading, sans-serif);
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--color-text-slate);
}

.gallery-status-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: color-mix(in oklab, var(--color-primary) 15%, transparent);
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-base);
}

.gallery-filter-status-text strong {
  color: var(--color-dark-heading);
  font-weight: 700;
}

#galleryActiveFilterChip {
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--color-dark-heading);
  background: var(--color-white);
  border-color: color-mix(in oklab, var(--color-primary) 40%, transparent) !important;
  box-shadow: 0 2px 6px var(--color-light-border-subtle);
  padding: 5px 12px;
}

/* Slide-in Filter Drawer Trigger Button */
.gallery-drawer-trigger-box {
  flex-shrink: 0;
}

/* ========================================================
   3. ALBUM CARDS GRID SECTION
   ======================================================== */
.gallery-albums-section {
  background: var(--color-white);
  padding: 80px 0;
}

.gallery-album-card {
  background: var(--color-white);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--color-light-border);
  box-shadow: 0 6px 20px var(--color-light-border-subtle);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.gallery-album-card:hover {
  transform: translateY(-8px);
  border-color: var(--color-primary-border-md);
  box-shadow: 0 16px 36px color-mix(in srgb, var(--color-black) 9%, transparent);
}

.album-cover-frame {
  position: relative;
  width: 100%;
  height: 250px;
  overflow: hidden;
  background: var(--color-dark-body);
}

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

.gallery-album-card:hover .album-cover-img {
  transform: scale(1.08);
}

.album-cover-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, color-mix(in srgb, var(--color-dark-base) 10%, transparent) 0%, color-mix(in srgb, var(--color-dark-base) 70%, transparent) 100%);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 16px 18px;
  pointer-events: none;
}

.album-badge-category {
  position: absolute;
  top: 16px;
  left: 16px;
  background: color-mix(in srgb, var(--color-dark-base) 75%, transparent);
  backdrop-filter: blur(8px);
  color: var(--color-primary);
  border: 1px solid color-mix(in oklab, var(--color-primary) 40%, transparent);
  font-family: var(--font-heading);
  font-size: var(--fs-2xs);
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 50px;
  z-index: 2;
}

.album-badge-count {
  background: color-mix(in srgb, var(--color-black) 70%, transparent);
  backdrop-filter: blur(8px);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: var(--fs-xs);
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Pulsating Play Button on Video Albums */
.album-play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: color-mix(in oklab, var(--color-primary) 90%, transparent);
  color: var(--color-dark-pure);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-2xl);
  padding-left: 4px;
  box-shadow: 0 0 0 0 color-mix(in oklab, var(--color-primary) 70%, transparent);
  animation: pulseGold 2s infinite;
  transition: transform 0.3s ease;
  z-index: 3;
}

.gallery-album-card:hover .album-play-overlay {
  transform: translate(-50%, -50%) scale(1.12);
  background: var(--color-primary);
}

@keyframes pulseGold {
  0% {
    box-shadow: 0 0 0 0 color-mix(in oklab, var(--color-primary) 70%, transparent);
  }
  70% {
    box-shadow: 0 0 0 16px transparent;
  }
  100% {
    box-shadow: 0 0 0 0 transparent;
  }
}

.album-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.album-card-title {
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  font-weight: 800;
  color: var(--color-dark-heading);
  margin-bottom: 10px;
  line-height: 1.3;
}

.album-card-desc {
  color: var(--color-text-muted);
  font-size: var(--fs-md);
  line-height: 1.65;
  margin-bottom: 20px;
  flex-grow: 1;
}

.album-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid color-mix(in srgb, var(--color-black) 6%, transparent);
}

.album-date {
  font-size: var(--fs-xs);
  color: var(--color-text-muted-light);
  font-weight: 500;
}

/* ========================================================
   4. FEATURED VIDEO SHOWCASE SECTION (DARK SPOTLIGHT)
   ======================================================== */
.gallery-video-spotlight-section {
  background-color: var(--color-dark-body);
  color: var(--color-white);
  padding: 90px 0;
  position: relative;
}

.video-spotlight-card {
  background: var(--color-white-03);
  border: 1px solid var(--color-white-10);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.video-spotlight-card:hover {
  background: var(--color-white-06);
  border-color: var(--color-primary-border-md);
  transform: translateY(-6px);
  box-shadow: 0 16px 36px color-mix(in srgb, var(--color-black) 45%, transparent);
}

.video-card-thumb-wrap {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: var(--color-black);
  cursor: pointer;
}

.video-card-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.video-spotlight-card:hover .video-card-thumb-img {
  transform: scale(1.06);
}

.video-type-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: color-mix(in srgb, var(--color-black) 75%, transparent);
  backdrop-filter: blur(6px);
  color: var(--color-primary);
  border: 1px solid var(--color-primary-border);
  font-family: var(--font-heading);
  font-size: var(--fs-2xs);
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  z-index: 2;
}

.video-card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.video-card-title {
  font-family: var(--font-heading);
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 8px;
  line-height: 1.35;
}

.video-card-desc {
  color: var(--color-text-muted-light);
  font-size: var(--fs-md);
  line-height: 1.6;
  margin-bottom: 16px;
  flex-grow: 1;
}

.video-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--color-dark-border);
}

/* ========================================================
   5. FANCYBOX-STYLE SWIPER MODAL LIGHTBOX (#galleryAlbumModal)
   ======================================================== */
body.gallery-modal-open {
  overflow: hidden !important;
}

.gallery-modal-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 999999;
  display: none;
  opacity: 0;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-modal-lightbox.is-active {
  display: flex;
  flex-direction: column;
  opacity: 1;
}

.gallery-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: color-mix(in srgb, var(--color-dark-base) 96%, transparent);
  backdrop-filter: blur(14px);
  z-index: 1;
}

.gallery-modal-dialog {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Top Control Bar */
.gallery-modal-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  background: color-mix(in srgb, var(--color-dark-base) 85%, transparent);
  border-bottom: 1px solid var(--color-dark-border);
  flex-shrink: 0;
}

.modal-top-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.modal-album-cat {
  background: color-mix(in oklab, var(--color-primary) 15%, transparent);
  color: var(--color-primary);
  border: 1px solid var(--color-primary-border);
  font-family: var(--font-heading);
  font-size: var(--fs-2xs);
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.modal-album-title {
  font-family: var(--font-heading);
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--color-white);
  margin: 0;
}

.modal-top-center {
  font-family: var(--font-heading);
  font-size: var(--fs-base);
  font-weight: 700;
  color: color-mix(in srgb, var(--color-white) 70%, transparent);
  letter-spacing: 1px;
}

.modal-top-center span:first-child {
  color: var(--color-primary);
  font-weight: 800;
}

.modal-top-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Main Stage / Center Swiper */
.gallery-modal-stage {
  flex-grow: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 0;
  overflow: hidden;
}

.gallery-main-swiper {
  width: 100%;
  height: 100%;
}

.gallery-main-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 40px;
}

.gallery-slide-inner {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 90vw;
  max-height: 68vh;
  position: relative;
}

.gallery-img-container {
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 62vh;
}

.gallery-full-img {
  max-width: 100%;
  max-height: 62vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 40px color-mix(in srgb, var(--color-black) 60%, transparent);
  user-select: none;
}

.gallery-video-container {
  width: 820px;
  max-width: 86vw;
  max-height: 62vh;
  border-radius: 12px;
  overflow: hidden;
  background: var(--color-black);
  box-shadow: 0 10px 40px color-mix(in srgb, var(--color-black) 70%, transparent);
}

.gallery-video-container iframe,
.gallery-video-container video {
  width: 100%;
  height: 100%;
  display: block;
  border: none;
}

.gallery-slide-caption {
  margin-top: 12px;
  background: color-mix(in srgb, var(--color-dark-base) 85%, transparent);
  backdrop-filter: blur(8px);
  border: 1px solid var(--color-dark-border);
  padding: 8px 18px;
  border-radius: 50px;
  color: color-mix(in srgb, var(--color-white) 90%, transparent);
  font-size: var(--fs-sm);
  font-weight: 500;
  max-width: 750px;
}

/* Swiper Navigation Buttons */
.gallery-swiper-prev,
.gallery-swiper-next {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--color-dark-base) 75%, transparent);
  border: 1px solid color-mix(in srgb, var(--color-white) 20%, transparent);
  color: var(--color-white);
  transition: all 0.25s ease;
  backdrop-filter: blur(6px);
}

.gallery-swiper-prev:after,
.gallery-swiper-next:after {
  font-size: var(--fs-xl);
  font-weight: 800;
  color: var(--color-primary);
}

.gallery-swiper-prev:hover,
.gallery-swiper-next:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  transform: scale(1.08);
}

.gallery-swiper-prev:hover:after,
.gallery-swiper-next:hover:after {
  color: var(--color-dark-pure);
}

/* Bottom Thumbnail Strip */
.gallery-modal-thumbs-bar {
  background: color-mix(in srgb, var(--color-dark-base) 90%, transparent);
  border-top: 1px solid var(--color-dark-border);
  padding: 12px 24px;
  flex-shrink: 0;
}

.gallery-thumbs-swiper {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
}

.gallery-thumb-slide {
  width: 86px !important;
  height: 58px;
  cursor: pointer;
  opacity: 0.45;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.gallery-thumb-slide:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}

.gallery-thumb-slide.swiper-slide-thumb-active {
  opacity: 1;
  transform: translateY(-2px);
}

.gallery-thumb-box {
  width: 100%;
  height: 100%;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  border: 2px solid transparent;
  background: var(--color-black);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.gallery-thumb-slide.swiper-slide-thumb-active .gallery-thumb-box {
  border-color: var(--color-primary);
  box-shadow: 0 0 12px color-mix(in oklab, var(--color-primary) 60%, transparent);
}

.gallery-thumb-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb-video-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: color-mix(in oklab, var(--color-primary) 95%, transparent);
  color: var(--color-dark-pure);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-2xs);
  padding-left: 1px;
}

/* ========================================================
   6. STANDALONE VIDEO LIGHTBOX (#galleryVideoModal)
   ======================================================== */
.gallery-video-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999999;
  display: none;
  opacity: 0;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
}

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

.video-lightbox-box {
  position: relative;
  z-index: 2;
  width: 900px;
  max-width: 92vw;
  background: var(--color-dark-body);
  border: 1px solid var(--color-primary-border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px color-mix(in srgb, var(--color-black) 80%, transparent);
}

.video-lightbox-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px;
  background: var(--color-dark-base);
  border-bottom: 1px solid var(--color-dark-border);
}

.video-lightbox-title {
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: var(--fs-lg);
  font-weight: 700;
  margin: 0;
}

.video-modal-player {
  background: var(--color-black);
  width: 100%;
}

.video-modal-player iframe,
.video-modal-player video {
  width: 100%;
  height: 100%;
  display: block;
  border: none;
}

/* ========================================================
   6. GALLERY FILTER SLIDE-IN DRAWER (SLIDES IN ON LEFT SIDE)
   ======================================================== */
.gallery-filter-drawer {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1060;
  visibility: hidden;
  transition: visibility 0.35s ease;
  pointer-events: none;
}

.gallery-filter-drawer.is-open {
  visibility: visible;
  pointer-events: auto;
}

body.gallery-drawer-open {
  overflow: hidden;
}

.gallery-drawer-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: color-mix(in srgb, var(--color-dark-base) 75%, transparent);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.gallery-filter-drawer.is-open .gallery-drawer-backdrop {
  opacity: 1;
}

.gallery-drawer-panel {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 420px;
  max-width: 90vw;
  background: var(--color-dark-body);
  color: var(--color-white);
  display: flex;
  flex-direction: column;
  box-shadow: 20px 0 60px color-mix(in srgb, var(--color-black) 75%, transparent);
  border-right: 1px solid color-mix(in oklab, var(--color-primary) 25%, transparent);
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 2;
}

.gallery-filter-drawer.is-open .gallery-drawer-panel {
  transform: translateX(0);
}

.gallery-drawer-header {
  padding: 22px 24px;
  border-bottom: 1px solid var(--color-white-10);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--color-dark-base);
}

.drawer-header-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: color-mix(in oklab, var(--color-primary) 15%, transparent);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-lg);
}

.drawer-title {
  font-family: var(--font-heading);
  font-size: var(--fs-lg);
  font-weight: 800;
  color: var(--color-white);
  line-height: 1.2;
}

.drawer-subtitle {
  font-size: var(--fs-xs);
  color: color-mix(in srgb, var(--color-white) 60%, transparent);
  letter-spacing: 0.3px;
}

.gallery-drawer-body {
  padding: 24px;
  overflow-y: auto;
  flex-grow: 1;
  scrollbar-width: thin;
  scrollbar-color: var(--color-primary-border) transparent;
}

.gallery-drawer-body::-webkit-scrollbar {
  width: 6px;
}

.gallery-drawer-body::-webkit-scrollbar-thumb {
  background: var(--color-primary-border);
  border-radius: 3px;
}

.drawer-filter-group {
  margin-bottom: 26px;
}

.drawer-group-label {
  font-family: var(--font-heading);
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: color-mix(in srgb, var(--color-white) 85%, transparent);
  margin-bottom: 12px;
  display: block;
}

.drawer-search-box {
  position: relative;
}

.drawer-search-box .search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: color-mix(in srgb, var(--color-white) 45%, transparent);
  pointer-events: none;
  font-size: var(--fs-base);
}

.drawer-search-field {
  background: var(--color-dark-surface-alt) !important;
  border: 1px solid color-mix(in srgb, var(--color-white) 14%, transparent) !important;
  color: var(--color-white) !important;
  border-radius: 12px !important;
  padding: 11px 40px 11px 40px !important;
  font-size: var(--fs-md) !important;
  transition: border-color 0.25s ease, box-shadow 0.25s ease !important;
}

.drawer-search-field:focus {
  border-color: var(--color-primary) !important;
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--color-primary) 25%, transparent) !important;
  outline: none !important;
}

.drawer-search-field::placeholder {
  color: color-mix(in srgb, var(--color-white) 40%, transparent);
}

.drawer-pill-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.drawer-format-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.drawer-format-card {
  cursor: pointer;
  margin: 0;
}

.drawer-format-card input[type="radio"] {
  display: none;
}

.format-card-content {
  background: var(--color-dark-surface-alt);
  border: 1px solid var(--color-dark-border-md);
  border-radius: 10px;
  padding: 12px 6px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition: all 0.25s ease;
}

.format-card-content i {
  font-size: var(--fs-xl);
  color: var(--color-white-50);
  transition: color 0.2s ease;
}

.format-name {
  font-size: var(--fs-xs);
  font-weight: 600;
  color: color-mix(in srgb, var(--color-white) 80%, transparent);
}

.format-count {
  font-size: var(--fs-2xs);
  color: color-mix(in srgb, var(--color-white) 45%, transparent);
}

.drawer-format-card input:checked + .format-card-content {
  border-color: var(--color-primary);
  background: var(--color-primary-soft);
}

.drawer-format-card input:checked + .format-card-content i {
  color: var(--color-primary);
}

.drawer-format-card input:checked + .format-card-content .format-name {
  color: var(--color-white);
  font-weight: 700;
}

.drawer-format-card input:checked + .format-card-content .format-count {
  color: var(--color-primary);
}

.drawer-select {
  background-color: var(--color-dark-surface-alt) !important;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23DEAA2F' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
  border: 1px solid color-mix(in srgb, var(--color-white) 14%, transparent) !important;
  color: var(--color-white) !important;
  border-radius: 10px !important;
  padding: 11px 14px !important;
  font-size: var(--fs-md) !important;
}

.drawer-select:focus {
  border-color: var(--color-primary) !important;
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--color-primary) 25%, transparent) !important;
}

.drawer-select option {
  background: var(--color-dark-body);
  color: var(--color-white);
}

.gallery-drawer-footer {
  padding: 18px 24px;
  border-top: 1px solid var(--color-white-10);
  display: flex;
  gap: 12px;
  background: var(--color-dark-base);
}

.no-results-icon {
  font-size: var(--fs-h1);
  color: var(--color-primary);
}

/* ========================================================
   RESPONSIVE DESIGN BREAKPOINTS
   ======================================================== */
@media (max-width: 991px) {
  .gallery-hero-title {
    font-size: var(--fs-h2);
  }

  .gallery-filter-section {
    padding: 14px 0;
  }

  .gallery-filter-bar-wrap {
    flex-wrap: nowrap;
    gap: 12px;
  }

  .gallery-filter-nav {
    flex-wrap: nowrap;
  }

  .gallery-drawer-panel {
    width: 340px;
  }

  .modal-album-title {
    font-size: var(--fs-base);
  }

  .gallery-video-container {
    max-height: 50vh;
  }
}

@media (max-width: 767px) {
  .gallery-hero-title {
    font-size: var(--fs-3xl);
  }

  .gallery-stats-strip {
    gap: 16px 20px;
  }

  .gallery-stat-item {
    width: 46%;
  }

  .album-cover-frame {
    height: 210px;
  }

  .gallery-modal-topbar {
    padding: 12px 16px;
  }

  .modal-album-title {
    max-width: 180px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .gallery-main-slide {
    padding: 0 10px;
  }

  .gallery-swiper-prev,
  .gallery-swiper-next {
    width: 38px;
    height: 38px;
  }

  .gallery-thumb-slide {
    width: 68px !important;
    height: 48px;
  }
}

