/*
 * ApniSite Creative Reel · click-to-open lightbox.
 * Plain CSS · no framework · works alongside the existing landing styles.
 */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgb(8 10 22 / 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.22s ease;
}
.lightbox.is-open {
  display: flex;
  opacity: 1;
}

.lightbox-stage {
  position: relative;
  max-width: min(96vw, 1800px);
  max-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 92vh;
  width: auto;
  height: auto;
  display: block;
  border-radius: 6px;
  box-shadow: 0 30px 80px rgb(0 0 0 / 0.55), 0 6px 18px rgb(0 0 0 / 0.35);
  background: #111;
  user-select: none;
  -webkit-user-drag: none;
}

.lightbox-img.is-loading {
  opacity: 0.35;
  filter: blur(2px);
  transition: opacity 0.2s ease, filter 0.2s ease;
}

.lightbox-btn {
  position: absolute;
  background: rgb(255 255 255 / 0.10);
  border: 1px solid rgb(255 255 255 / 0.18);
  color: white;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
  font-size: 0;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.lightbox-btn:hover,
.lightbox-btn:focus-visible {
  background: rgb(255 255 255 / 0.22);
  outline: none;
}
.lightbox-btn:active {
  transform: scale(0.94);
}
.lightbox-btn svg {
  width: 22px;
  height: 22px;
  display: block;
}

.lightbox-close {
  top: 1rem;
  right: 1rem;
}
.lightbox-prev {
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
}
.lightbox-next {
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
}
.lightbox-prev:active { transform: translateY(-50%) scale(0.94); }
.lightbox-next:active { transform: translateY(-50%) scale(0.94); }

.lightbox-counter {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgb(255 255 255 / 0.85);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: rgb(0 0 0 / 0.45);
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  pointer-events: none;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 720px) {
  .lightbox-btn { width: 42px; height: 42px; }
  .lightbox-btn svg { width: 20px; height: 20px; }
  .lightbox-prev { left: 0.5rem; }
  .lightbox-next { right: 0.5rem; }
  .lightbox-close { top: 0.5rem; right: 0.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .lightbox { transition: none; }
  .lightbox-img,
  .lightbox-btn,
  .lightbox-img.is-loading { transition: none; filter: none; }
}

body.lightbox-locked {
  overflow: hidden;
}
