Adjust `@custom-media` code according to @necolas recommandations