Revert "WICKET-5224 Revert "WICKET-4948 fix vertical centering of modals in safari""

This reverts commit 0cecd7fdfa449240f39aaa991c5f6c3046bc3c53.