Attempted to render correctly for narrow clients

Image gallery alignment is off.
Copied files from upstream repo (for the next task)

From revision be9e251f93d8a33822b2f0da98a67de66b4ec409.