/* ==========================================================================
   Boyomo Gallery Page Stylesheet
   Theme: Luxury Modern Dark & Vibrant Brand Accents
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Satisfy&display=swap');

:root {
  --brand-orange: #ff5e14;
  --brand-orange-glow: rgba(255, 94, 20, 0.35);
  --brand-pink: #ec0076;
  --brand-green: #8ac53e;
  --brand-green-glow: rgba(138, 197, 62, 0.3);
  
  --gallery-bg: #07070a;
  --gallery-surface: #0f1016;
  --gallery-surface-2: #161722;
  --gallery-card-bg: rgba(20, 21, 30, 0.65);
  --gallery-card-border: rgba(255, 255, 255, 0.08);
  --gallery-card-border-hover: rgba(255, 94, 20, 0.5);
  
  --text-primary: #ffffff;
  --text-secondary: #9da3af;
  --text-muted: #656b7c;
  
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 9999px;
  
  --font-main: 'Poppins', sans-serif;
  --font-cursive: 'Satisfy', cursive;
  
  --shadow-subtle: 0 10px 30px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 14px 40px rgba(255, 94, 20, 0.18);
  --transition-smooth: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

html {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  width: 100%;
  background-color: #000000;
  color: var(--text-primary);
  font-family: var(--font-main);
  background-image: 
    radial-gradient(circle at 60% 40%, rgba(255, 94, 20, 0.08) 0%, rgba(0, 0, 0, 0) 50%),
    radial-gradient(circle at 80% 60%, rgba(138, 197, 62, 0.06) 0%, rgba(0, 0, 0, 0) 50%);
  background-attachment: fixed;
  min-height: 100vh;
}

/* Base Wrapper */
.gallery-page-wrapper {
  position: relative;
  width: 100%;
  padding-top: 105px; /* Space for fixed capsule header */
  padding-bottom: 70px;
  box-sizing: border-box;
  overflow-x: hidden;
}

/* Ambient Subtle Glow */
.gallery-ambient-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient-circle {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.25;
}

.ambient-circle-1 {
  top: 10%;
  right: 15%;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, var(--brand-orange) 0%, transparent 70%);
}

.ambient-circle-2 {
  bottom: 25%;
  left: 10%;
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, var(--brand-green) 0%, transparent 70%);
}

.ambient-circle-3 {
  display: none;
}

/* Layout Container */
.gallery-container {
  max-width: 1340px;
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 2;
  box-sizing: border-box;
}

/* ==========================================================================
   Hero Section (Clean & Premium)
   ========================================================================== */
.gallery-hero {
  text-align: center;
  padding: 24px 0 28px 0;
  max-width: 700px;
  margin: 0 auto;
  position: relative;
}

.gallery-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 18px;
  background: rgba(255, 94, 20, 0.08);
  border: 1px solid rgba(255, 94, 20, 0.25);
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  color: var(--brand-orange);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 14px;
  backdrop-filter: blur(10px);
}

.gallery-title {
  font-size: clamp(2.2rem, 3.8vw, 3.2rem);
  font-weight: 800;
  line-height: 1.2;
  color: #ffffff;
  margin: 0 0 12px 0;
  letter-spacing: -0.5px;
}

.gallery-title .text-gradient-orange {
  background: linear-gradient(135deg, #ff5e14 0%, #ff8f40 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gallery-description {
  font-size: clamp(14px, 1.4vw, 16px);
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
}



/* ==========================================================================
   Filter & Toolbar Navigation
   ========================================================================== */
.gallery-toolbar-wrapper {
  margin: 30px 0 40px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  background: rgba(18, 19, 27, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-lg);
  padding: 14px 24px;
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.filter-pills-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  padding: 9px 20px;
  border-radius: var(--radius-pill);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
}

.filter-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

.filter-btn.active {
  background: linear-gradient(135deg, var(--brand-orange) 0%, #ff833b 100%);
  color: #ffffff;
  font-weight: 600;
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 16px var(--brand-orange-glow);
}

.filter-count-badge {
  background: rgba(0, 0, 0, 0.25);
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 600;
}

.filter-btn.active .filter-count-badge {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.gallery-stats-status {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--text-secondary);
  font-size: 13px;
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: var(--brand-green);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--brand-green);
}

/* ==========================================================================
   Gallery Grid & Pure Image Cards
   ========================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
  z-index: 2;
  margin-bottom: 50px;
}

.gallery-card {
  position: relative;
  background: rgba(18, 19, 27, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  overflow: hidden;
  backdrop-filter: blur(12px);
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.4s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.gallery-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 94, 20, 0.5);
  box-shadow: 0 16px 36px rgba(255, 94, 20, 0.18), 0 20px 40px rgba(0, 0, 0, 0.65);
}

/* Pure Image Frame */
.card-media-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: #0b0c11;
  display: flex;
}

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

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

