/* Lightbox com zoom para catálogo / explore */

.ci-zoom-lightbox {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 15, 24, 0.92);
  padding: 1rem;
}

.ci-zoom-lightbox[hidden] {
  display: none !important;
}

.ci-zoom-lightbox__stage {
  position: relative;
  width: 96vw;
  max-width: 1100px;
  height: 82vh;
  max-height: 780px;
  overflow: hidden;
  border-radius: 16px;
  background: #0b1220;
  cursor: grab;
  touch-action: none;
  -ms-user-select: none;
  user-select: none;
}

.ci-zoom-lightbox__stage.is-dragging {
  cursor: grabbing;
}

.ci-zoom-lightbox__img {
  position: absolute;
  left: 50%;
  top: 50%;
  max-width: none;
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  -webkit-transform-origin: center center;
  transform-origin: center center;
  -webkit-transition: -webkit-transform 0.08s linear;
  transition: transform 0.08s linear;
  pointer-events: none;
}

.ci-zoom-lightbox__toolbar {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  gap: 0.45rem;
  z-index: 2;
}

.ci-zoom-lightbox__toolbar button {
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.ci-zoom-lightbox__toolbar button:hover,
.ci-zoom-lightbox__toolbar button:focus-visible {
  background: rgba(13, 92, 82, 0.95);
  outline: none;
}

.ci-zoom-lightbox__hint {
  position: absolute;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.82rem;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  pointer-events: none;
}

body.ci-zoom-open {
  overflow: hidden;
}
