added media queries to device variables