/* JMMS v16.8 — consistent primary headings + safe, author-chosen image layout.
   Last stylesheet: overrides v16.5–v16.7 headline exceptions without changing
   the homepage hero or subordinate headings. No arbitrary inline styles. */
@media screen and (min-width:1600px) {
  main .page-heading h1,
  main.jmms-editorial-page .page-heading h1,
  main .section-heading h1 {
    font-size:clamp(48px,3.45vw,70px);
    line-height:1.11;
    letter-spacing:-.035em;
    font-weight:400;
  }
}

/* New editor-only choices; deliberately leave legacy image-left/right/wide,
   portrait, supporter-logo unchanged until an author explicitly reformats. */
.prose img.image-flow-left,
.prose img.image-flow-right {
  display:block;
  width:min(38%,370px);
  max-width:45%;
  height:auto;
  max-height:none;
  object-fit:contain;
  padding:0;
  background:transparent;
  clear:both;
}
.prose img.image-flow-left {
  float:left;
  margin:.3rem clamp(14px,2.4vw,28px) 1rem 0;
}
.prose img.image-flow-right {
  float:right;
  margin:.3rem 0 1rem clamp(14px,2.4vw,28px);
}
.prose img.image-block-left,
.prose img.image-block-right {
  display:block;
  float:none;
  clear:both;
  width:auto;
  max-width:100%;
  height:auto;
  max-height:none;
  object-fit:contain;
  padding:0;
  background:transparent;
  margin-block:1rem 1.4rem;
}
.prose img.image-block-left {margin-inline:0 auto;}
.prose img.image-block-right {margin-inline:auto 0;}
.prose img.image-full {
  display:block;
  float:none;
  clear:both;
  width:100%;
  max-width:100%;
  height:auto;
  max-height:none;
  object-fit:contain;
  padding:0;
  background:transparent;
  margin:1.25rem 0 1.5rem;
}
/* On narrow screens keep text in a full-width column: no tight side wrapping. */
@media screen and (max-width:700px) {
  .prose img.image-flow-left,
  .prose img.image-flow-right {
    float:none;
    clear:both;
    width:auto;
    max-width:100%;
    height:auto;
    margin:1rem auto 1.4rem;
  }
}
/* Don't keep image floats when printing. */
@media print {
  .prose img.image-flow-left,
  .prose img.image-flow-right {float:none;width:auto;max-width:100%;margin:1rem 0;}
}
/* Editing help uses existing theme variables; no special light background. */
.rich-image-placement-help {display:block;margin:-8px 0 16px;color:var(--muted);font-size:12px;line-height:1.55;}
