/*
 * Property media policy:
 * - preserve the source aspect ratio;
 * - never stretch an image;
 * - use one clean image layer in fixed public frames.
 */
.adaptive-property-image,
.adaptive-gallery > div,
.mobile-gallery .mobile-gallery-item {
  background-color: #e8ebe7;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
}
.adaptive-property-image {
  isolation: isolate;
}
.adaptive-gallery > div,
.mobile-gallery .mobile-gallery-item {
  position: relative;
  overflow: hidden;
}
.property-cell img,
.existing-gallery img,
.gallery-preview img,
.main-preview img,
.shortlist-item img {
  object-fit: contain !important;
  object-position: center !important;
  background: #edf0ec;
}
.viewing-layout aside > div,
.renter-property-image,
.owner-thumb {
  background-color: #e8ebe7 !important;
  background-size: contain !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}
.property-card,
.gallery,
.main-preview,
.property-cell {
  image-rendering: auto;
}
@media (max-width: 600px) {
  .adaptive-property-image,
  .adaptive-gallery > div,
  .mobile-gallery .mobile-gallery-item {
    background-size: cover !important;
  }
}
