/* OnFix Market: display the WHOLE image without cropping, regardless of aspect ratio.
   Original uploads and thumbnail generation are not modified. */
html body.onfix-market-page .grid .card .photo,
html body .grid .card .photo,
html body .list .row .photo,
html body .gallery .mainimg,
html body .gallery .thumbs,
html body .photo {
  background-color: #f7f5f0;
}
html body.onfix-market-page .grid .card .photo img,
html body .grid .card .photo img,
html body .list .row .photo img,
html body .gallery .mainimg img,
html body .gallery .thumbs img,
html body .photo img {
  object-fit: contain !important;
  object-position: center center !important;
}
/* Keep cards consistent while allowing every portrait/landscape/square image to fit. */
html body.onfix-market-page .grid .card .photo img,
html body .grid .card .photo img,
html body .list .row .photo img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
}
/* Full listing page: maintain image proportions in the large gallery and thumbnails. */
html body .gallery .mainimg img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
}
html body .gallery .thumbs img { background: #f7f5f0; }
/* Editing: show existing uploads without cutting edges. */
html body .photo img { object-fit: contain !important; }
