Ensure width is not greater than page

On an iPhone 5 in portrait mode, with the viewport meta tag set to "width=device-width", the modal clips off the screen with no scroll-bar. Unless the persistent option is disabled, this also creates a useability problem because the close button also clips off the screen.