/* Identical title position and typography across all pages. */
#page-top{box-shadow:none}
body > header.header,body.on-start > header.header,body:not(.on-start) > header.header,body > header.page-header{width:66.666667%;margin:0 auto;padding:22px 0 8px;display:flex;justify-content:flex-end;align-items:center;border:0;box-sizing:border-box;gap:0}
body > header.header .contact-link,body > header.page-header .contact-link{font:12px Arial,Helvetica,sans-serif;color:inherit;text-decoration:none;padding:10px 0;line-height:normal}
.site-title{width:66.666667%;margin:12px auto 0;padding:0;text-align:center;font:normal clamp(23px,3vw,40px)/1.2 Georgia,serif;letter-spacing:-.025em}
.site-title a{font:inherit;color:inherit;text-decoration:none}
#room .roomnav a:nth-child(2){display:none}#room .roomnav a:last-child{grid-column:3}
@media(max-width:650px){.site-title{font-size:26px;margin-top:8px}}

/* Contact and imprint follow the same centred two-thirds frame. */
.info-page > main{width:66.666667%;max-width:none;margin:0 auto;padding:40px 0 60px;box-sizing:border-box}
.info-page > footer{width:66.666667%;margin-left:auto;margin-right:auto;padding-left:0;padding-right:0;box-sizing:border-box}
@media(max-width:650px){.info-page > main{padding-top:28px}}

/* Reserve the same scrollbar space on short and long pages. */
html{scrollbar-gutter:stable}

/* One consistent footer line across the entire exhibition. */
body .footer-links{display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:nowrap;white-space:nowrap;font:11px/1.7 Arial,Helvetica,sans-serif}
.footer-links .instagram-link{display:inline-flex;align-items:center;gap:5px}.instagram-icon{flex:none;vertical-align:middle}
.info-page > footer{display:block}.draft-note{text-align:center}
#page-top > .header,body > header.page-header{min-height:30px;padding-top:14px;padding-bottom:4px}
@media(max-width:650px){body .footer-links{gap:5px;font-size:9px}.footer-links .instagram-link{gap:3px}.instagram-icon{width:12px;height:12px}}

