/* css/vendor/lightbox.css */
/* Lightbox CSS - Standalone, lightweight, mobile-friendly lightbox for gallery images */
/* No JavaScript dependency for basic version (uses :target or checkbox hack) */
/* Enhanced version works with the simple JS provided earlier */
/* Clean, modern, luxury feel matching your site's dark theme */

.lightbox {
  /* Hidden by default */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  z-index: 2000;
  padding: 2rem;
  backdrop-filter: blur(12px);
}

/* Active state (add .active via JS) */
.lightbox.active {
  opacity: 1;
  visibility: visible;
}

/* Lightbox content wrapper */
.lightbox-content {
  position: relative;
  max-width: 95%;
  max-height: 95vh;
  text-align: center;
}

/* Main image */
.lightbox img {
  max-width: 100%;
  max-height: 95vh;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
  animation: lightboxZoom 0.5s ease forwards;
}

/* Zoom animation */
@keyframes lightboxZoom {
  from {
    transform: scale(0.85);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Caption (optional - add below image) */
.lightbox-caption {
  margin-top: 1.5rem;
  color: #cccccc;
  font-size: 1.2rem;
  font-style: italic;
  text-align: center;
  max-width: 800px;
}

/* Close button */
.lightbox-close {
  position: absolute;
  top: -50px;
  right: 0;
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 3rem;
  line-height: 60px;
  text-align: center;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.lightbox-close:hover {
  background: var(--primary);
  transform: scale(1.1) rotate(90deg);
}

/* Navigation arrows (prev/next) */
.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 2.5rem;
  line-height: 60px;
  text-align: center;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  z-index: 10;
}

.lightbox-prev {
  left: -80px;
}

.lightbox-next {
  right: -80px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background: var(--primary);
  transform: translateY(-50%) scale(1.15);
}

/* Hide arrows on small screens */
@media (max-width: 768px) {
  .lightbox-prev,
  .lightbox-next {
    width: 50px;
    height: 50px;
    font-size: 2rem;
  }

  .lightbox-prev {
    left: 10px;
  }

  .lightbox-next {
    right: 10px;
  }

  .lightbox-close {
    top: 10px;
    right: 10px;
  }
}

/* Optional: Thumbnail strip at bottom (advanced - requires JS) */
.lightbox-thumbnails {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  max-width: 90%;
  overflow-x: auto;
  padding: 10px 0;
}

.lightbox-thumbnails img {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  opacity: 0.6;
  border: 3px solid transparent;
  transition: all 0.3s ease;
  cursor: pointer;
}

.lightbox-thumbnails img.active,
.lightbox-thumbnails img:hover {
  opacity: 1;
  border-color: var(--accent);
}