#image-form-header-banner {
    display: grid;
    grid-template-columns: 1fr;
    background-color: var(--wp--preset--color--carter-yellow);
    gap: 15px;
}

@media (max-width: 992px) {
    #image-form-header-banner.remove-mobile-margins {
        margin-left: -11px;
        margin-right: -11px;
    }
}

#image-form-header-banner .ninja-form-container {
    /* padding: 0 !important; */
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #aaa;
}

#image-form-header-banner .ninja-form-container .wp-block-group__inner-container {
    padding: 0px !important;
}

#image-form-header-banner .left-column-container > .wp-block-group__inner-container {
    width: 100%;
    height: 100%;
    padding: 0 !important;
}

#image-form-header-banner .left-column-container {
    background-color: white;
}

#image-form-header-banner.hide-text-block .left-column-container .text-container {
    display: none;
}

#image-form-header-banner .left-column-container figure {
    margin: 0;
}

#image-form-header-banner .left-column-container figure img {
    width: 100%;
    height: auto;
}


#image-form-header-banner.hide-text-block .left-column-container figure img {
    width: 100%;
    height: auto;
}

#image-form-header-banner > figure {
    margin: 0;
}

#image-form-header-banner > figure img{
   width: 100%;
    height: auto;
}


@media (min-width: 1024px) {
    #image-form-header-banner {
        grid-template-columns: 65% 1fr;
    }

    #image-form-header-banner > figure {
        height: 100%;
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    #image-form-header-banner > figure img {
        object-fit: cover;
        max-width: 150%;
        min-height: 100%;
        min-width: 100%;
    }

    #image-form-header-banner.hide-text-block .left-column-container figure {
        height: 100%;
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    #image-form-header-banner.hide-text-block .left-column-container figure img {
        object-fit: cover;
        max-width: 150%;
        min-height: 100%;
        min-width: 100%;
    }
}

#image-form-header-banner.overlay-text-block {
    .left-column-container > div {
        position: relative;
        z-index: 0;
        display: flex;
        justify-content: center;
        align-items: center;

        > .wp-block-image {
            position: absolute;
            top: 0;
            left: 0;
            bottom: 0;
            right: 0;
            width: 100%;
            height: 100%;
            z-index: -1;

            img {
                width: 100%;
                height: 100%;
                object-fit: cover;
                object-position: center;
            }
        }

        .text-container {
            background-color: transparent;
        }
    }


}

.image-form-header-banner__row {
    column-gap: 100px;
    align-items: center;
    justify-content: flex-start;
}

@media (max-width: 993px) {
    .image-form-header-banner__row {
        justify-content: center;
        flex-direction: column-reverse;
    }
}