/*------------------------------------*\
    
    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--full .flex-row {
    align-items: stretch;
}

.image-text__image__wrap {
    position: relative;
    height: 227px;
    z-index: 1;
    padding: 10px 0;
}

.image-text__image__wrap::before {
    content: '';
    position: absolute;
    width: 100px;
    height: 100px;
    top: 0;
    left: -10px;
    z-index: -1;
    border-radius: 30px 0 0 0;
    background: linear-gradient(135deg,  rgba(242,248,255,1) 0%,rgba(142,194,255,1) 100%);
}

.image-text__image__wrap::after {
    content: '';
    position: absolute;
    width: 100px;
    height: 100px;
    bottom: 0;
    right: -10px;
    z-index: -1;
    border-radius: 0 0 30px 0;
    background: linear-gradient(135deg,  rgba(142,194,255,1) 0%,rgba(242,248,255,1) 100%); 
}

.image-text__image__wrap img {
    border-radius: 20px;
}

.image-text__text__wrap {
    padding-top: 15px;
}

.image-text__image__video {
    width: 100%;
    height: 100%;
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 0;
    left: 0;
    z-index: 1;
    background: none;
}

.image-text__image__video svg {
    width: 105px;
    height: auto;
    transition: all ease-in-out 0.4s;
}

@media (min-width: 768px) {

    .image-text__image__wrap {
        height: 340px;
    }

    .image-text__image__wrap,
    .image-text__text__wrap {
        margin: 0 58px;
    }
    
}
@media (min-width: 1200px) {

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

    .image-text__image__wrap,
    .image-text__text__wrap {
        margin: 0 0;
    }

    .image-text__image__wrap {
        height: auto;
    }

    .image-text__text__wrap {
        max-width: 533px;
    }

    .image-text--left .image-text__text__wrap {
        margin-left: auto;
    }

    .image-text__image__full {
        height: 100%;
    }

    .image-text__image__full img {
        position: absolute;
        height: calc(100% - 20px);
    }

    .image-text__image__video svg {
        width: 134px;
    }

    .image-text__image__video:hover svg {
        width: 145px;
    }
}
