/* The page follows a horizontal gesture; the landscape keeps its vertical flow. */
.book {
  touch-action: pan-y pinch-zoom;
  perspective: 1200px;
  overflow: hidden;
  cursor: grab;
  -webkit-user-select: none;
  user-select: none;
}
.book:focus-visible { outline: 2px solid #dfbf7d; outline-offset: 6px; }
.book .folio-plates { transition: opacity .2s ease, transform .22s ease; }
.book.turning .folio-plates {
  opacity: 0;
  transform: translateX(calc(var(--turn-direction, 1) * -28px)) rotateY(calc(var(--turn-direction, 1) * -8deg));
}
.book.settling .folio-plates { animation: folio-arrive .3s ease both; }
.book.is-dragging, .book.is-dragging .art-object { cursor: grabbing; }
.book.is-dragging .folio-plates {
  transition: none;
  transform: translateX(var(--drag-shift, 0px)) rotateY(var(--drag-tilt, 0deg));
}
.book.is-dragging .art-object { pointer-events: none; }
.book .art-object img { -webkit-user-drag: none; user-select: none; }
@keyframes folio-arrive {
  from { opacity: 0; transform: translateX(calc(var(--turn-direction, 1) * 28px)) rotateY(calc(var(--turn-direction, 1) * 8deg)); }
  to { opacity: 1; transform: none; }
}
.no-motion .book .folio-plates { transition: none; animation: none; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .book .folio-plates { transition: none; animation: none; transform: none; }
}
