/* Catalogue reader. */
.catalog-book { padding-block: clamp(2rem, 5vw, 4rem); }
.book-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.75rem 2rem; margin-bottom: 1.5rem; }
.book-heading h1 { max-width: none; font-size: clamp(2rem, 5vw, 3.5rem); }
.book-stage { position: relative; display: grid; place-items: center; min-width: 0; perspective: 1400px; touch-action: pan-y; }
.book-stage:focus-visible { outline: 2px solid var(--gold); outline-offset: 6px; }
.book-pages { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
.book-pages:has(> :only-child) { grid-template-columns: minmax(0, 1fr); max-width: min(100%, 44rem); }
.book-pages img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: contain; box-shadow: 0 6px 26px #0003; background: #f7f5f0; }
.book-pages.is-turning { position: absolute; width: 100%; pointer-events: none; z-index: 2; }
.book-pages.is-turning img { backface-visibility: hidden; }
.book-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.75rem; margin-top: 1.5rem; }
.book-controls[hidden] { display: none; }
.book-controls .button { justify-content: center; }
.book-controls button:disabled { opacity: 0.45; cursor: default; }
.book-controls [data-book-status] { min-width: 9ch; text-align: center; }
@media (max-width: 720px) {
  .book-controls .button { padding-inline: 0.65rem; }
}
