html - CSS box-shadow with transparent background and pseudo elements - Stack Overflow
Josh W. Comeau on X: "🔥 `box-shadow` doesn't work well with transparent images. `filter: drop-shadow` does what you'd expect, adding a shadow to the image's contents. .my-img { filter: drop-shadow(1px 2px 3px
CSS Box-shadow: There Is Something in the Shadow - DEV Community