/*------------------------------------*\
    
    Half & Half Image + Text Block Customizations - Global Styling

    The styles you add to this file will be applied to the 'Half & Half Image + Text' block. 
    If there is any reasons why you would need to style this 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;
}

.half-and-half {
    padding-left: 22px;
    padding-right: 22px;
}

.half-and-half-image, 
.half-and-half-text {
    position: relative;
    width: 100%;
}

.half-and-half-text {
    padding-bottom: 52px;
}

.half-and-half-image {
    padding-left: 15px;
    padding-bottom: 15px;
}

.half-and-half-image__wrap {
    height: 325px;
    position: relative;
}

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

.half-and-half-image__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);
}

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

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

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

@media (min-width: 768px) {
    
    .half-and-half {
        padding-left: 52px;
        padding-right: 52px;
    }


    .half-and-half-image {
        padding-left: 25px;
        padding-bottom: 25px;
    }

    .half-and-half-image__wrap  {
        height: 526px;
    }

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

    .video-bttn svg {
        width: 98px;
    }
}
    
@media (min-width: 1025px) {

    .flex-opposite {
        flex-direction: row-reverse;
    }
    
    .half-and-half-image, 
    .half-and-half-text {
        position: relative;
        width: 50%;
    }
    
    .half-and-half-image img {
        position: absolute;
    }

    .half-and-half {
        padding-left: 0;
        padding-right: 0;
    }

    .half-and-half-text {
        padding: 0 63px;
    }

    .image-block-right .half-and-half-text {
        padding-right: 16px;
    }

    .image-block-left .half-and-half-text {
        padding-left: 16px;
    }

    .half-and-half-image {
        padding-left: 0;
        padding-bottom: 32px;
    }

   .image-block-right .half-and-half-image {
        padding-left: 63px;
    }

    .image-block-left .half-and-half-image {
        padding-right: 63px;
    }

    .half-and-half-image__wrap  {
        height: 100%;
    }

    .half-and-half-image__wrap::after {
        top: 32px;
        width: calc(100% + 36px);
    }

    .image-block-right .half-and-half-image__wrap img {
        border-radius: var(--half-border-radius-right);
    }

    .image-block-right .half-and-half-image__wrap::after {
        left: -36px;
        border-radius: var(--half-border-radius-right);
        border-right: 0;
    }

    .image-block-left .half-and-half-image__wrap img {
        border-radius: var(--half-border-radius-left);
    }

    .image-block-left .half-and-half-image__wrap::after {
        left: auto;
        right: -36px;
        border-radius: var(--half-border-radius-left);
        border-left: 0;
    }

    .half-and-half-text__wrapper {
        max-width: 616px;
    }

    .image-block-right  .half-and-half-text__wrapper {
        margin-left: auto;
    }

    .video-bttn:hover {
        background: none;
    }

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

@media (min-width: 1200px) {
    .image-block-right .half-and-half-image {
        padding-left: 123px;
    }

    .image-block-left .half-and-half-image {
        padding-right: 123px;
    }
}