
Modals display over the top of the main page along the z-index. A semi-transparent overlay separates the modal container from the page content.
Modals consist of three main parts:

In viewports 768 px wide and up, the modal appears as a center aligned popup.

In viewports narrower than 768 px, the modal has a tray-like appearance.
Max-width and padding are two separate properties that allow designers to provide a modal that is suite for their unique content. Note that max-width is only recognized in viewports 768px and wider.
