/* Some phone browsers fit a desktop-sized layout into a narrow portrait screen.
   Size that layout in proportion to its viewport while leaving pinch zoom available. */
@media screen and (min-width: 900px) and (max-width: 1100px)
    and (max-aspect-ratio: 2/3) and (pointer: coarse) and (hover: none) {
  :root {
    --touch-layout-scale: 2.4;
    zoom: var(--touch-layout-scale);
  }
  html body {
    min-height: calc(100vh / var(--touch-layout-scale));
    min-height: calc(100svh / var(--touch-layout-scale));
  }
  #smChainShareSheet {
    max-height: calc(85dvh / var(--touch-layout-scale));
  }
}
