/*------------------------------------*\
    
    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 {
    position: relative;
    z-index: 2;
}


.image-text__text {
    padding-top: 30px;
}


.image-text__img {
    margin: 0 auto;
    width: 316px;
    padding-left: 36px;
    padding-top: 36px;
    position: relative;
    z-index: 1;
}

.image-text__img::after {
    content: '';
    position: absolute;
    z-index: -1;
    top: 0;
    left: 0;
    width: 299px;
    height: 239px;
    border: 2px solid rgba(35,52,92,0.25);
    border-radius: 22px;
}

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

.image-text--noshape .image-text__img {
    padding: 0;
}

.image-text--noshape .image-text__img::after {
    display: none;
}

.image-text--withshape .image-text__img img{
    min-height: 280px;
    width: auto;
}

.image-text__title {
    margin-bottom: 42px;
}

.image-text__title :last-child{
    margin-bottom: 0;
}

.image-text__text__bttn {
    text-align: center;
    margin-top: 40px;
}

.image-text--original-size .image-text__img img{
    width: auto;
    height: auto;
    min-width: auto;
}

.image-text--original-size .image-text__img{
    width: 100%;
}


@media (min-width: 768px) {
    .image-text__text__bttn {
        text-align: left;
    }
}

@media (min-width: 1200px) {
    .flex-opposite {
        flex-direction: row-reverse;
    }

    .image-text--original-size div.image-text__img img{
        width: auto;
        height: auto;
        min-width: auto;
        min-height: auto;
    }

    .image-text--withshape .image-text__img img{
        min-height: 470px;
        width: auto;
    }

    .image-text__img {
        margin: 0 0 0 0;
        width: 538px;
        padding-left: 73px;
        padding-top: 52px;
    }

    .image-text__img::after {
        width: 507px;
        height: 406px;
    }

    .image-text--right .image-text__img {
        margin-left: auto;
        text-align: center;
    }

    .image-text__text {
        padding-top: 0;
    }

     .image-text__text h2.extend {
        margin-right: -64px;
     }

    .image-text__title {
        margin-bottom: 60px;
        text-align: center;
    }

    .image-text__text--extend {
        margin-left: -32px;
    }

    .image-text__text--extend ul {
        max-width: 584px;
    }

    .image-text__text--extend-right {
        margin-right: -32px;
    }
    
}

@media (max-width: 1025px) {

    .image-text__img img{
        height: auto;
    }

}