Hi
I will jump into discussion as I have similar issue. I’m using basic grid view and problem with with $gallery_no as it’s being used to generated correct html and inline css. It seems that Yoast does some optimizations and generated html does not match generated inline css (#rl-gallery-container etc).
Tried to switch to footer loading, same issue. If I disable Yoast, everything works just fine.