.lightbox .lightbox-zoom-button {
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid currentColor;
  font-size: 11px;
}

.lightbox .lightbox-stage {
  overflow: hidden;
  touch-action: pan-y pinch-zoom;
}

.lightbox .lightbox-stage > img {
  transform-origin: center;
  transition: transform 180ms ease;
}

.lightbox .lightbox-stage .icon-button {
  position: relative;
  z-index: 1;
}

.lightbox .lightbox-stage.is-zoomed > img {
  transform: translate(var(--pan-x, 0px), var(--pan-y, 0px)) scale(2);
  cursor: grab;
}

.lightbox .lightbox-stage.is-zoomed { touch-action: pinch-zoom; }
.lightbox .lightbox-stage.is-panning > img { cursor: grabbing; transition: none; }

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