# Cropped thumbnails

> Crop thumbnails with CSS, not on the server.

The thumbnail keeps the whole photo and `object-fit: cover` cuts the square, so the box can open with a zoom out of the crop to the whole photo, and close back into it.

{{< example name="demo" title="Cropped thumbnails" >}}

{{< example name="dialog" frame="false" >}}
