How to dynamically reverse z-index without JavaScript

A quick reference for a clever snippet I wrote for a recent project.