Customizing Text Blocks and Spacing for Images in Wix Pro Gallery on Dynamic Pages

I’m trying to add text blocks between images in the Wix Pro Gallery on a dynamic page that showcases our work. The only workaround I’ve found so far is to add text to the image itself in the gallery and have it shown over the image, but this has caused a few issues.

Firstly, when I add text to an image on one dynamic page, the spacing for that text applies across all my dynamic pages. Secondly, if the text is longer than about 200 characters, the gallery automatically cuts off the text due to limited space.

Is there a way to use code to ensure each image text has its own padding, so the text layout can adapt to each page individually without affecting other dynamic pages? Or hide the images texts padding on the dynamic pages where it isn’t used?

In the best of worlds I would like a richtext that scales proportionally that is unique for that dynamic page, like this example: