Fix responsive modals

Bootstrap has different CSS for modal dialogs when the viewport width is less than 768px, which doesn't play nicely with the way we position them normally.