/*------------------------------------*\
    
    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 {
    gap: 25px;
}

.flex-opposite,
.image-text--left .flex-row {
    flex-direction: column-reverse;
}

.image-text__img {
    height: auto;
    position: relative;
}

.image-text__img img {
    width: 100%;
}

.bg-white .image-text__img,
.bg-light .image-text__img {
    box-shadow: -10px 10px 0px 0px var(--light-accent);
}

.bg-medium .image-text__img {
    box-shadow: -10px 10px 0px 0px var(--medium-accent);
}

.bg-dark .image-text__img {
    box-shadow: -10px 10px 0px 0px var(--dark-accent);
}

.video-bttn {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(var(--medium-accent-rgb),0.55);
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-bttn svg {
    width: 72px;
    height: auto;
    transition: all .3s;
}

.video-bttn svg rect {
    fill: var(--primary-color);
}

.video-bttn svg path {
    fill: var(--primary-text-color);
}

@media (min-width: 768px) {
    .image-text .flex-row {
        gap: 50px;
    }

    .image-text__img {
        height: auto;
    }

    .bg-white .image-text__img,
    .bg-light .image-text__img {
        box-shadow: -25px 25px 0px 0px var(--light-accent);
    }

    .bg-medium .image-text__img {
        box-shadow: -25px 25px 0px 0px var(--medium-accent);
    }

    .bg-dark .image-text__img {
        box-shadow: -25px 25px 0px 0px var(--dark-accent);
    }

    .video-bttn svg {
        width: 96px;
    }
}

@media (min-width: 1200px) {
    .image-text .flex-row {
        gap: 0;
    }

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

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

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

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

    .image-text__img {
        height: auto;
        max-width: 582px;
        margin: 0;
    }

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

    .image-text--right .image-text__img {
        margin-left: auto;
    }

    .bg-white.image-text--right  .image-text__img,
    .bg-light.image-text--right  .image-text__img {
        box-shadow: 25px 25px 0px 0px var(--light-accent);
    }

    .bg-medium.image-text--right  .image-text__img {
        box-shadow: 25px 25px 0px 0px var(--medium-accent);
    }

    .bg-dark.image-text--right .image-text__img {
        box-shadow: 25px 25px 0px 0px var(--dark-accent);
    }

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