/*------------------------------------*\
    
    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;
    z-index: 1;
}

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

.image-text .flex-row {
    --bs-gutter-x: 35px;
    --bs-gutter-y: 35px;
    align-items: center;
}

.image-text__text {}

.image-text__img {
    position: relative;
    height: 213px;
}

.image-text__img img {
    border-radius: 35px;
}

.image-text__top-curve {
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    height: auto;
    z-index: -1;
}

.video-bttn {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: rgba(75,71,144,0.55);
    border-radius: 35px;
}

.video-bttn svg {
    width: 90px;
    height: auto;
    transition: all .3s;
    border-radius: 50%;
    border-radius: 91px;
    box-shadow: 0 10px 20px 0 rgba(0, 0, 0, 0.10);
}

.bg-green .video-bttn,
.bg-gradient .video-bttn {
    background: rgba(0,128,127,0.55);
}

.bg-white + .image-text .image-text__top-curve path {
    fill: #fff;
}

.bg-green + .image-text .image-text__top-curve path {
    fill: #F1FCFA;
}

.bg-purple + .image-text .image-text__top-curve path {
    fill: #F5F4FA;
}

@media (min-width: 768px) {
    .image-text__img {
        height: 435px;
    }
}

@media (min-width: 1200px) {
    .image-text .flex-row {
        --bs-gutter-x: 32px;
        --bs-gutter-y: 32px;
    }

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

    .image-text__img {
        height: auto;
    }

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

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

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

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

    .image-text__text {
        width: calc(100% + 8px);
    }
}