I have a collection of images displayed in a grid format, and underneath each image there are two figcaption elements acting as badges. I also have a third figcaption that is properly rendered as a hyperlink. My goal is to position the badges at the bottom of each image, but I am unsure how to accomplish this.
<div style="display:grid;grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));grid-gap: 5px;">
<div>
<figure class="figure">
<a href="FixSongsReport00277_changes00041.html">
<img src="../images/Antonin Dvorak; Itzhak Perlman, Daniel Barenboim, Samuel Sanders.jpg" class="figure-img" width="200" height="200">
</a>
<figcaption class="badge badge-secondary">
12 files
</figcaption>
<figcaption class="badge badge-secondary">
0 files modified
</figcaption>
<figcaption class="figure-caption">
<a href="FixSongsReport00277_changes00041.html">
Antonin Dvorak; Itzhak Perlman, Daniel Barenboim, Samuel Sanders
</a>
</figcaption>
</figure>
</div>
<div>
<figure class="figure">
<a href="FixSongsReport00277_changes00029.html">
<img src="../style/images/folder.jpg" class="figure-img" width="200" height="200">
</a>
<figcaption class="badge badge-secondary">
27 files
</figcaption>
<figcaption class="badge badge-secondary">
0 files modified
</figcaption>
<figcaption class="figure-caption">
<a href="FixSongsReport00277_changes00029.html">
Choir of Trinity College
</a>
</figcaption>
</figure>
</div>
For example:
https://i.sstatic.net/TxAHX.jpg
Following Oleg's suggestion, I have now achieved: