/* BLOCK: Video Zoom 2 */

.block-video-zoom-2 .wrap::after {
    content: '';
    display: block;
    height: 150vh;
    pointer-events: none;
    user-select: none;
}

.block-video-zoom-2 .sticky-wrapper {
    position: sticky;
    top: 0;
    height: 100vh;
    isolation: isolate;
}

.block-video-zoom-2 .sticky-wrapper > .text-content:first-child {
    text-align: center;
    max-width: 57.875rem;
    padding-block: 6.25rem;
    margin-inline: auto;
}

.block-video-zoom-2 .sticky-wrapper > .text-content:first-child :is(h6, .h6) {
    justify-content: center;
}

.block-video-zoom-2 .media-wrapper {
    position: absolute;
    inset: 0;
    margin-inline: calc(-1 * var(--offset, 0px));
    pointer-events: none;
    user-select: none;
    z-index: 1;
}

.block-video-zoom-2 .media-inner {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    aspect-ratio: 16 / 9;
    height: 43vh;
    isolation: isolate;
}

.block-video-zoom-2 .media-inner:after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.3) 100%);
    z-index: 1;
}

.block-video-zoom-2 .media-wrapper.is-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.block-video-zoom-2 .media-wrapper :is(.wp-video, .mejs-container, video, iframe) {
    display: block;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
}

.block-video-zoom-2 .sticky-wrapper .text-content-on-video {
    position: absolute;
    bottom: 4.6875rem;
    left: 5rem;
    max-width: 57.875rem;
    margin-inline: calc(-1 * var(--offset));
    transform: translateY(calc(100% + 4.6875rem));
    opacity: 0;
    transition: 300ms ease-out;
    transition-property: opacity, transform;
    z-index: 2;
}

.block-video-zoom-2 .sticky-wrapper .text-content-on-video.show {
    opacity: 1;
    transform: translateY(0);
}

@media screen and (width <= 620px) {
    .block-video-zoom-2 .wrap::after {
        content: unset;
    }
    .block-video-zoom-2 .sticky-wrapper {
        position: relative;
        height: auto;
    }
    .block-video-zoom-2 .sticky-wrapper > .text-content:first-child {
        padding-block: 0;
        margin-bottom: 3.75rem;
    }
    .block-video-zoom-2 .media-wrapper {
        position: static;
        margin: 0 calc(-1 * var(--offset));
    }
    .block-video-zoom-2 .media-inner {
        position: relative;
        inset: unset;
        transform: none;
        width: 100%;
        height: auto;
        aspect-ratio: 0.72;
    }
    .block-video-zoom-2 .sticky-wrapper .text-content-on-video {
        margin: 0;
        left: 0;
        bottom: 2.5rem;
        transform: none;
        opacity: 1;
    }
}