/**
 * 主题8 站点 Logo 尺寸（导航 / 页脚）
 * 双 Logo 切换由 corporate_style.css 控制，此处只限 img 尺寸。
 */
:root {
    --theme8-nav-logo-max-h: 41px;
    --theme8-nav-logo-max-w: min(160px, 34vw);
    --theme8-footer-logo-max-h: 40px;
    --theme8-footer-logo-max-w: min(155px, 32vw);
}

@media (max-width: 991.98px) {
    :root {
        --theme8-nav-logo-max-h: 33px;
        --theme8-nav-logo-max-w: min(135px, 42vw);
        --theme8-footer-logo-max-h: 32px;
        --theme8-footer-logo-max-w: min(130px, 38vw);
    }
}

.corporate-main-menu .logo a img,
.itpart_logo_thumb .logo a img,
.mobile_menu_logo a img,
.mobile_logo_area img {
    max-height: var(--theme8-nav-logo-max-h) !important;
    height: auto !important;
    min-height: 0 !important;
    width: auto !important;
    max-width: var(--theme8-nav-logo-max-w) !important;
    object-fit: contain !important;
    object-position: left center;
    vertical-align: middle;
}

.corporate-main-menu .logo,
.mobile_menu_logo {
    line-height: 0;
}

.mobile_menu_logo a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
}

.em_footer_area .corporate-description-area a img.logo,
.em_footer_area .corporate-description-area a img,
.em_footer_area img.logo {
    max-height: var(--theme8-footer-logo-max-h) !important;
    height: auto !important;
    min-height: 0 !important;
    width: auto !important;
    max-width: var(--theme8-footer-logo-max-w) !important;
    object-fit: contain !important;
    object-position: left center;
}

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(--theme8-nav-logo-max-h) !important;
    max-width: var(--theme8-nav-logo-max-w) !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
}

.corporate-main-menu .logo img.lozad[data-src],
.em_footer_area .corporate-description-area img.lozad[data-src],
.em_footer_area img.lozad[data-src] {
    background: transparent !important;
    background-image: none !important;
}

.corporate-main-menu .logo a img,
.em_footer_area .corporate-description-area a img.logo {
    background-color: transparent !important;
    background-size: auto !important;
}
