/* Lightbox overlay */
body.wpcl-lightbox-open {
  overflow: hidden;
}

.wpcl-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100010;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem;
  background: rgba(10, 14, 20, 0.9);
  animation: wpcl-fade-in 0.2s ease;
}

@keyframes wpcl-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.wpcl-lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
}

.wpcl-lightbox__close:hover {
  background: rgba(255, 255, 255, 0.22);
}

.wpcl-lightbox__stage {
  max-width: min(64rem, 100%);
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wpcl-lightbox__media {
  display: block;
  max-width: 100%;
  max-height: 85vh;
  width: auto;
  height: auto;
  object-fit: contain;
  background: #000;
}

.wpcl-lightbox__caption {
  margin: 0;
  color: rgba(245, 245, 244, 0.85);
  font-size: 0.9rem;
  text-align: center;
  max-width: 40rem;
}

/* Hint zoomable gallery tiles when not editing */
[data-wpcl-lightbox],
.cursor-zoom-in {
  cursor: zoom-in;
}
