Hi Markus,
I am relatively sure that this has never worked before, but if so, it would be good to know in which version this was.
The styles of the image element are irrelevant within the lightbox because it is a completely different markup, and the image element (and, accordingly, its styles) does not appear in it.