Prevent hidden modals from covering links