CSS replacements for modal and magic