Fotorama Fit

There are 4 ways to fit an image into a fotorama:

Select fit for the whole fotorama and override it for a single image with data-fit:

<div class="fotorama"
  <img src="1.jpg">
  <img src="2.jpg" data-fit="contain">


The 200×300 frog: the 240×180 fotorama like so:

The 200×125 elephant: the 240×180 fotorama like so:

Fit thumbnails

All of this applies to thumbnails via data-thumbfit.