PERF: Refactor lightbox decorator to use querySelectorAll (PR #10158)

Previously we were using $elem.find(...).not($elem.find(...)). This took approximately 2ms on my machine with a test post.

This commit switches to using a native querySelectorAll method, which takes less than 0.5ms on the same test post.

GitHub