fixes #8665: have modals use auto margin on sides and widen it instead of positioning and negative margin