My image gallery features a hover effect that utilizes a CSS transform when the user hovers over the images.
transform: scale(1.1);
Before the hover effect, the image appears like this: https://i.sstatic.net/fiP5e.jpg
And with the effect applied, it looks like this: https://i.sstatic.net/RPjq6.jpg
Although the zoom effect is nice, the text seems to disappear into the background. I attempted to use z-index, but it had no impact. How can I ensure that the text remains in the foreground? Here is a link to the jsfiddle: https://jsfiddle.net/xk2us9q8/