/* Printed spines and one open cover against a quiet black canvas. */
:root{--ib-wall-color:#080808}
#zz-fullscreen:has(.archive-shell.theme-story){overflow:clip!important}
#zz-fullscreen #zz-overlay.overlay:has(.archive-shell.theme-story){background:var(--ib-wall-color);color:#f3f0e6}
#zz-fullscreen:has(.archive-shell.theme-story)::after{content:'';position:fixed;inset:auto 0 0;height:120px;background:var(--ib-wall-color);mask-image:linear-gradient(transparent,#000 70%);pointer-events:none;z-index:1000}
html.viewing-space:has(#zz-overlay.open .theme-story) body::after{display:none}
:root body #zz-fullscreen #zz-body .archive-shell.theme-story .archive-tabs button{color:#f3f0e6!important}
html:has(#zz-overlay.open .theme-story) .portfolio-window.is-book :is(.book-title,.book-scroll-hint,.book-page-count){color:#f3f0e6}
#zz-fullscreen #zz-body .archive-shell.theme-story{display:grid;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:auto 1fr!important;gap:14px;min-height:100svh;width:100%;padding:88px 0 112px}
#zz-fullscreen #zz-body .archive-shell.theme-story .archive-tabs{position:relative!important;top:auto!important;grid-column:1!important;grid-row:1!important;display:flex;flex-direction:row!important;align-items:center;justify-content:center;gap:42px!important;width:auto;min-height:40px;margin:0 24px!important;--archive-tab-type-size:25px}
#zz-fullscreen #zz-body .archive-shell.theme-story .archive-tabs button{align-self:center;min-height:40px!important;padding:0!important;opacity:.38}
#zz-fullscreen #zz-body .archive-shell.theme-story .archive-tabs button:is(.selected,:hover,:focus-visible){opacity:1}
#zz-fullscreen #zz-body .archive-shell.theme-story .archive-tabs button.selected::after{display:none}
#zz-fullscreen #zz-body .archive-shell.theme-story #archive-panel{grid-column:1!important;grid-row:2!important;width:100%;min-height:0}
#zz-fullscreen #zz-body .archive-shell.theme-story .collection-scene{display:flex;flex-direction:column;justify-content:flex-start;min-height:0;height:auto;padding:0;gap:0;overflow:visible}
/* Keep a semantic heading without using the collection's display area. */
#zz-fullscreen #zz-body .theme-story .ib-heading{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
#zz-fullscreen #zz-body .theme-story .ib-scroll{--shelf-unit:min(calc((100svh - 326px) / 470),calc(100vw / 1120));--shelf-height:calc(470 * var(--shelf-unit));width:100%;min-width:0;padding:0;overflow:visible}
#zz-fullscreen #zz-body .theme-story .collection-objects.illustration-shelf{display:flex;align-items:flex-end;justify-content:space-between;gap:calc(14.4 * var(--shelf-unit));height:var(--shelf-height);min-height:0;width:100%;box-sizing:border-box;padding:calc(28 * var(--shelf-unit)) clamp(20px,2.4vw,46px) calc(15 * var(--shelf-unit));perspective:1800px;isolation:isolate;background:none;overflow:visible}
#zz-fullscreen #zz-body .illustration-shelf .ib-item{position:relative;flex:var(--volume-width,1) 1 0;max-width:calc(106.56 * var(--shelf-unit) * var(--volume-width,1));min-width:0;height:var(--height);color:var(--book-ink);transform:rotate(var(--tilt));transform-origin:bottom center;transition:flex-grow .65s cubic-bezier(.22,.75,.22,1),transform .65s cubic-bezier(.22,.75,.22,1);perspective:1400px}
#zz-fullscreen #zz-body .illustration-shelf .ib-item.is-selected{flex-grow:3.35;max-width:calc(var(--shelf-height) * .65);transform:rotate(0);z-index:4}
#zz-fullscreen #zz-body .illustration-shelf .ib-spine{position:absolute;inset:0 auto 0 0;display:block;width:100%;padding:0;border:0;border-radius:4px 3px 2px 4px;background:var(--book-color);color:var(--book-ink);box-shadow:inset 2px 0 2px #fff4,inset -4px 0 6px #0000000c,2px 2px 2px #30281920;isolation:isolate;overflow:hidden;transition:width .65s cubic-bezier(.22,.75,.22,1),padding .65s;cursor:pointer}
#zz-fullscreen #zz-body .illustration-shelf .ib-spine::before{content:'';position:absolute;inset:0;z-index:-1;pointer-events:none;background:url('/assets/illustration-covers/print-grain.svg') repeat;background-size:120px;mix-blend-mode:multiply;opacity:.2}
#zz-fullscreen #zz-body .illustration-shelf .ib-spine::after{content:'';position:absolute;top:2px;bottom:2px;right:4px;width:1px;background:#0000000d;box-shadow:1px 0 #fff3;pointer-events:none}
/* Book jackets use individual English type compositions. */
#zz-fullscreen #zz-body .illustration-shelf .ib-spine-art{position:absolute;inset:0;display:block;width:100%;height:100%;pointer-events:none;opacity:1;transition:opacity .16s}
:root body #zz-fullscreen #zz-body .illustration-shelf .ib-spine-art text{font-family:'Source Sans 3',Arial,sans-serif!important}
:root body #zz-fullscreen #zz-body .illustration-shelf .ib-spine-art text.spine-serif{font-family:Georgia,'Times New Roman',serif!important}
:root body #zz-fullscreen #zz-body .illustration-shelf .ib-spine-art text.spine-mono{font-family:'Courier New',monospace!important}
:root body #zz-fullscreen #zz-body .illustration-shelf .ib-spine-art text.spine-block{font-family:'Boldonse','Arial Black',sans-serif!important;font-weight:400}
#zz-fullscreen #zz-body .illustration-shelf .ib-spine-compact{position:absolute;inset:16px 3px;display:flex;flex-direction:column;align-items:center;justify-content:space-between;opacity:0;transition:opacity .16s;pointer-events:none}
#zz-fullscreen #zz-body .illustration-shelf .ib-number{font-size:calc(8 * var(--shelf-unit));line-height:1;letter-spacing:.04em}
:root body #zz-fullscreen #zz-body .illustration-shelf .ib-spine-compact strong{writing-mode:vertical-rl;font-family:Georgia,'Times New Roman',serif!important;font-size:calc(11 * var(--shelf-unit));font-weight:700;line-height:1;letter-spacing:.03em;white-space:nowrap}
#zz-fullscreen #zz-body .illustration-shelf .ib-spine-compact small{font-size:calc(8 * var(--shelf-unit));line-height:1;writing-mode:vertical-rl;letter-spacing:.05em;white-space:nowrap}
#zz-fullscreen #zz-body .illustration-shelf .is-selected .ib-spine{width:calc(30 * var(--shelf-unit));padding:0;border-radius:3px 0 0 3px}
#zz-fullscreen #zz-body .illustration-shelf .is-selected .ib-spine-art{opacity:0}
#zz-fullscreen #zz-body .illustration-shelf .is-selected .ib-spine-compact{opacity:1;transition-delay:.16s}
#zz-fullscreen #zz-body .illustration-shelf .ib-cover{position:absolute;inset:0 0 0 calc(29 * var(--shelf-unit));display:block;min-width:0;padding:0;border:0;border-radius:0 2px 2px 0;background:var(--book-color);color:var(--book-ink);text-decoration:none;overflow:hidden;isolation:isolate;box-shadow:2px 0 #e7e3d5,4px 0 #beb9a9,6px 1px #eee9dc,9px 5px 8px #30281924;opacity:0;transform:rotateY(-88deg);transform-origin:left center;pointer-events:none;transition:transform .65s cubic-bezier(.22,.75,.22,1),opacity .25s}
#zz-fullscreen #zz-body .illustration-shelf .is-selected .ib-cover{opacity:1;transform:rotateY(-7deg);pointer-events:auto}
#zz-fullscreen #zz-body .illustration-shelf .ib-cover :is(img,video){display:block;width:100%;height:100%;object-fit:cover}
#zz-fullscreen #zz-body .illustration-shelf .ib-cover::before{content:'';position:absolute;inset:0;z-index:1;pointer-events:none;background:url('/assets/illustration-covers/print-grain.svg') repeat;background-size:140px;mix-blend-mode:soft-light;opacity:.2}
#zz-fullscreen #zz-body .illustration-shelf .ib-cover::after{content:'';position:absolute;inset:0;z-index:2;pointer-events:none;box-shadow:inset 5px 0 8px #29200e24,inset 0 1px #fff6;background:linear-gradient(90deg,#39301d14,transparent 12%)}
#zz-fullscreen #zz-body .illustration-shelf .ib-cover-unesco{background:#c9eff0}
#zz-fullscreen #zz-body .illustration-shelf .ib-cover-unesco img{object-fit:contain}
#zz-fullscreen #zz-body .illustration-shelf .ib-cover-sif{background:#a8d5da}
#zz-fullscreen #zz-body .illustration-shelf .ib-cover-sif img{object-fit:cover;object-position:center}
#zz-fullscreen #zz-body .theme-story .ib-current{position:relative;inset:auto;display:flex;align-items:center;gap:18px;width:100%;height:60px;box-sizing:border-box;padding:14px clamp(24px,3vw,48px) 0;pointer-events:auto;color:#f3f0e6}
#zz-fullscreen #zz-body .theme-story .ib-current>span{font-size:11px;letter-spacing:.08em;white-space:nowrap;opacity:.55;min-width:46px}
#zz-fullscreen #zz-body .theme-story .ib-current>div{display:flex;align-items:baseline;gap:15px;min-width:0}
#zz-fullscreen #zz-body .theme-story .ib-current strong{font-size:15px;line-height:1.5;font-weight:650;letter-spacing:-.03em}
#zz-fullscreen #zz-body .theme-story .ib-current time{font-size:11px;line-height:1.5;opacity:.55;white-space:nowrap}
#zz-fullscreen #zz-body .theme-story .ib-current small{display:none}
#zz-fullscreen #zz-body .theme-story .ib-open{margin-left:auto;flex:none;min-height:44px;padding:5px 0 5px 18px;border:0;background:none;color:inherit;font:500 12px/1.3 'SUIT',sans-serif;cursor:pointer}
#zz-fullscreen #zz-body .theme-story :is(.ib-spine,.ib-cover,.ib-open):focus-visible{outline:2px solid #335cc3;outline-offset:5px}
@media(min-width:1600px){
 #zz-fullscreen #zz-body .illustration-shelf .ib-item.is-selected{flex-grow:3.1}
}
@media(max-width:1000px) and (min-width:701px){
 #zz-fullscreen #zz-body .archive-shell.theme-story .archive-tabs{gap:30px!important}
 #zz-fullscreen #zz-body .illustration-shelf .ib-item.is-selected{flex-grow:3.8}
}
@media(max-width:700px),(max-height:560px) and (max-width:1100px){
 #zz-fullscreen #zz-body .archive-shell.theme-story{padding:88px 0 120px;gap:12px}
 #zz-fullscreen #zz-body .archive-shell.theme-story .archive-tabs{margin:0 20px!important;justify-content:space-between;gap:15px!important;--archive-tab-type-size:clamp(19px,5vw,26px)}
 #zz-fullscreen #zz-body .archive-shell.theme-story .archive-tabs button{min-height:40px!important}
 #zz-fullscreen #zz-body .theme-story .ib-scroll{--shelf-unit:clamp(1px,calc((100svh - 308px) / 430),1.26px);--shelf-height:calc(430 * var(--shelf-unit));overflow-x:auto;overscroll-behavior-x:contain;scroll-padding-inline:20px;scroll-snap-type:x proximity;scrollbar-width:none!important;padding-bottom:12px;touch-action:pan-x pan-y pinch-zoom}
 #zz-fullscreen #zz-body .theme-story .ib-scroll::-webkit-scrollbar{display:none}
 #zz-fullscreen #zz-body .theme-story .collection-objects.illustration-shelf{width:max(100%,calc(630 * var(--shelf-unit)));gap:calc(9 * var(--shelf-unit));padding:calc(24 * var(--shelf-unit)) calc(22 * var(--shelf-unit)) calc(15 * var(--shelf-unit))}
 #zz-fullscreen #zz-body .illustration-shelf .ib-item{min-width:calc(44 * var(--shelf-unit));max-width:calc(56 * var(--shelf-unit) * var(--volume-width,1));scroll-snap-align:start;scroll-margin-inline:20px}
 #zz-fullscreen #zz-body .illustration-shelf .ib-item.is-selected{flex-grow:4.1;min-width:calc(175 * var(--shelf-unit));max-width:calc(var(--shelf-height) * .65)}
 #zz-fullscreen #zz-body .theme-story .ib-current{padding:6px 21px 0;gap:10px;height:56px}
 #zz-fullscreen #zz-body .theme-story .ib-current>span{min-width:38px;font-size:10px}
 #zz-fullscreen #zz-body .theme-story .ib-current>div{flex-direction:column;gap:1px}
 #zz-fullscreen #zz-body .theme-story .ib-current strong{font-size:13px}
 #zz-fullscreen #zz-body .theme-story .ib-current time{font-size:10px}
 #zz-fullscreen #zz-body .theme-story .ib-open{font-size:11px;padding-left:5px}
}
@media(prefers-reduced-motion:reduce){
 #zz-fullscreen #zz-body .illustration-shelf :is(.ib-item,.ib-spine,.ib-cover,.ib-spine-art,.ib-spine-compact){transition:none}
}
