/*------------------------------------*\
    
    Contained Image + Text Block Customizations - Global Styling

    The styles you add to this file will be applied to the 'Contained Image + Text' block. 
    If there is any reasons why you would need to style them separately,
    please create a block-specific stylesheet for it (don't forget to register that block-specific stylesheet in acf-start-blocks.php)

\*------------------------------------*/

.flex-row {
    display: flex;
    flex-wrap: wrap;
}

.image-text__container {
    position: relative;
    margin: 0 auto;
    max-width: 1854px;
    padding: 0 22px;
}

.image-text__img__wrap {
    position: relative;
    height: 217px;
}

.image-text__img__wrap--big {
    height: auto;
}

.image-text__img__wrap img {
    display: block;
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--drop-shadow);
}

.image-text__text__wrap {
    margin-top: var(--image-text-spacing);
}

.video-bttn {
    position: absolute;
    width: 100%;
    height: 100%;
    border: none;
    top: 0;
    left: 0;
    border-radius: var(--border-radius);
    background: var(--linear-black);
    display: flex;
    align-items: center;
    justify-content: center;
}

.half-and-half .video-bttn {
    border-radius: 0;
}

.video-bttn svg {
    width: 50px;
    height: auto;
    transition: all .3s;
}

.video-bttn svg path {
    fill: var(--medium);
}

.image-text--left .flex-opposite .image-text__text__wrap {
    margin-top: 0;
    margin-bottom: var(--image-text-spacing);
}

.image-text__text__wrap .btn-grp-wrapper {
    margin-bottom: 0;
}

@media (min-width: 768px) {
    .image-text__container {
        padding: 0 var(--section-margins);
    }

    .image-text__img__wrap {
        height: 359px;
    }

    .image-text__img__wrap--big {
        height: auto;
        margin: 0 -1.5px 0 -1.5px;
    }

    .video-bttn svg {
        width: 83px;
    }
}

@media (min-width: 1200px) {
    .image-text__container {
        padding: 0 63px;
    }

    .flex-opposite {
        flex-direction: row-reverse;
    }

    .image-text__img,
    .image-text__img__wrap,
    .image-text__text {
        flex-grow: 1;
        display: flex;
        align-items: center;
    }

    .image-text__img__wrap--big {
        position: sticky;
        top: 130px;
        margin: 0;
    }

    .image-text__text__wrap {
        margin-top: 0;
        max-width: 551px;
    }

    .image-text--left .image-text__text__wrap {
        margin-left: var(--image-text-spacing);
    }

    .image-text--right .image-text__text__wrap {
        margin-left: auto;
        margin-right: var(--image-text-spacing);
    }

    .video-bttn svg {
        width: 128px;
    }

    .video-bttn:hover svg {
        transform: scale(1.1);
    }

    .image-text--left .flex-opposite .image-text__text__wrap {
        margin-top: 0;
        margin-bottom: 0;
    }
}


@media (min-width: 1600px) {
    .image-text--left .image-text__text__wrap {
        margin-left: var(--image-text-spacing);
    }

    .image-text--right .image-text__text__wrap {
        margin-right: var(--image-text-spacing);
    }
}