/*------------------------------------*\
    
    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;
    justify-content: center;
}

.image-text__img,
.image-text__text {
    width: 100%;
    position: relative;
}

.image-text__img {
    height: 201px;
}

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

.image-text__text {
    border-radius: 0 0 3px 3px;
    padding: 20px 21px;
}

.image-text__text p {
    margin-bottom: 0;
}

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

    .image-text__text  {
        padding: 32px;
    }
}

@media (min-width: 1200px) {
    .image-text .flex-opposite {
        flex-direction: row-reverse;
    }
    
    .image-text__img {
        height: auto;
        width: calc(50% + 175px);
    }

    .image-text__img img{
        position: absolute;
        top: 0;
        left: 0;
    }

    .image-text__text {
        width: calc(50% - 175px);
        padding: 100px 50px;
    }

    .image-text--left .image-text__img img,
    .image-text--right .image-text__text {
        border-radius: 3px 0 0 3px;
    }

    .image-text--right .image-text__img img,
    .image-text--left .image-text__text {
        border-radius: 0 3px 3px 0;
    }

    .image-text__text p {
        margin-bottom: 24px;
    }

}

@media (min-width: 1600px) {
    .image-text__img {
        width: calc(50% + 337px);
    }

    .image-text__text {
        width: calc(50% - 337px);
        padding: 100px 69px;
    }
}