So i've been playing around a both with box-shadows, i recently did something just like this and it worked perfect. Then all of a sudden it stopped working for no apparent reason!
What i'm trying to do is have a simple div box with dual shadows underneath to make kind of folding effect.
If you check it out at jfiddle http://jsfiddle.net/TJuDu/ you can see all the code i've done. The problem is the stacking of the :before and :after elements, it's positioned properly but the stacking is wrong, the shadows are behind the .layout div when they should clearly be showing behind the .box div. If i remove the z-index value i can see the shadows positioned above the .box div.
The thing is i did exactly like this on another page and it worked, then all of a sudden it stopped working on that page and on this example i made.