I solved this by removing the figure element around the image and applying
style="padding-bottom: calc((height/width)*100%); position: relative"
to the <div class="img_container"
instead, which contains both the placeholder and the hover image.
I solved this by removing the figure element around the image and applying
style="padding-bottom: calc((height/width)*100%); position: relative"
to the <div class="img_container"
instead, which contains both the placeholder and the hover image.