/* Smartphone presentation: one central rotating card and a shared 90% frame. */
@media(max-width:760px),(max-height:500px) and (pointer:coarse){
 html{scrollbar-gutter:auto}
 #page-top > .header,body > header.page-header,.site-title,
 .on-start > .foot,body:not(.on-start) > .foot,
 .on-start .stand-area,.on-start .start-title,.start-nav-spacer,.start-roomtitle-placeholder,
 #page-top .roomnav,#page-top .roomhead,#room .walls,#room .roomnav,
 .info-page > main,.info-page > footer{width:90%;margin-left:auto;margin-right:auto;padding-left:0;padding-right:0}
 #page-top > .header,body > header.page-header{padding-top:8px;padding-bottom:0;min-height:14px}
 .site-title{font-size:clamp(23px,6vw,30px);line-height:1.2;margin-top:8px}
 .start-nav-spacer{font-size:12px;padding:6px 0;grid-template-columns:1fr 1fr;min-height:39px}.start-nav-spacer span{white-space:nowrap;padding:4px 0}.start-nav-spacer span:last-child{grid-column:2}
 .start-roomtitle-placeholder{padding:14px 0;--placeholder-title-size:22px}
 #page-top .roomnav,#room .roomnav{grid-template-columns:1fr 1fr;gap:10px;font-size:12px;padding:6px 0;line-height:1.5}
 #page-top .roomnav a,#room .roomnav a{padding:5px 0;min-height:36px;display:flex;align-items:center}
 #page-top .roomnav a:last-child,#room .roomnav a:last-child{grid-column:2;justify-content:flex-end}
 #page-top .roomhead{padding-top:14px;padding-bottom:14px}
 #page-top .roomhead #roomtitle{font-size:22px;line-height:1.2}
 #room .walls{padding-top:6px;padding-bottom:24px}
 #room .compact-wall + .compact-wall{margin-top:6px}
 .on-start .stand-area .stand{display:flex;align-items:center;justify-content:center;width:100%;padding:4px 0 64px;min-height:0;perspective:1000px;touch-action:pan-y}
 .on-start .stand .card.small{display:none}
 .on-start .stand .card.selected{width:100%;height: min(54dvh,510px);margin:0;display:flex;justify-content:center;align-items:center;gap:0;transform-origin:center center;backface-visibility:hidden}
 .on-start .stand .card.selected img{display:block;width:auto;height:auto;max-width:100%;max-height:calc(min(54dvh,510px) - 44px);object-fit:contain;padding:0}
 .on-start .card .caption{margin-top:12px;flex:none}
 .on-start .card.selected .caption b{font-size:25px;line-height:1.2}
 .floor-shadows{display:none}
 .mobile-turn{position:absolute;bottom:8px;display:flex;justify-content:center;align-items:center;width:44px;height:44px;border:1px solid #c5bfb2;border-radius:50%;background:#eeeae1;color:#30312c;font:22px Arial,sans-serif;z-index:4;padding:0}
 .mobile-previous{left:calc(50% - 80px);right:auto}.mobile-next{left:calc(50% + 36px);right:auto}
 .on-start .stand-area .rotation-control{bottom:8px;left:calc(50% - 22px);right:auto;width:44px;height:44px;z-index:4}
 body .footer-links{gap:6px;font-size:11px;line-height:1.8;white-space:nowrap;flex-wrap:wrap}
 .footer-links a{min-height:36px;display:inline-flex;align-items:center}
 .instagram-icon{width:14px;height:14px}.draft-note{font-size:10px;line-height:1.7}
 .foot{padding-top:14px;padding-bottom:18px}
 #zoom .zoom-step,#zoom .zoom-controls button{width:44px;height:44px}
 #zoom #zoom-prev{left:8px}#zoom #zoom-next{right:8px}
 #zoom .zoom-controls{right:8px;top:max(8px,env(safe-area-inset-top))}
}

/* Accessibility: visible focus, a content shortcut and space below the sticky title. */
html{scroll-padding-top:calc(var(--sticky-header-height,0px) + 16px)}
.skip-link{position:fixed;top:8px;left:5%;transform:translateY(-200%);z-index:100;background:#30312c;color:#fff;padding:12px 18px;font:16px/1.4 Arial,sans-serif;text-decoration:underline}
.skip-link:focus{transform:none}
a:focus-visible,button:focus-visible{outline:3px solid #956334;outline-offset:4px}
.picture:focus-visible{outline-offset:2px;position:relative;z-index:2}
body .footer-links{flex-wrap:wrap;white-space:normal;font-size:12px;gap:6px 10px}
.footer-links a{display:inline-flex;align-items:center;min-height:32px}
body .foot,body .draft-note{color:#625e53}
.rotation-control,.mobile-turn,#zoom .zoom-step{border-color:#827b6e!important}
.stand-area .rotation-control{min-width:44px;min-height:44px}
#zoom .zoom-controls button,#zoom .zoom-step{min-width:44px;min-height:44px}
#zoom .zoom-counter,#zoom-counter{max-width:calc(100% - 110px)}
@media(max-width:760px){body .footer-links{font-size:12px}.footer-links a{min-height:36px}}
@media(forced-colors:active){a:focus-visible,button:focus-visible{outline-color:Highlight}.rotation-control,.mobile-turn,#zoom .zoom-step{border:1px solid ButtonText!important}}
/* On very short windows keep the entire page available for enlarged text. */
@media(max-height:400px){#page-top{position:static!important}html{scroll-padding-top:16px}}

/* Programmatic focus on a content landmark is not an interactive selection. */
main[tabindex="-1"]:focus{outline:none}

/* Version 2.1: entry hint and a countdown synchronized with the carousel. */
#zoom .zoom-step,.mobile-turn{line-height:1;appearance:none;-webkit-appearance:none}
.zoom-arrow{display:block;flex:none;width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
@media(max-width:760px),(max-height:500px) and (pointer:coarse){#zoom .zoom-step{background:rgba(238,234,225,.55);border-color:rgba(130,123,110,.6)!important}}
@media(forced-colors:active){#zoom .zoom-step{background:ButtonFace;border-color:ButtonText!important}}
/* Reserve the tallest photo plus caption and controls, regardless of image ratio. */
@media(min-width:761px){.on-start .stand-area .stand{height:calc(49vh + 204px);min-height:0;grid-template-rows:minmax(0,1fr)}}
@media(min-width:761px) and (max-height:500px) and (pointer:coarse){.on-start .stand-area .stand{height:auto}}
.card.selected .caption{display:flex;flex-direction:column;align-items:center;gap:6px}
.enter-hint{display:block;color:#625e53;font:12px/1.5 Arial,Helvetica,sans-serif;letter-spacing:.02em}
.stand-area .rotation-control{width:44px;height:44px;border:0;padding:0}
.on-start .stand-area .rotation-control{left:calc(50% - 22px);right:auto;bottom:8px;z-index:4}
.rotation-ring{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none;transform:rotate(-90deg)}
.rotation-ring circle{fill:none;stroke-width:1.4}
.rotation-track{stroke:#b7b0a3}
.rotation-progress{stroke:#62513b;stroke-width:2.2!important;stroke-dasharray:100;stroke-dashoffset:100;stroke-linecap:butt}
.rotation-symbol{position:relative;z-index:1}
@media(max-width:760px),(max-height:500px) and (pointer:coarse){.on-start .stand .card.selected img{max-height:calc(min(54dvh,510px) - 68px)}}
@media(prefers-reduced-motion:reduce){.rotation-progress{display:none}}
@media(forced-colors:active){.rotation-track{stroke:ButtonText}.rotation-progress{stroke:Highlight}.enter-hint{color:LinkText}}

/* Desktop entrance: fit header, stable stage, controls and footer into the viewport. */
@media(min-width:761px) and (pointer:fine),(min-width:761px) and (min-height:501px){
 body.on-start{display:grid;grid-template-rows:auto minmax(300px,1fr) auto;height:100dvh;min-height:520px}
 .on-start #page-top{position:relative;padding:42px 0 0}
 .on-start #page-top > .header,.on-start .start-nav-spacer,.on-start .start-roomtitle-placeholder{display:none}
 .on-start #page-top .site-title{margin:0 auto;padding:0 0 18px;border-bottom:1px solid #cbc6ba}
 .on-start #overview{min-height:0;height:100%}
 .on-start .stand-area{height:100%;container-type:size}
 .on-start .stand-area .stand{height:100%;min-height:0;padding:20px 0 76px;grid-template-rows:minmax(0,1fr);align-items:center}
 .on-start .stand .card{margin-top:0!important;min-height:0}
 .on-start .stand .card.selected img{max-height:calc(100cqh - 180px);max-width:100%;width:auto;height:auto}
 .on-start .stand .card.small img{max-height:calc((100cqh - 180px)*.52);max-width:100%;width:auto;height:auto}
 .on-start .stand-area .rotation-control{bottom:12px}
 body.on-start > .foot{margin-top:0;margin-bottom:0;padding-top:10px;padding-bottom:12px}
}

/* Room-local slideshow controls; the play button stays at the horizontal centre. */
#zoom .zoom-playback{position:absolute;bottom:max(8px,env(safe-area-inset-bottom));left:50%;transform:translateX(-22px);display:flex;align-items:center;gap:8px;z-index:3;border-radius:24px;background:rgba(238,234,225,.7);padding-right:8px}
#zoom #zoom-play{position:relative;inset:auto;display:flex;align-items:center;justify-content:center;flex:none;width:44px;height:44px;padding:0;border:0;border-radius:50%;background:transparent;color:#30312c;appearance:none}
#zoom .zoom-play-symbol{width:20px;height:20px;fill:currentColor;pointer-events:none}
#zoom .zoom-play-symbol.is-playing{fill:none;stroke:currentColor;stroke-width:2}
#zoom .zoom-play-progress{stroke:#62513b;stroke-width:2.2;stroke-dasharray:100;stroke-dashoffset:100}
#zoom .zoom-playback #zoom-counter{position:static;transform:none;max-width:none;padding:0;background:transparent;white-space:nowrap}
@media(forced-colors:active){#zoom .zoom-playback{background:Canvas}#zoom #zoom-play{color:ButtonText}#zoom .zoom-play-progress{stroke:Highlight}}

/* Keep the counter accessible while giving the single play button its own space. */
#zoom,#zoom:fullscreen{padding-bottom:68px}
#zoom .zoom-playback{transform:translateX(-50%);gap:0;padding:0;background:transparent;border-radius:0}
#zoom .zoom-playback #zoom-counter{position:absolute!important;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
