Exactly what is this supposed to look like? If you’re using z-index…is the heading supposed to overlay the image or what?
That said I do see some issues, you have
span elements holding block level headings…that’s a no-no right there.
…and why do you need the
span anyway, you have a perfectly good flex-container with the anchor.