clumsy solution as long as we still support IE11, otherwise we could have used media query range syntax