/* BoomerWP — baseline front-end styles. Optimized posts add their own scoped CSS. */
.w321em-post { overflow-wrap: anywhere; display: flow-root; line-height: 1.65; }
.w321em-post p, .w321em-post ul, .w321em-post ol { margin-block: 0 1.2em; }
.w321em-post h2, .w321em-post h3 { line-height: 1.25; margin-block: 1.6em .65em; }
.w321em-post .w321em-figure--wide { clear: both; float: none; width: 100%; }
.w321em-post .w321em-photo { display: block; cursor: zoom-in; }
.w321em-post .w321em-photo:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

.w321em-post .w321em-figure { margin: 0 0 1.5em; }
.w321em-post .w321em-figure img { display: block; max-width: 100%; height: auto; border-radius: 4px; }
.w321em-post .w321em-figure figcaption { font-size: .9em; opacity: .8; margin-top: .4em; }
.w321em-post .w321em-table { margin: 0 0 1.5em; overflow-x: auto; }
.w321em-post .w321em-table table { border-collapse: collapse; width: 100%; }
.w321em-post .w321em-table th, .w321em-post .w321em-table td { border: 1px solid rgba(0,0,0,.2); padding: .5em .75em; text-align: left; vertical-align: top; }
.w321em-post .w321em-table thead th { background: rgba(0,0,0,.05); }
.w321em-post .w321em-gallery { margin: 0 0 1.5em; }
.w321em-post .w321em-gallery img { cursor: zoom-in; }
.w321em-post .w321em-ad, .w321em-post .w321em-video { clear: both; margin-block: 1.5em; }
.w321em-post .w321em-video iframe { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; }
.w321em-post .w321em-related { clear: both; margin-top: 2em; padding-top: 1em; border-top: 1px solid rgba(0,0,0,.15); }
.w321em-post .w321em-related-title { font-size: 1.15em; margin-block: 0 .5em; }
.w321em-post .w321em-related ul { margin-block: 0; }
.w321em-embed-placeholder { clear: both; padding: 1em; border: 1px dashed currentColor; margin-block: 1em; }

@media (min-width: 640px) {
  .w321em-post .w321em-figure--left { float: left; width: 48%; margin: .35em 1.5em 1em 0; }
  .w321em-post .w321em-figure--right, .w321em-post .w321em-figure--lead { float: right; width: 48%; margin: .35em 0 1em 1.5em; }
}

/* Keep prose in the float's formatting context, even under theme/AI clear rules.
   These are layout invariants; full-width media still clears the side photos. */
.w321em-post.w321em-post--optimized { display: flow-root !important; }
.w321em-post.w321em-post--optimized :is(p, h2, h3, ul, ol, blockquote, .w321em-text) {
  clear: none !important;
  display: block !important;
  overflow: visible !important;
}
@media (min-width: 640px) {
  .w321em-post.w321em-post--optimized :is(.w321em-figure--left, .w321em-figure--right) {
    display: block !important;
    clear: none !important;
  }
  .w321em-post.w321em-post--optimized .w321em-figure--left { float: left !important; }
  .w321em-post.w321em-post--optimized .w321em-figure--right { float: right !important; }
}
@media (max-width: 639px) {
  .w321em-post.w321em-post--optimized :is(.w321em-figure--left, .w321em-figure--right) {
    float: none !important;
    width: 100% !important;
    margin-inline: 0 !important;
  }
}
.w321em-post.w321em-post--optimized :is(.w321em-figure--wide, .w321em-table, .w321em-gallery, .w321em-ad, .w321em-video, .w321em-related) {
  clear: both !important;
}

/* Bundled fallback lightbox */
.w321em-lb { position: fixed; inset: 0; z-index: 99999; background: rgba(0,0,0,.88); display: flex; align-items: center; justify-content: center; padding: 4vh 4vw; }
.w321em-lb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.w321em-lb button { position: absolute; background: rgba(255,255,255,.15); color: #fff; border: 0; font-size: 28px; width: 52px; height: 52px; border-radius: 50%; cursor: pointer; }
.w321em-lb .w321em-lb-close { top: 16px; right: 16px; }
.w321em-lb .w321em-lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.w321em-lb .w321em-lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
