.style-interior-preview{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);gap:clamp(24px,5vw,64px);align-items:center;margin:64px 0;padding:32px;border:1px solid #797979;background:#101115}
.style-interior-preview figure{margin:0;max-width:360px;justify-self:center}.style-interior-preview img{display:block;width:100%;height:auto}.style-interior-preview figcaption{font-size:.85rem;color:#ccc;margin-top:12px}.style-interior-preview h2,.style-reader-photos h2{font-size:clamp(30px,4vw,52px);line-height:1.1}.style-interior-preview p{line-height:1.6}
.style-reader-photos{margin:64px 0;padding-top:32px;border-top:1px solid #797979}.style-photo-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:16px;margin-top:24px}.style-photo-grid figure{margin:0;min-width:0}.style-photo-grid img{display:block;width:100%;height:auto;background:#101115}
.style-reading-wrap{width:min(1100px,calc(100% - 40px));margin:40px auto 72px}.style-reading-wrap h1{font-size:clamp(36px,6vw,68px);line-height:1.05}.style-reading-intro{max-width:70ch;line-height:1.6}.style-reader-toolbar{display:flex;flex-wrap:wrap;gap:16px;align-items:center;padding:16px 0}.style-page-picker{display:flex;flex-wrap:wrap;gap:8px}.style-page-picker a,.style-reader-controls button{min-width:44px;min-height:44px;display:inline-flex;align-items:center;justify-content:center;padding:10px 14px;border:1px solid #aaa;background:#15161a;color:#fff;text-decoration:none;font:inherit}.style-page-picker a[aria-current=page]{background:#d7192d;border-color:#d7192d}.style-reader-controls{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.style-reader-controls[hidden],.style-sheet[hidden],.style-image-error[hidden]{display:none}.style-reader-controls button{cursor:pointer}.style-reader-controls button:disabled{opacity:.45;cursor:default}.style-reader-controls p{flex-basis:100%;margin:0 0 4px}.style-sheet{margin:0 0 32px;scroll-margin-top:24px}.style-sheet h2{font-size:20px}.style-canvas{overflow:auto;max-height:85vh;max-height:85svh;background:#050505;overscroll-behavior:contain}.style-canvas img{display:block;width:100%;height:auto}.style-canvas.enlarged img{width:1800px;max-width:none}.style-canvas:focus-visible,.style-page-picker a:focus-visible,.style-reader-controls button:focus-visible{outline:3px solid #ffcc4a;outline-offset:3px}.style-reading-wrap details{margin:16px 0;line-height:1.6}.style-reading-wrap summary{cursor:pointer}.style-reading-end{margin-top:32px;padding:24px;border:1px solid #797979}.style-reading-end .actions{flex-wrap:wrap}.style-image-error{padding:12px;color:#fff;background:#681c26}
@media(max-width:900px){.style-photo-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:600px){.style-interior-preview{grid-template-columns:1fr;padding:20px;gap:24px}.style-interior-preview figure{max-width:280px}.style-photo-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.style-reading-wrap{width:calc(100% - 24px)}.style-reader-controls{width:100%}.style-reader-controls button{flex:1;padding:10px 8px}.style-page-picker{gap:6px}.style-page-picker a{padding:8px;min-width:40px}.style-canvas{max-height:80vh;max-height:80svh}}

/* Fit the complete page and its navigation into one viewport. */
.style-reader-enhanced{height:100vh;height:100svh;display:grid;grid-template-rows:auto minmax(0,1fr);gap:8px;scroll-margin-top:0;padding:8px 0;box-sizing:border-box}
.style-reader-enhanced>.style-reading-intro{display:none}
.style-reader-enhanced .style-reader-toolbar{padding:0;gap:8px;justify-content:space-between}
.style-reader-enhanced .style-reader-controls p{font-size:14px;line-height:1.2}
.style-reader-enhanced .style-sheet{display:grid;grid-template-rows:minmax(0,1fr) auto auto;margin:0;min-height:0;gap:4px}
.style-reader-enhanced .style-sheet[hidden]{display:none}
.style-reader-enhanced .style-sheet h2{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);margin:0}
.style-reader-enhanced .style-canvas{height:100%;max-height:none;min-height:0;overflow:auto}
.style-reader-enhanced .style-canvas img{width:100%;height:100%;object-fit:contain;max-width:none}
.style-reader-enhanced .style-canvas.enlarged img{width:1800px;height:auto;object-fit:initial}
.style-reader-enhanced details{margin:0;font-size:14px;line-height:1.4;max-height:20svh;overflow:auto}
@media(max-width:600px){.style-reader-enhanced .style-reader-toolbar{gap:6px}.style-reader-enhanced .style-reader-controls{gap:6px}.style-reader-enhanced .style-reader-controls button{font-size:14px;line-height:1.2}.style-reader-enhanced .style-page-picker a{min-height:44px}}
