/* ============================================
   Enhanced Lightbox Styles
   ============================================ */

.lightbox {
  display: none; position: fixed; inset: 0; z-index: 10000;
  background: rgba(0, 0, 0, 0.95);
  align-items: center; justify-content: center;
  backdrop-filter: blur(20px);
}
.lightbox.active { 
  display: flex;
  animation: lightboxFadeIn 0.4s ease;
}
@keyframes lightboxFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.lightbox-close {
  position: absolute; top: 24px; right: 32px;
  font-size: 2rem; color: var(--white); 
  background: rgba(255,255,255,0.1); 
  border: 1px solid rgba(255,255,255,0.2);
  width: 48px; height: 48px;
  border-radius: 50%;
  cursor: pointer; opacity: 0.8; 
  transition: all 0.3s;
  display: flex; align-items: center; justify-content: center;
}
.lightbox-close:hover { 
  opacity: 1; 
  background: rgba(255,255,255,0.2);
  transform: rotate(90deg);
}

.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; color: var(--white);
  background: rgba(255, 255, 255, 0.1); 
  border: 1px solid rgba(255,255,255,0.2);
  width: 56px; height: 56px; 
  border-radius: 50%;
  cursor: pointer; opacity: 0.7; 
  transition: all 0.3s;
  display: flex; align-items: center; justify-content: center;
}
.lightbox-nav:hover { 
  opacity: 1; 
  background: rgba(201, 169, 98, 0.5);
  transform: translateY(-50%) scale(1.1);
}
.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }

.lightbox-img-container {
  max-width: 85vw; max-height: 80vh;
  display: flex; align-items: center; justify-content: center;
}
.lightbox-img {
  max-width: 100%; max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  animation: lightboxImgIn 0.5s ease;
}
@keyframes lightboxImgIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.lightbox-info {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.lightbox-counter {
  font-size: 0.85rem; color: rgba(255, 255, 255, 0.7); 
  letter-spacing: 0.15em;
  background: rgba(0,0,0,0.3);
  padding: 8px 20px;
  border-radius: var(--radius-pill);
}
.lightbox-category {
  font-size: 0.75rem; color: var(--color-cream);
  letter-spacing: 0.2em; text-transform: uppercase;
}

/* Thumbnail strip */
.lightbox-thumbs {
  position: absolute; bottom: 80px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px; max-width: 80vw; overflow-x: auto;
  padding: 8px;
  scrollbar-width: none;
}
.lightbox-thumbs::-webkit-scrollbar { display: none; }
.lightbox-thumb {
  width: 60px; height: 60px; flex-shrink: 0;
  border-radius: var(--radius-sm);
  overflow: hidden; cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.5; transition: all 0.3s;
}
.lightbox-thumb.active {
  border-color: var(--color-accent);
  opacity: 1;
}
.lightbox-thumb:hover { opacity: 0.8; }
.lightbox-thumb img {
  width: 100%; height: 100%; object-fit: cover;
}

@media (max-width: 768px) {
  .lightbox-nav { width: 44px; height: 44px; font-size: 1.2rem; }
  .lightbox-prev { left: 12px; }
  .lightbox-next { right: 12px; }
  .lightbox-thumbs { display: none; }
}
