refactored media css