/* =============================================
   gallery.css — Mara Events Gallery Page
   ============================================= */

/* ─── IMAGE PROTECTION (NO DOWNLOAD / COPY / DRAG) ─── */
.gallery-grid img,
.gallery-teaser-grid img,
.lightbox-img,
.gallery-item-inner img,
.gallery-hero-img {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.gallery-inline-video,
.gallery-video-player,
.lightbox-video,
video {
  pointer-events: auto !important;
}

.gallery-item,
.gallery-item-inner,
.lightbox-img-wrap {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}


/* ─── HERO ─────────────────────────────────── */
.gallery-hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 80px; /* ticker + nav offset */
}

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

.gallery-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transform: scale(1.04);
  transition: transform 6s ease;
}

.gallery-hero:hover .gallery-hero-img {
  transform: scale(1.08);
}

.gallery-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(4, 12, 40, 0.85) 0%,
    rgba(13, 34, 87, 0.70) 50%,
    rgba(4, 12, 40, 0.60) 100%
  );
}

.gallery-hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 780px;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.gallery-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 6px 20px;
  border-radius: 50px;
  backdrop-filter: blur(6px);
  background: rgba(255,255,255,0.08);
  animation: fadeSlideDown 0.8s ease both;
}

.gallery-hero-tag i {
  color: var(--accent);
}

.gallery-hero-title {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 900;
  color: #ffffff;
  line-height: 1.05;
  letter-spacing: -0.02em;
  animation: fadeSlideUp 0.9s 0.15s ease both;
}

.gallery-hero-title span {
  background: linear-gradient(135deg, #4da3ff 0%, #ffffff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gallery-hero-sub {
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  color: rgba(255,255,255,0.75);
  max-width: 620px;
  line-height: 1.7;
  animation: fadeSlideUp 0.9s 0.3s ease both;
}

/* Stats Row */
.gallery-hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-top: 8px;
  animation: fadeSlideUp 0.9s 0.45s ease both;
}

.gallery-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.gallery-stat-num {
  font-size: 2rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1;
}

.gallery-stat-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}

.gallery-stat-divider {
  width: 1px;
  height: 44px;
  background: rgba(255,255,255,0.2);
}

/* Scroll indicator (re-use hero pattern) */
.gallery-hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  z-index: 1;
}

.gallery-hero-scroll span {
  display: block;
  width: 2px;
  height: 10px;
  background: rgba(255,255,255,0.5);
  border-radius: 2px;
  animation: scrollBounce 1.4s ease-in-out infinite;
}

.gallery-hero-scroll span:nth-child(2) {
  animation-delay: 0.2s;
  opacity: 0.6;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(6px); }
}

