Imagine creating a design with two different layers of objects set against a background. The first layer should consist of objects casting large shadows, while the second layer should have smaller shadows.
But what happens when an object from the front layer overlaps one in the second? In that case, the overlapping object should cast a large shadow on the background but a smaller shadow on the second-layer object.
Check out this example:
https://i.sstatic.net/YgskJ.png
Is it possible to achieve this effect using CSS or perhaps SVG filters? Any creative ideas?