/* Only editorial content, not category headings or logos. */
body.home #home-elle-ma {margin-inline:auto!important;box-sizing:border-box;}
body.home #home-elle-ma .elp-aligned {width:auto!important;max-width:none!important;margin-left:var(--elp-left)!important;margin-right:var(--elp-right)!important;box-sizing:border-box;}
body.home #home-elle-ma :is(.ema-ma-card,.ema-ma-video-card) h3 {font-size:18px!important;line-height:1.3!important;}
body.single-post :is(.ema-ellefr-content,.ema-single__content) :is(b,strong){font-weight:700!important;}
body.single-post :is(.ema-ellefr-content,.ema-single__content) :is(i,em){font-style:italic!important;}
.elp-video {width:100%;aspect-ratio:16/9;position:relative;background:#000;min-width:0;}
.elp-video :is(video,iframe){width:100%!important;height:100%!important;display:block;border:0;object-fit:contain;}
.ema-ma-slide__media.elp-video-cover {display:block;min-width:0;}
.ema-ma-slide__media.elp-video-cover .elp-video{height:100%;min-height:220px;}
#elp-search-results {list-style:none;margin:12px 0;padding:0;max-height:45vh;overflow:auto;text-align:left;}
#elp-search-results a {display:block;padding:10px 4px;border-bottom:1px solid #ddd;color:inherit;text-decoration:none;}
.elp-play-menu {position:relative;display:flex;align-items:center;gap:4px;}
.elp-play-menu details {position:relative;}.elp-play-menu summary{cursor:pointer;list-style:none;padding:8px;}
.elp-play-menu details div{position:absolute;z-index:1000;top:100%;right:0;background:white;color:#111;min-width:160px;padding:10px;box-shadow:0 4px 16px #0002;}
.elp-play-menu details a{display:block;color:inherit;padding:8px;white-space:nowrap;}
.ema-v14-drawer .elp-play-menu details div{position:static;box-shadow:none;}
@media(max-width:767px){
 body.single-post :is(.ema-ellefr-content,.ema-single__content) :is(.gallery,.wp-block-gallery,.elle-gallery,.elle-gallery__grid,.elle-gallery-grid,.blocks-gallery-grid){display:grid!important;grid-template-columns:minmax(0,1fr)!important;width:100%!important;gap:12px!important;}
 body.single-post :is(.ema-ellefr-content,.ema-single__content) :is(.gallery-item,.wp-block-image,.elle-gallery figure,.elle-gallery__item){max-width:100%!important;width:100%!important;margin-inline:auto!important;flex-basis:100%!important;}
 body.single-post :is(.ema-ellefr-content,.ema-single__content) :is(.gallery,.wp-block-gallery,.elle-gallery) img{width:100%!important;height:auto!important;object-fit:contain!important;}
}

/* ELLE HOTFIX V2: actual headline links, not category labels. */
body.ema-theme.home-elle-ma #home-elle-ma .ema-ma-card h3,
body.ema-theme.home-elle-ma #home-elle-ma .ema-ma-card h3 a,
body.ema-theme.home-elle-ma #home-elle-ma .ema-ma-video-card h3,
body.ema-theme.home-elle-ma #home-elle-ma .ema-ma-video-card h3 a,
body.home #home-elle-ma .ema-ma-card h3 a,
body.home #home-elle-ma .ema-ma-video-card h3 a {
 font-size:18px!important;line-height:23px!important;
}
/* The charter registers Futura faces separately at weight 400.
   Select the actual heavy face instead of relying on synthetic bold. */
body.ema-theme.single-post article :is(.ema-ellefr-content,.ema-single__content) :is(strong,b),
body.ema-theme.single-post article :is(.ema-ellefr-content,.ema-single__content) :is(strong,b) :is(span,a,em,i),
body.ema-theme.single-post article :is(.ema-ellefr-content,.ema-single__content) span:is([style*="font-weight: bold" i],[style*="font-weight:bold" i],[style*="font-weight: 700" i],[style*="font-weight:700" i],[style*="font-weight: 600" i],[style*="font-weight:600" i]) {
 font-family:'FuturaPtHeavy','Futura PT',Arial,sans-serif!important;
 font-weight:700!important;
}
body.ema-theme.single-post article :is(.ema-ellefr-content,.ema-single__content) :is(em,i),
body.ema-theme.single-post article :is(.ema-ellefr-content,.ema-single__content) :is(em,i) :is(span,a,strong,b),
body.ema-theme.single-post article :is(.ema-ellefr-content,.ema-single__content) span:is([style*="font-style: italic" i],[style*="font-style:italic" i]) {
 font-style:italic!important;font-synthesis:style weight!important;
}
