#gallery .section-head{display:flex;gap:1rem;align-items:end}
.tour-open{background:transparent;border:1px solid var(--ink);padding:.6rem 1rem;border-radius:2rem;color:var(--ink);line-height:1.3}
.tour-open:hover{background:var(--ink);color:white}
.room-wall{display:grid;grid-template-columns:2fr 1fr 1fr;grid-template-rows:repeat(2,clamp(130px,13vw,230px));gap:8px}
.room{position:relative;min-width:0;border:0;padding:0;overflow:hidden;background:var(--ink);color:white;text-align:left;cursor:zoom-in}
.room:first-child{grid-row:span 2}
.room img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .4s}
.room:after{content:"";position:absolute;inset:35% 0 0;background:linear-gradient(transparent,#101e18b5)}
.room span{position:absolute;bottom:.65rem;left:1rem;z-index:1;font:1.25rem Georgia,serif}
.room:first-child span{font-size:1.65rem}
@media(hover:hover){.room:hover img{transform:scale(1.035)}}
#viewer{background:#16261f;color:#faf7ee;padding:0;width:min(1100px,96vw);max-width:96vw;max-height:96dvh;border-radius:6px}
#viewer::backdrop{background:#08120eee}
body:has(#viewer[open]){overflow:hidden}
.tour-frame{padding:clamp(12px,2vw,26px)}
.tour-bar,.tour-footer,.tour-controls{display:flex;gap:.7rem;align-items:center;justify-content:space-between}
.tour-bar{margin-bottom:.7rem;font-family:Georgia,serif}
#viewer button{margin:0;padding:.4rem .8rem;border:1px solid #8c9990;border-radius:2rem;min-height:44px;color:inherit;background:transparent}
#viewer button:hover{background:#34473b}
#large{width:100%;max-width:none;height:min(67dvh,700px);max-height:none;object-fit:contain;background:#101a15;touch-action:pan-y pinch-zoom}
.tour-footer{margin-top:.8rem}
.tour-footer small,.tour-footer strong{display:block}
.tour-footer small{font-size:.83rem;color:#d0d9cf}
.tour-footer strong{font:1.55rem Georgia,serif}
.tour-controls button{width:44px;font:1.55rem/1 Georgia,serif}
@media(max-width:650px){#gallery .section-head{align-items:start;flex-direction:column}.room-wall{grid-template-columns:1fr 1fr;grid-template-rows:auto;gap:5px}.room{aspect-ratio:1.5}.room:first-child{grid-row:auto;grid-column:span 2;aspect-ratio:1.7}.room span{left:.6rem;font-size:1rem}#large{height:auto;aspect-ratio:1.5;max-height:65dvh}}
@media(prefers-reduced-motion:reduce){.room img{transition:none}}
.more-photos:not([hidden]){display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:8px;margin-top:8px}
.more-photos .room{grid-area:auto;aspect-ratio:1.5}
.more-photos .room span{font-size:1.1rem}
@media(max-width:650px){.more-photos:not([hidden]){grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;margin-top:5px}.more-photos .room span{font-size:.95rem;line-height:1.1;right:.4rem}}
