body {
  padding: 0;
  margin: 0;
  height: 100vh;
  background-color: black;
}

.dumpzine-viewer {
  position: relative;
  height: 100%;
  overflow-x: hidden;
  touch-action: pan-y;
}

.image-layer {
  position: absolute;
  inset: 0;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity var(--fade-ms, 320ms) ease;
  will-change: opacity;
  z-index: 1;
}



.image-layer .image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.image-layer.current {
  opacity: 1;
}

.image-layer.next.is-visible {
  opacity: 1;
}

.image-layer.current,
.image-layer.next {
  padding: 5dvh 5dvw;
  background-color: black;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  img {
    --image-border-color: white;
    width: fit-content;
    height: fit-content;
    object-fit: contain;
    max-height: 100%;
    max-width: 100%;
    object-position: center;
    display: block;
    border: 2px solid var(--image-border-color);
    /* box-shadow: 8px 8px 0px 0px rgba(0, 0, 0, 1); */
  }
}

.nav-zone {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  z-index: 3;
}

.nav-zone.left {
  left: 0;
  cursor: pointer;
}

.nav-zone.right {
  right: 0;
  cursor: pointer;
}

.loading-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.85);
  color: #ffffff;
  font-family: 'Retroville NC', monospace;
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  z-index: 4;
  transition: opacity 200ms ease;
}

.loading-overlay.is-hidden {
  opacity: 0;
  pointer-events: none;
}