/* =====================================================
   THE DEN VIP - ELEGANT GALLERY
   Clean, Minimal, Immersive
   ===================================================== */

/* =====================================================
   GALLERY HERO
   ===================================================== */
.gallery-hero {
  position: relative;
  min-height: 35vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 50px 20px;
  background: #000;
}

.gallery-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    ellipse at center,
    rgba(212, 175, 55, 0.08) 0%,
    transparent 60%
  );
  pointer-events: none;
}

.gallery-hero h1 {
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 300;
  letter-spacing: 8px;
  text-transform: uppercase;
  margin-bottom: 10px;
  color: #d4af37;
}

.gallery-hero p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 300;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.gallery-hero .accent-line {
  width: 60px;
  height: 1px;
  background: #d4af37;
  margin: 25px auto 0;
  opacity: 0.6;
}

/* =====================================================
   GALLERY GRID
   ===================================================== */
.gallery-container {
  width: 100%;
  max-width: 1800px;
  margin: 0 auto;
  padding: 30px 15px 80px;
  box-sizing: border-box;
}

.gallery-grid-hybrid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 12px !important;
  width: 100%;
}

/* =====================================================
   GALLERY CARDS
   ===================================================== */
.gallery-card {
  position: relative;
  width: 100%;
  padding-bottom: 100%; /* 1:1 aspect ratio */
  overflow: hidden;
  cursor: pointer;
  background: #0a0a0a;
}

.gallery-card .image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.gallery-card img,
.gallery-card video {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  transition: transform 0.6s ease, opacity 0.4s ease;
  opacity: 0.9;
}

.gallery-card:hover img,
.gallery-card:hover video {
  transform: scale(1.05);
  opacity: 1;
}

/* Subtle gold border on hover */
.gallery-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 1px solid transparent;
  transition: border-color 0.4s ease;
  pointer-events: none;
  z-index: 2;
}

.gallery-card:hover::after {
  border-color: rgba(212, 175, 55, 0.5);
}

/* Featured cards span 2 columns */
.gallery-card.featured {
  grid-column: span 2;
  padding-bottom: 50%; /* 2:1 aspect for featured */
}

/* Hide captions and view icons */
.gallery-card .caption,
.gallery-card .view-icon,
.gallery-card .skeleton {
  display: none !important;
}

/* =====================================================
   LIGHTBOX
   ===================================================== */
.lightbox-enhanced {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.98);
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.lightbox-inner {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.lightbox-enhanced .lightbox-img,
.lightbox-enhanced .lightbox-video {
  max-width: 90%;
  max-height: 90vh;
  object-fit: contain;
}

/* Navigation arrows */
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: transparent;
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10001;
}

.lightbox-nav:hover {
  background: rgba(212, 175, 55, 0.1);
  border-color: #d4af37;
}

.lightbox-nav svg {
  width: 18px;
  height: 18px;
  fill: #d4af37;
}

.lightbox-prev {
  left: 25px;
}

.lightbox-next {
  right: 25px;
}

/* Close button */
.lightbox-close-btn {
  position: absolute;
  top: 25px;
  right: 25px;
  width: 45px;
  height: 45px;
  background: transparent;
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10001;
}

.lightbox-close-btn:hover {
  background: rgba(212, 175, 55, 0.1);
  border-color: #d4af37;
}

.lightbox-close-btn svg {
  width: 16px;
  height: 16px;
  stroke: #d4af37;
  stroke-width: 1.5;
}

/* Counter */
.lightbox-counter {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.85rem;
  font-weight: 300;
  letter-spacing: 3px;
}

/* Hide caption in lightbox */
.lightbox-caption {
  display: none;
}

/* =====================================================
   CTA SECTION
   ===================================================== */
.gallery-cta {
  text-align: center;
  padding: 60px 20px;
  border-top: 1px solid rgba(212, 175, 55, 0.15);
}

.gallery-cta h2 {
  font-size: 1.4rem;
  font-weight: 300;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 12px;
  color: #d4af37;
}

.gallery-cta p {
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 25px;
  font-size: 0.95rem;
  font-weight: 300;
}

.gallery-cta a {
  display: inline-block;
  padding: 12px 30px;
  background: transparent;
  border: 1px solid #d4af37;
  color: #d4af37;
  text-decoration: none;
  font-weight: 400;
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.gallery-cta a:hover {
  background: #d4af37;
  color: #000;
}

/* =====================================================
   RESPONSIVE - TABLET
   ===================================================== */
@media (max-width: 1024px) {
  .gallery-grid-hybrid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }

  .gallery-card.featured {
    grid-column: span 2;
  }
}

/* =====================================================
   RESPONSIVE - MOBILE
   ===================================================== */
@media (max-width: 768px) {
  .gallery-hero {
    min-height: 25vh;
    padding: 40px 20px;
  }

  .gallery-hero h1 {
    letter-spacing: 5px;
  }

  .gallery-container {
    padding: 15px 8px 60px;
  }

  .gallery-grid-hybrid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 6px !important;
  }

  .gallery-card.featured {
    grid-column: span 2;
  }

  .lightbox-inner {
    padding: 20px;
  }

  .lightbox-nav {
    width: 40px;
    height: 40px;
  }

  .lightbox-prev {
    left: 15px;
  }

  .lightbox-next {
    right: 15px;
  }

  .lightbox-close-btn {
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
  }

  .gallery-cta h2 {
    font-size: 1.2rem;
  }
}

/* =====================================================
   REDUCED MOTION
   ===================================================== */
@media (prefers-reduced-motion: reduce) {
  .gallery-card img,
  .gallery-card video {
    transition: none;
  }
}
