Added word-break support for thumbnail and lightbox captions to fix long, unbroken text.