What is the best way to use relative positioning to show two lines of information on an image without the order of information interfering with each other?
I want the Files badge to appear at the bottom of the image, with the MusicBrainz and Discogs badges above it. Both Files and MusicBrainz should align at the left side of the image. The height is correct, but unfortunately, the badges are displayed from left to right in the order they are added. I'm not sure how to resolve this issue.
Additionally, I'm confused about why the hyperlink below the image is correctly aligned, but doesn't shift over to the right.
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<div style="display:grid;grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));grid-gap: 5px;">
<div>
<figure class="figure">
<a href="FixSongsReport00398_byartistalbum00004_00001.html">
<img src="../images/aElXsWl4r3Qd8Vr3aSYnHg==_thumbnail.jpg" class="figure-img" width="200" height="200">
</a>
<figcaption class="badge badge-success" style="position: relative;left: +1em; top: -5.5em;">
MusicBrainz
</figcaption>
<figcaption class="badge badge-success" style="position: relative;left: +1em; top: -5.5em;">
Discogs
</figcaption>
<figcaption class="badge badge-primary" style="position: relative;left: +1em; top: -3.5em;">
9 files
</figcaption>
<figcaption class="figure-caption" style="position: relative;top: -2em;">
<a href="FixSongsReport00398_byartistalbum00004_00001.html">
Nelson; Reed; Dupré; Gigout; Wills; Widor; Grainger; Karg-Elert; Weinberger: Pomp & Pipes!
</a>
</figcaption>
</figure>
</div>
</div>