Fixed market cards slightly

Enabled masonry for market cards and also made some minor stylistic
fixes.

Note: Masonry does not get along with Bootstrap’s tabs since it
requires content to be visible before it is able to reconstruct the
masonry grid. As a result, I’ve done something slightly hacky to get
everything working.