/*------------------------------------*\
    
    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__text {
    padding-bottom: 52px;
}

.image-text__img__wrap {
    height: 325px;
    position: relative;
    margin-left: 15px;
    margin-bottom: 15px;
}

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

.image-text__img__wrap::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 15px;
    left: -15px;
    border-radius: var(--half-border-radius);
    border: 3px solid var(--secondary-color);
}

@media (min-width: 768px) {
    
    .image-text__img__wrap {
        height: 526px;
        margin-left: 25px;
        margin-bottom: 25px;
    }

    .image-text__img__wrap::after {
        top: 25px;
        left: -25px;
    }
}

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

    .image-text__text,
    .image-text__img {
        flex-grow: 1;
        display: flex;
        align-items: center;
        margin: 0;
    }

    .image-text__img {
        height: auto;
        margin: 0;
    }

    .sticky-media .image-text__img {
        align-items: flex-start;
    }

    .sticky-media .image-text__img__wrap {
        position: sticky;
        top: 170px;
    }

    .image-text__text {
        padding-bottom: 0;
    }
    
    .image-text__img__wrap {
        height: auto;
        margin-left: 0;
        margin-bottom: 0;
    }

    .image-text__img__wrap::after {
        top: 14px;
        left: auto;
    }

    .image-text--right .image-text__img__wrap {
        margin-left: 43px;
    }

    .image-text--left .image-text__img__wrap {
        margin-right: 43px;
    }

    .image-text--right .image-text__img__wrap::after {
        left: -22px;
    }

    .image-text--left .image-text__img__wrap::after {
        right: -22px;
    }

    .image-text--left .image-text__img__wrap img,
    .image-text--left .image-text__img__wrap::after {
        border-radius: var(--half-border-radius-rotate);
    }
}

@media (min-width: 1200px) {
    .image-text--right .image-text__img__wrap {
        margin-left: 93px;
    }

    .image-text--left .image-text__img__wrap {
        margin-right: 93px;
    }
}