.StackedPage { container: StackedPage / size; display: contents; max-width: 100vw; max-width: 100dvw; contain: layout; } dialog.StackedPage { border: none; position: fixed; padding: 0; overscroll-behavior: none; width: 560px; max-height: 100vh; max-height: 100dvh; background: none; display: none; contain: strict; contain-intrinsic-size: auto 560px auto 100vh; contain-intrinsic-size: auto 560px auto 100dvh; content-visibility: auto; background: var(--tutu-color-surface); box-shadow: var(--tutu-shadow-e16); margin-left: auto; margin-right: auto; @media (max-width: 560px) { & { width: 100vw; width: 100dvw; height: 100vh; height: 100dvh; contain-intrinsic-size: 100vw 100vh; contain-intrinsic-size: 100dvw 100dvh; } } &[open] { display: contents; } &::backdrop { background: none; } &.animating { overflow: hidden; * { overflow: hidden; } } }