/**
 * IB Editorial Theme 1.0.28
 * Visual QA Library Migration to Universal Builder.
 */

body.ib-et .ib-ub-page .ib-ub-legacy-homepage-adapter {
    color: var(--ib-ub-text-color, inherit);
    background: var(--ib-ub-bg-color, transparent);
    min-width: 0;
    width: 100%;
}

body.ib-et .ib-ub-page .ib-ub-legacy-homepage-adapter > .ib-home-block,
body.ib-et .ib-ub-page .ib-ub-legacy-homepage-adapter > .ib-hero,
body.ib-et .ib-ub-page .ib-ub-legacy-homepage-adapter > [class*="ib-reference-hero"],
body.ib-et .ib-ub-page .ib-ub-legacy-homepage-adapter > [class*="ib-vogue-home"],
body.ib-et .ib-ub-page .ib-ub-legacy-homepage-adapter > [class*="ib-bazaar"] {
    margin-top: 0;
    margin-bottom: 0;
}

body.ib-et .ib-ub-page .ib-ub-legacy-homepage-adapter :is(h1,h2,h3,strong) {
    color: var(--ib-ub-title-color, inherit);
}

body.ib-et .ib-ub-page .ib-ub-legacy-homepage-adapter :is(p,.ib-card-meta,.ib-eyebrow,em) {
    color: var(--ib-ub-text-color, inherit);
}

body.ib-et .ib-ub-page .ib-ub-legacy-homepage-adapter :is(a,.ib-text-link,.ib-button) {
    color: inherit;
}

body.ib-et .ib-ub-page .ib-ub-legacy-homepage-adapter img {
    object-fit: var(--ib-ub-image-fit-runtime, var(--ib-ub-image-fit, cover)) !important;
    object-position: var(--ib-ub-image-position-runtime, var(--ib-ub-image-position, center top)) !important;
}

body.ib-et .ib-ub-page .ib-ub-instance.ib-ub-image-fit-contain .ib-ub-legacy-homepage-adapter img,
body.ib-et .ib-ub-page .ib-ub-instance.ib-ub-image-fit-natural .ib-ub-legacy-homepage-adapter img {
    object-fit: contain !important;
    background: var(--ib-ub-bg-color, transparent);
}

body.ib-et .ib-ub-page .ib-ub-instance.ib-ub-image-fit-natural .ib-ub-legacy-homepage-adapter img {
    height: auto !important;
    max-height: none !important;
}

body.ib-et .ib-ub-page .ib-ub-legacy-homepage-adapter .ib-section-heading h2,
body.ib-et .ib-ub-page .ib-ub-legacy-homepage-adapter > section > h2 {
    font-family: var(--ib-ub-heading-font, inherit);
    color: var(--ib-ub-title-color, inherit);
}

body.ib-et .ib-ub-page .ib-ub-legacy-homepage-adapter :is(.ib-section-heading span,.ib-showcase-copy > span,.ib-showcase-14-copy > span) {
    border-color: var(--ib-ub-line-color, currentColor);
    background-color: var(--ib-ub-line-color, currentColor);
}

/* Migrated blocks retain their original renderer, but must stay inside the
   Universal Builder cell on tablet and mobile. */
body.ib-et .ib-ub-page .ib-ub-legacy-homepage-adapter,
body.ib-et .ib-ub-page .ib-ub-legacy-homepage-adapter * {
    max-width: 100%;
}

@media (max-width: 1099px) {
    body.ib-et .ib-ub-page .ib-ub-legacy-homepage-adapter {
        overflow-x: clip;
    }
}
