Is there a way to use this not to disable, but to just change the margin setting on mobile?
I’m currently using fairly large margins to accommodate large outside captions, but would like to disable that on mobile.
Also, and this would also solve the problem for me — is there a way to have separate vertical and horizontal margins? As I only need vertical margin to accommodate the captions, I’d like to keep the horizontal margins as small as possible. This would also eliminate the problem I’m having on mobile.
Hi Michael, in theory it could be done with some CSS rules that override the script’s settings but the problem is that the script takes the margins into account when calculating the position of the light box and its elements.
When the borders are different then expected, there will most likely occur weird effects due to miscalculations.
That said, you could try adding (and adapting) these style rules to your theme’s style.css or via the Jetpack module Custom CSS: