Text in portfolio thumbnails

How do I put a text in the thumbnails of the portfolio images and a class for that text as it appears on the web https://laboutique77.com/


It looks like the gallery grid from this website is a custom one, added using a commercial plugin, not using the widgets from the theme: