/* An unconfigured device keeps the legacy banner dimensions. */
.banner-layout-slot{display:contents}
.banner-layout-slot:empty{display:none}
.home-front>.banner-layout-slot>.ad-banner{box-sizing:border-box;margin:0 0 28px}
:where(.article-body [data-article-banner])>.banner-layout-slot>.ad-banner{margin:0}
@media(min-width:621px){
 .banner-layout-slot.has-layout-desktop{display:block;box-sizing:border-box;min-width:0;max-width:100%;padding-top:var(--banner-desktop-y)}
 .banner-layout-slot.has-layout-desktop>.ad-banner{box-sizing:border-box;width:var(--banner-desktop-width);max-width:100%;margin-left:var(--banner-desktop-x);margin-right:0;min-height:var(--banner-desktop-height);height:auto}
 .banner-layout-slot.has-layout-desktop>.ad-banner .ad-desktop .text-banner-flow{box-sizing:border-box;min-height:var(--banner-desktop-height);height:auto;overflow-wrap:anywhere}
 .banner-layout-slot.has-layout-desktop>.ad-banner .ad-desktop .banner-photo-content:has(img){height:var(--banner-desktop-height)}
 .banner-layout-slot.has-layout-desktop>.ad-banner .ad-desktop .banner-photo-content>a:not(.promo-action){height:100%}
 .banner-layout-slot.has-layout-desktop>.ad-banner .ad-desktop .banner-photo-content img,
 .banner-layout-slot.has-layout-desktop>.ad-banner .ad-desktop .banner-photo-content video{width:100%;height:100%;min-height:0;max-height:none;object-fit:cover}
 .banner-layout-slot.has-layout-desktop>.ad-banner .ad-desktop .banner-photo-content video{height:var(--banner-desktop-height)}
 .banner-layout-slot:has(>.ad-device-mobile),.banner-layout-slot:has(>.ad-device-none){display:none}
}
@media(max-width:620px){
 .banner-layout-slot.has-layout-mobile{display:block;box-sizing:border-box;min-width:0;max-width:100%;padding-top:var(--banner-mobile-y)}
 .banner-layout-slot.has-layout-mobile>.ad-banner{box-sizing:border-box;width:var(--banner-mobile-width);max-width:100%;margin-left:var(--banner-mobile-x);margin-right:0;min-height:var(--banner-mobile-height);height:auto}
 .banner-layout-slot.has-layout-mobile>.ad-banner .ad-mobile .text-banner-flow{box-sizing:border-box;min-height:var(--banner-mobile-height);height:auto;overflow-wrap:anywhere}
 .banner-layout-slot.has-layout-mobile>.ad-banner .ad-mobile .banner-photo-content:has(img){height:var(--banner-mobile-height)}
 .banner-layout-slot.has-layout-mobile>.ad-banner .ad-mobile .banner-photo-content>a:not(.promo-action){height:100%}
 .banner-layout-slot.has-layout-mobile>.ad-banner .ad-mobile .banner-photo-content img,
 .banner-layout-slot.has-layout-mobile>.ad-banner .ad-mobile .banner-photo-content video{width:100%;height:100%;min-height:0;max-height:none;object-fit:cover}
 .banner-layout-slot.has-layout-mobile>.ad-banner .ad-mobile .banner-photo-content video{height:var(--banner-mobile-height)}
 .banner-layout-slot:has(>.ad-device-desktop),.banner-layout-slot:has(>.ad-device-none){display:none}
}
.banner-layout-slot:empty{display:none}
