.cr-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 220ms ease;
}
.cr-lightbox[data-cr-lightbox="open"] { opacity: 1; }
.cr-lightbox[hidden] { display: none; }

.cr-lightbox__stage {
  width: 92vw;
  max-width: 1280px;
  max-height: 86vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cr-lightbox__img {
  max-width: 100%;
  max-height: 86vh;
  width: auto;
  height: auto;
  display: block;
}

.cr-lightbox__close,
.cr-lightbox__prev,
.cr-lightbox__next {
  position: absolute;
  background: var(--crotona-cream);
  color: var(--crotona-ink);
  border: 2px solid var(--crotona-ink);
  width: 48px;
  height: 48px;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 700;
  box-shadow: 4px 4px 0 var(--crotona-ink);
}
.cr-lightbox__close { top: 16px; right: 16px; }
.cr-lightbox__prev  { left: 16px; top: 50%; transform: translateY(-50%); }
.cr-lightbox__next  { right: 16px; top: 50%; transform: translateY(-50%); }

@media (max-width: 600px) {
  .cr-lightbox__prev,
  .cr-lightbox__next { display: none; } /* mobile: gestures only */
}

body.cr-lightbox-open { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .cr-lightbox { transition: none; }
}
