body{background:#1f2d30;color:#f4f0ec}.res-hero{height:100svh;min-height:600px;position:relative;background:url('../img/residences/hero.webp') center/cover fixed}.res-hero:before{content:"";position:absolute;inset:0;background:rgba(0,0,0,.2)}.res-wrapper{width:1095px;max-width:90%;margin:0 auto}.res-intro{text-align:center;padding:100px 0 130px}.res-intro>div{width:650px;max-width:90%;margin:auto}.res-eyebrow{font-size:14px;letter-spacing:1px;margin:0 0 22px}.res-intro h1,.res-intro h2{font-size:48px;line-height:1.153;font-weight:300;margin:0 0 25px}.res-intro p:not(.res-eyebrow){margin:0 0 25px}.res-photo{margin:0;overflow:hidden}.res-photo img{width:100%;height:auto;display:block}.res-statement{text-align:center;margin:120px auto;width:1095px;max-width:90%;padding:0 110px}.res-statement .res-description{width:580px;max-width:100%;margin:0 auto 55px}.res-statement h2{font-size:36px;line-height:1.333;font-weight:300;margin:0}.res-statement.large h2{font-size:52px}.res-split{margin:90px auto;display:flex;align-items:flex-start;width:1095px;max-width:90%}.res-split .res-copy{flex:1;max-width:21%;padding-right:25px;text-align:right}.res-split .res-copy.bottom{align-self:flex-end}.res-split figure{width:70%;margin:0}.res-split.wide figure{width:80%}.res-split.inverse figure{order:1}.res-split.inverse .res-copy{order:2;text-align:left;padding-right:0;padding-left:25px}.res-copy h2,.res-caption h2{font-size:16px;font-weight:400;margin:0 0 10px;line-height:1.4}.res-copy p,.res-caption p{font-size:16px;line-height:1.5;margin:0}.res-caption{width:300px;max-width:100%;margin-top:15px}.res-caption.right{margin-left:auto}.res-inset{width:1095px;max-width:90%;margin:90px auto}.res-spacer{height:80px}.res-footer{background:#1f2d30}.res-footer .footer-logo{object-fit:contain}.res-reveal{transition:opacity .8s,transform .8s}.res-motion .res-reveal{opacity:0;transform:translateY(25px)}.res-motion .res-reveal.is-visible{opacity:1;transform:none}@media(max-width:900px){.res-intro{padding:90px 0 100px}.res-intro h1,.res-intro h2{font-size:42px}.res-statement{padding:0 50px;margin:90px auto}.res-statement.large h2{font-size:44px}.res-split{margin:60px auto}}@media(max-width:700px){.res-hero{min-height:500px;background-attachment:scroll}.res-intro{padding:80px 0 90px}.res-intro h1,.res-intro h2{font-size:34px}.res-statement{padding:0;margin:60px auto}.res-statement h2{font-size:28px}.res-statement.large h2{font-size:36px}.res-split{flex-direction:column;margin:50px auto}.res-split figure,.res-split.wide figure{width:100%;order:1}.res-split .res-copy,.res-split.inverse .res-copy{max-width:100%;width:100%;order:2;padding:20px 0 0;text-align:left}.res-inset{margin:60px auto}.res-spacer{height:50px}}@media(prefers-reduced-motion:reduce){.res-reveal{transition:none}.res-motion .res-reveal{opacity:1;transform:none}}

.res-entrance-photo img{width:100%;height:auto;aspect-ratio:500/407;object-fit:contain;background:#1f2d30}

.res-pet-photo{display:flex;align-items:flex-start;width:1095px;max-width:90%;margin:90px auto;overflow:visible}.res-pet-photo img{width:80%;order:2}.res-pet-caption{flex:1;max-width:21%;padding-right:25px;color:#f4f0ec;text-align:right;order:1}.res-pet-caption h2{font-size:16px;font-weight:400;line-height:1.4;margin:0 0 10px}.res-pet-caption p{font-size:16px;line-height:1.5;margin:0}@media(max-width:900px){.res-pet-photo{margin:60px auto}}@media(max-width:700px){.res-pet-photo{flex-direction:column;margin:50px auto}.res-pet-photo img{width:100%;order:1}.res-pet-caption{max-width:100%;width:100%;order:2;padding:20px 0 0;text-align:left}}

.res-feature{display:grid;grid-template-columns:205px minmax(0,1fr);column-gap:25px;align-items:start;width:1095px;max-width:90%;margin:90px auto}.res-feature>img{grid-column:2;grid-row:1;width:100%;height:100%;aspect-ratio:4/3;object-fit:contain;object-position:left top;display:block}.res-feature-caption{grid-column:1;grid-row:1;text-align:right;color:#f4f0ec}.res-feature-caption h2{font-size:16px;font-weight:400;line-height:1.4;margin:0 0 10px}.res-feature-caption p{font-size:16px;line-height:1.5;margin:0}@media(max-width:900px){.res-feature{grid-template-columns:180px minmax(0,1fr);margin:60px auto}}@media(max-width:700px){.res-feature{grid-template-columns:minmax(0,1fr);row-gap:20px;margin:50px auto}.res-feature>img{grid-column:1;grid-row:1}.res-feature-caption{grid-column:1;grid-row:2;text-align:left}}

.res-footer{padding-bottom:25px}.res-footer .footer-body{min-height:0;padding:25px 0}

.res-feature-right{grid-template-columns:minmax(0,1fr) 205px}.res-feature-right>img{grid-column:1;object-position:right top}.res-feature-right .res-feature-caption{grid-column:2;text-align:left}@media(max-width:900px){.res-feature-right{grid-template-columns:minmax(0,1fr) 180px}}@media(max-width:700px){.res-feature-right{grid-template-columns:minmax(0,1fr)}.res-feature-right>img{grid-column:1;grid-row:1;object-position:left top}.res-feature-right .res-feature-caption{grid-column:1;grid-row:2}}

.res-outdoor-statement{margin-top:25px}

/* Hold the four alternating feature images while their captions scroll */
@media(min-width:701px){
.res-feature{min-height:135svh;align-items:start;overflow:visible}
.res-feature>img{position:sticky;top:100px;align-self:start;height:auto;max-height:calc(100svh - 150px);object-fit:contain}
.res-feature-caption{align-self:start;padding-top:55svh;padding-bottom:20svh}
}

/* Rooftop description below its photograph */
.res-rooftop-caption{width:1095px;max-width:90%;margin:25px auto 90px;text-align:center;font-size:16px;line-height:1.5}
.res-rooftop-caption p{width:580px;max-width:100%;margin:0 auto}
@media(max-width:700px){.res-rooftop-caption{margin-bottom:50px}}

/* Residences contact panel: District 1881 Hop Leaf */
#res-contact{background:#4c5a45}

/* Consistent stationary photographs throughout the residences page */
@media(min-width:701px){
.res-scroll-photo{background-image:var(--res-scroll-image);background-position:center;background-size:cover;background-repeat:no-repeat;background-attachment:fixed}
.res-scroll-photo>img{visibility:hidden}
.res-split.inverse{min-height:135svh;overflow:visible}
.res-split.inverse .res-entrance-photo{position:sticky;top:100px;align-self:flex-start}
.res-split.inverse .res-entrance-photo img{max-height:calc(100svh - 150px);object-fit:contain}
.res-split.inverse .res-copy.bottom{align-self:flex-start;padding-top:55svh;padding-bottom:20svh}
}

/* Residences menu matches the homepage drawer */
#navigation{right:auto;width:475px;max-width:90vw;padding:110px 80px 40px;overflow-y:auto}
@media(max-width:600px){#navigation{padding:110px 25px 40px}}

/* Side captions align with the bottom of their pictures */
@media(min-width:701px){
.res-feature{min-height:0;align-items:end}
.res-feature>img{position:static;align-self:end;object-position:left bottom}
.res-feature-right>img{object-position:right bottom}
.res-feature-caption{align-self:end;padding-top:0;padding-bottom:0}
.res-split.inverse{min-height:0;align-items:flex-end}
.res-split.inverse .res-entrance-photo{position:static;align-self:flex-end}
.res-split.inverse .res-copy.bottom{align-self:flex-end;padding-top:0;padding-bottom:0}
}

/* Consistent vertical spacing between residences photo sections */
:root{--res-photo-gap:90px}
.res-feature,.res-split{margin-top:var(--res-photo-gap);margin-bottom:var(--res-photo-gap)}
.res-spacer{display:none}
.res-outdoor-statement,.res-rooftop-caption{margin-bottom:var(--res-photo-gap)}
.res-outdoor-statement .res-description{margin-bottom:0}
@media(max-width:900px){:root{--res-photo-gap:60px}}
@media(max-width:700px){:root{--res-photo-gap:50px}}

/* Remove unused space above the laundry photograph */
.res-laundry-feature>img{aspect-ratio:auto}

/* Remove unused space above the private patio photograph */
.res-patio-feature>img{aspect-ratio:auto}

@media(max-width:960px){.res-hero{background-image:url('../img/residences/hero-960.webp')}.res-scroll-photo{background-image:var(--res-scroll-image-small,var(--res-scroll-image))}}

/* Discoverable photographs with the same fixed-image scrolling and mobile sizing. */
.res-hero{background-image:none;clip-path:inset(0)}
.res-hero:before{z-index:1}
@media(max-width:700px){.res-hero>.royale-background-photo{position:absolute;width:100%;height:100%}}
@media(min-width:701px){
.res-scroll-photo{background-image:none;aspect-ratio:var(--royale-photo-ratio);clip-path:inset(0)}
.res-scroll-photo>img{visibility:visible;position:fixed;inset:0;width:100%;height:100vh;aspect-ratio:auto;max-height:none;object-fit:cover;object-position:center;pointer-events:none}
}
@media(max-width:700px){.res-scroll-photo{background-image:none}}

/* Center residences photos 5, 6, 8 and 9 on phones. */
@media(max-width:700px){
.res-entrance-photo>img,.res-feature:not(.res-feature-right)>img,.res-laundry-feature>img{object-position:center center;margin-left:auto;margin-right:auto;justify-self:center}
}

/* Show the full first residences photograph on phones. */
@media(max-width:700px){
.res-hero{height:auto;min-height:0;aspect-ratio:2048/1365}
.res-hero>.royale-background-photo{object-fit:contain}
}

/* Full-width mobile residences photos 5, 6, 8, 9 and 10. */
@media(max-width:700px){
.res-split.inverse,.res-feature{width:100%;max-width:none}
.res-split.inverse .res-entrance-photo{width:100%}
.res-split.inverse .res-entrance-photo>img,.res-feature>img{width:100%;height:auto;max-height:none;aspect-ratio:auto;object-fit:contain;object-position:center}
.res-split.inverse .res-copy.bottom,.res-feature-caption{width:90%;max-width:90%;margin-left:auto;margin-right:auto}
}

/* Desktop residences: covered full-width openings and natural photo proportions. */
@media(min-width:701px){
  .res-scroll-photo{
    width:100%;
    min-height:0;
    height:calc(100svh - 68px - 112px);
    aspect-ratio:auto;
  }
  .res-scroll-photo>img{
    top:0;
    bottom:auto;
    width:100%;
    height:100svh;
    max-height:none;
  }
  .res-split.inverse .res-entrance-photo>img,.res-feature>img{
    height:auto;
    max-height:none;
    aspect-ratio:auto;
    object-fit:contain;
  }
}

/* Desktop: the green contact box slides over the Private Patios section. */
@media(min-width:701px){
  .res-patio-feature{position:sticky;top:68px;z-index:1}
  #res-contact{position:relative;z-index:2}
  #res-contact+.res-photo{position:relative;z-index:2;background:#1f2d30}
}

/* Version 144: match desktop openings to the existing pinned image height. */
@media(min-width:701px){
  .res-scroll-photo{height:100svh;min-height:0}
}
