I made an accordion using the dropdown, and I also used a lightbox inside to display images. However, if I close the lightbox the accordion gets closed too with some content being cut out, making the accordion not able to work/open anymore. Any suggestions on how to fix this?
The first accordion has a lightbox inside
This is the lightbox inside the accordion
After closing the lightbox gallery, the accordion gets closed at the same time and cuts out the content.