.exhibit[data-mode="gallery"] .heading{padding-top:clamp(94px,18vh,184px)}
.exhibit[data-mode="gallery"] .detail{display:flex;align-items:center;justify-content:center;gap:10px;width:max-content;max-width:min(80%,680px);padding:6px 12px}
.detail-copy{min-width:0}.detail-copy h2,.detail-copy p{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.like-controls{flex:none;margin:0;align-self:auto;pointer-events:auto}.like-controls button{display:grid;place-items:center;width:34px;height:34px;min-height:34px;padding:0;border-radius:50%;font-size:18px;line-height:1}.like-controls #likeMessage:empty{display:none}
.focus-copy .like-controls{justify-content:flex-start;align-self:flex-start;margin-top:23px}
.focus-copy .like-controls button{width:38px;height:38px;min-height:38px}
.thumb[aria-current="true"]{outline:none;outline-offset:0}
.thumb-caption{display:flex;align-items:center;justify-content:center;gap:4px;white-space:nowrap}
.thumb-caption strong,.thumb-caption small{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.thumb-caption small{flex:0 1 auto}
.thumb-heart{position:absolute;top:5px;right:5px;display:grid;place-items:center;width:17px;height:17px;border:1px solid #111;border-radius:50%;background:#fff;color:#111;font-size:10px;line-height:1;pointer-events:none}
.toolbar .icon-button,.toolbar #slideButton{display:grid;place-items:center;width:36px;min-width:36px;height:36px;padding:0}
.toolbar .icon-button svg{display:block;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.toolbar #slideButton .slide-play{fill:currentColor;stroke:none}.toolbar #slideButton .slide-pause{display:none}
.toolbar #slideButton[data-playing="true"] .slide-play{display:none}.toolbar #slideButton[data-playing="true"] .slide-pause{display:block}
.exhibit[data-mode="overview"] #slideButton{display:none}
.exhibition-guide{position:fixed;inset:0;z-index:100;display:grid;place-items:center;overflow:auto;padding:20px;background:#ececf0;color:#171c20}
.exhibition-guide-card{width:min(100%,620px);max-height:calc(100dvh - 40px);overflow:auto;padding:clamp(22px,4vw,38px);border:1px solid #aeb4b9;border-radius:18px;background:#f8f9fa;box-shadow:0 20px 55px #222b331c}
.exhibition-guide-card>small{font-size:10px;font-weight:800;letter-spacing:.16em;color:#68717a}
.exhibition-guide-card h1{margin:10px 0 7px;font-size:clamp(23px,4vw,32px);letter-spacing:-.06em}
.exhibition-guide-intro{margin:0 0 20px;color:#656e75;font-size:12px;line-height:1.5}
.exhibition-guide-steps{display:grid;gap:10px}.exhibition-guide-steps article{padding:13px 15px;border:1px solid #d7dce0;border-radius:10px;background:#fff}.exhibition-guide-steps b{font-size:13px}.exhibition-guide-steps p{margin:6px 0 0;color:#57616a;font-size:11px;line-height:1.65;word-break:keep-all}
.exhibition-guide-skip{display:flex;align-items:center;gap:8px;margin:19px 0 17px;font-size:12px;cursor:pointer}.exhibition-guide-skip input{width:17px;height:17px;margin:0;accent-color:#111}
#guideEnter{display:block;min-width:180px;min-height:43px;margin:0 auto;padding:9px 18px;border:1px solid #111;border-radius:9px;background:#fff200;color:#111;font-size:13px;font-weight:800}
#guideEnter:disabled{opacity:.45;cursor:wait}
@media(max-width:800px) and (orientation:portrait){.exhibit[data-mode="gallery"] .heading{padding-top:12vh}.toolbar .icon-button,.toolbar #slideButton{width:30px;min-width:30px;height:30px}.toolbar .icon-button svg{width:16px;height:16px}.exhibition-guide{padding:10px}.exhibition-guide-card{max-height:calc(100dvh - 20px);padding:20px}}
@media(max-height:650px) and (orientation:landscape){.exhibit[data-mode="gallery"] .heading{padding-top:45px}}

.exhibit[data-mode="gallery"] .gallery{transform:translateY(-24px)}
.exhibit[data-mode="gallery"] .detail{margin-top:-24px}
.thumb-heart{top:5px;right:5px;left:auto;bottom:auto;background:#db343d;color:white;border-color:#db343d}
.like-controls button[aria-pressed="true"]{background:#db343d;color:#fff;border-color:#db343d;font-size:18px}
.exhibition-guide-steps article{display:grid;grid-template-columns:94px 1fr;align-items:center;column-gap:16px}
.exhibition-guide-steps article svg{grid-row:1 / 3;width:94px;height:76px;stroke:#31434b;stroke-width:1.8;fill:none;stroke-linecap:round;stroke-linejoin:round}
.exhibition-guide-steps article svg .art-fill{fill:#c6ded8;stroke:none}
@media(max-width:800px) and (orientation:portrait){.exhibit[data-mode="gallery"] .gallery{transform:translateY(-16px)}.exhibit[data-mode="gallery"] .detail{margin-top:-16px}}

.art-like-button[aria-pressed="true"]{color:#fff;background:#db343d;border-color:#db343d}
.focus-transition-copy{pointer-events:none!important;z-index:5}

.art-like-button svg{width:20px;height:20px;display:block;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linejoin:round}.art-like-button[aria-pressed="true"] svg{fill:#fff;stroke:#fff}

.like-controls .art-like-button,.focus-copy .like-controls .art-like-button{width:32px;height:32px;min-height:32px;position:relative;touch-action:manipulation}
.art-like-button::before{content:"";position:absolute;inset:-6px;border-radius:50%}
.art-like-button svg{width:17px;height:17px;pointer-events:none}
.thumb-heart{width:24px;height:24px}.thumb-heart svg{width:17px;height:17px;fill:#fff;stroke:#fff;stroke-width:1.6;stroke-linejoin:round}

.like-controls .art-like-button,.focus-copy .like-controls .art-like-button{width:28px;height:28px;min-height:28px}.art-like-button svg{width:15px;height:15px}
.thumb-heart svg{width:15px;height:15px}.thumb-heart{width:24px;height:24px}
.focus-copy{scrollbar-width:none;-ms-overflow-style:none;cursor:grab;user-select:none;padding-bottom:26px}.focus-copy::-webkit-scrollbar{display:none}.focus-copy:active{cursor:grabbing}
.description-scroll-hint{position:absolute;bottom:12px;right:clamp(16px,6vw,100px);font-size:10px;color:#626b73;background:#ececf0ed;padding:5px 10px;border-radius:20px;pointer-events:none}
@media(max-width:800px) and (orientation:portrait){.slide .image{width:145%;left:50%;right:auto;transform:translateX(-50%)}}

.exhibition-menu{position:absolute;top:16px;left:16px;z-index:70}.exhibition-menu>button{padding:9px 14px;border:1px solid #cbd0cc;border-radius:20px;background:#ffffffeb;font-size:12px;color:#27382f}.exhibition-menu nav{position:absolute;top:44px;left:0;width:260px;max-height:70dvh;overflow:auto;background:#fffffff5;border:1px solid #d7dcd8;border-radius:12px;padding:12px;box-shadow:0 12px 35px #0002}.exhibition-menu a,.exhibition-menu nav button{display:block;text-decoration:none;color:#253a30;background:transparent;border:0;padding:12px 10px;border-radius:6px;width:100%;text-align:left;font-size:13px}.exhibition-menu a:hover,.exhibition-menu a[aria-current]{background:#e9eeeb}.exhibition-menu strong{display:block;padding:10px;font-size:13px}.exhibition-menu hr{border:0;border-top:1px solid #d7dcd8}

.exhibit>.like-controls{position:absolute;right:22px;bottom:100px;z-index:50;margin:0;max-width:200px}.exhibit>.like-controls #likeMessage{font-size:10px}.toolbar-hidden .toolbar{visibility:hidden;pointer-events:none}.focus-art{overflow:visible;padding:24px 36px 44px 24px}.focus-art img{max-width:calc(100% - 28px);max-height:calc(100% - 28px)}
.toolbar #captureButton{display:grid;place-items:center;width:36px;min-width:36px;height:36px;padding:0}.exhibit[data-mode="overview"] #captureButton{display:none}
.guide-infographic{display:block;width:100%;height:auto;border-radius:10px}.exhibition-guide-card{width:min(1100px,96vw)}.guide-zoom-hint{font-size:11px;color:#6c766e;text-align:center}
@media(max-width:800px) and (orientation:portrait){.gallery{overflow:visible;mask-image:none}.slide .image{width:100%;height:160%;left:0;right:auto;transform:none}.exhibit>.like-controls{right:14px;bottom:92px}.toolbar #captureButton{width:28px;min-width:28px}.focus-art{padding:18px 28px 38px 12px}}

.art-title-row{display:flex;align-items:center;gap:12px;min-width:0;position:relative}
.art-title-row h2{margin-bottom:0;min-width:0;flex:0 1 auto}
.detail-copy .art-title-row{justify-content:center;margin-bottom:6px}
.art-title-row .like-controls,.focus-copy .art-title-row .like-controls{position:relative;flex:none;margin:0;max-width:none;align-self:center;z-index:50}
.art-title-row #likeMessage{position:absolute;top:calc(100% + 6px);right:0;width:max-content;max-width:180px;font-size:10px}
.art-like-button[aria-pressed="false"]{background:#e1e2e6ef}
.toolbar .exhibition-menu{position:relative;top:auto;left:auto;z-index:70;flex:none}
.toolbar .exhibition-menu nav{top:auto;left:auto;right:0;bottom:calc(100% + 14px);max-width:calc(100vw - 24px)}
.toolbar #captureButton,.toolbar #exhibitionMenuButton{display:grid;place-items:center;width:36px;min-width:36px;height:36px;padding:0;border:1px solid rgba(0,0,0,.08);border-radius:14px;background:transparent;color:#111827}
.toolbar #captureButton svg,.toolbar #exhibitionMenuButton svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.toolbar #captureButton:hover,.toolbar #exhibitionMenuButton:hover{border-color:#7c5cff;color:#7c5cff}
@media(max-width:800px) and (orientation:portrait){.toolbar #captureButton,.toolbar #exhibitionMenuButton{width:28px;min-width:28px;height:30px}.toolbar{max-width:calc(100vw - 8px);gap:0}.toolbar button{padding-left:5px;padding-right:5px}.art-title-row{gap:12px}}

/* Keep likes outside the caption background while preserving title alignment. */
.exhibit[data-mode="gallery"] .detail{background:transparent;padding:0}
.detail-copy{padding:6px 12px;border-radius:12px;background:#ececf0e8}
.detail-copy .art-title-row .like-controls{position:absolute;left:calc(100% + 24px);top:50%;transform:translateY(-50%)}
.toolbar{gap:0}
.toolbar #captureButton,.toolbar #exhibitionMenuButton,.toolbar #fullscreenButton,.toolbar #slideButton{border:0;margin:0;box-shadow:none}
.focus-art img{flex:none;object-fit:fill;box-sizing:content-box;max-width:none;max-height:none}
.focus-copy{min-width:0;padding:0 4px 30px;overflow-x:hidden;overflow-wrap:anywhere}
.focus-copy p{overflow-wrap:anywhere;word-break:normal}
.description-scroll-hint{bottom:5px;right:24px;height:22px}
.focus-view{padding-bottom:40px}
.exhibition-guide{overflow:hidden;padding:10px}
.exhibition-guide-card{display:flex;flex-direction:column;align-items:stretch;max-height:calc(100dvh - 20px);overflow:hidden;padding:14px;min-height:0}
.exhibition-guide-card>small,.exhibition-guide-intro{display:none}
.exhibition-guide-card h1{font-size:18px;margin:0 0 8px;flex:none}
.guide-infographic{min-height:0;flex:1 1 auto;object-fit:contain;width:100%;height:auto;max-height:calc(100dvh - 170px)}
.exhibition-guide-skip{flex:none;margin:10px 0;font-size:11px}
#guideEnter{flex:none;min-height:36px;padding:6px 14px}
@media(max-width:800px) and (orientation:portrait){
 .focus-view{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,56%) minmax(0,1fr);gap:12px;padding:12px 20px 36px;align-items:stretch}
 .focus-art{grid-row:1;padding:12px 24px 28px;min-width:0;width:100%}
 .focus-copy{grid-row:2;align-self:stretch;width:100%;max-width:100%;min-height:0;padding:0 4px 12px}
 .focus-copy h2{margin:8px 0;font-size:18px}
 .description-scroll-hint{right:24px;bottom:5px}
 .exhibition-guide-card{padding:12px;max-height:calc(100dvh - 20px)}
}

.toolbar #captureButton,.toolbar #exhibitionMenuButton{color:#4a5257;border:0;border-radius:30px}
.toolbar #captureButton:hover,.toolbar #exhibitionMenuButton:hover{color:#4a5257;background:#d1d4d8}
.toolbar #captureButton:active,.toolbar #exhibitionMenuButton:active{background:#263238;color:#fff}
.toolbar.menu-open{z-index:90}
.detail-copy .art-title-row{margin-bottom:0}
.exhibit[data-mode="gallery"] .detail h2{margin-bottom:0}
.art-like-button[aria-pressed="false"]{background:#ececf0e8}
.description-scroll-hint{pointer-events:auto;cursor:pointer;z-index:8}
.community-overlay{padding:44px 0 0;border:1px solid #c8c9ce;border-radius:18px;background:#ececf0;width:min(760px,94vw);height:min(780px,90dvh);max-height:90dvh;overflow:hidden;color:#171c20}
.community-overlay::backdrop{background:#171c2066;backdrop-filter:blur(4px)}
.community-overlay iframe{border:0;width:100%;height:100%;display:block;background:#ececf0}
.community-close{position:absolute;right:12px;top:8px;width:30px;height:30px;border:0;border-radius:50%;background:#e1e2e6;color:#4a5257;font-size:23px;cursor:pointer}
@media(max-width:800px) and (orientation:portrait){.focus-view{grid-template-rows:minmax(0,64%) minmax(0,1fr);gap:20px}}

/* Reserve independent text, artwork and caption areas at every viewport size. */
.exhibit[data-mode="gallery"] .heading{padding:clamp(12px,5vh,60px) 20px 12px;max-height:30dvh;overflow:auto;flex-shrink:0}
.exhibit[data-mode="gallery"] .heading p{max-height:12dvh}
.exhibit[data-mode="gallery"] .gallery{inset:0 0 78px;transform:none;overflow:hidden;mask-image:none}
.exhibit[data-mode="gallery"] .detail{top:auto!important;bottom:8px;margin:0;display:flex;align-items:center;gap:12px;max-width:calc(100% - 36px);min-height:0}
.exhibit[data-mode="gallery"] .detail>.like-controls{position:relative;left:auto;top:auto;right:auto;bottom:auto;transform:none;margin:0;align-self:center;flex:none}
.detail-copy{min-width:0}.detail-copy .art-title-row{margin:0}
.focus-art{touch-action:none;user-select:none}.focus-art img{-webkit-user-drag:none;touch-action:none}
.description-scroll-hint{touch-action:manipulation}
.exhibition-guide{padding:0;overflow:hidden}
.exhibition-guide-card{width:100vw;height:100dvh;max-height:100dvh;padding:12px;border:0;border-radius:0;box-shadow:none;display:grid;grid-template-rows:minmax(0,1fr) auto;gap:12px;background:#ececf0}
.guide-infographic{width:100%;height:100%;max-height:none;min-height:0;object-fit:contain}
#guideEnter{margin:0 auto max(4px,env(safe-area-inset-bottom));min-height:42px}
@media(max-height:650px) and (orientation:landscape){.exhibit[data-mode="gallery"] .heading{padding:8px 20px 6px;max-height:28dvh}.exhibit[data-mode="gallery"] .heading h1{margin-bottom:3px;font-size:18px}.exhibit[data-mode="gallery"] .gallery{bottom:54px}.exhibit[data-mode="gallery"] .detail{bottom:4px}.detail-copy{padding:4px 10px}}

.focus-view{touch-action:none}.focus-copy{touch-action:pan-y}

.exhibit[data-mode="gallery"] .heading{padding-top:clamp(94px,18vh,184px);max-height:42dvh}
.exhibit[data-mode="gallery"] .detail{top:var(--caption-top)!important;bottom:auto}
.focus-copy{touch-action:none}
@media(max-width:800px) and (orientation:portrait){.exhibit[data-mode="gallery"] .heading{padding-top:12vh}}
@media(max-height:650px) and (orientation:landscape){.exhibit[data-mode="gallery"] .heading{padding-top:45px}}

/* Preserve the full projected side canvases beyond the center artwork bounds. */
.exhibit[data-mode="gallery"] .gallery{overflow:visible}
@media(max-height:650px) and (orientation:landscape){
 .focus-view{padding:8px 24px 26px;gap:20px;grid-template-columns:minmax(0,1fr) minmax(170px,28%)}
 .focus-art{padding:4px 16px 20px;overflow:visible}
}

/* Touch-first phones/tablets only; desktop keeps its current spacing. */
@media(hover:none) and (pointer:coarse) and (orientation:landscape){
 .exhibit[data-mode="gallery"] .gallery{bottom:46px}
 .exhibit[data-mode="gallery"] .toolbar{margin-top:2px;margin-bottom:calc(6px + env(safe-area-inset-bottom))}
 .exhibit[data-mode="gallery"] .detail-copy{padding:3px 10px}
 .exhibit[data-mode="gallery"] .detail{gap:12px}
}

@media(min-width:600px) and (orientation:portrait) and (hover:none) and (pointer:coarse){.exhibit[data-mode="gallery"] .heading{padding-top:12vh}.slide .image{width:100%;height:160%;left:0;right:auto;transform:none}}

.tablet-portrait .exhibit[data-mode="gallery"] .heading{padding-top:12vh}.tablet-portrait .slide .image{width:100%;height:160%;left:0;right:auto;transform:none}


