Unexpected scaling in experimental PhotoSwipeLightbox component breaking the ratio of the original image

@davidb It seems that one of the recent commit to the lightbox component has a bug preventing the component from starting in discourse solved and other items like that, after my PR get merged.

The problem may be related to one of these commits.

FIX: maintain extension when quoting images by SamSaffron · Pull Request #36240 · discourse/discourse · GitHub,
FIX: Post data on lightbox slide in production by martin-brennan · Pull Request #36214 · discourse/discourse · GitHub.

I’m not quite sure about which PR actually breaks that.

The repro can be done here right now.

Like clicking the [IMG_6085] from the onebox quote, or open the link and click the image of the answer in discourse solved component of the given page. The original behavior is open a lightbox, but now nothing happened.

Sorry for the possible interruption, just raise a bug report for analysis.