/* Approved B3 component; staging pilot 66962 only. */
#top.bv-editorial .entry-content > h3 {max-width:710px;margin:32px auto 12px!important;}
#top.bv-editorial .entry-content > p:not(:first-child) {margin-top:0;margin-bottom:8px;}
#top.bv-editorial .entry-content > ul {margin-top:8px;margin-bottom:16px;}
#top.bv-editorial .entry-content > .bv-b3-gallery {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;box-sizing:border-box;width:100%;max-width:900px;margin:16px auto 24px;clear:both;}
#top.bv-editorial .bv-b3-gallery > figure {float:none!important;width:100%!important;max-width:100%!important;min-width:0;margin:0!important;}
#top.bv-editorial .bv-b3-gallery figure > a {display:block;}
#top.bv-editorial .bv-b3-gallery figure img {display:block;width:100%!important;max-width:100%!important;height:auto!important;margin:0!important;border-radius:3px;}
#top.bv-editorial .entry-content > p:first-child + .bv-b3-gallery {margin-top:0!important;}
@media(max-width:767px){
 #top.bv-editorial .entry-content > .bv-b3-gallery {gap:12px;}

}

#top.bv-editorial .bv-b3-gallery.avia-gallery {padding:0!important;overflow:visible;}
#top.bv-editorial .bv-b3-gallery figure {padding:0!important;}

/* Neutralize Enfold gallery framing; retain the approved uncropped image geometry. */
#top.bv-editorial .bv-b3-gallery.avia-gallery figure img {padding:0!important;border:0!important;float:none!important;}

/* Final pilot review: editorial spacing and native gallery editability. */
#top.bv-editorial .bv-editorial-article .entry-content > p:first-child {margin-bottom:28px!important;}
#top.bv-editorial .bv-editorial-article .entry-content > figure:last-child {margin-bottom:58px!important;}
#top.bv-editorial .entry-content > .bv-b3-gallery {grid-template-columns:repeat(var(--bv-gallery-columns,2),minmax(0,1fr));}
@media(max-width:767px){
 #top.bv-editorial .entry-content > .bv-b3-gallery {grid-template-columns:repeat(var(--bv-gallery-mobile-columns,2),minmax(0,1fr));}
 #top.bv-editorial .bv-b3-odd > figure:last-child {grid-column:1/-1;width:calc((100% - 12px)/2)!important;justify-self:center;}
}

/* Approved final mobile rhythm: pilot only; no editorial or desktop changes. */
@media(max-width:767px){
 #top.bv-editorial .bv-editorial-article .entry-content > figure:last-child {margin-bottom:42px!important;}
 #top.bv-editorial .bv-editorial-article .post-meta-infos {margin-top:0!important;padding-top:0!important;padding-bottom:0!important;}
 #top.bv-editorial .bv-editorial-article .av-social-sharing-box {margin-top:20px!important;}
 #top.bv-editorial .bv-editorial-article .post_delimiter {height:0!important;min-height:0!important;padding-top:0!important;padding-bottom:0!important;margin-top:0!important;margin-bottom:0!important;}
 #top.bv-editorial #bv-b2-related {margin-top:28px!important;padding-top:24px!important;}
}

/* Shared policy: comments remain visually hidden for participating articles. */
#top.bv-editorial #comments,#top.bv-editorial #respond,#top.bv-editorial .comment-entry {display:none!important;}

/* A closing gallery gets the same final rhythm as a closing individual figure. */
#top.bv-editorial .bv-editorial-article .entry-content > .bv-b3-gallery:last-child {margin-bottom:58px!important;}
@media(max-width:767px){#top.bv-editorial .bv-editorial-article .entry-content > .bv-b3-gallery:last-child {margin-bottom:42px!important;}}

#top.bv-editorial .related_posts {display:none!important;}

/* Shared media-to-text rhythm. Captions stay inside the media component;
   adjacent text contributes no second top margin. Final metadata rhythm stays intact. */
#top.bv-editorial .bv-editorial-article .entry-content > :is(figure,.bv-b3-gallery,.wp-caption):not(:last-child) {
 margin-bottom:24px!important;
}
#top.bv-editorial .bv-editorial-article .entry-content > :is(figure,.bv-b3-gallery,.wp-caption) > img {
 margin-bottom:0!important;
}
#top.bv-editorial .bv-editorial-article .entry-content > :is(figure,.bv-b3-gallery,.wp-caption) + :is(p,h2,h3,h4,h5,h6,ul,ol,blockquote) {
 margin-top:0!important;
}

