/**
 * Newsletter card ("Novičnik", listing template 20808).
 *
 * The card is stretched to the height of whatever sits next to it. Spare height goes
 * to the picture (not to empty dark space): it never gets smaller than the minimum.
 * Set up by scripts/elementor/005-newsletter-card-image-grows.php (class sm-card-image).
 */

:root {
  --sm-card-image-min: 190px;
  --sm-card-image-min-mobile: 180px;
}

body .sm-card-image {
  flex: 1 1 var(--sm-card-image-min);
  min-height: var(--sm-card-image-min);
}

body .sm-card-image > .elementor-widget-container {
  height: 100%;
}

body .sm-card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 767px) {
  body .sm-card-image {
    flex-basis: var(--sm-card-image-min-mobile);
    min-height: var(--sm-card-image-min-mobile);
  }
}
