While troubleshooting the alignment of my floated images, I came across an unexpected issue related to opacity:
It appears that when an element has opacity, it does not adhere to the usual behavior and instead overlaps the floated image. This caused some headers with a border-bottom
to be drawn over the image.
Even trying to manually set the z-index
with position: relative
did not solve the problem, as I still needed the floating image to maintain its intended function