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

.image-text__img__wrap {
    position: relative;
    z-index: 1;
    height: 200px;
}

.image-text__img__wrap::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    bottom: -16px;
    background: var(--lighter-primary-background-color);
    border-radius: 4px;
    z-index: -1;
}

.bg-light-blue .image-text__img__wrap::before {
    background: #6992CC;
}

.bg-light-purple .image-text__img__wrap::before {
    background: var(--primary-color);
}

.image-text__img__wrap img {
    border-radius: 4px;
}

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

.image-text--left .image-text__img__wrap::before {
    left: -16px;
}

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

.image-text--right .image-text__img__wrap::before {
    right: -16px;
}

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

.image-text__video-bttn {
    position: absolute;
    background: none;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(53, 52, 56, 0.4);
    border-radius: 4px;
}

.image-text__video-bttn svg {
    width: 62px;
    height: auto;
}

@media (min-width: 768px) {

    .image-text__img {
        padding-bottom: 25px;
    }

    .image-text__img__wrap {
        height: 308px;
        width: 508px;
        margin: 0 auto !important;
    }

    .image-text__img__wrap::before {
        width: calc(100% - 25px);
        bottom: -25px;
    }

    .image-text--left .image-text__img__wrap {
        padding-left: 25px;
    }

    .image-text--left .image-text__img__wrap::before {
        left: 0;
    }

    .image-text--right .image-text__img__wrap {
        padding-right: 25px;
    }

    .image-text--right .image-text__img__wrap::before {
        right: 0;
    }

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

    .image-text__video-bttn {
        width: calc(100% - 25px);
    }

    .image-text--left .image-text__video-bttn {
        left: 25px;
    }

    .image-text__video-bttn svg {
        width: 95px;
    }
}

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

    .image-text__img__wrap {
        margin: 0 !important;
    }

    .image-text--right .image-text__img__wrap {
        margin-left: auto !important;
    }

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

    .image-text__video-bttn {
        width: calc(100% - 25px);
    }

    .image-text__video-bttn:hover {
        background: rgba(53, 52, 56, 0.4);
    }

    .image-text__video-bttn svg {
        width: 95px;
        transition: all .3s;
    }

    .image-text__video-bttn:hover svg {
        transform: scale(1.1);
    }

    .image-text {
        position: relative;
    }

    .image-text--left::after {
        content: '';
        position: absolute;
        top: 50%;
        height: 3px;
        margin-top: -1.5px;
        background: #5A4081;
        left: 0;
        width: calc(50% - 700px);
        opacity: 0.15;
    }

    .image-text--right::after {
        content: '';
        position: absolute;
        top: 50%;
        height: 3px;
        margin-top: -1.5px;
        background: #5A4081;
        right: 0;
        width: calc(50% - 700px);
        opacity: 0.15;
    }
}