.js-zoomable-image {
  cursor: zoom-in;
}

.image-lightbox-overlay {
  position: fixed;
  top: 0; bottom: 0; left: 0; right: 0;
  z-index: 102;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;
  background-color: var(--color-primary-darker99);
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.image-lightbox-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.image-lightbox-frame {
  position: relative;
  display: inline-flex;
  max-width: 100%;
  max-height: 100%;
}

.image-lightbox-close {
  position: absolute;
  top: -54px;
  right: 0;
  z-index: 1;
  justify-content: center;
}

.image-lightbox-overlay.zoomed .image-lightbox-close {
  position: fixed;
  top: 20px;
  right: 20px;
}

.image-lightbox-image {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 160px);
  object-fit: contain;
  touch-action: none;
  cursor: zoom-in;
  user-select: none;
  -webkit-user-select: none;
  border-radius: 12px;
  transition: transform 0.2s ease;
}

.image-lightbox-image.zoomed {
  cursor: zoom-out;
}

.image-lightbox-image.dragging {
  transition: none;
  cursor: grabbing;
}
