/* Make glightbox slides better hosts for panzoom. */

.gslide-image {
  overflow: hidden;
}

.gslide-image .panzoom-container {
  overflow: hidden;
  touch-action: none;
}

.gslide-image .panzoom-container img {
  cursor: grab;
  will-change: transform;
}

.gslide-image .panzoom-container img:active {
  cursor: grabbing;
}

/* Floating zoom controls (mounted on the slide, not the image). */
.panzoom-controls {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 6px;
  background: rgba(0, 0, 0, 0.55);
  border-radius: 8px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.panzoom-btn {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.92);
  color: #111;
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 120ms ease, transform 120ms ease;
}

.panzoom-btn:hover {
  background: #fff;
  transform: scale(1.05);
}

.panzoom-btn:active {
  transform: scale(0.96);
}

/* Hint label at the bottom of the slide. */
.panzoom-hint {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  padding: 8px 14px;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 0.85em;
  font-weight: 500;
  border-radius: 999px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  pointer-events: none;
  opacity: 1;
  transition: opacity 400ms ease;
  white-space: nowrap;
  max-width: 90vw;
  overflow: hidden;
  text-overflow: ellipsis;
}

.panzoom-hint--dismissed {
  opacity: 0;
}

/* Make sure the slide chrome can host absolutely-positioned children. */
.gslide-inner-content {
  position: relative;
}
