/*------------------------------------*\
    
    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;
}

.image-gallery + .image-text {
    padding-top: 80px;
}

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

.image-text .flex-row {
    align-items: center;
    flex-direction: column-reverse;
}

.image-text--left .image-text__text {
    margin-top: 50px;
}

.image-text__img-full {
    height: 258px;
}

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

.image-text__two-image {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.content-two-left,
.content-two-right {
    width: calc(50% - 10px);
}

.content-two-left img {
    border-radius: 132px;
}

.content-two-right img {
    border-radius: 30px;
}

.image-text__three-image {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.content-three-left {
    width: calc(100% - 189px);
    height: 173px;
}

.content-three-right {
    width: 173px;
    height: 173px;
}

.content-three-bottom  {
    width: 100%;
    margin-top: 21px;
}

.content-three-bottom img,
.content-three-left img {
    border-radius: 30px;
}

.content-three-right img {
    border-radius: 50%;
}

.image-text__text {
    margin-top: 40px;
}

.no-1-image.image-text__img {
    width: 100%;
}

.image-text__half {
    margin-top: 60px;
}

@media (min-width: 768px) {
    .image-gallery + .image-text {
        padding-top: 100px;
    }

    .image-text__img-full {
        height: 438px;
    }

    .image-text__two-image {
        gap: 30px;
    }

    .content-two-left,
    .content-two-right {
        width: calc(50% - 15px);
    }    
        
    .content-three-left {
        width: calc(100% - 297px);
        height: 263px;
    }

    .content-three-right {
        width: 260px;
        height: 263px;
    }

    .content-three-bottom  {
        margin-top: 37px;
        height: 370px;
    }

    .image-text--left .image-text__half {
        margin-top: 0;
    }

    .image-text--right .image-text__content,
    .image-text--right .image-text__content .image-text__text {
        margin-top: 0;
    }
}

@media (min-width: 1200px) {
    .image-text__img-full {
        height: 489px;
    }

    .image-text--left .image-text__text {
        margin-top: 0;
    }

    .image-text--right .image-text__text {
        margin-bottom: 0;
    }

    .image-text__half {
        display: flex;
        align-items: center;
    }

    .content-two-left,
    .content-two-right {
        height: 520px;
    }
    
    .image-text__img-full img {
        height: 520px;
    }
}

@media (min-width: 1600px) {
    .image-gallery + .image-text {
        padding-top: 164px;
    }

    .image-text--left .image-text__img-full,
    .image-text--left .image-text__two-image {
        height: auto;
        padding-right: 23px;
    }

    .image-text--right .image-text__img-full,
    .image-text--right .image-text__two-image  {
        height: auto;
        padding-left: 23px;
    }

    .image-text .flex-row {
        flex-direction: row-reverse;
    }

    .content-three-left {
        width: calc(100% - 372px);
        height: 335px;
    }

    .content-three-right {
        width: 335px;
        height: 335px;
    }

    .image-text--left .image-text__three-image {
        padding-right: 46px;
    }

    .image-text--right .image-text__three-image {
        padding-left: 46px;
    }

    .image-text__half {
        margin-top: 0;
    }

}