.preview-zoom-backdrop {
  position: fixed;
  inset: 0;
  background: var(--overlay-backdrop);
  transition: background 0.25s ease, opacity 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000000;
  cursor: zoom-out;
  opacity: 0;
  pointer-events: none;
}

.preview-zoom-backdrop--visible {
  opacity: 1;
  background: var(--overlay-backdrop);
  pointer-events: auto;
}

.preview-zoom__stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 99vw;
  max-height: 99vh;
  z-index: 3000000;
  --preview-padding: 1.5vmin;
}

.preview-zoom__stage--pdf {
  width: 100%;
  height: 100%;
  max-width: 99vw;
  max-height: 99vh;
}

.preview-zoom__image {
  max-width: 99vw;
  max-height: 99vh;
  width: auto;
  height: auto;
  box-shadow: 0 32px 120px var(--shadow-deep);
}

.preview-zoom__scroll {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 99vw;
  max-height: 99vh;
}

.preview-zoom__scroll--pdf {
  width: 100%;
  height: 100%;
  max-width: 99vw;
  max-height: 99vh;
  padding: 0;
  box-sizing: border-box;
  overflow: auto;
  align-items: flex-start;
  justify-content: center;
  --pdf-viewer-stack-padding: var(--preview-padding);
}

.preview-zoom__scroll:focus {
  outline: none;
}

.preview-zoom__scroll--native {
  overflow: auto;
  cursor: zoom-out;
  justify-content: flex-start;
  align-items: flex-start;
}


.preview-zoom__pdf {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.preview-zoom__pdf-viewer {
  width: 100%;
  height: 100%;
}

.preview-zoom__stage .pdf-viewer__page-wrapper {
  position: relative;
  overflow: visible;
}

.preview-zoom__stage .pdf-viewer__page-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  box-shadow: 0 32px 120px var(--shadow-deep);
  z-index: -1;
  pointer-events: none;
  border-radius: inherit;
}