I’ve tried disabling all plugins except the lightbox gallery. Unfortunately it didn’t fix the problem.
I’ve switched themes In the meantime to test if that works, and that did fix the problem. So it has to do with the theme that I’m using apperently. Do you think that there’s still a way to fix it?