/* Lightbox Component Styles */
/* Full-screen image viewer overlay */

.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  cursor: pointer;
  animation: lightbox-fade-in 0.2s ease-out;
}

@keyframes lightbox-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.lightbox-image {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  cursor: default;
  border: 2px solid rgba(212, 168, 75, 0.3);
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.8);
  animation: lightbox-image-in 0.25s ease-out;
}

@keyframes lightbox-image-in {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  font-size: 32px;
  line-height: 1;
  color: #d4a84b;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(212, 168, 75, 0.3);
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.lightbox-close:hover {
  background: rgba(212, 168, 75, 0.2);
  border-color: #d4a84b;
  color: #fff;
}

.lightbox-close:focus {
  outline: 2px solid #d4a84b;
  outline-offset: 2px;
}

/* Loading spinner */
.lightbox-loader {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(212, 168, 75, 0.2);
  border-top-color: #d4a84b;
  border-radius: 50%;
  animation: lightbox-spin 0.8s linear infinite;
}

@keyframes lightbox-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Hide image while loading (but keep it in DOM for load event) */
.lightbox-image-loading {
  opacity: 0;
  position: absolute;
}

/* Mobile adjustments */
@media (max-width: 700px) {
  .lightbox-image {
    max-width: 95vw;
    max-height: 85vh;
  }

  .lightbox-close {
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    font-size: 28px;
  }
}
