the way the ::backdrop pseudo-element handles the dimming effect is such a game changer for reducing custom overlay logic. i've been trying to move away from
manually toggling opacity classes on a separate div whenever a modal opens. one tricky part is managing
z-index
when you have other fixed elements in the DOM, but it's worth the effort. ✅