.margin-host > img.margin-sketch { display: none; }
.scene-vignette { display: none; }

@media screen and (forced-colors: none) {
  /* Keep the small landscape impressions in the page margin, outside the reading columns. */
  .scene-margin {
    --scene-width: clamp(72px, 7vw, 110px);
    position: relative;
  }
  .scene-margin > .scene-vignette {
    display: block;
    position: absolute;
    inset-inline-end: 2px;
    inset-block-start: 3px;
    width: var(--scene-width);
    height: auto;
    margin: 0;
    pointer-events: none;
    user-select: none;
    opacity: .17;
    mix-blend-mode: multiply;
  }
  .plant-sections > .scene-margin > h3 {
    padding-inline-end: calc(var(--scene-width) + 8px);
  }
  #dynasty-ural > .scene-vignette {
    width: calc(var(--scene-width) * 1.15);
    inset: auto var(--inset) 12px auto;
  }
  #dynasty-ural.scene-margin > .margin-note {
    max-width: min(70ch, calc(100% - var(--scene-width) * 1.15 - 12px));
  }
  @media (max-width: 760px) {
    .scene-margin { --scene-width: 50px; }
    .scene-margin > .scene-vignette { opacity: .13; }
    #dynasty-ural > .scene-vignette { inset-block-end: 9px; }
  }
  @media (prefers-contrast: more) {
    .scene-margin > .scene-vignette { display: none; }
  }
  .margin-host { position: relative; isolation: isolate; }
  .margin-host > img.margin-sketch {
    display: block;
    position: absolute;
    z-index: -1;
    right: 0;
    bottom: 3px;
    width: clamp(85px, 11vw, 166px);
    max-width: 28%;
    height: min(72%, 92px);
    object-fit: contain;
    object-position: right bottom;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
    opacity: .24;
    pointer-events: none;
    user-select: none;
  }

  /* Title leaves use the outer paper margin, including beside the factory plate. */
  .margin-outer-right > img.margin-sketch, .margin-outer-left > img.margin-sketch {
    --ink-width: clamp(1px, calc(var(--edge) - 9px), 92px);
    width: var(--ink-width);
    max-width: none;
    height: min(var(--ink-width), 72px);
    bottom: clamp(6px, 1.6vw, 28px);
  }
  .margin-outer-right > img.margin-sketch { right: calc(-4px - var(--ink-width)); object-position: left bottom; }
  .margin-outer-left > img.margin-sketch { left: calc(-4px - var(--ink-width)); right: auto; }
  .margin-corner > img.margin-sketch {
    inset: 9px auto auto 9px; width: clamp(75px,9vw,138px); height: auto;
    opacity: .22; transform: scaleX(-1);
  }

  /* A printer's device below the two dates belongs to the same leaf. */
  #dynasty-beginning.margin-imprint {
    grid-template: 'dates story' auto 'mark story' 1fr / minmax(0,.72fr) minmax(0,1.28fr);
    row-gap: 13px;
  }
  .margin-imprint > .date-exhibit { grid-area: dates; }
  .margin-imprint > article { grid-area: story; }
  .margin-imprint > img.margin-sketch {
    position: static; grid-area: mark; align-self: start; justify-self: start;
    width: clamp(70px,8vw,118px); max-width: none; height: auto; margin-left: 5%;
    opacity: .27;
  }

  .paper-wrap .margin-edge { padding-inline-end: clamp(112px,13vw,204px); }
  .paper-wrap .plant-cards-note.margin-edge { max-width: none; min-height: clamp(40px,4.4vw,62px); }
  .margin-edge > img.margin-sketch { right: 1%; bottom: 7%; height: 82%; max-height: 98px; }
  .document-links.margin-edge small { color: #544d40; }
  .margin-underprint > img.margin-sketch {
    right: 1px; bottom: 0; width: clamp(60px,8vw,112px); max-height: 64px; opacity: .15;
    mask-image: linear-gradient(to right, transparent, #000 76%);
  }
  .margin-cinema > img.margin-sketch { right: 0; bottom: 3px; max-width: 12%; max-height: 58px; opacity: .18; }

  /* These long engravings sit on blank paper immediately after the related text. */
  .margin-vignette > img.margin-sketch {
    position: static; z-index: auto;
    width: clamp(185px, 19vw, 285px); max-width: 100%; height: auto; aspect-ratio: 10 / 3;
    margin: clamp(10px, 1vw, 16px) 0 0;
    object-position: left center; opacity: .5;
  }
  .technical-stage:nth-child(even) .margin-vignette > img.margin-sketch { margin-inline-start: auto; }

  @media (max-width: 760px) {
    #dynasty-beginning.margin-imprint { grid-template: 'story' auto 'dates' auto 'mark' auto / minmax(0,1fr); }
    .margin-imprint > img.margin-sketch { margin-left: 8px; width: 63px; }
  }

  @media (max-width: 660px) {
    .margin-host > img.margin-sketch { max-width: 95px; opacity: .13; }
    /* Set small marks into the existing lower binding, below the plates. */
    .margin-outer-right > img.margin-sketch, .margin-outer-left > img.margin-sketch {
      left: auto; right: 1px; bottom: 1px; width: 54px; height: 22px; object-position: right bottom;
    }
    .margin-outer-left > img.margin-sketch { left: 1px; right: auto; object-position: left bottom; }
    .margin-corner > img.margin-sketch { inset: 6px auto auto 7px; width: 19%; }
    .home-opening.margin-corner .atlas-intro > .kicker { color: #514b3e; }
    .paper-wrap .margin-edge { padding-inline-end: 6px; }
    .paper-wrap .plant-cards-note.margin-edge { min-height: 0; }
    .margin-edge > img.margin-sketch { right: 0; width: 25%; }
    .margin-imprint > img.margin-sketch { opacity: .19; }
    .margin-underprint > img.margin-sketch { width: 22%; max-height: 52px; opacity: .12; }
    .margin-cinema > img.margin-sketch { width: 16%; max-height: 32px; }
    .margin-vignette > img.margin-sketch { width: clamp(165px, 49vw, 218px); max-width: 100%; opacity: .5; }
  }
  @media (prefers-contrast: more) {
    .margin-host > img.margin-sketch { opacity: .07; }
  }
}
