Remove focus from the last item in PhotoSwipe after the gallery is closed

Summary

Remove focus from the last item in PhotoSwipe after closing the gallery by adding a snippet that ensures focus is cleared, preventing an unexpected state for users.


If you have a project in mind and you think you'd like to work together, connect with me – it would be great to hear from you.