.space-galleries{display:grid;grid-template-columns:1fr 1fr;gap:8%;margin-top:58px}
.space-gallery{min-width:0;overflow:hidden}
.space-gallery header{display:flex;gap:18px;align-items:baseline;margin-bottom:38px}
.space-gallery h2{font-size:clamp(23px,2.5vw,32px);font-weight:400;letter-spacing:-.04em;line-height:1.5;margin:0}
.desk-stack{position:relative;aspect-ratio:1.25;margin:0 6%;isolation:isolate}
.stack-frame{position:absolute;inset:0;background:#eeede6;border:7px solid #fafaf7;box-shadow:0 6px 24px #30372b12;transition:transform .55s cubic-bezier(.22,.8,.24,1)}
.stack-frame img{display:block;width:100%;height:100%;object-fit:contain;padding:18px}
.stack-frame[data-slot="0"]{z-index:3;transform:translate(0,0) rotate(-2deg)}
.stack-frame[data-slot="1"]{z-index:2;transform:translate(9px,-9px) rotate(3deg);background:#e4e8df}
.stack-frame[data-slot="2"]{z-index:1;transform:translate(-7px,-16px) rotate(-5deg);background:#e8e3df}
.stack-frame.is-departing{z-index:4;transform:translate(24%,-8%) rotate(12deg);transition-duration:.28s}
.stack-next{position:absolute;inset:-18px -12px 0;z-index:5;cursor:pointer;background:none;border:0;border-radius:4px}
.stack-next:focus-visible{outline:2px solid #ff007b;outline-offset:5px}
.stack-next[hidden],.door-dots[hidden]{display:none}
.gallery-count{display:flex;justify-content:center;gap:10px;margin-top:30px;font-size:11px;letter-spacing:.08em;color:#869178}
.gallery-count [data-stack-count]{color:#424a3d}
.door-track{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;overscroll-behavior-x:contain;aspect-ratio:1.42;background:#e8ece5;border-radius:50% 50% 4px 4px / 17% 17% 4px 4px}
.door-track::-webkit-scrollbar{display:none}
.door-track:focus-visible{outline:2px solid #ff007b;outline-offset:5px}
.door-frame{flex:0 0 100%;min-width:0;margin:0;scroll-snap-align:start;background:#e8ece5}
.door-frame:nth-child(2){background:#ede8df}.door-frame:nth-child(3){background:#e4e9e8}
.door-frame img{display:block;width:100%;height:100%;object-fit:contain;padding:25px}
.door-dots{display:flex;justify-content:center;margin-top:12px}
.door-dots button{width:44px;height:44px;display:grid;place-items:center;background:none;border:0;cursor:pointer;border-radius:50%}
.door-dots span{width:5px;height:5px;border-radius:50%;background:#b2bba7;transition:transform .2s,background .2s}
.door-dots [aria-current="true"] span{background:#ff007b;transform:scale(1.35)}
.door-dots button:focus-visible{outline:1px solid #8a9b71;outline-offset:-8px}
.space-gallery-note{font-size:11px;color:#88927c;line-height:1.9;margin-top:20px}
@media(max-width:700px){.space-galleries{grid-template-columns:1fr;gap:42px;margin-top:40px}.space-gallery header{margin-bottom:32px}.desk-stack{margin-inline:7%;aspect-ratio:1.18}.stack-frame img{padding:12px}.door-track{aspect-ratio:1.2}.gallery-count{margin-top:26px}.space-gallery-note{margin-top:6px}}
@media(prefers-reduced-motion:reduce){.stack-frame,.door-dots span{transition:none}}

.street-corner{margin:0}.street-corner img{display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:contain}.street-corner figcaption{font-size:11px;line-height:1.8;color:#88927c;margin-top:15px}.street-gallery{scroll-margin-top:100px}

/* Feather only the empty outer margin; keep the building and near shadows intact. */
.street-corner img{mask-image:linear-gradient(to right,transparent,#000 4%,#000 96%,transparent),linear-gradient(to bottom,transparent,#000 3%,#000 92%,transparent);mask-composite:intersect;-webkit-mask-image:linear-gradient(to right,transparent,#000 4%,#000 96%,transparent),linear-gradient(to bottom,transparent,#000 3%,#000 92%,transparent);-webkit-mask-composite:source-in}
