/* Reference: portrait 375 x 469px cards, 20px gaps and 24px rounded corners. */
/* Clip the house image frame, including images animated by the room slider. */
body.sl-property-landing .elementor-widget-cs_rooms .featured-img,
body.sl-property-landing .elementor-widget-cs_rooms .featured-img > a,
body.sl-property-landing .elementor-widget-google_maps .elementor-custom-embed {
  border-radius: 24px;
  overflow: hidden;
}

body.sl-property-landing .elementor-widget-cs_rooms .featured-img img,
body.sl-property-landing .elementor-widget-google_maps iframe {
  border-radius: 24px;
}

.cs-gallery.gallery-carousel.sl-property-gallery {
  --gallery-gap: 10px;
  --sl-gallery-width: clamp(280px, calc(20vw + 19px), 395px);
}

.cs-gallery.gallery-carousel.sl-property-gallery .cs-gallery-item {
  box-sizing: border-box;
  width: var(--sl-gallery-width);
  height: auto;
  padding: 0 var(--gallery-gap);
}

.cs-gallery.gallery-carousel.sl-property-gallery .cs-gallery-item > a {
  display: block;
  border-radius: 24px;
  overflow: hidden;
}

.cs-gallery.gallery-carousel.sl-property-gallery .cs-gallery-item img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
  border-radius: 24px;
}

@media (max-width: 767px) {
  .cs-gallery.gallery-carousel.sl-property-gallery {
    --gallery-gap: 8px;
    --sl-gallery-width: min(80vw, 340px);
  }
}
