Refactors grid-based gallery in object oriented fashion using SMACSS methodology and BEM naming conventions