adding media queries for events class