/**
 * 主题22 站点 Logo 尺寸
 */
:root {
    --theme22-nav-logo-max-h: 46px;
    --theme22-nav-logo-max-w: min(162px, 34vw);
    --theme22-footer-logo-max-h: 44px;
    --theme22-footer-logo-max-w: min(152px, 32vw);
}

@media (max-width: 991.98px) {
    :root {
        --theme22-nav-logo-max-h: 38px;
        --theme22-nav-logo-max-w: min(140px, 42vw);
        --theme22-footer-logo-max-h: 36px;
        --theme22-footer-logo-max-w: min(135px, 38vw);
    }
}

.dreamit-header-logo a.main-logo img,
.dreamit-header-logo a.stiky-logo img {
    max-height: var(--theme22-nav-logo-max-h) !important;
    height: auto !important;
    min-height: 0 !important;
    width: auto !important;
    max-width: var(--theme22-nav-logo-max-w) !important;
    object-fit: contain !important;
    object-position: left center;
}

.dreamit-header-logo a.stiky-logo { display: none; }
.sticky-nav .dreamit-header-logo a.main-logo { display: none !important; }
.sticky-nav .dreamit-header-logo a.stiky-logo { display: inline-flex !important; align-items: center; line-height: 0; }
.dreamit-header-logo a.main-logo { display: inline-flex; align-items: center; line-height: 0; }

.footer-logo img {
    max-height: var(--theme22-footer-logo-max-h) !important;
    height: auto !important;
    width: auto !important;
    max-width: var(--theme22-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(--theme22-nav-logo-max-h) !important;
    max-width: var(--theme22-nav-logo-max-w) !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
}

.dreamit-header-logo img.lozad[data-src], .footer-logo img.lozad[data-src] {
    background: transparent !important;
    background-image: none !important;
}

.dreamit-header-logo a img, .footer-logo img {
    background-color: transparent !important;
    background-size: auto !important;
}
