/* Preview only: the artwork stays on paper. Layout for the header, navigation, filters, viewer and footer
   dock. Round 2: the glass material rules (blur, liquid highlight, "less transparency") are removed; the
   surfaces of these controls come from paper.css. */
:root{--glass-surface:#faeeeb;--glass-ink:#60494d;--glass-line:#d9bfc0;--paper-ink:#51433e}
body{background:#f8f4ec;color:var(--paper-ink)}body:before{opacity:.055}.page-shell{max-width:1480px;padding-inline:64px}
.gallery-header{position:sticky;top:14px;z-index:40;min-height:88px;padding:0;border:0;pointer-events:none;gap:24px}.gallery-header>*{pointer-events:auto}.gallery-brand{font-size:25px;letter-spacing:3px;gap:13px;background:#f8f4eced;padding:12px 15px 12px 0;border-radius:20px}.gallery-brand small{font-size:8px;letter-spacing:2px;color:#705b55}.gallery-seal{width:39px;height:44px;border-radius:9px 7px 8px 5px;color:#96535d;border-color:#bd8e93}
.gallery-nav,.gallery-filters,.sketch-dialog-header,.preview-material{background:var(--glass-surface);border:1px solid var(--glass-line);box-shadow:0 8px 28px #76525e12,inset 0 1px 0 #fff,inset 0 -1px 0 #ffffff80;color:var(--glass-ink)}
.gallery-nav{gap:3px;padding:7px;border-radius:40px;flex-wrap:nowrap;font-size:12px;margin:0}.gallery-nav a{border:0!important;border-radius:26px;min-height:42px;padding:13px 17px;color:#674e52;white-space:nowrap;transition:background .18s,color .18s,box-shadow .18s}.gallery-nav a[aria-current]{background:#fffaf6;color:#8e4755;box-shadow:0 2px 9px #7d3a4812,inset 0 0 0 1px #e3c5c8}.gallery-nav a:hover{background:#ffffff9c;color:#793f4c}.gallery-nav .legacy-link{margin:0;font-size:11px}
#gallery>.gallery-intro{padding:80px 0 50px;position:relative;align-items:center;gap:60px}#gallery .gallery-kicker{font-size:10px;letter-spacing:3px;color:#8e6269;margin-bottom:25px}#gallery .gallery-intro h1{font-size:62px;line-height:1.25;letter-spacing:3px;color:#51413e}#gallery .gallery-intro h1 span{display:block;font-size:43px;font-weight:400;color:#97736d;margin-top:11px;letter-spacing:2px}#gallery .gallery-intro>p{font-size:13px;line-height:2.2;color:#77635c;border-left:1px solid #cdaeb1;padding-left:24px;max-width:235px;position:relative}#gallery .gallery-intro>p:before{content:'✳';position:absolute;top:-38px;left:22px;color:#b77e86;font:25px Georgia;transform:rotate(13deg)}#gallery .gallery-intro:after{content:'';width:130px;height:11px;border-bottom:1px solid #ba8f8c;border-radius:50%;position:absolute;bottom:36px;left:280px;transform:rotate(-4deg);opacity:.65}
.gallery-toolbar{position:sticky;top:112px;z-index:25;margin-bottom:30px;padding:10px 0;gap:20px;pointer-events:none}.gallery-toolbar>*{pointer-events:auto}.gallery-filters{padding:6px;border-radius:32px;gap:3px;flex-wrap:nowrap}.gallery-filters button{border:0;border-radius:24px;min-height:42px;font-size:12px;padding:10px 19px;color:#674e52;white-space:nowrap;transition:background .18s,color .18s}.gallery-filters button[aria-pressed=true]{background:#9b5361;color:#fffdf9;box-shadow:inset 0 1px 0 #ffffff3b,0 3px 8px #944e5a24}.gallery-filters button:hover:not([aria-pressed=true]){background:#fffcf6a8}#gallery-count{font:11px Georgia,serif;letter-spacing:2px;color:#795c59;background:#f8f4ecef;padding:10px 0 10px 12px;border-radius:12px}
.gallery-grid{gap:60px 36px}.gallery-piece{position:relative}.gallery-art{padding:16px;background:#fffcf6;border:1px solid #e2d8c9;box-shadow:0 10px 30px #5f4a350a;border-radius:2px;overflow:visible}.gallery-art img{aspect-ratio:1!important;object-fit:contain!important;background:#f5eddf;transition:transform .35s ease;filter:none;backdrop-filter:none}.gallery-art:hover img{transform:scale(1.012)}.gallery-piece:nth-child(-n+2) .gallery-art{padding:22px}.gallery-piece:nth-child(-n+2) .gallery-art img{aspect-ratio:1.18!important}.gallery-caption{padding:20px 3px 0}.gallery-caption small{font-size:9px;letter-spacing:1.9px;color:#8c6c65}.gallery-caption h2{font-size:24px;margin:10px 0 8px;color:#59453f}.gallery-caption p{font-size:12px;line-height:1.9;color:#76665d}.gallery-expand{right:28px;bottom:27px;background:#fffaf2f0;border:1px solid #d7c4b7;border-radius:20px;padding:8px 13px;color:#765250;font-size:11px;box-shadow:0 3px 10px #4c382712}.gallery-art:focus-visible{outline:3px solid #8e4755;outline-offset:7px}.gallery-afterword{margin-top:90px;padding-top:30px;color:#765f56}.gallery-footer{padding-bottom:85px}
.preview-material{position:fixed;left:18px;bottom:18px;z-index:45;border-radius:24px;min-height:44px;padding:10px 17px;cursor:pointer;font-size:11px;line-height:1.4;color:#694e52}.preview-material span{font-size:10px;margin-right:11px;padding-right:11px;border-right:1px solid #d7b8bd;color:#7a555c}.preview-material[aria-pressed=true]{background:#f8eae7;border-color:#bd8e97}
.sketch-dialog{position:fixed;inset:16px;width:min(1280px,calc(100% - 32px));height:calc(100dvh - 32px);max-width:none;max-height:none;margin:auto;background:transparent;border:0;box-shadow:none;color:#57453f;overflow:auto;scrollbar-width:thin}.sketch-dialog::backdrop{background:#f4eee4f5;backdrop-filter:none}.sketch-dialog-header{width:max-content;max-width:100%;margin:10px auto 22px;padding:5px 8px 5px 18px;border-radius:36px;position:sticky;top:8px;z-index:5;gap:10px}.sketch-dialog-header span{font:10px/1.5 Arial,sans-serif;letter-spacing:1.7px;color:#75555b}.sketch-dialog-header button{display:inline-grid;place-items:center;min-width:44px;height:44px;padding:8px 13px;border-radius:25px;color:#69464f;font-size:13px;transition:background .18s}.sketch-dialog-header button:hover{background:#fffcf6b5}.sketch-dialog-header button[data-viewer=close]{background:#fffaf4;border:1px solid #e2c7c9;margin-left:4px}.sketch-dialog figure{padding:0 28px 24px;max-width:1000px;margin:auto}.sketch-dialog img{width:100%;height:calc(100dvh - 250px);max-height:760px;min-height:120px;object-fit:contain;background:transparent;filter:none;backdrop-filter:none;box-shadow:none;transform-origin:top left}.sketch-dialog figcaption{max-width:760px;margin:20px auto 0;padding:18px 0 0;border-top:1px solid #dbcabc;display:grid;grid-template-columns:1fr 1fr;align-items:start;gap:24px}.sketch-dialog h2{font:28px/1.5 JournalSerif,'Songti SC',serif;letter-spacing:1px;margin:0;color:#59453f}.sketch-dialog p{font-size:13px;line-height:2;margin:0;color:#766156}.viewer-status{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.sketch-dialog.is-loading img{opacity:0}.sketch-dialog.is-loading figcaption{opacity:.5}
@media(prefers-contrast:more),(forced-colors:active){.gallery-nav,.gallery-filters,.sketch-dialog-header,.preview-material{background:Canvas;color:CanvasText;backdrop-filter:none;-webkit-backdrop-filter:none;border:1px solid currentColor}.gallery-nav a,.gallery-filters button,.sketch-dialog-header button{color:CanvasText}.gallery-filters button[aria-pressed=true]{background:Highlight;color:HighlightText}}
@media(max-width:1000px){.page-shell{padding-inline:32px}.gallery-nav a{padding-inline:12px}#gallery .gallery-intro h1{font-size:48px}#gallery .gallery-intro h1 span{font-size:34px}.gallery-brand small{font-size:7px}.gallery-grid{gap:42px 24px}.gallery-caption h2{font-size:21px}.gallery-piece:nth-child(-n+2) .gallery-art{padding:16px}}
@media(max-width:700px){.page-shell{padding-inline:22px}.gallery-header{top:8px;display:flex;flex-wrap:wrap;gap:10px;padding:0;min-height:116px;align-content:center}.gallery-brand{padding:0 10px 0 0;gap:10px;font-size:22px}.gallery-brand small{font-size:6px;letter-spacing:1.7px}.gallery-seal{width:30px;height:35px;font-size:20px}.gallery-nav{width:100%;justify-content:space-between;gap:0;padding:5px;margin:0}.gallery-nav a{font-size:11px;padding:12px 10px;min-height:40px}.gallery-nav .legacy-link{font-size:10px;padding-inline:8px}#gallery>.gallery-intro{padding:46px 0 34px;display:block}#gallery .gallery-kicker{font-size:8px;letter-spacing:2px;margin-bottom:20px}#gallery .gallery-intro h1{font-size:37px;letter-spacing:2px}#gallery .gallery-intro h1 span{font-size:28px;margin-top:8px;letter-spacing:1px}#gallery .gallery-intro>p{margin-top:26px;max-width:none;font-size:12px;padding-left:15px;line-height:1.9}#gallery .gallery-intro>p:before{left:auto;right:5px;top:5px;font-size:30px}#gallery .gallery-intro:after{left:auto;right:30px;bottom:105px;width:70px}.gallery-toolbar{top:132px;margin-bottom:22px;padding:6px 0;gap:0}.gallery-filters{width:100%;justify-content:space-between;gap:0;padding:4px}.gallery-filters button{font-size:11px;padding:10px 11px;min-height:40px}#gallery-count{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);padding:0}.gallery-grid{gap:35px 18px}.gallery-piece{grid-column:span 3}.gallery-piece:nth-child(-n+2){grid-column:span 6}.gallery-art,.gallery-piece:nth-child(-n+2) .gallery-art{padding:11px}.gallery-caption{padding:16px 2px 0}.gallery-caption h2{font-size:20px;margin-top:8px}.gallery-piece:not(:nth-child(-n+2)) .gallery-caption h2{font-size:17px}.gallery-caption p{font-size:11px}.gallery-caption small{font-size:8px}.gallery-expand{right:19px;bottom:19px;padding:7px 10px;font-size:10px}.preview-material{left:12px;bottom:12px;font-size:11px;padding:9px 13px}.preview-material span{font-size:9px;margin-right:8px;padding-right:8px}.sketch-dialog{inset:8px;width:calc(100% - 16px);height:calc(100dvh - 16px)}.sketch-dialog-header{gap:3px;margin:8px auto 18px;padding:4px 5px 4px 13px;top:4px}.sketch-dialog-header span{font-size:9px;letter-spacing:1px;max-width:84px}.sketch-dialog-header button{padding-inline:10px}.sketch-dialog figure{padding:0 10px 20px}.sketch-dialog img{height:calc(100dvh - 260px);max-height:600px;min-height:160px}.sketch-dialog figcaption{display:block;margin-top:20px;padding-top:18px}.sketch-dialog h2{font-size:25px;margin-bottom:10px}.sketch-dialog p{font-size:12px}.gallery-footer{padding-bottom:90px}}
@media(max-width:370px){.page-shell{padding-inline:16px}.gallery-nav a{padding-inline:8px}.gallery-filters button{padding-inline:8px}.sketch-dialog-header span{max-width:58px;font-size:8px}}
@media(prefers-reduced-motion:reduce){.gallery-art img,.gallery-nav a,.gallery-filters button,.gallery-expand,.sketch-dialog-header button{transition:none!important}.gallery-art:hover img{transform:none!important}}

.preview-material{left:auto;right:18px}@media(max-width:700px){.preview-material{left:auto;right:12px}.sketch-dialog img{height:auto;min-height:0;max-height:calc(100dvh - 230px)}}
.glass-dock{position:fixed;right:max(18px,env(safe-area-inset-right));bottom:max(18px,env(safe-area-inset-bottom));z-index:45;display:flex;align-items:center;gap:2px;padding:4px;border:1px solid #fff7ee;border-radius:28px;background-color:#faeeeb;color:#60494d;max-width:calc(100vw - 16px)}
.glass-dock .preview-material{position:static;border:0;box-shadow:none;background:transparent;padding:10px 8px;min-height:44px;backdrop-filter:none;-webkit-backdrop-filter:none}
.glass-dock button{font:inherit;color:inherit}.glass-dock .preview-material{font-size:11px}.dock-handle,.dock-reset{border:0;background:transparent;min-width:44px;height:44px;border-radius:50%;cursor:pointer}.dock-handle{cursor:grab;touch-action:none;user-select:none;font-size:24px!important}.glass-dock.is-dragging,.glass-dock.is-dragging .dock-handle{cursor:grabbing}.glass-dock.is-dragging{box-shadow:0 14px 36px #76525e30,inset 0 1px 1px #fff}.glass-dock button:hover{background:#ffffff85}.glass-dock button:focus-visible,.sketch-dialog-header button:focus-visible{outline:2px solid #8e4755;outline-offset:2px}
.viewer-stage{position:relative;overflow:hidden;touch-action:pan-y pinch-zoom;height:calc(100dvh - 250px);max-height:760px;min-height:120px;border-radius:3px;isolation:isolate}.sketch-dialog .viewer-stage img{display:block;width:100%;height:100%;min-height:0;max-height:none;transform-origin:center;user-select:none;-webkit-user-drag:none;pointer-events:none}.viewer-stage.is-zoomed{touch-action:none;cursor:grab}.viewer-stage.is-panning{cursor:grabbing}.sketch-dialog-header{gap:4px}.sketch-dialog-header [data-viewer=zoom-reset]{min-width:62px;font-size:11px;font-variant-numeric:tabular-nums}.sketch-dialog-header [aria-disabled=true]{opacity:.45}.sketch-dialog-header [data-viewer=close]{white-space:nowrap}
@media(max-width:700px){.glass-dock{right:12px;bottom:max(12px,env(safe-area-inset-bottom))}.sketch-dialog-header{padding:4px;gap:0;flex-wrap:wrap;justify-content:center}.sketch-dialog-header #viewer-count{width:100%;max-width:none;text-align:center;padding:4px 0}.sketch-dialog-header button{padding-inline:6px;min-width:40px;height:42px}.viewer-stage{height:calc(100dvh - 285px);min-height:140px;max-height:600px}.sketch-dialog figure{padding-inline:8px}}
@media(prefers-contrast:more),(forced-colors:active){.glass-dock button{color:CanvasText}}

/* Keep dock geometry independent of its left coordinate during drag/resize. */
.glass-dock{width:max-content;box-sizing:border-box;flex-wrap:nowrap}
.glass-dock>button{flex:0 0 auto;white-space:nowrap}

/* One glass capsule follows the selected navigation item. Links retain semantics. */
.gallery-nav.has-sliding-capsule{position:relative;isolation:isolate;touch-action:pan-y pinch-zoom}
.gallery-nav.has-sliding-capsule a{position:relative;z-index:1;user-select:none;-webkit-user-drag:none;touch-action:pan-y pinch-zoom}
.gallery-nav.has-sliding-capsule a[aria-current]{background:transparent;box-shadow:none;cursor:grab}
.gallery-nav.has-sliding-capsule a:focus-visible{outline:2px solid #8e4755;outline-offset:-3px}
.gallery-nav .nav-capsule{position:absolute;left:0;top:0;z-index:0;pointer-events:none;border-radius:30px;background:radial-gradient(ellipse at var(--capsule-light,35%) 0%,#fffefa,transparent 75%),linear-gradient(135deg,#fffdf4e6,#f6dce5c9);border:1px solid #fffaf3;box-shadow:0 3px 11px #8e47551a,inset 0 1px 2px #fff,0 0 0 1px #d9aebc70;transform-origin:center;transition:transform .28s cubic-bezier(.22,.8,.25,1),width .28s cubic-bezier(.22,.8,.25,1),height .2s;box-sizing:border-box}
.gallery-nav.is-nav-dragging .nav-capsule{transition:width .10s ease,box-shadow .15s;box-shadow:0 5px 15px #8e47552b,inset 0 1px 3px #fff,0 0 0 1px #d9aebc99}
.gallery-nav.is-nav-dragging a{cursor:grabbing}.gallery-nav.has-sliding-capsule a.nav-preview{color:#8e4755;background:transparent}
@media(prefers-reduced-motion:reduce){.gallery-nav .nav-capsule{transition:none!important}}
@media(forced-colors:active),(prefers-contrast:more){.gallery-nav .nav-capsule{background:Canvas;border:2px solid Highlight;box-shadow:none}.gallery-nav.has-sliding-capsule a[aria-current]{color:LinkText;text-decoration:underline}}

/* Category selection uses the same restrained glass motion, with berry ink. */
.gallery-filters.has-filter-capsule{position:relative;isolation:isolate;touch-action:pan-y pinch-zoom;overflow:hidden;overflow:clip}
.gallery-filters.has-filter-capsule button{position:relative;z-index:1;min-height:44px;min-width:44px;touch-action:pan-y pinch-zoom;user-select:none}
.gallery-filters.has-filter-capsule button[aria-pressed=true]{background:transparent;box-shadow:none;cursor:grab}
.gallery-filters.has-filter-capsule button:focus-visible{outline:2px solid #75424e;outline-offset:-3px}
.gallery-filters .filter-capsule{position:absolute;left:0;top:0;pointer-events:none;z-index:0;box-sizing:border-box;border-radius:26px;background:radial-gradient(ellipse at var(--filter-light,35%) 0%,#c5818e99,transparent 75%),#9b5361;border:1px solid #b97684;box-shadow:inset 0 1px 1px #ffe9eb80,0 3px 9px #944e5a24;transform-origin:center;transition:transform .24s cubic-bezier(.22,.8,.25,1),width .24s cubic-bezier(.22,.8,.25,1)}
.gallery-filters.is-filter-dragging .filter-capsule{transition:width .1s ease}
.gallery-filters.is-filter-dragging button{cursor:grabbing}
.gallery-filters.is-filter-dragging button[aria-pressed=true]:not(.filter-preview){color:#674e52}
.gallery-filters.has-filter-capsule button.filter-preview{color:#fffdf9;background:transparent}
@media(max-width:700px){.gallery-toolbar{flex-wrap:wrap;gap:6px}.gallery-filters{flex:1 0 100%;box-sizing:border-box}.gallery-filters.has-filter-capsule button{flex:1 1 0;min-width:44px;padding:10px 2px;font-size:11px}#gallery-count{position:static;width:auto;height:auto;overflow:visible;clip-path:none;padding:3px 10px;font-size:10px;line-height:1.4;letter-spacing:1px;background:#f8f4ecef}}
@media(prefers-reduced-motion:reduce){.gallery-filters .filter-capsule{transition:none!important}}
@media(forced-colors:active),(prefers-contrast:more){.gallery-filters .filter-capsule{background:Highlight;border:2px solid Highlight;box-shadow:none}.gallery-filters.has-filter-capsule button[aria-pressed=true],.gallery-filters.has-filter-capsule button.filter-preview{color:HighlightText}.gallery-filters.is-filter-dragging button[aria-pressed=true]:not(.filter-preview){color:CanvasText}}

/* Quiet paper layout: no persistent header/filter layers over the artwork. */
.gallery-header,.gallery-toolbar{position:relative;top:auto;z-index:auto}
.gallery-header{padding-block:16px;min-height:88px}
.gallery-brand{background:transparent}
.gallery-toolbar{align-items:center;margin-bottom:24px}
#gallery-count{background:transparent;white-space:nowrap}
/* Route clearance is owned by targets only, not added again by the root. */
html{scroll-padding-top:0}
main>section,main>#legacy{scroll-margin-top:16px}
.gallery-art{box-shadow:0 5px 18px #5f4a3508}
.gallery-caption{padding:16px 3px 0}.gallery-caption h2{margin:8px 0 6px}.gallery-caption p{margin:0;line-height:1.9}
.first-step{font-size:13px;line-height:1.8;color:#795d58;margin:-12px 0 22px;padding:10px 14px;border-left:2px solid #cfa6ad;background:#fffaf350}
.wb-file{border:1px solid #b87d89!important;background:#faeceb!important;color:#773d4d!important;min-height:44px}
.display-launcher{min-width:44px;min-height:44px;padding:0 9px;border:0;border-radius:24px;background:transparent;cursor:pointer;font-size:11px!important}
.display-controls{display:flex;align-items:center;gap:2px}.display-controls[hidden]{display:none!important}
.display-launcher:focus-visible{outline:2px solid #8e4755;outline-offset:-3px}
.gallery-nav a{min-height:44px;display:inline-flex;align-items:center;justify-content:center}
@media(max-width:700px){.gallery-header{min-height:0;top:auto;padding:12px 0 8px;gap:8px}.gallery-brand{font-size:21px}.gallery-nav a{min-height:44px;padding:8px 7px}.gallery-nav .legacy-link{padding-inline:5px}.gallery-toolbar{top:auto;margin-bottom:20px;padding:4px 0;gap:4px}#gallery>.gallery-intro{padding:24px 0 22px}#gallery .gallery-kicker{margin-bottom:12px}#gallery .gallery-intro h1{font-size:31px;line-height:1.25}#gallery .gallery-intro h1 span{font-size:24px;margin-top:5px}#gallery .gallery-intro>p{margin-top:16px;line-height:1.7}#gallery .gallery-intro>p:before,#gallery .gallery-intro:after{display:none}.gallery-intro{padding:24px 0}.gallery-grid{gap:30px 16px}.gallery-caption{padding-top:12px}.gallery-caption h2{margin:6px 0}.first-step{font-size:12px;margin:0 0 18px}.gallery-nav.has-sliding-capsule a{font-size:11px}#gallery-count{padding:2px 8px}}
/* Small/coarse-pointer devices: no sliding or zooming transitions. */
@media(max-width:700px),(pointer:coarse),(hover:none){.gallery-nav .nav-capsule,.gallery-filters .filter-capsule{transition:none!important}.gallery-art img{transition:none!important}.gallery-art:hover img{transform:none}}
@media(prefers-reduced-motion:reduce){.gallery-nav a,.gallery-filters button,.gallery-art img{transition:none!important}}

@media(forced-colors:active),(prefers-contrast:more){.glass-dock,.gallery-nav,.gallery-filters,.sketch-dialog-header{background:Canvas;color:CanvasText;border:1px solid currentColor;box-shadow:none;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}.gallery-nav .nav-capsule{background:Canvas;border:2px solid Highlight}.gallery-filters .filter-capsule{background:Highlight}.first-step{background:Canvas;color:CanvasText}.wb-file{background:Canvas!important;color:LinkText!important;border-color:LinkText!important}}
.display-controls>button{flex:0 0 auto;white-space:nowrap}
