Fix CSS selector modifications when nested in @media blocks