updated visibility utilities with media queries