/*------------------------------------*\
    
    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 .flex-row {
    align-items: center
}

.image-text__text {
    margin-bottom: 20px;
}

.image-text__img {
    position: relative;
    height: auto;
}

.image-text__img img {
    border-radius: var(--border-radius);
}

.image-text__pattern {
    position: absolute;
    width: 92px;
    height: auto;
    left: -15px;
    bottom: -15px;
}

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

.image-text__pattern path {
    fill: var(--secondary-color);
}

.bg-blue .image-text__pattern path {
    fill: var(--white);
}


.video-bttn {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(31,47,77,0.5);
}

.image-text__img .video-bttn {
    border-radius: var(--border-radius);
}

.video-bttn__icon {
    width: 77px;
    height: 77px;

    svg {
        width: 100%;
        height: auto;
        transform: scale(1);
        transition: all .3s;
    }
}

@media (min-width: 768px) {
    
    .image-text__text {
        margin-bottom: 32px;
    }

    .image-text__img {
        height: auto;
    }

    .image-text__pattern {
        width: 167px;
        left: -25px;
        bottom: -25px;
    }

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

    .video-bttn__icon {
        width: 120px;
        height: 120px;
    }
}

@media (min-width: 1200px) {
    .flex-opposite {
        flex-direction: row-reverse;
    }
    
    .image-text__text {
        margin-bottom: 0;
    }

    .image-text--left .image-text__text {
        padding-left: 20px;
    }

    .image-text--right .image-text__text {
        padding-right: 20px;
    }

    .image-text__img {
        height: auto;
    }

    .image-text__pattern {
        width: 267px;
        left: -60px;
        bottom: -60px;
    }

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

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