Pure CSS: html:has(<dialog>:modal) gets overflow: hidden. A scroll timeline sets scrollbar-gutter: stable only when the page can scroll, so the layout doesn't shift. Co-authored-by: grugbraindev <178141691+grugbraindev@users.noreply.github.com>