body.swth-card-image-hover-scroll .swth-card-showcase-hover-frame {
    position: relative !important;
    overflow: hidden !important;
    isolation: isolate !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;
}

body.swth-style-layer.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;
}

html:not(.swth-card-showcase-respect-motion)
    body.swth-style-layer.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;
}

@media (prefers-reduced-motion: no-preference) {
    html.swth-card-showcase-respect-motion
        body.swth-style-layer.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;
    }
}

@media (prefers-reduced-motion: reduce) {
    html.swth-card-showcase-respect-motion
        body.swth-style-layer.swth-card-image-hover-scroll
        .swth-card-showcase-hover-frame
        img.swth-card-showcase-hover-image {
        transition: none !important;
    }
}
