/* The script measures the visible menu control, rather than column width. */
#header_wrapper [data-header-logo] img {
    height: var(--header-logo-height, 50px) !important;
    max-height: none !important;
    width: auto !important;
    max-width: 100%;
    object-fit: contain;
}
#header_wrapper [data-compact-header] > .row {
    align-items: center;
}
#header_wrapper [data-header-logo] {
    flex: 0 1 auto;
    width: auto;
    max-width: 40%;
}
#header_wrapper [data-header-menu] {
    flex: 1 1 auto;
    width: auto;
    max-width: none;
}
@media (max-width: 767px) {
    #header_wrapper [data-compact-header] > .row {
        flex-wrap: nowrap;
        align-items: center;
        min-height: 56px;
        padding: 8px 16px;
    }
    #header_wrapper [data-header-logo] {
        flex: 0 1 auto;
        width: auto;
        max-width: 65%;
    }
    #header_wrapper [data-header-menu] {
        flex: 1 1 auto;
        width: auto;
        max-width: none;
    }
    #header_wrapper [data-header-logo] .element,
    #header_wrapper [data-header-menu] .element {
        margin: 0 !important;
    }
    #header_wrapper [data-header-menu] .element {
        justify-content: flex-end;
    }
}
@media (max-width: 640px) {
    #header_wrapper .main-menu > .burger {
        position: static;
        display: block;
        margin: 0;
        padding: 8px;
        font-size: 24px !important;
        line-height: 1;
    }
}
