/*------------------------------------*\
    
    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)

\*------------------------------------*/

.half-and-half {
    position: relative;
    z-index: 1;
}

.flex-row {
    display: flex;
    flex-wrap: wrap;
}

.half-and-half--padding {
    padding-top: 1.5rem;
    padding-bottom: 4.75rem;
}

section:not(.curve-bottom) +  .half-and-half--padding {
    padding-top: var(--section-margins);
}

.half-and-half .flex-row {
    align-items: center;
}

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

.half-and-half-image__wrapper {
    min-height: 15.125rem;
    display: flex;
    align-items: center;
    max-width: 41.5rem;
    margin: 0 auto;
}

.half-and-half-text {
    padding-top: 3.25rem;
}

.half-and-half-text__wrapper .fx-accordion__panel__content {
    padding: 0.75rem;
}

.half-and-half-text__heading {
    margin-bottom: 0.75rem;
}

.half-and-half--bottom-curve {
    padding-top: 1.5rem;
    padding-bottom: 6.5rem;
}

@media (min-width: 768px) {

    .half-and-half--padding {
        padding-top: 2.25rem;
        padding-bottom: 7rem;
    }

    section:not(.curve-bottom) +  .half-and-half--padding {
        padding-top: var(--section-margins);
    }

    .half-and-half-text {
        padding-top: 4.75rem;
    }


    .half-and-half-text__wrapper .fx-accordion__panel__content {
        padding: 0.9375rem;
    }

    .half-and-half-text__heading {
        margin-bottom: 1rem;
    }

    .half-and-half--bottom-curve {
        padding-top: 2.25rem;
        padding-bottom: 9.5rem;
    }

}

@media (min-width: 1200px) {

    .half-and-half--padding {
        padding-top: 6.125rem;
        padding-bottom: 8.75rem;
    }

    section:not(.curve-bottom) +  .half-and-half--padding {
        padding-top: var(--section-margins);
    }

    .half-and-half-image {
        width: 30.9375rem;
    }

    .half-and-half-text {
        width: calc(100% - 30.9375rem);
        padding-left: 3.25rem;
        padding-top: 0;
    }

    .half-and-half-text__wrapper .fx-accordion__panel__content {
        padding: 1.125rem;
    }

    .half-and-half-text__heading {
        margin-bottom: 1.25rem;
    }

    .half-and-half-image__wrapper {
        max-width: 100%;
    }

    .half-and-half--bottom-curve {
        padding-top: 6.125rem;
        padding-bottom: 11.875rem;
    }
}


@media (min-width: 1600px) {

    .half-and-half--padding {
        padding-top: 5.25rem;
        padding-bottom: 8.5rem;
    }

    section:not(.curve-bottom) +  .half-and-half--padding {
        padding-top: var(--section-margins);
    }

    .half-and-half-image {
        width: 50%;
    }

    .half-and-half-text {
        width: 50%;
        padding-right: 0;
    }

    .half-and-half-text__wrapper {
        max-width: 50.6875rem;
    }

    .half-and-half-text__wrapper .fx-accordion__panel__content {
        padding: 1.25rem;
    }

    .half-and-half-text__heading p {
        font-size: 1.25rem;
    }

    .half-and-half--bottom-curve {
        padding-top: 5.25rem;
        padding-bottom: 16.625rem;
    }

}