Forcing max-width for image captions

why not set white-space : normal ?

https://developer.mozilla.org/en-US/docs/Web/CSS/white-space

without seeing the rest of your css, its hard to determine why the text isn’t wrapping naturally