Fixes issue where incorrect closing bracket could be paired with media query.