  /*------------------------------------*\
    
    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;
}

/* Contained Layout */
.half-and-half--contained .row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

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

.half-and-half-image {
    width: calc(100% - 44px);
    height: 208px;
    position: relative;
    margin: 0 auto;
}

.half-and-half-text {
    position: relative;
    padding: 20px 22px 0;
}

.half-and-half-text.right {
    margin-right: auto;
}

.half-and-half-text.left {
    margin-left: auto;
}

.half-and-half-text .tab-accordion__tab {
    width: 50%;
}

.image-stats {
    background: var(--medium);
    display: flex;
    /* flex-wrap: wrap; */
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
	width: 100%;
}

.image-stats__col {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.image-stats__no {
    font-size: 25px;
    line-height: 1em;
    color: var(--secondary-color);
    font-weight: bold;
}

.image-stats__info {
    font-size: 15px;
    line-height: 1em;
    color: var(--paragraph-text-color);
    font-weight: bold;
    text-transform: uppercase;
    max-width: 76px;
}

.video-bttn {
    gap: 16px;
    color: var(--white);
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-bttn svg {
    width: 44px;
    height: auto;
}

.video-bttn__image {
    animation: pulse 2s ease-in-out infinite;
    transition: all 0.3s ease-in-out;

    svg > * {
        transition: all 0.3s ease-in-out;
    }

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

        path {
            fill: var(--white);
        }
    }
}

.video-bttn__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.bg-dark a.video-bttn {
    color: var(--white);
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.video-bttn.layout-style__full-width{
    justify-content: center;
    align-items: center!important;
}

@media( max-width : 1199px ) {
    .layout-style__contained {
        justify-content: center;
        align-items: center!important;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.bottom_content {
	margin-top: 30px;
}

.half-and-half-media-elements {
    position: absolute;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    height: 100%;
    width: 100%;
    padding: 20px;
    gap: 20px;

    &.has-video:not(.has-statistics) {
        padding: 0;

        .video-bttn {
            padding: 20px;
            display: flex;
            align-items: center;
            height: 100%;
            width: 100%;
        }
    }
}

.image-text__half {
    position: relative;
}

@media (min-width: 768px) {

    .half-and-half-image {
        width: calc(100% - 104px);
        height: 416px;
    }

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

    .image-stats {
        /* right: 25px;
        bottom: 25px; */
        width: 340px;
    }

    .image-stats__no {
        font-size: 32px;
    }

    .video-bttn {
        font-size: 25px;
    }

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

    /* .image-block-right .image-stats {
        right: auto;
        left: 25px;
    } */

     .image-block-left .video-bttn {
        justify-content: center;
    }

    .image-block-left .half-and-half-media-elements {
        align-items: center;
    }
}



@media (min-width: 1200px) {

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

    .half-and-half-image {
        width: calc(50% - 8px);
        height: auto;
    }

    /* Fixed image height only when tabs are used — prevents image shifting when tab content height changes */
    /* .half-and-half--has-tabs .half-and-half-image {
        height: 813px;
    } */

    .half-and-half-image img {
        position: absolute;
    }

    .half-and-half--contained img {
        position: relative;
    }

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

    .half-and-half-text--spacing {
        padding-top: 90px;
        padding-bottom: 90px;
    }

    .half-and-half--contained .half-and-half-text {
        padding: 40px;
    }

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

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

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

    .half-and-half-text--spacing .tab-accordion__panel__content p {
        margin-bottom: 32px;
    }

    .image-stats {
        width: auto;
		gap: 35px;
    }

    .image-stats__no {
        font-size: 36px;
    }

    .video-bttn {
        gap: 6px;
    }

    .video-bttn__image {
        border-radius: 50%;
        background: var(--white);
        padding: 10px;
    }

    .video-bttn:hover .video-bttn__image rect {
        fill: var(--secondary-color);
    }

    .video-bttn:hover .video-bttn__image path {
        fill: var(--primary-color);
    }

    .video-bttn:hover .video-bttn__image {
        background: var(--primary-color);
    }

    /* Contained Layout - Desktop */
    .half-and-half--contained .half-and-half-image,
    .half-and-half--contained .half-and-half-text {
        width: 50%;
    }

    .half-and-half--contained .half-and-half-image {
        height: 380px;
    }

}

@media (min-width: 1366px) {
    .image-block-left .half-and-half-text {
        padding-left: 100px;
    }

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

    .half-and-half--contained .image-block-left .half-and-half-text {
        padding-left: 40px;
        padding-right: 20px;
    }

    .half-and-half--contained .image-block-right .half-and-half-text {
        padding-right: 40px;
        padding-left: 20px;
    }

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

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