/* ─── HERO ENTRANCE ANIMATIONS ──────────────── */
@keyframes fadeSlideDown {
  from { opacity: 0; transform: translateY(-14px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── VIDEO SECTION ─────────────────────────── */
.gallery-video-section {
  padding: 90px 0 80px;
  background: #0a1628;
  position: relative;
  overflow: hidden;
}

.gallery-video-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 50%, rgba(33,116,233,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 50% 60% at 80% 50%, rgba(33,116,233,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.gallery-video-header {
  text-align: center;
  margin-bottom: 48px;
}

.gallery-video-header .gallery-tag {
  color: var(--accent);
}

.gallery-video-header .section-heading {
  color: #ffffff;
}

.gallery-video-header .section-heading span {
  color: var(--accent);
}

.gallery-video-header .section-sub {
  color: rgba(255,255,255,0.6);
}

.gallery-video-wrap {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  box-shadow:
    0 32px 80px rgba(0,0,0,0.6),
    0 0 0 1px rgba(33,116,233,0.3);
  aspect-ratio: 16/9;
  background: #000;
  cursor: pointer;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.gallery-video-wrap:hover {
  transform: translateY(-4px);
  box-shadow:
    0 36px 90px rgba(0,0,0,0.75),
    0 0 35px rgba(33,116,233,0.4);
}

.gallery-video-wrap:focus-visible {
  outline: 3px solid #60a5fa;
  outline-offset: 4px;
}

.gallery-featured-video-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 20px;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.gallery-video-wrap:hover .gallery-featured-video-thumb {
  transform: scale(1.04);
}

.gallery-video-player {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 20px;
}

/* Custom play overlay */
.gallery-video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  background: linear-gradient(
    to bottom,
    rgba(4,12,40,0.45) 0%,
    rgba(4,12,40,0.75) 100%
  );
  cursor: pointer;
  transition: opacity 0.4s ease;
  border-radius: 20px;
}

.gallery-video-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.gallery-video-play-btn {
  position: relative;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: rgba(33,116,233,0.9);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #fff;
  transition: transform 0.3s ease, background 0.3s ease;
  box-shadow: 0 12px 40px rgba(33,116,233,0.5);
}

.gallery-video-play-btn i {
  margin-left: 6px; /* optical center for play icon */
}

.gallery-video-play-btn:hover {
  transform: scale(1.1);
  background: rgba(33,116,233,1);
}

.gallery-play-ring {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 2px solid rgba(33,116,233,0.5);
  animation: ringPulse 2s ease-in-out infinite;
}

@keyframes ringPulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50%       { transform: scale(1.15); opacity: 0.2; }
}

.gallery-video-overlay-text {
  text-align: center;
  color: #fff;
}

.gallery-video-overlay-text span {
  display: block;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.gallery-video-overlay-text p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
  margin-top: 4px;
}

/* ─── GALLERY GRID SECTION ──────────────────── */
.gallery-page-section {
  padding: 90px 0 80px;
  background: linear-gradient(180deg, #f8f9fc 0%, #ffffff 100%);
  position: relative;
}

.gallery-page-section::before {
  content: '';
  position: absolute;
  top: -120px;
  left: -180px;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(33,116,233,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.gallery-header {
  text-align: center;
  margin-bottom: 44px;
}

.gallery-tag {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 12px;
  display: inline-block;
}

/* ─── FILTER BUTTONS ────────────────────────── */
.gallery-filters {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.gallery-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 28px;
  border: 2px solid var(--border);
  border-radius: 50px;
  background: transparent;
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-mid);
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.04em;
}

.gallery-filter-btn i {
  font-size: 0.78rem;
}

.gallery-filter-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(33,116,233,0.18);
}

.gallery-filter-btn.active {
  background: linear-gradient(135deg, var(--accent) 0%, #0d2257 100%);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 24px rgba(33,116,233,0.35);
  transform: translateY(-2px);
}

/* Count Badge */
.gallery-count {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  font-weight: 500;
}

.gallery-count strong {
  color: var(--accent);
}

/* ─── MASONRY GRID ──────────────────────────── */
.gallery-grid {
  columns: 4;
  column-gap: 14px;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 14px;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.gallery-item.hidden {
  display: none;
}

.gallery-item.fade-in {
  animation: galleryFadeIn 0.45s ease both;
}

@keyframes galleryFadeIn {
  from { opacity: 0; transform: scale(0.95) translateY(14px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.gallery-item--tall .gallery-item-inner img {
  aspect-ratio: 3/4;
}

.gallery-item-inner {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  display: block;
  line-height: 0;
}

.gallery-item-inner img {
  width: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border-radius: 14px;
}

.gallery-item:hover .gallery-item-inner img {
  transform: scale(1.07);
}

/* Overlay */
.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(13, 34, 87, 0.92) 0%,
    rgba(13, 34, 87, 0.28) 55%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity 0.38s ease;
  border-radius: 14px;
  display: flex;
  align-items: flex-end;
  padding: 16px;
}

.gallery-item:hover .gallery-item-overlay {
  opacity: 1;
}

.gallery-item-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  transform: translateY(8px);
  transition: transform 0.38s ease;
}

.gallery-item:hover .gallery-item-info {
  transform: translateY(0);
}

.gallery-item-cat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(33,116,233,0.85);
  padding: 5px 13px;
  border-radius: 50px;
  backdrop-filter: blur(4px);
}

.gallery-zoom-icon {
  color: #fff;
  font-size: 1.1rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(4px);
  transition: background 0.2s ease, transform 0.2s ease;
}

.gallery-item:hover .gallery-zoom-icon {
  background: rgba(255,255,255,0.3);
  transform: scale(1.12);
}

/* ─── INLINE VIDEO CARD IN GALLERY GRID ──────── */
.gallery-item--video-card {
  break-inside: avoid;
  margin-bottom: 14px;
  border-radius: 16px;
  overflow: hidden;
  background: #0a1628;
  border: 1px solid rgba(33, 116, 233, 0.35);
  box-shadow: 0 12px 36px rgba(10, 22, 40, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.08);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  position: relative;
}

.gallery-item--video-card:hover {
  transform: translateY(-4px);
  border-color: rgba(33, 116, 233, 0.7);
  box-shadow: 0 20px 48px rgba(33, 116, 233, 0.3), 0 0 24px rgba(33, 116, 233, 0.2);
}

.gallery-video-card-inner {
  display: flex;
  flex-direction: column;
  position: relative;
}

.gallery-video-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px;
  background: #0f1e36;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.gallery-video-card-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #60a5fa;
}

.gallery-video-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #38bdf8;
  background: rgba(33, 116, 233, 0.25);
  border: 1px solid rgba(56, 189, 248, 0.4);
  padding: 4px 10px;
  border-radius: 50px;
}

.gallery-video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  max-height: 480px;
  background: #000;
  overflow: hidden;
  cursor: pointer;
}

.gallery-video-frame--portrait {
  aspect-ratio: 9/16;
}

.gallery-video-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-item--video-card:hover .gallery-video-thumb {
  transform: scale(1.06);
}

.gallery-inline-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: auto !important;
  border-radius: 0;
  background: #000;
}

.gallery-video-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: linear-gradient(
    to bottom,
    rgba(4, 12, 40, 0.3) 0%,
    rgba(4, 12, 40, 0.8) 100%
  );
  cursor: pointer;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  z-index: 3;
  padding: 16px;
  text-align: center;
}

.gallery-video-play-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.gallery-card-play-btn {
  position: relative;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  border: 2px solid rgba(255, 255, 255, 0.7);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #fff;
  transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 8px 32px rgba(37, 99, 235, 0.65);
  pointer-events: auto;
}

.gallery-card-play-btn i {
  margin-left: 4px; /* optical center */
}

.gallery-item--video-card:hover .gallery-card-play-btn {
  transform: scale(1.12);
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  box-shadow: 0 12px 40px rgba(59, 130, 246, 0.85);
}

.gallery-card-play-ring {
  position: absolute;
  inset: -9px;
  border-radius: 50%;
  border: 2px solid rgba(96, 165, 250, 0.7);
  animation: ringPulse 2s ease-in-out infinite;
}

.gallery-card-video-info h4 {
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 4px;
}

.gallery-card-video-info p {
  color: #93c5fd;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.gallery-video-card-footer {
  padding: 14px;
  background: #0f1e36;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.gallery-video-desc strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.35;
  margin-bottom: 4px;
}

.gallery-video-desc span {
  display: block;
  font-size: 0.75rem;
  color: #94a3b8;
  line-height: 1.45;
}

/* ─── VIDEO POPUP MODAL ───────────────────────── */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 24px;
}

.video-modal.active {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  cursor: pointer;
}

.video-modal-container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 95vw;
  max-height: 92vh;
  transform: scale(0.92);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.video-modal.active .video-modal-container {
  transform: scale(1);
}

.video-modal-close {
  position: absolute;
  top: -18px;
  right: -18px;
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #1e293b;
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}

.video-modal-close:hover {
  background: #ef4444;
  border-color: #fca5a5;
  transform: scale(1.1) rotate(90deg);
}

.video-modal-box {
  background: #0a1628;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(33, 116, 233, 0.4);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.85), 0 0 40px rgba(33, 116, 233, 0.25);
  display: flex;
  flex-direction: column;
  max-height: 90vh;
}

/* Portrait video popup mode (AICCEES) */
.video-modal-box.portrait-mode {
  width: min(420px, 90vw);
}

.video-modal-box.portrait-mode .video-modal-media-wrap {
  width: 100%;
  aspect-ratio: 9/16;
  max-height: 68vh;
  background: #000;
}

/* Landscape video popup mode (Event Highlights) */
.video-modal-box.landscape-mode {
  width: min(880px, 92vw);
}

.video-modal-box.landscape-mode .video-modal-media-wrap {
  width: 100%;
  aspect-ratio: 16/9;
  max-height: 68vh;
  background: #000;
}

.video-modal-media-wrap {
  position: relative;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.modal-video-player {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #000;
  outline: none;
}

.video-modal-caption {
  padding: 14px 18px 16px;
  background: linear-gradient(180deg, #0f1e36 0%, #0a1424 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  box-sizing: border-box;
}

.video-modal-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #38bdf8;
  background: rgba(33, 116, 233, 0.2);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 3px 10px;
  border-radius: 50px;
  margin-bottom: 6px;
}

.video-modal-caption h3 {
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 4px;
  line-height: 1.35;
}

.video-modal-caption p {
  font-size: 0.8rem;
  color: #94a3b8;
  margin: 0;
  line-height: 1.4;
}

@media (max-width: 600px) {
  .video-modal {
    padding: 12px;
  }
  .video-modal-close {
    top: -12px;
    right: -10px;
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
  .video-modal-box.portrait-mode .video-modal-media-wrap {
    max-height: 60vh;
  }
  .video-modal-box.landscape-mode .video-modal-media-wrap {
    max-height: 48vh;
  }
  .video-modal-caption {
    padding: 12px 14px;
  }
  .video-modal-caption h3 {
    font-size: 0.88rem;
  }
  .video-modal-caption p {
    font-size: 0.74rem;
  }
}

/* Empty State (Coming Soon) */
.gallery-empty {
  text-align: center;
  padding: 80px 32px;
  background: #ffffff;
  border: 2px dashed rgba(33, 116, 233, 0.25);
  border-radius: 24px;
  max-width: 620px;
  margin: 20px auto 40px;
  box-shadow: 0 12px 36px rgba(13, 34, 87, 0.05);
}

.gallery-empty-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(33, 116, 233, 0.08);
  padding: 6px 18px;
  border-radius: 50px;
  margin-bottom: 16px;
}

.gallery-empty h3 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--navy-deep);
  margin-bottom: 10px;
}

