/* ============================================
   Custom Gallery Lightbox Styles
   ============================================ */

.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 300ms ease, visibility 300ms ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

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

.lightbox-image {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 12px;
  object-fit: contain;
  transform: scale(0.7);
  transition: transform 450ms cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: zoom-out;
  position: relative;
}

.lightbox-overlay.is-open .lightbox-image {
  transform: scale(1);
}

.lightbox-image:hover::after {
  content: '🔍';
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  font-size: 2rem;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 0.6;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
  }
}

.lightbox-overlay.is-closing .lightbox-image {
  transform: scale(0.7);
  transition: transform 300ms ease;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  border-radius: 50%;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 200ms ease;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

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