/* Editorial and portfolio photographs retain their complete original frame. */
.closer .detail-photo,
.closer-inset .image-button,
.project-card .image-button,
.project-card:nth-child(even) .image-button{aspect-ratio:auto}
.closer .image-button img,
.project-card .image-button img{width:100%;height:auto;object-fit:contain}
.about-visual>img{width:100%;height:auto;aspect-ratio:auto;object-fit:contain;object-position:center}
.motion-ready .closer .image-button:hover img,
.motion-ready .project-card .image-button:hover img{transform:none}
.project-grid{align-items:start}
/* A squarer crop of the owner's favourite walls-and-planting photograph. */
.project-card .image-button[data-photo="5"]{aspect-ratio:1}
.project-card .image-button[data-photo="5"] img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 52%}
.gallery-image-wrap[data-photo="5"]{container-type:size}
.gallery-image-wrap :is(#gallery-image,.gallery-outgoing-image)[data-photo="5"]{width:min(100cqw,100cqh);height:min(100cqw,100cqh);object-fit:cover;object-position:50% 52%}
.hero-stage[data-photo="5"] .hero-image{animation:none;transform:none}
/* Static horizontal correction, kept consistent when the pool photo is enlarged. */
.image-button[data-photo="8"] img,
:is(#gallery-image,.gallery-outgoing-image)[data-photo="8"]{scale:.9 1;transform-origin:center}

/* Owner-supplied screenshots are displayed with the old carousel controls cropped out.
   Original files stay unchanged; one uniform scale preserves every photo's proportions. */
#project-grid.is-project-carousel>.project-card .image-button img[data-owner-photo]{width:min(100%,calc(var(--project-image-height,360px)*var(--source-aspect)));height:auto;max-height:none;aspect-ratio:var(--source-aspect);object-fit:contain;clip-path:inset(0 var(--crop-side) var(--crop-bottom))}
.gallery-image-wrap[data-owner-photo]{container-type:size}
.gallery-image-wrap :is(#gallery-image,.gallery-outgoing-image)[data-owner-photo]{width:min(100cqw,calc(100cqh*var(--source-aspect)));height:auto;max-height:none;aspect-ratio:var(--source-aspect);object-fit:contain;clip-path:inset(0 var(--crop-side) var(--crop-bottom))}

.closer .detail-photo img[data-owner-photo]{clip-path:inset(0 var(--crop-side) var(--crop-bottom))}

/* Frame the original driveway phone photo without its black bars or phone controls.
   The source remains unchanged; object-fit preserves the paving proportions. */
#project-grid.is-project-carousel>.project-card .image-button[data-photo="12"] img{width:min(100%,calc(var(--project-image-height,360px)*1035/1282));height:var(--project-image-height,360px);object-fit:cover;object-position:50% 55.1148%}
.gallery-image-wrap[data-photo="12"]{container-type:size}
.gallery-image-wrap :is(#gallery-image,.gallery-outgoing-image)[data-photo="12"]{width:min(100cqw,calc(100cqh*1035/1282));height:min(100cqh,calc(100cqw*1282/1035));object-fit:cover;object-position:50% 55.1148%}
