Lightbox added in accordion item behaves incorrectly

I implemented an accordion using this guide. Inside one of the accordion items, I put lightboxes. When I click on one of the lightboxes the lightbox opens with no problem. But, when I click anywhere outside lightbox’s image to close it the lightbox’s images are shown in half which is a buggy behavior.

Please try to reproduce the problem the way I mentioned in the read-only share link I included.

Specifically, the accordion is located at Products > Cartoning. Once you’re in this page, scroll down to section “Vertical Cartoner” and the accordion item with this behavior is called “Drawing”.

The following gif will show the problem clearly:

Thanks for dedicating time.

Here is my public share link: LINK
(how to access public share link)