/* Crop viewports preserve source photographs and keep the approved compact bounds. */
.portfolio-frame{display:block;position:relative;overflow:hidden;flex:none;width:calc(var(--photo-height,230px)*var(--crop-ratio,.8));max-width:100%;aspect-ratio:var(--crop-aspect,4/5);background:var(--bone)}
.portfolio-frame>img{position:absolute;inset:auto;left:var(--cx,0%);top:var(--cy,0%);display:block;width:var(--cw,100%);height:var(--ch,100%);max-width:none;max-height:none;padding:0;margin:0;object-fit:fill;object-position:center;border:0}
.service-image-frame{--photo-height:min(280px,36svh);height:var(--photo-height);max-height:36svh}
.service-inline-photo .portfolio-frame{width:100%}
.service-detail-body figure .portfolio-frame{--photo-height:230px}
.gallery-item>.gallery-image-well{height:160px;min-height:0;padding:8px 10px 0;border:0;background:transparent;display:flex;align-items:center;justify-content:center}
.gallery-image-well .portfolio-frame{--photo-height:152px}
@media(max-width:1100px){.service-detail-body figure .portfolio-frame{--photo-height:215px}}
@media(max-width:900px){.service-image-frame{--photo-height:min(230px,32svh);max-height:32svh}}
@media(max-width:800px){.service-detail-body figure .portfolio-frame{--photo-height:180px}}
@media(max-width:560px){.gallery-item>.gallery-image-well{height:118px;padding:5px 7px 0}.gallery-image-well .portfolio-frame{--photo-height:110px}.service-detail-body figure .portfolio-frame{--photo-height:123px}}
@media(max-width:359px){.gallery-item>.gallery-image-well{height:105px}.gallery-image-well .portfolio-frame{--photo-height:97px}.service-detail-body figure .portfolio-frame{--photo-height:104px}}

/* Lineup refinement: slightly larger results, with the approved crops intact. */
#services{overflow-anchor:none}
.service-image-frame{--photo-height:min(310px,40svh);max-height:40svh}
@media(min-width:561px) and (max-width:900px){.service-image-frame{--photo-height:min(260px,36svh);max-height:36svh}}
@media(max-width:560px){
 .service-panel-inner{grid-template-columns:minmax(0,1fr) 125px}
 .service-inline-photo{width:125px;height:180px}
 .service-inline-photo .portfolio-frame{height:auto}
}
@media(max-width:359px){
 .service-panel-inner{grid-template-columns:minmax(0,1fr) 102px}
 .service-inline-photo{width:102px;height:150px}
}

/* Gallery cards: edge-to-edge photographs above the separate label bar. */
.gallery-item>.gallery-image-well{padding:0;overflow:hidden}
.gallery-image-well .portfolio-frame{width:100%;height:100%;max-width:none;aspect-ratio:auto}
.gallery-image-well .portfolio-frame>img{inset:0;width:100%;height:100%;object-fit:cover;object-position:var(--gallery-focus,50% 50%)}
.gallery-item[data-gallery="0"]{--gallery-focus:55% 53%}
.gallery-item[data-gallery="1"]{--gallery-focus:50% 48%}
.gallery-item[data-gallery="2"]{--gallery-focus:45% 40%}
.gallery-item[data-gallery="3"]{--gallery-focus:52% 44%}
.gallery-item[data-gallery="4"]{--gallery-focus:52% 54%}
.gallery-item[data-gallery="5"]{--gallery-focus:48% 48%}

/* Lineup: fill the existing photo wells, keeping captions and controls separate. */
.service-image-frame{padding:0;overflow:hidden}
.service-image-frame>.portfolio-frame,.service-inline-photo>.portfolio-frame{width:100%;height:100%;max-width:none;aspect-ratio:auto}
.service-inline-photo{padding:0;overflow:hidden}
.service-image-frame .portfolio-frame>img,.service-inline-photo .portfolio-frame>img{inset:0;width:100%;height:100%;max-width:none;max-height:none;padding:0;object-fit:cover;object-position:50% 50%}
.service-image-frame img[src*="work-blonding"],.service-inline-photo img[src*="work-blonding"]{object-position:55% 53%}
.service-image-frame img[src*="work-color"],.service-inline-photo img[src*="work-color"]{object-position:50% 48%}
.service-image-frame img[src*="work-curls"],.service-inline-photo img[src*="work-curls"]{object-position:45% 40%}
.service-image-frame img[src*="work-length"],.service-inline-photo img[src*="work-length"]{object-position:50% 48%}
