/* Scope: the image figure of GM-owned product cards, including hover images. */
figure.gm-listing-image > .ct-media-container {
    --theme-object-fit: contain;
    --aspect-ratio: 1 / 1;
    position: relative;
    display: block;
    width: 100%;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
    overflow: hidden;
    background: #f3f3f3;
}
figure.gm-listing-image > .ct-media-container img {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain !important;
    object-position: center center !important;
    transform: none !important;
}
figure.gm-listing-image > .ct-media-container picture {
    display: block;
    width: 100%;
    height: 100%;
}

/* JD: extend its grey backdrop above a bottom-aligned, uncropped photograph. */
figure.gm-listing-image.gm-listing-image-jd > .ct-media-container {
    background: #ededed;
}
figure.gm-listing-image.gm-listing-image-jd > .ct-media-container img {
    object-position: center bottom !important;
}
