/* Keep wheel/touch scrolling inside every native modal, including short dialogs. */
html:has(dialog:modal),
body:has(dialog:modal) {
  overflow: hidden;
  overscroll-behavior: none;
}

dialog:modal {
  max-height: 90vh;
  max-height: 90dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
}

dialog:modal::backdrop {
  overscroll-behavior: none;
  touch-action: none;
}
