After reading the documentation, I found out you can add a custom class to the lightbox using the data-featherlight-variant="classname" attribute. Using this attribute, I added a different class to both the 800px and the 1350px one. Using that class, I applied the style. Check the JSFiddle to see it in action.
The issue is that I seem I cant seem to be able to make the iframe responsive ie. when the browser window goes below the iframe width, the iframe should switch to 100%.
I’ve tried the code below which should work great, but doesn’t, even when removing data-featherlight-iframe-height="575" data-featherlight-iframe-width="800".
Did you fix your problem? Because for me, your JSFiddle is doing exactly what you want. As soon as the window is smaller than 920px, it’s going to 100% the window width.
Comment posted by JimWids
No havent fixed it yet! But there are 2 different sized (width) iframes.. 1 is 800px and 1 is 1350px.
Comment posted by JimWids
Thanks! ..but how about the iframe in the fiddle which is 1350 px width? This solution only caters for the 800px iframe
Comment posted by FUZIION
I will create another media query for the other iframe.
Comment posted by FUZIION
Added CSS for the other one
Comment posted by JimWids
Hi Yes sorry but isnt working not even in the fiddle (the iframe at width 1350 is not effected) im using the latest ff version 106.0.3
Comment posted by JimWids
thanks brother yes thats the perfect solution, I searched for a way to add a class but couldnt find it… thanks so much!!!!!!!!!!!!!!!!!!!!!!!!
Comment posted by JimWids
Thanks but the smaller iframe (900px) will now stretch larger than 900px, surely the same with the larger one too but im on a small screen so its not evident to me