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

.image-text__img {
    margin-bottom: 25px;
}

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

.image-text__img__wrap img {
    border-radius: 16px;
}

.image-text__btn {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 16px;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(18,29,95,0.5);
}

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


.image-text.bg-teal .sub-title {
    color: #E09900;
}

.image-text__text .btn {
    margin-top: 5px;
}

.image-text--video .image-text__text h2 {
    font-size: 38px;
}

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

    .image-text__btn svg {
        width: 101px;
    }
}

@media (min-width: 1200px) {
    
    .image-text__img__wrap {
        height: 364px;
    }

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

    .image-text__btn:hover {
        background: rgba(18,29,95,0.5);
    }

    .image-text__btn:hover svg {
        transform: scale(1.1);
    }

    .image-text__text .btn {
        margin-top: 14px;
    }

    .image-text.bg-blue-gredient .sub-title {
        color: #F44601;
    }

    .image-text--video .image-text__text h2 {
        font-size: 40px;
    }
}