/* TreX article media contract v1. Originals and non-article imagery are untouched. */
[data-trex-article] :is(.story-body,.guide-body,.manuscript-body){display:flow-root;overflow-wrap:break-word}
[data-trex-article] :is(.story-body,.guide-body,.manuscript-body) figure,[data-trex-article] .editorial-gallery figure,[data-trex-article] .photo-gallery figure{box-sizing:border-box;width:100%;max-width:312px;margin:24px auto;overflow-wrap:anywhere}
[data-trex-article] :is(.story-body,.guide-body,.manuscript-body) img,[data-trex-article] .editorial-gallery img,[data-trex-article] .photo-gallery img{display:block;box-sizing:border-box;width:auto;height:auto;max-width:min(100%,312px);max-height:432px;object-fit:contain;aspect-ratio:auto;margin-inline:auto}
[data-trex-article] :is(.story-body,.guide-body,.manuscript-body) figcaption,[data-trex-article] :is(.editorial-gallery,.photo-gallery) figcaption{font-size:12px;line-height:1.65;overflow-wrap:anywhere}
[data-trex-article] :is(.story-body,.guide-body,.manuscript-body) :is(.story-inline,.bbv-wrap,.media-left,.media-right,.photo-left,.photo-right){float:right;clear:both;width:40.8%;max-width:312px;margin:8px 0 22px 28px}
[data-trex-article] :is(.story-body,.guide-body,.manuscript-body) :is(.bbv-wrap-left,.media-left,.photo-left){float:left;margin:8px 28px 22px 0}
[data-trex-article] :is(.story-body,.guide-body,.manuscript-body) :is(.media-full,.photo-full){float:none;width:100%;max-width:312px;margin:24px auto}
[data-trex-article] :is(.editorial-gallery,.photo-gallery,.story-gallery) figure{float:none;min-width:0;margin:0 auto}
[data-trex-article] :is(.story-body,.guide-body,.manuscript-body) .bbv-auction{width:216px;max-width:100%}
[data-trex-article] :is(.story-body,.guide-body,.manuscript-body) .bbv-dogs{max-width:264px}
[data-trex-article] :is(.story-sources,.bbv-source-notes){clear:both;font-size:12px;line-height:1.65}
[data-trex-article] :is(.story-sources,.bbv-source-notes) :is(p,li,a){font-size:12px;line-height:1.65;overflow-wrap:anywhere}
[data-trex-article] :is(.story-sources,.bbv-source-notes) h2{font:650 14px/1.4 system-ui,sans-serif}
/* A floated photo placed before a section heading must not become a spacer.
   Keep the heading beside that photo; subsequent paragraphs wrap naturally.
   Later section headings and gallery/source boundaries retain their clearing. */
@media(min-width:651px){
 [data-trex-article] :is(.story-body,.guide-body,.manuscript-body) > :is(.story-inline,.bbv-wrap,.media-left,.media-right,.photo-left,.photo-right) + :is(h2,h3){clear:none;display:flow-root;padding-top:0;margin-top:8px}
}
@media(max-width:650px){
 [data-trex-article] :is(.story-body,.guide-body,.manuscript-body) figure,[data-trex-article] .editorial-gallery figure,[data-trex-article] .photo-gallery figure{float:none;width:100%;max-width:288px;margin:24px auto}
 [data-trex-article] :is(.story-body,.guide-body,.manuscript-body) img,[data-trex-article] .editorial-gallery img,[data-trex-article] .photo-gallery img{max-width:min(100%,288px);max-height:384px}
 [data-trex-article] :is(.story-body,.guide-body,.manuscript-body) :is(.story-inline,.bbv-wrap,.media-left,.media-right,.photo-left,.photo-right,.media-full,.photo-full,.bbv-dogs){float:none;width:100%;max-width:288px;margin:24px auto}
 [data-trex-article] :is(.story-body,.guide-body,.manuscript-body) .bbv-auction{width:100%;max-width:204px}
}