.gallery-empty p {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto 24px;
  line-height: 1.6;
}

.gallery-empty-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 28px;
  border-radius: 50px;
  background: linear-gradient(135deg, var(--accent) 0%, #0d2257 100%);
  color: #ffffff;
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 6px 20px rgba(33, 116, 233, 0.25);
}

.gallery-empty-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(33, 116, 233, 0.4);
}


/* ─── CTA BAND ──────────────────────────────── */
.gallery-cta-band {
  background: linear-gradient(135deg, var(--accent) 0%, #0a1628 100%);
  padding: 72px 24px;
  position: relative;
  overflow: hidden;
}

.gallery-cta-band::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -80px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  pointer-events: none;
}

.gallery-cta-band::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -60px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  pointer-events: none;
}

.gallery-cta-band-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  position: relative;
  z-index: 1;
}

.gallery-cta-band-text h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 8px;
}

.gallery-cta-band-text h2 span {
  color: rgba(255,255,255,0.65);
}

.gallery-cta-band-text p {
  font-size: 1rem;
  color: rgba(255,255,255,0.65);
}

.gallery-cta-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  color: var(--accent);
  padding: 16px 36px;
  border-radius: 50px;
  font-family: var(--font);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  white-space: nowrap;
}

.gallery-cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.3);
}

