I would like to make images with an iOS shadow like this (https://codepen.io/mathias-madsen-stav/pen/ampKpO?editors=1100), automatically generated from the colors of the image. I am not interested in the hover effect, but only in the shadow. However, I would like the box to be responsive and to fit the image size, without specifying an exact size in px.
The main problem is to modify this part of the code:
width: ...px;
height: ...px;
Can anyone help me please?