/*------------------------------------*\
    
    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)

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

.image-text {
    position: relative;
    overflow: hidden;
}

.image-text--bottom-curve {
    padding-bottom: 92px;
}

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

.image-text .flex-row {
    align-items: center
}


.image-text__img {
    position: relative;
    z-index: 1;
}

.image-text__img--with-sml {
    padding-right: 22px;
}

.image-text__img img {
    border-radius: 15px;
    object-fit: cover;
}

.image-text__img__sml {
    width: 110px;
    position: absolute;
    right: -11px;
    bottom: -35px;
    z-index: 5;
    height: auto;
}

.image-text--left .image-text__text {
    margin-top: 61px;
    z-index: 1;
    position: relative;
}

.image-text--right .image-text__text {
    margin-bottom: 61px;
}

.video-bttn {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 15px;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(4,36,82,0.42);
}

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

.image-text__pattern {
    position: absolute;
    right: -205px;
    bottom: -139px;
    z-index: -1;
}

.image-text--left .image-text__pattern {
    left: -205px;
    right: auto;
}

.image-text__bottom-curve {
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 100%;
    height: auto;
}

.has-bg-dark-blue .image-text__bottom-curve path {
    fill: var(--dark-blue);
}

.has-bg-light-blue .image-text__bottom-curve path {
    fill: var(--light-blue);
}

.has-bg-white .image-text__bottom-curve path {
    fill: var(--white);
}

.image-text--right .flex-row {
    flex-direction: column-reverse;
}

@media (min-width: 768px) {
    .image-text--bottom-curve {
        padding-bottom: 125px;
    }

    .image-text__img--with-sml {
        padding-right: 78px;
    }

    .image-text__img__sml {
        width: 186px;
        right: 11px;
        bottom: -44px;
    }

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

@media (min-width: 1025px) {
    .image-text--right .flex-row {
        flex-direction: row-reverse;
    }

    .image-text__img--with-sml {
        padding-right: 0;
    }

    .image-text--left .image-text__text {
        margin-top: 0px;
    }

    .image-text--right .image-text__text {
        margin-bottom: 0px;
    }

    .image-text--left .image-text__img {
        margin-right: 29px;
    }

    .image-text--right .image-text__img {
        margin-left: 29px;
    }

    .image-text__img__sml {
        right: auto;
        bottom: -22px;
        left: -40px;
    }

    .image-text--right  .image-text__img__sml {
        right: -40px;
        left: auto;
    }

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

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