Use inline-block rather than floating

Floating can cause two galleries side by side to render strangely
and can also cause issues where one photo in a gallery is on its
own and not centered.

Change-Id: Ib2aecaa8db28784bbe867a17f3706b99676cce41