.residential-gallery{padding-block:clamp(32px,5vw,72px) 72px}
.residential-gallery h1{font-size:clamp(50px,7vw,92px);margin:0 0 clamp(26px,4vw,50px)}
.gallery-back{font-size:.88rem;font-weight:700;color:var(--blue)}
.gallery-back:hover{text-decoration:underline;text-underline-offset:4px}
.gallery-bottom{display:inline-block;margin-top:32px}
.res-property{padding-block:clamp(22px,3vw,40px);border-top:1px solid var(--line)}
.res-property:last-of-type{border-bottom:1px solid var(--line)}
.comparison{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:end;gap:clamp(8px,2vw,22px)}
.comparison figure{display:grid;grid-template-rows:1fr auto;gap:.6rem}
.comparison img{width:100%;height:auto;aspect-ratio:4/3;object-fit:contain;background:#ebe8e1}
.comparison figcaption{color:var(--blue);font-size:.72rem;font-weight:700;letter-spacing:.14em;text-transform:uppercase}
.standalone img,.single-photos img{height:auto;max-width:100%;margin-inline:auto}
.standalone{max-width:760px;margin-inline:auto}
.photo-details{margin-top:.95rem;border-top:1px solid var(--line)}
.photo-details summary{font-weight:700;color:var(--blue);cursor:pointer;padding:.65rem 0;min-height:44px}
.photo-count{margin-left:.45rem;color:var(--muted);font-size:.75em;font-weight:400}
.single-photos{display:grid;grid-template-columns:minmax(0,1fr);gap:clamp(16px,3vw,32px);max-width:900px;margin:8px auto 20px}
@media(max-width:480px){.residential-gallery{width:calc(100% - 32px)}}

/* Exterior-to-interior navigation and property-specific photo collages. */
.res-property{scroll-margin-top:16px}
.after-link{position:relative;display:block;width:100%}
.after-link img{transition:filter .2s ease}
.after-cta{position:absolute;bottom:clamp(5px,1vw,13px);right:clamp(5px,1vw,13px);background:var(--navy);color:#fff;padding:7px 10px;font-size:clamp(.62rem,1.3vw,.85rem);font-weight:700;line-height:1.2;border:1px solid #ffffffa0;border-radius:2px;white-space:nowrap}
.after-link:hover img{filter:brightness(.92)}
.after-link:hover .after-cta,.after-link:focus-visible .after-cta{color:var(--navy);background:var(--sky);border-color:var(--navy)}
.residential-interiors h1{margin-top:12px}
.interior-collage,.collage-row{display:grid;gap:clamp(8px,1.55vw,20px)}
.collage-row{grid-template-columns:var(--row-columns);align-items:start}
.collage-row figure{min-width:0}
.collage-row img{width:100%;height:auto;background:#ebe8e1}
@media(max-width:600px){
  .residential-interiors{width:calc(100% - 32px)}
  .collage-row{grid-template-columns:repeat(2,minmax(0,1fr));align-items:center}
  .collage-row:has(> figure:nth-child(3)) > figure:last-child{grid-column:1/-1}
  .collage-row figure{width:100%}
}
@media(prefers-reduced-motion:reduce){.after-link img{transition:none}}
.after-cta{display:inline-flex;align-items:center;gap:.5em}
.after-cta .gallery-arrow{width:10px;height:10px;flex:none}

/* Keep exterior and interior destinations distinct in the overview. */
.exterior-link .after-cta{right:auto;left:clamp(5px,1vw,13px)}
.exterior-actions{display:flex;align-items:center;justify-content:flex-end;gap:1rem;flex-wrap:wrap;margin-top:16px}
.exterior-button{display:inline-flex;align-items:center;gap:.5em;background:var(--navy);color:#fff;padding:9px 13px;min-height:40px;font-size:.83rem;font-weight:700;border:1px solid var(--navy);border-radius:2px}
.exterior-button:hover,.exterior-button:focus-visible{background:var(--sky);color:var(--navy)}
.exterior-button .gallery-arrow{width:11px;height:11px;flex:none}
.exterior-extra{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(10px,1.55vw,20px);align-items:start;margin-top:clamp(18px,2vw,30px)}
.exterior-extra figure{margin:0}
.exterior-extra img{width:100%;height:auto}
.exterior-extra > figure:only-child{grid-column:1/-1;width:min(100%,760px);justify-self:center}
.exterior-extra > figure:nth-child(3):last-child{grid-column:1/-1}
.exterior-footer{justify-content:space-between;margin-top:clamp(26px,4vw,48px);border-top:1px solid var(--line);padding-top:18px}
@media(max-width:360px){.after-cta{font-size:.6rem;padding:6px 7px}.after-cta .gallery-arrow{width:8px;height:8px}}

/* Both photo collections sit immediately beneath the finished exterior. */
.res-gallery-links{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.paired-links{margin-left:calc(50% + clamp(4px,1vw,11px))}
.single-links{width:min(100%,760px);margin-inline:auto}
@media(max-width:600px){.res-gallery-links .exterior-button{font-size:.75rem;padding:7px 8px;min-height:36px}}
