/* Large, uncropped images with manual area navigation. */
.scene,.scene:active{cursor:default}
.scene img{animation:none;transform:scale(1);transform-origin:60% 50%;will-change:auto}
.scene img.hero-zoom-ready{animation:hero-arrival-zoom 4.5s cubic-bezier(.2,.05,.25,1) .12s both}
@keyframes hero-arrival-zoom{from{transform:scale(1)}to{transform:scale(1.14)}}
@media(max-width:760px){@keyframes hero-arrival-zoom{from{transform:scale(1)}to{transform:scale(1.08)}}}
@media(prefers-reduced-motion:reduce){.scene img.hero-zoom-ready{animation:none!important;transform:none}}
#spaces-gallery{width:calc(100% - 24px);max-width:1920px;max-height:96svh;padding:0;background:#141414;color:#fff;border:1px solid #ffffff26;border-radius:6px;overflow:auto}
#spaces-gallery::backdrop{background:#050505ed;backdrop-filter:blur(8px)}
.gallery-shell{padding:14px 18px}
.gallery-header{display:flex;align-items:center;justify-content:space-between;gap:24px;padding-bottom:12px}
.gallery-header h2{font-size:1.75rem;margin:0}
#gallery-close{padding:8px 12px;background:#252525;color:white;border:1px solid #ffffff40;border-radius:4px;font-size:.85rem;white-space:nowrap;min-height:44px}
#gallery-close span{font-size:1.4rem;margin-left:10px;vertical-align:middle}
.gallery-content{display:block;padding:0}
.gallery-figure{margin:0;min-width:0}
.gallery-image-wrap{position:relative;height:calc(96svh - 158px);min-height:240px;background:#0a0a0a}
#gallery-image{display:block;position:absolute;inset:0;width:100%;height:100%;object-fit:contain;transition:opacity .2s}
#gallery-load-status{position:absolute;left:20px;right:20px;top:45%;text-align:center;font-size:.875rem;color:#ddd}
.gallery-controls{display:flex;gap:16px;align-items:center;justify-content:center;margin-left:auto}
.gallery-controls button{background:#252525;color:white;width:44px;height:44px;border:1px solid #ffffff30;border-radius:3px;font-size:1.25rem;flex-shrink:0}
#gallery-position{font-size:.85rem;text-align:center;color:#ddd;min-width:175px}
.gallery-choices{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;padding-top:12px}
.gallery-choices button{background:#202020;border:1px solid #ffffff24;border-radius:3px;color:#bbb;text-align:center;padding:11px 10px;font-size:.85rem;line-height:1.4;min-height:44px}
.gallery-choices button span{color:#888;font-size:.7rem;margin-right:9px}
.gallery-choices button[aria-pressed=true]{border-color:#ed303b;background:#361c1f;color:white}
.gallery-choices button[aria-pressed=true] span{color:#ff737c}
.gallery-controls button:hover,#gallery-close:hover,.gallery-choices button:hover{background:#383838;color:white}
@media(max-width:760px){
 #spaces-gallery{width:calc(100% - 12px);max-height:96svh}
 .gallery-shell{padding:10px}
 .gallery-header{display:grid;grid-template-columns:1fr auto;gap:10px;padding-bottom:10px}
 .gallery-header h2{font-size:1.6rem}
 #gallery-close{grid-column:2;grid-row:1;padding:7px 10px}
 .gallery-controls{grid-column:1/-1;grid-row:2;width:100%;justify-content:space-between;margin:0}
 #gallery-position{min-width:0}
 .gallery-image-wrap{height:auto;aspect-ratio:16/10;min-height:0}
 .gallery-choices{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;padding-top:10px}
 .gallery-choices button{padding:9px 5px;font-size:.75rem}
 .gallery-choices button span{display:none}
 .tour-utility{bottom:166px}
 .zone-nav button{font-size:.72rem;min-height:46px}
 .zone-nav button>span{margin-right:4px}
}
@media(max-height:550px) and (min-width:761px){.gallery-image-wrap{min-height:160px}}
@media(prefers-reduced-motion:reduce){#gallery-image{transition:none}}

@media(max-width:760px){.zone-nav{grid-template-columns:repeat(2,minmax(0,1fr))}}
