Revert "Revert "Formatting for media rule: max 767""

This reverts commit 2985d52fab6900ddaeecc6081e5eb086ebae14eb.