Refactored 'Solved by flex' grid CSS styles