Added media query logic for nav.