The max-width @media statements were in the wrong order