/* CMS rich-text media: never let source dimensions exceed the reading column. */
:where(.manual-body, .timeline-content) {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}
:where(.manual-body, .timeline-content) :where(img, svg, video, canvas) {
  display: inline-block;
  max-width: 100% !important;
  height: auto !important;
  object-fit: contain;
  vertical-align: middle;
}
/* No width supplied: keep the natural size of small images, shrink oversized ones. */
:where(.manual-body, .timeline-content) img:not([width]) {
  width: auto;
}
:where(.manual-body, .timeline-content) :where(figure, picture) {
  max-width: 100%;
  margin-inline: 0;
}
:where(.manual-body, .timeline-content) figure img {
  display: block;
}
:where(.manual-body, .timeline-content) iframe {
  max-width: 100% !important;
}
@media (min-width: 768px) and (pointer: fine) {
  :where(.manual-body, .timeline-content) img:not(a img) { cursor: zoom-in; }
  :where(.manual-body, .timeline-content) img:not(a img):focus-visible {
    outline: 3px solid #d66c4e;
    outline-offset: 3px;
  }
}
.rich-image-viewer-open { overflow: hidden; }
.rich-image-viewer {
  position: fixed;
  inset: 0;
  width: 100vw;
  max-width: none;
  height: 100vh;
  max-height: none;
  margin: 0;
  padding: 68px 28px 28px;
  border: 0;
  background: #18221ef5;
  color: #fff;
  box-sizing: border-box;
}
.rich-image-viewer::backdrop { background: #18221ef5; }
.rich-image-viewer-close {
  position: absolute;
  top: 18px;
  right: 28px;
  padding: 10px 14px;
  border: 1px solid #ffffff80;
  border-radius: 4px;
  background: #1e2d27;
  color: #fff;
  cursor: pointer;
}
.rich-image-viewer-close:focus-visible { outline: 3px solid #f0bb6e; }
.rich-image-viewer-stage {
  width: 100%;
  height: 100%;
  overflow: auto;
  text-align: center;
}
.rich-image-viewer-stage img {
  display: block;
  width: auto;
  height: auto;
  max-width: none;
  max-height: none;
  margin: 0 auto;
}
