I recall seeing some decent code by your hand…
This script’s a bit confusing though,
this not being the current element but the fancybox object itself you’re defining at that moment. So changing
maxWidth actually “literally” sets the property that is right above it. Seems to only be working with integers, pixel values and percentages by the way.