/* Hover Overlay & Action Trigger */
.card-hover-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.65) 100%);
  backdrop-filter: blur(2px);
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
  z-index: 2;
}

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

.card-view-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-orange) 0%, #ff833b 100%);
  border: 2px solid rgba(255, 255, 255, 0.85);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0.7);
  transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 0 24px rgba(255, 94, 20, 0.65);
}

.gallery-card:hover .card-view-btn {
  transform: scale(1);
}

/* Videos View Placeholder */
.gallery-videos-view {
  position: relative;
  z-index: 2;
  margin-bottom: 50px;
}

.videos-empty-card {
  text-align: center;
  padding: 60px 30px;
  background: rgba(18, 19, 27, 0.6);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  backdrop-filter: blur(12px);
  max-width: 600px;
  margin: 0 auto;
}

.videos-empty-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(255, 94, 20, 0.12);
  border: 1px solid rgba(255, 94, 20, 0.3);
  color: var(--brand-orange);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.videos-empty-title {
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 10px 0;
}

.videos-empty-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto 20px auto;
}

.videos-push-badge {
  display: inline-flex;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  background: rgba(255, 94, 20, 0.1);
  border: 1px solid rgba(255, 94, 20, 0.25);
  font-size: 12px;
  font-weight: 600;
  color: var(--brand-orange);
}

/* Empty State / Hidden Items animation */
.gallery-card.hidden {
  display: none !important;
}

/* ==========================================================================
   Future Media & Collaborations CTA Card
   ========================================================================== */
.gallery-cta-section {
  position: relative;
  background: radial-gradient(circle at 85% 50%, rgba(255, 94, 20, 0.12) 0%, rgba(18, 19, 27, 0.8) 60%), #0c0d14;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 22px;
  padding: 40px 44px;
  margin: 40px auto 20px auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 28px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(16px);
  overflow: hidden;
}

.gallery-cta-glow {
  position: absolute;
  top: -40px;
  right: -40px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(255, 94, 20, 0.22) 0%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}

.gallery-cta-content {
  max-width: 580px;
  position: relative;
  z-index: 2;
}

.gallery-cta-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 14px;
  background: rgba(255, 94, 20, 0.08);
  border: 1px solid rgba(255, 94, 20, 0.25);
  border-radius: var(--radius-pill);
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--brand-orange);
  margin-bottom: 12px;
}

.cta-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-orange);
  box-shadow: 0 0 8px var(--brand-orange);
}

.gallery-cta-title {
  font-size: clamp(1.5rem, 2.3vw, 2rem);
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 10px 0;
  line-height: 1.25;
}

.gallery-cta-title .text-gradient-orange {
  background: linear-gradient(135deg, #ff5e14 0%, #ff8f40 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gallery-cta-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.gallery-cta-desc strong {
  color: #ffffff;
}

.gallery-cta-action {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

.btn-gallery-primary {
  background: linear-gradient(135deg, var(--brand-orange) 0%, var(--brand-pink) 100%);
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  padding: 13px 26px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  box-shadow: 0 6px 20px rgba(255, 94, 20, 0.35);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-gallery-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(255, 94, 20, 0.5);
  filter: brightness(1.08);
}

.btn-gallery-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 13px 22px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-gallery-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* ==========================================================================
   Full-Screen Interactive Lightbox / Modal
   ========================================================================== */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(4, 5, 8, 0.94);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 999999;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  user-select: none;
  -webkit-user-select: none;
}

.lightbox-modal.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Top Bar Controls */
.lightbox-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  z-index: 10;
  background: linear-gradient(to bottom, rgba(4, 5, 8, 0.9) 0%, rgba(4, 5, 8, 0) 100%);
}

