Not necessarily. I'm on mobile, so can't link to code right now, but here's how it would happen:
You can have another .background element which spans all the rows (using grid-row-start and grid-row-end) and positioned in the centre column. Apply the shadows on it, and keep it before the content div in DOM order. That should do it.