g-overlay: use pointer events again; restore auto-closing functionality, now works with native ShadowDOM.