/* ==========================================================================
   GALLERY & LOOKBOOK SECTION - VERO STUDIO NAILS
   ========================================================================== */

.gallery-section {
  background: var(--bg-darkest);
  position: relative;
}

.gallery-filter-tabs {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-xs);
  flex-wrap: wrap;
  margin-bottom: var(--space-3xl);
}

.gallery-tab-btn {
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-dark);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.gallery-tab-btn:hover {
  border-color: var(--border-gold-subtle);
  color: var(--text-white);
}

.gallery-tab-btn.active {
  background: linear-gradient(135deg, #FFF8E7 0%, #E8D29A 22%, #D4AF37 50%, #B38622 78%, #EEDBB0 100%);
  color: #0c0d12;
  border-color: rgba(255, 248, 225, 0.7);
  box-shadow: 
    inset 0 1px 1px rgba(255, 255, 255, 0.9),
    0 4px 16px rgba(0, 0, 0, 0.4),
    0 0 18px rgba(212, 175, 55, 0.3);
  font-weight: 700;
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: var(--space-lg);
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  cursor: pointer;
  background: var(--bg-secondary);
  border: 1px solid var(--border-dark);
  transition: all var(--transition-base);
}

.gallery-item-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s ease;
}

.gallery-item:hover {
  transform: translateY(-5px);
  border-color: var(--border-gold-medium);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6), 0 0 25px rgba(212, 175, 55, 0.15);
}

.gallery-item:hover .gallery-item-image {
  transform: scale(1.08);
  filter: brightness(0.9);
}

/* Luxury Overlay on Hover */
.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(9, 10, 14, 0.95) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-lg);
  opacity: 0;
  transition: opacity var(--transition-base);
}

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

.gallery-item-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(12, 13, 17, 0.85);
  border: 1px solid var(--border-gold-subtle);
  color: var(--gold-light);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  backdrop-filter: blur(8px);
}

.gallery-item-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--text-white);
  margin-bottom: 4px;
  line-height: 1.2;
}

.gallery-item-subtitle {
  font-size: 0.82rem;
  color: var(--gold-champagne);
  margin-bottom: 12px;
}

.gallery-item-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-white);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.gallery-item-cta svg {
  transition: transform var(--transition-fast);
}

.gallery-item:hover .gallery-item-cta svg {
  transform: translateX(4px);
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  background: rgba(6, 7, 10, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
  padding: var(--space-xl);
}

.lightbox-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox-dialog {
  max-width: 900px;
  width: 100%;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  background: var(--bg-card);
  border: 1px solid var(--border-gold-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(212, 175, 55, 0.15);
  position: relative;
  transform: scale(0.95);
  transition: transform var(--transition-base);
}

.lightbox-modal.is-open .lightbox-dialog {
  transform: scale(1);
}

.lightbox-image-side {
  position: relative;
  background: #000;
  max-height: 580px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.lightbox-details-side {
  padding: var(--space-2xl);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-dark);
  color: var(--text-white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all var(--transition-fast);
}

.lightbox-close:hover {
  background: var(--gold-primary);
  color: #0c0d12;
  transform: rotate(90deg);
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(18, 19, 27, 0.7);
  border: 1px solid var(--border-gold-subtle);
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  z-index: 5;
}

.lightbox-nav-btn:hover {
  background: var(--gold-primary);
  color: #0c0d12;
}

.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
