/* lightbox.css - shared storefront lightbox (Phase 897).
   Served from /assets/css/lightbox.css so every theme gets the same overlay,
   regardless of which theme bundle is active. Plain CSS on purpose: it must
   not depend on a Tailwind compile. */

/* Images inside page/blog content render small and invite the zoom. */
.lightbox-content img {
  max-width: 16rem;
  cursor: zoom-in;
  border-radius: 0.5rem;
}

/* The overlay is created by lightbox.js when the page loads. */
#lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(2, 6, 23, 0.92);
  padding: 2rem;
}

#lightbox.open {
  display: flex;
}

#lightbox-img {
  max-width: min(92vw, 1400px);
  max-height: 84vh;
  object-fit: contain;
  border-radius: 0.375rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
}

#lightbox button {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
  width: 2.75rem;
  height: 2.75rem;
  transition: background 120ms ease;
}

#lightbox button:hover {
  background: rgba(255, 255, 255, 0.28);
}

#lightbox-close {
  top: 1.25rem;
  right: 1.25rem;
}

#lightbox-prev {
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
}

#lightbox-next {
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
}

#lightbox-counter {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.875rem;
  letter-spacing: 0.02em;
}

@media (max-width: 640px) {
  #lightbox {
    padding: 1rem;
  }

  #lightbox button {
    width: 2.25rem;
    height: 2.25rem;
    font-size: 1.25rem;
  }
}
