/* Bound the animated chapters between navigation and footer at every viewport size. */
body:has(.photo-stage){--content-top:clamp(104px,15vh,160px);--footer-space:104px;--page-gutter:clamp(24px,4vw,60px)}
body:has(.photo-stage) .slide,body:has(.photo-stage) #slide-4{left:var(--page-gutter);top:var(--content-top);bottom:var(--footer-space);width:43%;max-width:650px;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#a78f6c #211710;padding:0 12px 16px 0;scroll-padding-block:16px}
body:has(.photo-stage) .slide-title{font-size:clamp(48px,min(6.6vw,10vh),104px);line-height:1.03;white-space:normal;overflow-wrap:normal;margin:12px 0 22px;letter-spacing:-.025em}
body:has(.photo-stage) .slide-desc{max-width:100%;font-size:clamp(16px,1.25vw,18px);line-height:1.5}
body:has(.photo-stage) .photo-stage{left:52%;top:var(--content-top);width:43%;height:calc(100dvh - var(--content-top) - var(--footer-space) - 16px)}
body:has(.photo-stage) footer{left:var(--page-gutter);right:var(--page-gutter);bottom:12px;min-height:64px;align-content:center;gap:4px 16px;background:#100b08e8;border-radius:8px;padding:8px 12px}
body:has(.photo-stage) footer .support-links{flex-wrap:wrap;gap:4px 20px;font-size:14px}
body:has(.photo-stage) footer .support-links a{min-height:32px;display:flex;align-items:center}
body:has(.photo-stage) .cta{min-height:44px;font-size:13px}
body:has(.photo-stage) .spin-controls{flex-wrap:wrap;gap:6px}
body:has(.photo-stage) .spin-controls button{min-height:36px;font-size:12px}
body:has(.photo-stage) .product-photo .spin-view{height:calc(100% - 100px)}
body:has(.photo-stage) figcaption{flex-wrap:wrap;gap:4px 12px;line-height:1.4}
@media(min-width:1001px) and (max-height:740px){body:has(.photo-stage){--content-top:96px}body:has(.photo-stage) .slide-title{font-size:clamp(44px,8vh,68px);margin-bottom:16px}body:has(.photo-stage) #slide-2 .mini img{width:64px;height:64px}}
@media(max-width:1000px){
 body:has(.photo-stage){--content-top:140px;--model-height:clamp(145px,27dvh,260px);--footer-space:84px;--page-gutter:24px}
 body:has(.photo-stage) header{height:70px;padding:0 24px}
 body:has(.photo-stage) header .brand{font-size:15px;letter-spacing:2px}
 body:has(.photo-stage) header nav{position:fixed;top:78px;left:12px;right:12px;justify-content:space-around;gap:0;font-size:16px}
 body:has(.photo-stage) header nav a{display:grid;place-items:center;min-height:44px;min-width:0;max-width:none;padding:6px!important;font-size:clamp(12px,2.5vw,16px)!important;white-space:normal!important;text-align:center;line-height:1.2!important}
 body:has(.photo-stage) .photo-stage{left:10%;top:var(--content-top);width:80%;height:var(--model-height);transform:none!important}
 body:has(.photo-stage) .slide,body:has(.photo-stage) #slide-4{top:calc(var(--content-top) + var(--model-height) + 16px);bottom:var(--footer-space);left:var(--page-gutter);width:calc(100% - 2 * var(--page-gutter));max-width:none;padding-right:6px}
 body:has(.photo-stage) .slide-title{font-size:clamp(36px,6vw,60px);line-height:1.04;margin:6px 0 16px}
 body:has(.photo-stage) .slide-title br{display:none}
 body:has(.photo-stage) :is(#slide-1,#slide-2,#slide-3,#slide-4) .slide-desc{font-size:16px;line-height:1.5;padding:16px}
 body:has(.photo-stage) :is(#slide-3,#slide-4) .slide-desc p{font-size:17px}
 body:has(.photo-stage) #slide-2 .mini{display:none}
 body:has(.photo-stage) footer{left:12px;right:12px;bottom:6px;min-height:56px;padding:4px 8px}
 body:has(.photo-stage) footer>span{display:none}
 body:has(.photo-stage) footer .support-links{flex-basis:100%;justify-content:center;gap:2px 16px;font-size:14px}
 body:has(.photo-stage) footer .support-links a{min-height:36px}
 body:has(.photo-stage) .spin-controls>span{flex-basis:100%;text-align:center;font-size:11px}
 body:has(.photo-stage) .spin-controls button{min-height:32px;padding:5px 10px;font-size:11px}
 body:has(.photo-stage) .product-photo .spin-view{height:calc(100% - 84px)}
 body:has(.photo-stage) figcaption{justify-content:center;font-size:8px}
 body:has(.photo-stage) figcaption span{display:none}
 .custom-studio header{padding-inline:20px}
 .custom-studio header nav{gap:4px}
}
@media(max-width:1000px) and (max-height:600px){body:has(.photo-stage){--model-height:110px;--content-top:132px;--footer-space:66px}body:has(.photo-stage) .slide-title{font-size:34px}body:has(.photo-stage) .spin-controls>span,body:has(.photo-stage) figcaption{display:none}body:has(.photo-stage) .product-photo .spin-view{height:calc(100% - 38px)}}
@media(max-width:360px){body:has(.photo-stage){--page-gutter:16px;--footer-space:108px}body:has(.photo-stage) footer .support-links{gap:0 14px}body:has(.photo-stage) header .brand{font-size:12px}body:has(.photo-stage) header .shop{font-size:9px}}
/* Keep tablet navigation clear of the brand and actions on support pages too. */
@media(min-width:761px) and (max-width:1000px){.custom-studio header{height:70px}.custom-studio header nav{position:fixed;top:78px;left:16px;right:16px;justify-content:space-around}.custom-studio header nav a{white-space:normal;text-align:center;min-height:44px}.custom-studio .hero{padding-top:160px}.custom-studio.information-page .hero{padding-top:160px}}
@media(max-width:760px){.custom-studio .hero h1{font-size:clamp(44px,12vw,72px)}.custom-studio footer{display:flex;flex-wrap:wrap;gap:20px}.custom-studio footer .support-links{flex-wrap:wrap;gap:8px 18px}.custom-studio .form-grid>*{min-width:0}.custom-studio input,.custom-studio textarea,.custom-studio select{max-width:100%}.catalog-close{flex-shrink:0}.catalog-top>div{min-width:0}}
body:has(.photo-stage) .slide{transition:visibility .2s}
@media(min-width:1001px) and (max-height:850px){body:has(.photo-stage) #slide-2 .mini{display:none}body:has(.photo-stage) #slide-2 .slide-desc{font-size:16px}}
@media(min-width:601px) and (max-width:1000px) and (max-height:600px){
 body:has(.photo-stage){--content-top:140px;--footer-space:76px}
 body:has(.photo-stage) .slide,body:has(.photo-stage) #slide-4{top:var(--content-top);left:24px;width:48%;bottom:var(--footer-space)}
 body:has(.photo-stage) .slide-title{font-size:34px}
 body:has(.photo-stage) .photo-stage{top:140px;left:55%;width:40%;height:calc(100dvh - 220px)}
}

/* Keep animated letter spans together as complete words on narrow screens. */
.slide-title .title-word{display:inline-block;white-space:nowrap}
