
.branding-logo-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-shrink: 0;
    max-width: 100%;
}

.branding-theme-logo {
    display: none;
    align-items: center;
    justify-content: flex-start;
    min-width: 0;
}

html[data-theme="dark"] .branding-theme-dark,
html[data-theme="light"] .branding-theme-light {
    display: flex;
}

.branding-custom-logo {
    display: block;
    width: auto;
    height: auto;
    max-width: var(--branding-logo-width,180px);
    max-height: var(--branding-logo-height,48px);
    object-fit: contain;
    flex-shrink: 0;
}

.branding-site-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.branding-visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0,0,0,0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

@media (max-width: 760px) {

    .branding-custom-logo {
        max-width: min(
            var(--branding-logo-width,180px),
            24vw
        );

        max-height: min(
            var(--branding-logo-height,48px),
            36px
        );
    }

    .branding-logo-container {
        flex-shrink: 1;
        min-width: 0;
    }
}

@media (max-width: 360px) {

    .branding-custom-logo {
        max-width: min(
            var(--branding-logo-width,180px),
            20vw
        );

        max-height: 28px;
    }

    .branding-logo-container .brand-logo {
        display: grid;
    }
}

