/*------------------------------------*\
    
    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;
    flex-direction: column-reverse;
}

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

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

.half-and-half-image {
    padding: var(--section-margins) 22px 0;
    height: 248px;
    display: flex;
    align-items: stretch;
    overflow: hidden;
}

/* Ensure thumbnail fills container height on mobile */
.half-and-half-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

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

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

.half-and-half--inner .half-and-half-image {
    min-height: 198px;
}


.half-and-half--contact__links {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    flex-direction: column;
    gap: 10px;
    margin: 0 0 15px;
}

.half-and-half--contact__links:last-child {
    margin: 0;
}

.half-and-half--contact__links a {
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    margin-left: 36px;
}

.half-and-half--contact__links a i,
.half-and-half--contact__links a img {
    color: var(--primary);
    font-size: 26px;
    position: absolute;
    left: -36px;
}

.half-and-half.bg-dark+.bg-dark {
    margin-top: -1px;
}

.mcleod-contact-details h4 {
    text-transform: none;
}

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

    .half-and-half-image {
        padding-left: 52px;
        padding-right: 52px;
        height: 320px;
        display: flex;
        align-items: stretch;
        overflow: hidden;
    }

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

    .half-and-half--inner .half-and-half-image {
        min-height: 372px;
    }

    .half-and-half--contact .half-and-half-image {
        min-height: 372px;
    }

    .half-and-half--contact__links {
        flex-direction: row;
        margin: 0 0 17px;
    }
}

@media (min-width: 1200px) {

    .flex-row {
        display: flex;
        flex-direction: row;
        align-items: stretch;
    }

    /* Vertically center text relative to the video/image on desktop */
    .half-and-half.image-size-contain {
        align-items: center;
    }

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

    .half-and-half-image {
        width: calc(50% - 17px);
        height: auto;
        padding: 0;
        position: relative;
        overflow: hidden;
    }

    .half-and-half.image-size-contain .half-and-half-image {
        height: 420px;
        margin-top: var(--section-margins);
        margin-bottom: var(--section-margins);
    }

    .half-and-half-text {
        width: calc(50% + 17px);
        padding-left: 63px;
        padding-right: 63px;
    }

    .half-and-half--inner .half-and-half-image {
        height: auto;
    }

    .half-and-half-image img {
        width: 100%;
        height: 100% !important;
        object-fit: cover;
        position: absolute;
        top: 0;
        left: 0;
    }

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

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

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

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

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

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

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

    .half-and-half--contact .half-and-half-image {
        min-height: 431px;
    }

    .half-and-half--contact {
        background: var(--cream);
    }

    .half-and-half-text__wrapper p {
        line-height: 1.562em;
    }

}

@media (min-width: 1367px) {

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

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

.fancybox__content {
    padding: 0 !important;
    background-color: transparent !important;
}