.wp-block-tcwd-tablet-scroll .tcwd-tablet {
    position: relative; width: 100%; max-width: var(--tcwd-width,750px);
    aspect-ratio: 750 / 508; margin-inline: auto; isolation: isolate;
}
.wp-block-tcwd-tablet-scroll .tcwd-screen {
    position: absolute; inset: 5.51% 3.73% 6.10% 3.73%;
    overflow: hidden; background: #fff; border-radius: 1.5% / 2.3%;
}
.wp-block-tcwd-tablet-scroll .tcwd-frame {
    position: absolute; inset: 0; width: 100%; height: 100%;
    max-width: none; display: block; pointer-events: none; z-index: 2;
    margin: 0; padding: 0; border: 0; box-shadow: none;
}
.wp-block-tcwd-tablet-scroll .tcwd-screen .tcwd-shot {
    display: block; position: absolute; top: 0; left: 0;
    width: 100%; max-width: none; height: auto; min-height: 100%;
    object-fit: cover; object-position: top; margin: 0; padding: 0; border: 0;
    transform: translateY(0); transition: top 1s ease, transform 1s ease;
}
@media (any-hover: hover) {
    .wp-block-tcwd-tablet-scroll .tcwd-screen:hover .tcwd-shot {
        top: 100%; transform: translateY(-100%);
        transition: top var(--tcwd-duration,8s) linear, transform var(--tcwd-duration,8s) linear;
    }
}
.wp-block-tcwd-tablet-scroll .tcwd-screen:focus-visible .tcwd-shot {
    top: 100%; transform: translateY(-100%);
    transition: top var(--tcwd-duration,8s) linear, transform var(--tcwd-duration,8s) linear;
}
.wp-block-tcwd-tablet-scroll .tcwd-screen:focus-visible { outline: 3px solid #1685cf; outline-offset: -4px; }
@media (prefers-reduced-motion: reduce) {
    .wp-block-tcwd-tablet-scroll .tcwd-screen { overflow-y: auto; }
    .wp-block-tcwd-tablet-scroll .tcwd-screen .tcwd-shot,
    .wp-block-tcwd-tablet-scroll .tcwd-screen:hover .tcwd-shot,
    .wp-block-tcwd-tablet-scroll .tcwd-screen:focus-visible .tcwd-shot {
        position: static; transform: none; transition: none; top: auto;
    }
}

/* Native finger scrolling, including momentum scrolling on iOS. */
@media (hover: none), (any-pointer: coarse) {
    .wp-block-tcwd-tablet-scroll .tcwd-screen:not(.tcwd-mouse-mode) {
        overflow-x: hidden;
        overflow-y: auto;
        touch-action: pan-y pinch-zoom;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .wp-block-tcwd-tablet-scroll .tcwd-screen:not(.tcwd-mouse-mode)::-webkit-scrollbar {
        display: none;
    }
    .wp-block-tcwd-tablet-scroll .tcwd-screen:not(.tcwd-mouse-mode) .tcwd-shot {
        position: static;
        transform: none;
        transition: none;
        top: auto;
        user-select: none;
        -webkit-user-drag: none;
    }
}
