Simplify CSS rules for modals