html {
  scroll-padding-top: var(--head);
}

.sheet {
  --h: max(160px, 100vh - var(--head) - 76px);
  box-sizing: border-box;
  padding: 30px 24px 96px;
  font-size: 16.5px;
  line-height: 20px;
}

@supports (height: 100svh) {
  .sheet {
    --h: max(160px, 100svh - var(--head) - 76px);
  }
}

.sheet .text p {
  margin: 0 0 15px;
}

.sheet figure {
  margin: 28px 0 0;
}

.sheet picture {
  display: block;
  aspect-ratio: var(--a, 1.5);
  box-shadow: var(--frame-shadow);
}

.sheet picture img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.sheet picture img[width=""] {
  object-fit: contain;
}

@media (scripting: enabled) {
  .sheet picture {
    cursor: zoom-in;
  }
}

.sheet figcaption {
  max-width: 420px;
  margin: 14px auto 0;
  color: var(--caption);
  font-size: 14.5px;
  line-height: 17.5px;
  text-align: center;
  text-wrap: balance;
}

.sheet .note {
  margin: 34px 0 0;
}

.sheet .note p {
  margin: 0;
  padding-left: 1.1em;
  text-indent: -1.1em;
}

.sheet .note p + p {
  margin-top: 15px;
}

@media (min-width: 900px) {
  .sheet {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    column-gap: 17px;
    align-items: start;
    padding: 0 34px 60px;
    font-size: 12.5px;
    line-height: 15.2px;
  }

  .sheet figure {
    grid-area: 1 / 1 / span 2;
    justify-self: end;
    width: min(100%, var(--h) * var(--a, 1.5));
    margin: 0;
  }

  .sheet .text {
    grid-area: 1 / 2;
    max-width: 292px;
    padding-top: 4px;
  }

  .sheet .text p {
    margin-bottom: 7px;
  }

  .sheet figcaption {
    margin-top: 12px;
    font-size: 11.5px;
    line-height: 13.5px;
  }

  .sheet .note {
    grid-area: 2 / 2;
    max-width: 292px;
    margin-top: 29px;
  }

  .sheet .note p {
    padding-left: 0.8em;
    text-indent: -0.8em;
  }

  .sheet .note p + p {
    margin-top: 7px;
  }
}
