/* ==========================================================================
   Stats (number tiles: "2005 opgericht", "±100 leden")
   Structure:
   div.stats
     div.stat.stat--yellow
       span.stat__num     "2005"
       span.stat__label   "opgericht op 27 augustus"
     div.stat.stat--dark  ...

   Floating variant on an image ("Over ons" teaser on Home):
   div.media-wrap
     img
     div.stat.stat--yellow.stat--float
   ========================================================================== */

body .elementor .stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-width: 440px;
}

body .elementor .stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px 22px;
  border-radius: var(--radius-m);
}

body .elementor .stat__num {
  font-family: var(--font-display);
  font-weight: 600;
  font-style: italic;
  font-size: 44px;
  line-height: 1;
}

body .elementor .stat__label {
  font-weight: 500;
  font-size: 15px;
}

body .elementor .stat--yellow {
  background: var(--yellow);
  color: var(--navy);
}
body .elementor .stat--dark {
  background: var(--navy);
  color: var(--cream);
}

/* Image with a floating tile */
body .elementor .media-wrap {
  position: relative;
}
body .elementor .media-wrap img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 42% center;
  border-radius: var(--radius-xl);
}

body .elementor .stat--float {
  position: absolute;
  left: -16px;
  bottom: 28px;
  flex-direction: row;
  align-items: baseline;
  gap: 10px;
  padding: 18px 22px;
  box-shadow: 0 12px 30px rgb(27 37 47 / 0.18);
}
body .elementor .stat--float .stat__num {
  font-size: 48px;
}
body .elementor .stat--float .stat__label {
  font-weight: 600;
}

@media (max-width: 767px) {
  body .elementor .stat--float {
    left: 12px;
    bottom: 12px;
  } /* stays inside the screen */
}
