Been troubleshooting this for hours. There's got to be a simple reason or solution that I'm not seeing.
I just want to have an inset box-shadow over the top of my image.
Here is the code I have currently:
.img-container {
position: relative;
margin: auto 0;
max-width: 100%;
max-height: 100%;
box-shadow: 0 0 25px red inset;
z-index: 2 !important;
}
.img-container img {
position: relative;
width: 100%;
height: 100%;
object-fit: cover;
z-index: -1 !important;
}
<div class="img-container">
<img src="https://images.pexels.com/photos/3031397/pexels-photo-3031397.jpeg?auto=compress&cs=tinysrgb&dpr=1&w=500" alt="Photo of Self">
</div>