Lightbox images change quality when clicked

I’m working on a Portfolio Website with a lightbox containing very large previews.
The preview images are displayed with low quality, but after clicking one and refreshing the page, the Previews are displayed properly.

Anyone experiencing similar problems?
(This problem does not occur in the Webflow Preview.)