/* Uploaded 4:3 photos size their frames instead of inheriting a preset crop. */
:is(#av-site-shell, body) img[data-av-photo-4x3]:not(.av-compare-layer img):not(.acl-look-editorial img) {
    display: block;
    max-width: 100%;
    align-self: start;
    height: auto !important;
    min-height: 0 !important;
    max-height: none;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    contain: none;
    contain-intrinsic-size: none;
}

:is(#av-site-shell, body) figure:not(.acl-look-media):has(> img[data-av-photo-4x3]),
:is(#av-site-shell, body) .i2i-stage:has(> img[data-av-photo-4x3]) {
    align-self: start;
    height: auto;
    min-height: 0 !important;
    max-height: none;
    aspect-ratio: auto;
}

:is(#av-site-shell, body) .ag-results figure:not(.acl-look-media):has(> img[data-av-photo-4x3]) {
    padding: 0;
    overflow: hidden;
}

:is(#av-site-shell, body) .av-compare-stage:has(> .av-compare-before > img[data-av-photo-4x3]):has(> .av-compare-after > img[data-av-photo-4x3]) {
    box-sizing: content-box;
    height: auto;
    min-height: 0 !important;
    max-height: none;
    aspect-ratio: 4 / 3;
}

:is(#av-site-shell, body) .av-compare-stage:has(> .av-compare-before > img[data-av-photo-4x3]):has(> .av-compare-after > img[data-av-photo-4x3]) .av-compare-image {
    object-fit: contain;
    contain: none;
}


