/* =========================================================
   VONLOVI — Archives full-screen viewer
   ========================================================= */

html,
body.page--archives {
  height: 100%;
}

body.page--archives {
  margin: 0;
  min-height: 100%;
  min-height: 100dvh;
  background: #0a0908;
  color: #f4f0e8;
  font-family: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  overflow: hidden;
}

/* Interlocking font wordmark (centered chrome) */
body.page--archives .site-chrome__logo-img--font {
  width: clamp(140px, 22vw, 260px);
}

.archives-viewer {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: #0a0908;
  touch-action: pan-y;
  user-select: none;
}

.archives-viewer__track {
  display: flex;
  height: 100%;
  width: 100%;
  transition: transform 620ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.archives-viewer.is-dragging .archives-viewer__track {
  transition: none;
}

.archives-viewer__slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #0a0908 center / cover no-repeat;
}

.archives-viewer__slide img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: auto;
  height: auto;
  min-width: 100%;
  min-height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  display: block;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.archives-viewer__hit {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 28%;
  z-index: 4;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  cursor: pointer;
}

.archives-viewer__hit--prev {
  left: 0;
  cursor: w-resize;
}

.archives-viewer__hit--next {
  right: 0;
  cursor: e-resize;
}

.archives-viewer__count {
  position: absolute;
  left: 50%;
  bottom: max(22px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 5;
  margin: 0;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(244, 240, 232, 0.55);
  pointer-events: none;
  mix-blend-mode: difference;
}

.archives-viewer__status {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(244, 240, 232, 0.45);
}

@media (prefers-reduced-motion: reduce) {
  .archives-viewer__track {
    transition: none;
  }
}
