https://philipwalton.com/articles/what-no-one-told-you-about-z-index/
Apparently setting position: relative on an element sets it up with its own stacking context that is separate from neighboring elements. Let's say you have two divs:
<div class="first-block">
<p class="overlay-bottom></p> // I want this to hang over the second div
<div>