/* Image dragging is disabled without restricting article text selection. */
main img, [data-media-viewer] img {
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}
dialog[data-media-viewer] {
  box-sizing: border-box;
  max-width: min(94vw, 1080px);
  max-height: 94dvh;
  padding: 20px;
  border: 1px solid var(--line, #ccd4d8);
  border-radius: 12px;
  background: var(--surface, #f5f5f1);
  color: var(--navy, #19364d);
  overflow: auto;
}
dialog[data-media-viewer]::backdrop { background: rgb(12 29 42 / 80%); }
dialog[data-media-viewer] button {
  position: sticky;
  top: 0;
  display: block;
  margin: 0 0 16px auto;
  padding: 10px 20px;
  border: 0;
  border-radius: 6px;
  background: var(--navy, #19364d);
  color: #fff;
  font: inherit;
  cursor: pointer;
}
dialog[data-media-viewer] img { display: block; width: auto; max-width: 100%; height: auto; margin: auto; }
dialog[data-media-viewer] button:focus-visible { outline: 3px solid var(--clay, #bda379); outline-offset: 3px; }
