In the Image element contained within a Media Post Type Query Loop, I need to identify a Lightbox ID to group galleries on my Gallery page within a Lightbox. I had anticipated that {post_id} might be the solution, but, for some reason, using {post_id} in the Lightbox ID option returns the image ID instead. Consequently, the a wrapper of the image displays data-pswp-id=“697,” and the subsequent one shows data-pswp-id=“698,” and so forth.
Thank you for your time!

