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

.image-viewer {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(18, 18, 18, 0.82);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.image-viewer.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.image-viewer-dialog {
  position: relative;
  width: min(96vw, 1400px);
  height: min(92vh, 960px);
  border-radius: 24px;
  background: rgba(30, 30, 30, 0.92);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.image-viewer-toolbar {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.04);
}

.image-viewer-button {
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font: inherit;
  cursor: pointer;
}

.image-viewer-stage {
  flex: 1;
  overflow: auto;
  padding: 24px;
  cursor: grab;
}

.image-viewer-content {
  min-width: 100%;
  min-height: 100%;
  display: grid;
  place-items: center;
}

.image-viewer-stage img {
  max-width: none;
  user-select: none;
  -webkit-user-drag: none;
  display: block;
}

.image-viewer-stage.is-dragging {
  cursor: grabbing;
}

@media (max-width: 720px) {
  .image-viewer {
    padding: 12px;
  }

  .image-viewer-dialog {
    width: 100%;
    height: 100%;
    border-radius: 20px;
  }

  .image-viewer-stage {
    padding: 16px;
  }
}
