Maybe it’s not the best for your needs, but I have shared a quick way to implement the PhotoSwipe gallery using page resources and shortcodes: Adding a photoswipe gallery as a shortcode using Page.Resources
Maybe it’s not the best for your needs, but I have shared a quick way to implement the PhotoSwipe gallery using page resources and shortcodes: Adding a photoswipe gallery as a shortcode using Page.Resources