/* Keep the complete scene inside photo fields. */
.photo-link{aspect-ratio:3/2;background:var(--paper)}
.photo-link img,.card-image img,.portfolio-card>img,.service-entry-photo img,.legacy-content .works img{object-fit:contain!important}
.card-image{aspect-ratio:3/2}
.service-card:hover .card-image img,.photo-link:hover img,.portfolio-card:hover>img,.review-document:hover img{transform:none!important}
.legacy-content .detail-main-photo{width:100%;height:auto!important;max-height:none;object-fit:contain}
.legacy-content .portfolio-card>img,.legacy-content .works img{aspect-ratio:4/3;background:var(--paper)}
.legacy-content .service-entry-photo img{aspect-ratio:3/2;background:var(--paper);max-height:none}
.hero-slide{background-color:#1b2526;background-image:var(--hero-image);background-size:cover;background-position:center;background-repeat:no-repeat}
.about-section{background-image:linear-gradient(90deg,#10181be8,#10181bc9),url('/redesign/images/banner-polymer-wide.webp')}
.workflow{background-image:linear-gradient(90deg,#10181bea,#10181bc9),url('/redesign/images/banner-topping-wide.webp')}
@media(max-width:800px){
 .about-section{background-image:linear-gradient(90deg,#10181be8,#10181bc9),url('/redesign/images/banner-polymer-mobile.webp')}
 .workflow{background-image:linear-gradient(90deg,#10181bea,#10181bc9),url('/redesign/images/banner-topping-mobile.webp')}
}


.legacy-content h1{overflow-wrap:anywhere;hyphens:auto}

@media(max-width:800px){
 .hero-controls button{width:44px;min-width:44px;height:44px;padding:0}
 .hero-controls,.hero-dots,.hero-arrows{gap:6px}
 .compact-panel{max-height:calc(100dvh - 100px)}
}


/* Catalog originals retain their own ratio; project previews match the 4:3 archive. */
.legacy-content .service-entry-photo{aspect-ratio:auto;align-self:start;background:transparent}
.legacy-content .service-entry-photo img{aspect-ratio:auto;width:100%;height:auto!important;max-height:none;display:block}
.legacy-content .service-project-photo{aspect-ratio:4/3}

