/* Multi-photo posts (FREPALI_ALBUM_THUMB_V1).
 *
 * WoWonder lays these out as square tiles built from 400x400 "_small"
 * thumbnails. Photos uploaded straight to S3 by the app or the web composer
 * have no thumbnail, so Wo_GetAlbumPhotos() hands the full photo to these
 * tiles. Crop it to the same square instead of stretching it.
 *
 * min-height: 0 undoes style.css's 300px floor for single photos
 * (#fullsizeimg img), which made the small tiles taller than wide and pushed
 * the 3- and 4-photo grids out of line. */

#fullsizeimg img.image-file.width-2,
#fullsizeimg img.image-file.width-3,
#fullsizeimg .album-collapse img,
#fullsizeimg .wo_adaptive_media .album-image .image-file,
#fullsizeimg .wo_adaptive_media_4 .album-image .image-file {
    aspect-ratio: 1 / 1;
    object-fit: cover;
    height: auto;
    min-height: 0;
}

/* The 5-photo grid gives each tile a fixed-height box. */
#fullsizeimg .wo_adaptive_media_5 .album-image .image-file {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 0;
}
