I was able to disable to code by using the following:
So to disable the lightbox on your Divi gallery, all you need to do is to add a CSS class to your gallery module. Let’s say I will name it disable-lightbox.
Then just add the following custom CSS code to the custom CSS field in your Divi Theme Options or to your page’s settings custom CSS code (on the page on which you will have your gallery).
.disable-lightbox a {
pointer-events: none;
}
.disable-lightbox .et_overlay {
display: none !important;
}
but as you mentioned above, it is connected to ‘clicking an image’ so then breaks the ability to launch Photoswipe… Looks like I’ll have to find another plugin unfortunately… Thanks