Photoswipe.js detect event when the pswp gallery is closed
<p>When closing Photoswipe, <a href="https://stackoverflow.com/questions/36991073/photoswipe-does-not-close-properly-in-this-implementation-with-slick-carousel">it has some leftover elements on the DOM that breaks it</a>, so I want to use jQuery to reset it every time it's closed. How can I get the event when Photoswipe closed?</p>