/* Reuse the approved media/text rhythm when the opening starts with a heading. */
#top.bv-editorial .bv-editorial-article .entry-content > :is(h2,h3,h4):first-child {margin-top:24px!important;}

/* B3 end rhythm: one gap only, independent of the final paragraph or media type. */
#top.bv-editorial.bv-b3-media-policy .bv-editorial-article .entry-content {display:flow-root;margin-bottom:0!important;padding-bottom:0!important;}
#top.bv-editorial.bv-b3-media-policy .bv-editorial-article .entry-content > :last-child,
#top.bv-editorial.bv-b3-media-policy .bv-editorial-article .entry-content > figure:last-child,
#top.bv-editorial.bv-b3-media-policy .bv-editorial-article .entry-content > .bv-b3-gallery:last-child {margin-bottom:0!important;}
#top.bv-editorial.bv-b3-media-policy .bv-editorial-article .post-meta-infos {display:block;float:none!important;position:static!important;top:0!important;clear:both;margin-top:24px!important;margin-left:auto!important;margin-right:auto!important;padding-top:0!important;}
@media(max-width:767px){#top.bv-editorial.bv-b3-media-policy .bv-editorial-article .post-meta-infos {margin-top:32px!important;}}
#top.bv-editorial.bv-b3-media-policy .bv-b3-lightbox {display:block;position:relative;width:min(100%,var(--bv-natural-width,1100px));max-width:100%;margin-left:auto;margin-right:auto;}
#top.bv-editorial.bv-b3-media-policy .bv-b3-lightbox > img {display:block;margin-left:auto;margin-right:auto;}
#top.bv-editorial.bv-b3-media-policy .bv-b3-lightbox > .image-overlay {pointer-events:none;}

/* Editorial review 994: align legacy media with the approved reading column.
   Scoped to this article; featured image, attachments and other articles retained. */
#top:is(.postid-994,.postid-1211,.postid-1409,.postid-1583,.postid-1659,.postid-1706,.postid-8212,.postid-10152,.postid-10200,.postid-11346,.postid-11601,.postid-11755,.postid-11914,.postid-12114,.postid-12127,.postid-12212).bv-editorial .bv-editorial-article .entry-content > :is(p,h2,h3,h4,h5,h6,ul,ol,blockquote) {text-align:left!important;}
#top:is(.postid-994,.postid-1211,.postid-1409,.postid-1583,.postid-1659,.postid-1706,.postid-8212,.postid-10152,.postid-10200,.postid-11346,.postid-11601,.postid-11755,.postid-11914,.postid-12114,.postid-12127,.postid-12212).bv-editorial .bv-editorial-article .entry-content > :is(figure,.bv-b3-gallery),
#top:is(.postid-994,.postid-1211,.postid-1409,.postid-1583,.postid-1659,.postid-1706,.postid-8212,.postid-10152,.postid-10200,.postid-11346,.postid-11601,.postid-11755,.postid-11914,.postid-12114,.postid-12127,.postid-12212).bv-editorial .bv-editorial-article .big-preview {width:100%!important;max-width:710px!important;margin-left:auto!important;margin-right:auto!important;float:none!important;}
#top:is(.postid-994,.postid-1211,.postid-1409,.postid-1583,.postid-1659,.postid-1706,.postid-8212,.postid-10152,.postid-10200,.postid-11346,.postid-11601,.postid-11755,.postid-11914,.postid-12114,.postid-12127,.postid-12212).bv-editorial .bv-editorial-article .entry-content > figure > a {margin-left:0!important;margin-right:0!important;}

/* Global approved reading alignment, B3 participants only; staging guarded in PHP. */
#top.bv-editorial .bv-editorial-article .entry-content {width:100%;max-width:710px;margin-left:auto!important;margin-right:auto!important;text-align:left!important;overflow-wrap:break-word;}
#top.bv-editorial .bv-editorial-article .entry-content :is(p,h2,h3,h4,h5,h6,ul,ol,blockquote) {text-align:left!important;}
#top.bv-editorial .bv-editorial-article :is(.big-preview,.entry-content > figure,.entry-content > .wp-caption,.entry-content > .bv-b3-gallery) {max-width:min(100%,710px)!important;margin-left:auto!important;margin-right:auto!important;float:none!important;}
#top.bv-editorial .bv-editorial-article .entry-content img:not(.emoji):not(.avatar):not([role="presentation"]) {max-width:100%;height:auto;float:none!important;margin-left:0!important;margin-right:auto!important;}
#top.bv-editorial .bv-editorial-article .entry-content > figure > a {margin-left:0!important;}