.lightbox-counter-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0.5px;
}

.lightbox-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lightbox-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.lightbox-btn:hover {
  background: var(--brand-orange);
  border-color: var(--brand-orange);
  transform: scale(1.08);
  box-shadow: 0 0 15px var(--brand-orange-glow);
}

.lightbox-btn.btn-close {
  background: rgba(236, 0, 118, 0.15);
  border-color: rgba(236, 0, 118, 0.3);
  color: #ffffff;
}

.lightbox-btn.btn-close:hover {
  background: #ff3366;
  border-color: #ff3366;
}

/* Center Stage Viewport */
.lightbox-stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 0 40px;
  overflow: hidden;
}

.lightbox-media-container {
  position: relative;
  max-width: 90vw;
  max-height: 72vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-image {
  max-width: 100%;
  max-height: 72vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(255, 94, 20, 0.15);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: center center;
  cursor: zoom-in;
}

.lightbox-image.zoomed {
  transform: scale(1.5);
  cursor: zoom-out;
}

/* Floating Navigation Arrows */
.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(20, 22, 32, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  backdrop-filter: blur(10px);
  transition: var(--transition-smooth);
}

.lightbox-nav-btn:hover {
  background: var(--brand-orange);
  border-color: transparent;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 0 20px var(--brand-orange-glow);
}

.lightbox-prev {
  left: 30px;
}

.lightbox-next {
  right: 30px;
}

/* Bottom Caption Bar */
.lightbox-bottombar {
  padding: 20px 32px 28px 32px;
  background: linear-gradient(to top, rgba(4, 5, 8, 0.95) 0%, rgba(4, 5, 8, 0) 100%);
  z-index: 10;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.lightbox-details {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.lightbox-tag {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--brand-orange);
  background: rgba(255, 94, 20, 0.12);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
}

.lightbox-title {
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 800;
  color: #ffffff;
  margin: 4px 0 0 0;
}

.lightbox-desc {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

/* ==========================================================================
   Keyframes & Animations
   ========================================================================== */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1100px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
  }
  
  .gallery-cta-section {
    padding: 36px 28px;
    flex-direction: column;
    text-align: center;
  }
  
  .gallery-cta-action {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .gallery-page-wrapper {
    padding-top: 95px;
  }
  
  .gallery-container {
    padding: 0 18px;
  }
  
  .gallery-hero {
    padding: 20px 0 35px 0;
  }
  
  .gallery-metrics-row {
    gap: 12px;
  }
  
  .metric-pill {
    padding: 8px 14px;
  }
  
  .gallery-toolbar-wrapper {
    flex-direction: column;
    align-items: stretch;
    padding: 14px 16px;
    gap: 14px;
  }
  
  .filter-pills-nav {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 6px;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  
  .filter-pills-nav::-webkit-scrollbar {
    display: none;
  }
  
  .filter-btn {
    white-space: nowrap;
    padding: 8px 16px;
    font-size: 12.5px;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .card-media-wrapper {
    aspect-ratio: 16 / 10;
  }
  
  .lightbox-stage {
    padding: 0 15px;
  }
  
  .lightbox-nav-btn {
    width: 44px;
    height: 44px;
  }
  
  .lightbox-prev {
    left: 10px;
  }
  
  .lightbox-next {
    right: 10px;
  }
  
  .lightbox-topbar {
    padding: 15px 18px;
  }
  
  .lightbox-bottombar {
    padding: 14px 18px 20px 18px;
  }
  
  .lightbox-title {
    font-size: 17px;
  }
}

@media (max-width: 520px) {
  .gallery-cta-section {
    padding: 28px 20px;
    border-radius: 18px;
  }
  
  .gallery-cta-action {
    width: 100%;
    flex-direction: column;
    gap: 12px;
  }
  
  .btn-gallery-primary,
  .btn-gallery-secondary {
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
    text-align: center;
  }

  .gallery-toolbar-wrapper {
    padding: 12px 14px;
  }

  .filter-btn {
    flex: 1;
    justify-content: center;
  }
}
