Fix bug where gallery broke below 1025px on desktop displays.

[Fixes #24]