/* Spacious project previews and the photo-led R Homes collection. */
#detail-dialog:has(.project-explorer){width:min(1360px,94vw);max-width:none;max-height:91svh;padding:0;border:0;background:#f4f1ea;color:#282c2d;border-radius:0;overflow:auto;overscroll-behavior:contain}
#detail-dialog:has(.project-explorer) #detail-content{padding:0;margin:0}
#detail-dialog:has(.project-explorer) .dialog-close{position:sticky;top:18px;float:right;z-index:5;margin:18px 20px -66px 0;background:#f4f1ea;color:#282c2d;border:1px solid #282c2d35;box-shadow:0 3px 20px #00000010}
[dir=rtl] #detail-dialog:has(.project-explorer) .dialog-close{float:left;margin:18px 0 -66px 20px}
.project-explorer{font-family:inherit;line-height:1.5}
.project-explorer button,.project-explorer a{-webkit-tap-highlight-color:transparent}
.project-explorer button:focus-visible,.project-explorer a:focus-visible,.project-explorer-image:focus-visible{outline:2px solid #91745a;outline-offset:5px}
.project-explorer h2{font-size:clamp(34px,3.7vw,64px);line-height:1.08;letter-spacing:-.045em;margin:16px 0 25px;font-weight:400}
.project-explorer h2:focus{outline:none}
.project-explorer-preview{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(300px,1fr);min-height:min(720px,82svh)}
.project-explorer-media{position:relative;background:#dfddd6;min-width:0;display:flex;align-items:center;justify-content:center;overflow:hidden}
.project-explorer-image{width:100%;height:100%;min-height:560px;display:flex;align-items:center;justify-content:center;touch-action:pan-y}
.project-explorer-main-image{display:block;width:100%;height:100%;max-height:82svh;object-fit:contain;object-position:center;user-select:none}
.project-explorer-copy{padding:76px clamp(26px,3.3vw,54px) 40px;display:flex;flex-direction:column;align-items:flex-start}
.project-explorer-eyebrow{font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:#6f6c65;margin:0;line-height:1.8}
.project-explorer-eyebrow>span{display:block}
.project-explorer-brief{font-size:15px;line-height:1.65;max-width:38ch;margin:0 0 28px;color:#625f58}
.project-explorer-facts{display:grid;grid-template-columns:1fr;gap:15px;width:100%;padding:22px 0;margin:0 0 20px;list-style:none;border-top:1px solid #282c2d24;border-bottom:1px solid #282c2d24}
.project-explorer-facts li{display:flex;align-items:center;gap:13px;font-size:13px;line-height:1.4}
.project-explorer-facts svg{width:24px;height:24px;flex:0 0 24px;color:#91745a}
.project-explorer-map{display:inline-flex;align-items:center;justify-content:space-between;gap:30px;min-height:48px;font-size:13px;text-decoration:none;border-bottom:1px solid #91745a;color:#282c2d;margin-top:auto;transition:color .3s}
.project-explorer-map:hover{color:#91745a}
.project-explorer-map>span{font-size:22px;transition:transform .4s}
.project-explorer-map:hover>span{transform:translate(3px,-3px)}
.project-explorer-photo-controls{position:absolute;bottom:22px;inset-inline:22px;display:flex;justify-content:center;align-items:center;gap:18px;direction:ltr}
.project-explorer-photo-controls button{width:44px;height:44px;display:grid;place-items:center;border-radius:50%;background:#f4f1eaf2;border:1px solid #282c2d33;color:#282c2d;font-size:21px;cursor:pointer;transition:background .25s}
.project-explorer-photo-controls button:hover{background:white}
.project-explorer-counter{font-variant-numeric:tabular-nums;min-width:46px;text-align:center;font-size:12px;color:#282c2d;background:#f4f1eaf2;border-radius:30px;padding:8px 10px}
.project-explorer-back{padding:22px 28px;display:flex;align-items:center;gap:13px;font:inherit;font-size:12px;letter-spacing:.04em;border:0;background:none;color:#625f58;cursor:pointer;min-height:68px}
.project-explorer-back>span{font-size:22px}
.project-explorer-detail:has(.project-explorer-back) .project-explorer-copy{padding-top:36px}
.project-explorer-detail:has(.project-explorer-back) .project-explorer-image{min-height:500px}
.project-explorer-collection{padding:clamp(30px,4vw,64px)}
.project-explorer-heading{padding-inline-end:70px;max-width:770px;margin-bottom:40px}
.project-explorer-heading h2{margin-bottom:20px}
.project-explorer-intro{font-size:16px;color:#625f58;max-width:52ch}
.project-explorer-homes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:36px 18px;margin-bottom:38px}
.project-explorer-home{font:inherit;color:inherit;text-align:start;border:0;background:none;padding:0;cursor:pointer;display:flex;flex-direction:column;align-items:stretch}
.project-explorer-home-image{position:relative;width:100%;aspect-ratio:4/3;background:#dedbd2;overflow:hidden;display:block;margin-bottom:16px}
.project-explorer-home-image img{display:block;width:100%;height:100%;object-fit:contain;transition:opacity .4s}
.project-explorer-home-arrow{position:absolute;inset-inline-end:12px;bottom:12px;width:34px;height:34px;display:grid;place-items:center;border-radius:50%;color:#282c2d;background:#f4f1eae8;font-size:20px;transition:transform .5s}
.project-explorer-home:hover .project-explorer-home-arrow{transform:translate(2px,-2px)}
.project-explorer-home-location{color:#77736c;font-size:10px;letter-spacing:.08em;text-transform:uppercase}
.project-explorer-home-name{font-size:26px;letter-spacing:-.035em;line-height:1.2;margin:5px 0 7px}
.project-explorer-home-fact{font-size:12px;line-height:1.5;color:#77736c}
@media(min-width:761px){.sticky-project-photo[data-photo="home-r16"] .gallery-project>img{object-position:center 45%}}
@media(max-width:1000px){.project-explorer-preview{grid-template-columns:minmax(0,1.2fr) minmax(280px,1fr)}.project-explorer-copy{padding-inline:28px}.project-explorer-image{min-height:480px}.project-explorer-homes{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){
 #detail-dialog:has(.project-explorer){width:calc(100vw - 20px);max-height:calc(100svh - 24px)}
 #detail-dialog:has(.project-explorer) .dialog-close{top:12px;margin:12px 12px -58px 0;width:42px;height:42px}
 [dir=rtl] #detail-dialog:has(.project-explorer) .dialog-close{margin:12px 0 -58px 12px}
 .project-explorer-preview{display:flex;flex-direction:column;min-height:0}
 .project-explorer-media{padding:56px 0 0;background:#e3e0d8}
 .project-explorer-image,.project-explorer-detail:has(.project-explorer-back) .project-explorer-image{height:auto;min-height:0}
 .project-explorer-main-image{width:100%;height:auto;max-height:65svh;object-fit:contain}
 .project-explorer-media:has(.project-explorer-photo-controls){padding-bottom:68px}
 .project-explorer-photo-controls{bottom:12px;inset-inline:14px;gap:16px}
 .project-explorer-copy,.project-explorer-detail:has(.project-explorer-back) .project-explorer-copy{padding:30px 24px 36px}
 .project-explorer h2{font-size:40px;margin:13px 0 20px}
 .project-explorer-brief{font-size:14px;max-width:none;margin-bottom:22px}
 .project-explorer-facts{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 15px;margin-bottom:20px}
 .project-explorer-facts li{align-items:flex-start;flex-direction:column;gap:8px;font-size:12px}
 .project-explorer-map{font-size:13px;min-height:45px}
 .project-explorer-back{padding:18px 24px;min-height:66px;padding-inline-end:70px}
 .project-explorer-detail:has(.project-explorer-back) .project-explorer-media{padding-top:0}
 .project-explorer-collection{padding:62px 22px 32px}
 .project-explorer-heading{padding:0;margin-bottom:28px}
 .project-explorer-intro{font-size:14px}
 .project-explorer-homes{gap:26px 12px}
 .project-explorer-home-image{margin-bottom:12px}
 .project-explorer-home-name{font-size:22px;margin:4px 0 6px}
 .project-explorer-home-fact{font-size:11px}
 .project-explorer-home-location{font-size:9px;letter-spacing:.04em}
 .project-explorer-home-arrow{width:28px;height:28px;font-size:16px;inset-inline-end:8px;bottom:8px}
}
@media(max-width:370px){.project-explorer-homes{grid-template-columns:1fr}.project-explorer-home-name{font-size:26px}}
@media(prefers-reduced-motion:reduce){.project-explorer *, .project-explorer *::after{animation:none!important;transition:none!important}}
/* The close control belongs to the dialog shell; only its content scrolls. */
#detail-dialog:has(.project-explorer){overflow:hidden;height:auto;max-height:91svh}
#detail-dialog:has(.project-explorer) #detail-content{max-height:91svh;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-gutter:stable}
#detail-dialog:has(.project-explorer) .dialog-close{position:absolute;top:14px;right:16px;left:auto;float:none;margin:0;width:46px;height:46px;z-index:20;background:#f4f1ea;box-shadow:0 2px 18px #0002}
[dir=rtl] #detail-dialog:has(.project-explorer) .dialog-close{float:none;left:auto;right:16px;margin:0}
.project-explorer-preview{min-height:0;grid-template-columns:minmax(0,1.4fr) minmax(300px,1fr)}
.project-explorer-media{padding:0}.project-explorer-image{position:relative;display:flex;padding:0;border:0;background:#e3e0d8;cursor:zoom-in;min-height:440px;max-height:72svh}
.project-explorer-main-image{max-height:72svh;object-fit:contain}.project-image-enlarge{position:absolute;bottom:22px;right:22px;display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:#f4f1eae8;color:#282c2d;font-size:25px}
.project-explorer-media:has(.project-explorer-photo-controls) .project-image-enlarge{bottom:auto;top:22px;right:22px}
.project-explorer-copy{padding:76px 36px 42px;justify-content:center}.project-explorer-property{font-size:12px;line-height:1.7;letter-spacing:.03em;margin:0 0 20px;color:#91745a}.project-explorer-copy .project-explorer-map{margin-top:10px}
.project-explorer-details{padding:44px clamp(24px,4vw,64px) 56px}.project-section-heading{margin-bottom:25px}.project-section-heading h3,.project-explorer-story h3{font-size:clamp(25px,2.5vw,36px);font-weight:400;letter-spacing:-.035em;line-height:1.15;margin:8px 0 15px}
.project-explorer-facts{grid-template-columns:repeat(3,minmax(0,1fr));gap:27px;margin:0 0 40px;padding:28px 0}.project-explorer-facts li{align-items:flex-start;flex-direction:column;gap:12px;font-size:14px;line-height:1.5}.project-explorer-facts svg{width:28px;height:28px}
.project-explorer-story{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 48px;margin-bottom:48px}.project-explorer-story p{font-size:15px;line-height:1.8;color:#625f58;max-width:53ch;margin:0}.project-explorer-story:empty{display:none}
.project-exterior-gallery{margin:12px 0 24px}.project-exterior-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;align-items:start}.project-exterior-grid button{font:inherit;border:0;padding:0;background:none;text-align:start;cursor:zoom-in;color:inherit;min-width:0}.project-exterior-grid img{width:100%;height:auto;max-height:65svh;object-fit:contain;background:#e3e0d8;display:block}.project-exterior-grid button>span{display:flex;justify-content:space-between;margin-top:10px;font-size:11px;color:#706b63;line-height:1.5}.project-exterior-grid button:only-child{grid-column:1/-1;max-width:900px;width:100%;margin:auto}
.project-photo-viewer{padding:0 26px 24px;background:#e5e1d8;min-height:70svh}.project-photo-return{font:inherit;border:0;border-bottom:1px solid #282c2d44;background:none;display:inline-flex;align-items:center;min-height:48px;color:#282c2d;font-size:12px;margin:14px 70px 16px 0;padding:0 8px}.project-viewer-canvas{display:flex;justify-content:center;align-items:center;min-height:45svh;height:58svh;touch-action:pan-y}.project-viewer-canvas img{width:100%;height:100%;max-height:none;object-fit:contain}.project-viewer-footer{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 0 4px}.project-viewer-caption{font-size:12px;line-height:1.6;color:#625f58}.project-viewer-footer .project-explorer-photo-controls{position:static;gap:12px}.project-photo-strip{display:flex;gap:10px;overflow:auto;padding:18px 2px 4px;scrollbar-width:thin}.project-photo-strip button{width:80px;height:58px;padding:0;flex:0 0 80px;opacity:.5;background:#dedbd2;border:2px solid transparent;cursor:pointer}.project-photo-strip button[aria-pressed=true]{border-color:#91745a;opacity:1}.project-photo-strip img{display:block;width:100%;height:100%;object-fit:contain}
@media(max-width:1000px){.project-explorer-facts{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){#detail-dialog:has(.project-explorer){max-height:calc(100svh - 24px)}#detail-dialog:has(.project-explorer) #detail-content{max-height:calc(100svh - 24px)}#detail-dialog:has(.project-explorer) .dialog-close{top:12px;right:12px;margin:0;width:42px;height:42px}[dir=rtl] #detail-dialog:has(.project-explorer) .dialog-close{right:12px;margin:0}.project-explorer-preview{display:flex;flex-direction:column}.project-explorer-media{padding-top:62px}.project-explorer-image,.project-explorer-detail:has(.project-explorer-back) .project-explorer-image{height:auto;min-height:0;max-height:none;width:100%}.project-explorer-main-image{max-height:60svh;height:auto;width:100%}.project-explorer-copy,.project-explorer-detail:has(.project-explorer-back) .project-explorer-copy{padding:28px 24px 12px}.project-explorer-details{padding:28px 24px 36px}.project-explorer-facts{gap:24px 18px;padding:24px 0;margin-bottom:30px}.project-explorer-facts li{font-size:12px}.project-explorer-story{grid-template-columns:1fr;gap:28px;margin-bottom:32px}.project-explorer-story p{font-size:14px}.project-section-heading{margin-bottom:20px}.project-exterior-grid{grid-template-columns:1fr;gap:25px}.project-explorer-detail:has(.project-explorer-back) .project-explorer-media{padding-top:0}.project-photo-viewer{padding:0 14px 20px}.project-photo-return{margin-top:12px}.project-viewer-canvas{height:56svh;min-height:30svh}.project-viewer-footer{flex-wrap:wrap;gap:10px}.project-viewer-footer .project-explorer-photo-controls{margin-inline-start:auto}.project-explorer h2{font-size:36px}}
.project-slider-caption{position:absolute;top:18px;left:18px;right:72px;width:max-content;max-width:calc(100% - 90px);margin:0;padding:7px 12px;border-radius:20px;background:#f4f1eae8;font-size:11px;line-height:1.5;color:#282c2d;pointer-events:none}
.project-explorer-media:has(.project-explorer-photo-controls) .project-image-enlarge{top:18px}
@media(max-width:760px){.project-slider-caption{top:68px;left:12px;font-size:10px;max-width:calc(100% - 84px)}.project-explorer-media:has(.project-explorer-photo-controls) .project-image-enlarge{top:68px}.project-explorer-detail:has(.project-explorer-back) .project-slider-caption{top:10px}.project-explorer-detail:has(.project-explorer-back) .project-explorer-media:has(.project-explorer-photo-controls) .project-image-enlarge{top:10px}}

/* R Homes detail photos are static, fully framed illustrations of the project. */
.project-explorer-image-static{cursor:default;aspect-ratio:4/3;min-height:0;height:auto;max-height:none}.project-explorer-image-static .project-explorer-main-image{width:100%;height:auto;object-fit:contain;transform:none!important;transition:none!important}.project-explorer-image-static:hover .project-explorer-main-image{transform:none!important}

/* Explicit expand controls and a photo view filling the project dialog. */
.project-explorer .project-image-enlarge{top:18px!important;right:18px!important;bottom:auto!important;z-index:4;display:grid;place-items:center;width:44px;height:44px;padding:11px;border:1px solid #282c2d30;background:#f4f1eaf2;color:#282c2d;border-radius:50%;cursor:pointer;box-shadow:0 2px 12px #0002;transition:background .3s,transform .3s}
.project-image-enlarge svg{width:22px;height:22px}.project-image-enlarge:hover{background:#fffaf2;transform:scale(1.06)}.project-image-enlarge:focus-visible,.project-photo-close:focus-visible{outline:2px solid #07866f;outline-offset:3px}
#detail-dialog:has(.project-photo-viewer){height:91svh;overflow:hidden}
#detail-dialog:has(.project-photo-viewer) .dialog-close{display:none}
#detail-dialog:has(.project-photo-viewer) #detail-content{height:100%;max-height:none;overflow:hidden}
.project-photo-viewer{position:relative;height:100%;min-height:0;padding:0;background:#e5e1d8;isolation:isolate}
.project-photo-viewer .project-viewer-canvas{height:100%;min-height:0;padding:0;display:flex;align-items:center;justify-content:center}
.project-photo-viewer .project-viewer-canvas img{width:100%;height:100%;max-height:none;object-fit:contain}
.project-photo-close{position:absolute;top:16px;right:16px;z-index:5;display:grid;place-items:center;width:46px;height:46px;padding:0;border:1px solid #282c2d35;border-radius:50%;background:#f4f1eaf2;color:#282c2d;font:300 28px/1 var(--sans);box-shadow:0 2px 18px #0002;cursor:pointer}
.project-photo-return{position:absolute;top:16px;left:16px;right:auto;z-index:4;margin:0;min-height:44px;padding:0 14px;border:1px solid #282c2d30;border-radius:24px;background:#f4f1eaf2;color:#282c2d}
.project-photo-viewer .project-viewer-footer{position:absolute;left:18px;right:18px;bottom:16px;padding:0;gap:16px;pointer-events:none}
.project-viewer-footer .project-viewer-caption{margin:0;padding:8px 12px;border-radius:18px;background:#f4f1eae8;max-width:65%;font-size:11px}
.project-photo-viewer .project-explorer-photo-controls{pointer-events:auto;padding:5px;border-radius:30px;background:#f4f1eae8;margin-inline-start:auto}
@media(max-width:760px){.project-explorer .project-image-enlarge{top:10px!important;right:12px!important;width:42px;height:42px}.project-explorer-media>.project-slider-caption{max-width:calc(100% - 80px)}#detail-dialog:has(.project-photo-viewer){height:calc(100svh - 24px)}.project-photo-close{top:12px;right:12px;width:42px;height:42px}.project-photo-return{top:12px;left:12px;font-size:11px;padding:0 11px}.project-photo-viewer .project-viewer-footer{left:12px;right:12px;bottom:12px}.project-viewer-footer .project-viewer-caption{max-width:100%;width:max-content}.project-photo-viewer .project-viewer-footer{align-items:flex-end}}
@media(prefers-reduced-motion:reduce){.project-image-enlarge{transition:none}.project-image-enlarge:hover{transform:none}}
