body.swth-card-image-hover-scroll .swth-card-showcase-hover-frame {
    position: relative !important;
    overflow: hidden !important;
    isolation: isolate !important;
}

/* Uncropped card media: the card theme keeps the thumbnail in the flow with very
   specific rules, so the tall screenshot would stretch the frame to its own
   height and never scroll. When the frame carries the thumbnail ratio, the frame
   keeps that ratio and the screenshot leaves the flow. The frame class is
   repeated only to out-rank the card theme's selectors. */
body.swth-card-media-uncropped.swth-card-image-hover-scroll
    .swth-card-showcase-hover-frame.swth-card-showcase-hover-frame.swth-card-showcase-hover-frame.swth-card-showcase-hover-frame.swth-card-showcase-hover-frame[style*="--swth-card-showcase-frame-ratio"] {
    aspect-ratio: var(--swth-card-showcase-frame-ratio) !important;
    height: auto !important;
    min-height: 0 !important;
}

body.swth-card-media-uncropped.swth-card-image-hover-scroll
    .swth-card-showcase-hover-frame.swth-card-showcase-hover-frame.swth-card-showcase-hover-frame.swth-card-showcase-hover-frame.swth-card-showcase-hover-frame[style*="--swth-card-showcase-frame-ratio"]
    img.swth-card-showcase-hover-image {
    position: absolute !important;
    inset: 0 auto auto 0 !important;
}

body.swth-card-image-hover-scroll .swth-card-showcase-hover-layer {
    display: none !important;
}

/* The native block image supplies its own dimensions; only its pixels are hidden. */
body.swth-card-image-hover-scroll .swth-card-showcase-hover-frame img[data-swth-card-showcase-layout] {
    visibility: hidden !important;
}

/* Product-card base styles also set a generic 300 ms image transition. Keep
   the scroll module's duration in control for its tall preview image. */
body.swth-card-image-hover-scroll
    .swth-card-showcase-hover-frame
    img.swth-card-showcase-hover-image {
    position: absolute !important;
    inset: 0 auto auto 0 !important;
    z-index: 1 !important;
    display: block !important;
    width: 100% !important;
    min-width: 100% !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    object-fit: contain !important;
    object-position: top center !important;
    aspect-ratio: auto !important;
    opacity: 1 !important;
    filter: none !important;
    transform: translate3d(0, 0, 0) !important;
    transform-origin: top center !important;
    transition: transform var(--swth-card-showcase-duration, 6s) ease !important;
    will-change: auto !important;
}

body.swth-card-image-hover-scroll
    .swth-card-showcase-hover-frame.swth-card-showcase-hover-active:not(.swth-card-showcase-no-scroll)
    img.swth-card-showcase-hover-image {
    transform: translate3d(0, calc(-1 * var(--swth-card-showcase-distance, 0px)), 0) !important;
    will-change: transform !important;
}
