/* book-table.css: a project page's books on a white table (js/project-books.js): the same table and controls as the
   Generated Realities volumes (projects/generated-realities.html), on the bookshelf's table (js/bookshelf-table.js). */
.pb { margin-bottom: var(--s-6, 48px); }
.pb[hidden] { display: none; }
.pb-table { position: relative; width: 100%; aspect-ratio: 5 / 4; max-height: 84vh; min-height: 320px; overflow: hidden;
  touch-action: pan-y pinch-zoom; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }
.pb-table.pb-tall { aspect-ratio: 1 / 1; }
.pb-table .grt-gl { position: absolute; top: 0; left: 0; z-index: 3; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity .3s ease; }
.pb-table.is-ready .grt-gl { opacity: 1; }
.pb-table .grt-hit { position: absolute; top: 0; left: 0; z-index: 4; touch-action: none; outline: none; cursor: inherit; -webkit-tap-highlight-color: transparent; }
.pb-table .grt-hit:focus-visible { outline: 1px solid var(--meta); outline-offset: 10px; }
.pb-table[data-cursor="grab"] { cursor: url('../images/cursor-grab.svg') 26 30, grab; }
.pb-table[data-cursor="grabbing"] { cursor: url('../images/cursor-grabbing.svg') 16 16, grabbing; }
.pb-table[data-cursor="page"] { cursor: url('../images/cursor-pointer.svg') 5 5, pointer; }
.pb-table[data-cursor="out"] { cursor: zoom-out; }
.pb .grt-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 14px; min-height: 2.4em; margin-top: 4px; font-size: .6875rem; line-height: 1.4; letter-spacing: .02em; color: var(--meta); }
.pb .grt-reading { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4px 14px; }
.pb .grt-reading[hidden], .pb .grt-hint[hidden], .pb .grt-btn[hidden] { display: none; }
.pb .grt-btn { font: inherit; color: var(--ink); background: none; border: 0; padding: 6px 2px; cursor: url('../images/cursor-pointer.svg') 5 5, pointer; }
.pb .grt-arrow { font-size: .9375rem; line-height: 1; padding: 6px 4px; }
.pb .grt-btn:hover { color: var(--rc, var(--ink)); }
.pb .grt-btn[aria-disabled="true"] { color: var(--rule); cursor: default; }
.pb .grt-btn:focus-visible { outline: 1px solid var(--ink); outline-offset: 2px; }
.pb .grt-count { min-width: 8.5em; text-align: center; color: var(--ink); font-variant-numeric: tabular-nums; }
.pb .grt-sound { margin-left: auto; }
.pb .grt-hint-touch { display: none; }
.pb .grt-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (hover: none), (pointer: coarse) { .pb .grt-hint-mouse { display: none; } .pb .grt-hint-touch { display: inline; } }
@media (prefers-reduced-motion: reduce) { .pb-table .grt-gl { transition: none; } }

/* A table that is the whole page under the header (projects/anonymous-culture.html): from right under the header to
   the bottom of the window, over the title and the text. Only the book takes the pointer (its .grt-hit, which moves
   with it), so the page under it stays clickable and scrollable; while a book is open in the hands the whole table
   takes it (a click beside the book puts it down). js/project-books.js sets --pb-top (where the page starts). */
.main-content { position: relative; }
.pb-room { position: absolute; z-index: 5; top: 0; left: 0; width: 100%; height: var(--pb-h, calc(100vh - var(--pb-top, 140px))); min-height: 520px; margin: 0; pointer-events: none; }
.pb-room .pb-table { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; max-height: none; min-height: 0; }
.pb-room .grt-hit, .pb-room .pb-table.is-reading, .pb-room .grt-bar { pointer-events: auto; }
.pb-room .pb-room-bar { position: absolute; left: 0; right: 0; bottom: 6px; z-index: 6; pointer-events: none; display: flex; justify-content: flex-end; }
.pb-room .grt-bar { margin-top: 0; justify-content: flex-end; background: var(--ground, #fff); padding: 0 6px; }

/* (a whole-page table: no "slide a book…" line; the reading controls and the sound switch stay, at the very bottom) */
.pb-room .grt-hint { display: none; }
.pb-room .pb-room-bar { bottom: 0; }
