emcalc and respond-to functions for mediaqueries