Set the caption when we switch to single photo mode.
Clamp the scrollbar to the required content height.