/**
 * 主题21 站点 Logo 尺寸
 */
:root {
    --theme21-nav-logo-max-h: 50px;
    --theme21-nav-logo-max-w: min(185px, 34vw);
    --theme21-footer-logo-max-h: 48px;
    --theme21-footer-logo-max-w: min(170px, 32vw);
}

@media (max-width: 991.98px) {
    :root {
        --theme21-nav-logo-max-h: 42px;
        --theme21-nav-logo-max-w: min(155px, 42vw);
        --theme21-footer-logo-max-h: 40px;
        --theme21-footer-logo-max-w: min(150px, 38vw);
    }
}

.dreamit_nav_manu .logo a.logo_img img,
.dreamit_nav_manu .logo a.main_sticky img {
    max-height: var(--theme21-nav-logo-max-h) !important;
    height: auto !important;
    min-height: 0 !important;
    width: auto !important;
    max-width: var(--theme21-nav-logo-max-w) !important;
    object-fit: contain !important;
    object-position: left center;
}

.dreamit-logo a.logo_img img {
    max-height: var(--theme21-footer-logo-max-h) !important;
    height: auto !important;
    width: auto !important;
    max-width: var(--theme21-footer-logo-max-w) !important;
    object-fit: contain !important;
}

header img[src*="logo/img"], header img[data-src*="logo/img"],
header img[src*="resource/logo"], header img[data-src*="resource/logo"] {
    max-height: var(--theme21-nav-logo-max-h) !important;
    max-width: var(--theme21-nav-logo-max-w) !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
}

.dreamit_nav_manu .logo img.lozad[data-src], .dreamit-logo img.lozad[data-src] {
    background: transparent !important;
    background-image: none !important;
}

.dreamit_nav_manu .logo a img, .dreamit-logo a img {
    background-color: transparent !important;
    background-size: auto !important;
}
