/* Keep embedded editorial diagrams aligned with the reading column. */
.article-body .spin-live-body [data-hook="html-component"] {
  width: 100% !important;
  max-width: 100% !important;
}
.article-body .spin-live-body [data-hook="iframe-component"] {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  border: 0;
}
/* Balanced editorial media: constrain tall artwork without cropping. */
.article-body .spin-live-body [data-hook="image-viewer-"] {
 width: min(100%, calc(min(560px, 70vh) * var(--dim-width) / var(--dim-height))) !important;
 max-width: 100% !important;
 margin-left: auto !important;
 margin-right: auto !important;
}
.article-body .spin-live-body [data-hook="image-viewer-"] img {
 object-fit: contain !important;
}
.article-body .spin-story figure img {
 display: block;
 width: auto !important;
 height: auto !important;
 max-width: 100% !important;
 max-height: min(560px, 70vh);
 object-fit: contain;
 margin-left: auto !important;
 margin-right: auto !important;
}
.article-body .spin-story figure:has(img) {
 margin-top: 32px;
 margin-bottom: 32px;
}
@media (max-width: 650px) {
 .article-body .spin-live-body [data-hook="image-viewer-"] {
  width: min(100%, calc(min(480px, 70vh) * var(--dim-width) / var(--dim-height))) !important;
 }
 .article-body .spin-story figure img { max-height: min(480px, 70vh); }
}