Moved the masonry code to the top and changed the display for items for
inline-block. Going to see if this fixes the stupid css issues.