/* Shared overrides for the private residential previews; live project typography and palette stay intact. */
.visually-hidden{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.hero-copy>p:not(.eyebrow){max-width:31em}
.hero>.image-rights{width:auto;min-width:0;height:auto;right:5%;bottom:18px;padding:5px 10px}
.hero-foot{padding-bottom:55px}
.photo{background:#100c15}
.photo>.image-rights,.modal-image>.image-rights{right:0;bottom:0;width:auto;min-width:0;height:auto;min-height:0;padding:6px 9px}
.gallery button:first-child:not([hidden]){grid-column:1/-1}
.gallery button[hidden]{display:none!important}
.gallery button:nth-child(n) .photo img{object-fit:contain;aspect-ratio:auto;height:auto;max-height:680px}
.gallery button:not(:first-child) .photo{display:grid;place-items:center;overflow:hidden}
.gallery button:not(:first-child) img{max-height:490px}
.gallery button span{line-height:1.35}
.next-links{display:flex;justify-content:center;gap:16px;flex-wrap:wrap}
a.return{min-height:44px;display:inline-flex;align-items:center}
#viewer{overflow:auto}#close{min-height:44px;padding:4px 13px;border:1px solid #dcc17e}
.index-heading{padding:70px 9% 44px;background:#100c15}
.index-heading h1{font-size:clamp(44px,7vw,82px);font-weight:300;line-height:1.1;margin:14px 0 20px;letter-spacing:-.04em}
.index-heading>p:last-child{color:#b5b1a9}
.index-projects{padding:38px 7% 74px;display:grid;gap:30px}
.index-card{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);border:1px solid #fff2;background:#141017;align-items:stretch}
.index-card img{display:block;width:100%;height:100%;min-height:270px;object-fit:cover}
.index-card-copy{padding:28px clamp(20px,4vw,50px);align-self:center}
.index-card-copy h2{font-size:clamp(28px,3vw,42px);margin:10px 0}
.index-card-copy span{display:inline-block;color:#dcc17e;margin-top:7px;border-bottom:1px solid #c8a24b66}
.index-card:hover{border-color:#c8a24b}
@media(max-width:850px){
 header{align-items:center}nav a{display:block}nav{gap:9px 13px;justify-content:flex-start;font-size:11px}
 .hero>.image-rights{top:calc(100vw * var(--hero-ratio) - 25px);right:0;bottom:auto;padding:4px 7px}
 .stillwater-villa,.ember-villa{--hero-ratio:.428571}.solaria-residential-villas{--hero-ratio:.560825}
 .hero-foot{padding-bottom:20px}.gallery button:first-child:not([hidden]){grid-column:auto}
 .index-card{grid-template-columns:1fr}.index-card img{min-height:0;height:auto}
 .index-heading{padding:42px 6% 25px}.index-projects{padding:24px 5% 50px}
}
@media(max-width:380px){nav{font-size:10px;gap:8px 10px}.hero-copy h1{font-size:36px}}
@media(max-width:850px){
 .hero{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto auto}
 .hero>img{grid-area:1/1;width:100%;height:auto;align-self:start}
 .hero>.image-rights{grid-area:1/1;position:relative;inset:auto;align-self:end;justify-self:end;margin:0 0 5px 0}
 .hero-copy{grid-area:2/1}.hero-foot{grid-area:3/1}
}
