/* Preserve each standalone photo's proportions; eliminate forced letterboxing. */
body main img.sm-photo-natural{aspect-ratio:auto!important;object-fit:contain!important;width:100%!important;height:auto!important;max-height:none!important;border-radius:18px!important;display:block}
body main figure:has(>img.sm-photo-natural){aspect-ratio:auto!important;height:auto!important;align-self:center;overflow:hidden;border-radius:18px!important}
body main figure:has(>img[src$="washer-close.webp"]),body main figure:has(>img[src$="oven-close.webp"]){max-width:480px!important;margin-inline:auto!important}
/* Match installation cards to the photographic content, excluding white gutters. */
body main figure.sm-install-frame,body main .problem-grid:has(img[src*="/assets/install-20261003/"]) .topic-photo-v79{position:relative;aspect-ratio:4/3!important;border-radius:12px;overflow:hidden}
body main .problem-grid:has(img[src*="/assets/install-20261003/"]) .topic-photo-v79:not(.sm-install-frame)>img{width:100%!important;height:100%!important;aspect-ratio:auto!important;object-fit:cover!important}
body main figure.sm-install-frame>img{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:113.4751773%!important;max-width:none!important;height:auto!important;aspect-ratio:auto!important;clip-path:none!important;border-radius:0!important}
/* Taller editorial thumbnails preserve heads and controls, without uneven cards. */
body.sm-photo-tips .v24-topic-card>img{width:100%!important;height:auto!important;aspect-ratio:4/3!important;object-fit:cover!important;object-position:center top!important}
