Is there a way to change that to look at the actual browser size?
No. The logic which is used to determine which Screen Mode to use when screenMode="AUTO" is within the 'juicebox.js' JavaScript file which is packed and obfuscated and cannot be changed.
And is it possible to change the resolution that the Juicebox switched from LSM to SSM?
No. This is not a user-changeable option.
If you really want to force Small Screen Mode on the Nexus 7, then you would need to detect the device being used with JavaScript and if it is the Nexus 7, then you would set screenMode="SMALL" in the gallery's embedding code (otherwise, you would set screenMode="AUTO" for Juicebox to use its own detection routine).
For example:
<!--START JUICEBOX EMBED-->
<script src="jbcore/juicebox.js"></script>
<script>
var sm = 'AUTO';
if (navigator.userAgent.match(/Nexus 7/i)) {
sm = 'SMALL';
}
new juicebox({
containerId: 'juicebox-container',
screenMode: sm
});
</script>
<div id="juicebox-container"></div>
<!--END JUICEBOX EMBED-->If you wanted to incorporate this into WP-Juicebox, then you would need to open the 'wp-juicebox.php' file in a plain text editor and insert the following line between lines 286 and 287 (code above condensed for ease of insertion into WP-Juicebox):
$string_builder .= ' screenMode: navigator.userAgent.match(/Nexus 7/i) ? "SMALL" : "AUTO",' . PHP_EOL;Please note that screenMode is a Juicebox-Pro option which is not available in Juicebox-Lite (the free version).