/* ===========================
   LIGHTBOX
   =========================== */

.lightbox-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 4, 10, 0.95);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-mid);
  backdrop-filter: blur(12px);
}

.lightbox-backdrop.open {
  opacity: 1;
  pointer-events: all;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-mid);
}

.lightbox.open {
  opacity: 1;
  pointer-events: all;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-content img,
.lightbox-content video {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 80px rgba(0,0,0,0.8);
}

.lightbox-caption {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-align: center;
  max-width: 400px;
  background: rgba(10,8,16,0.8);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
}

.lightbox-close {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--dur-fast);
  z-index: 2002;
}

.lightbox-close:hover {
  background: rgba(244,114,182,0.15);
  border-color: var(--pink);
}

.lightbox-prev,
.lightbox-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--border-mid);
  color: var(--text-primary);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--dur-fast) var(--ease-spring);
  z-index: 2002;
}

.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }

.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(244,114,182,0.15);
  border-color: var(--pink);
  transform: translateY(-50%) scale(1.1);
}