.gallery-cta-btn i {
  transition: transform 0.3s ease;
}

.gallery-cta-btn:hover i {
  transform: translateX(4px);
}

/* ─── LIGHTBOX ──────────────────────────────── */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.gallery-lightbox.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  cursor: pointer;
}

.lightbox-container {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 92vw;
  padding: 0 16px;
}

.lightbox-img-wrap {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(0, 0, 0, 0.08);
  transform: scale(0.92);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.gallery-lightbox.active .lightbox-img-wrap {
  transform: scale(1);
}

.lightbox-img {
  display: block;
  max-width: 80vw;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 16px;
}

.lightbox-video {
  display: none;
  max-width: 80vw;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 16px;
  background: #000;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.4);
}

.lightbox-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.92) 0%, transparent 100%);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 24px 20px 16px;
  border-radius: 0 0 16px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  box-sizing: border-box;
  opacity: 1;
  transition: opacity 0.15s ease;
  will-change: opacity;
}


.lightbox-close {
  position: fixed;
  top: 24px;
  right: 28px;
  z-index: 2;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.lightbox-close:hover {
  background: #ef4444;
  border-color: #fca5a5;
  transform: scale(1.1) rotate(90deg);
}

.lightbox-nav {
  width: 54px;
  height: 54px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.lightbox-nav:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.1);
  box-shadow: 0 0 28px rgba(33, 116, 233, 0.55);
}

.lightbox-counter {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 7px 20px;
  border-radius: 50px;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* ─── RESPONSIVE ────────────────────────────── */
@media (max-width: 1200px) {
  .gallery-grid { columns: 3; }
}

@media (max-width: 900px) {
  .gallery-cta-band-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .gallery-hero { min-height: 72vh; }
  .gallery-hero-stats { gap: 20px; }
  .gallery-stat-num { font-size: 1.5rem; }
  .gallery-grid { columns: 2; column-gap: 10px; }
  .gallery-item { margin-bottom: 10px; }
  .gallery-filters { gap: 8px; }
  .gallery-filter-btn { padding: 9px 18px; font-size: 0.8rem; }
  .gallery-video-wrap { aspect-ratio: 16/10; }
  .lightbox-container { gap: 10px; }
  .lightbox-img { max-width: 88vw; max-height: 75vh; }
  .lightbox-nav { width: 42px; height: 42px; }
}

@media (max-width: 480px) {
  .gallery-hero-stats { flex-direction: column; gap: 12px; }
  .gallery-stat-divider { width: 60px; height: 1px; }
  .gallery-grid { columns: 2; column-gap: 8px; }
  .gallery-item { margin-bottom: 8px; }
  .lightbox-nav { display: none; }
  .lightbox-img { max-width: 94vw; }
}
