/* ==========================================================================
   THEME-BY-THE-NUMBERS  â€”  2-col grid: images + colored text tiles
   ========================================================================== */

.theme-by-the-numbers {
  padding: 0 0 var(--section-pad-y);
  background: #fff;
}
.theme-by-the-numbers:before {
  content: '';
  position: absolute;
  width: 100%;
  height: 130px;
  background: #cce1f4
}

.theme-by-the-numbers .container {
  max-width: var(--container);
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.theme-by-the-numbers__title {
  background: #F26836;
  font-family: var(--serif);
  font-size: var(--h1);
  font-weight: 600;
  line-height: 1.2;
  color: #fff;
  margin: 0 0 120px;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  width: 100%;
  height: 200px;
  max-width: 1000px;
  clip-path: polygon(100% 0, 100% 65%, 92% 100%, 0 100%, 0 0);
  padding: 65px 60px;
}

.theme-by-the-numbers__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 1fr;
  gap: 0;
}

.theme-by-the-numbers__cell {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.theme-by-the-numbers__cell--image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.theme-by-the-numbers__cell--text {
  justify-content: center;
  padding: clamp(28px, 4vw, 60px);
  color: #fff;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 15% 100%, 0 85%);
  background-image: url(../../../assets/img/numbers-lines.svg);
  background-repeat: repeat-x;
  background-position: left bottom;
}

.theme-by-the-numbers__cell--bg-blue       { background-color: #037ABF; }
.theme-by-the-numbers__cell--bg-green      { background-color: #408257; }
.theme-by-the-numbers__cell--bg-dark-green { background-color: #004F42; }

.theme-by-the-numbers__cell-heading {
  font-family: var(--sans-condensed);
  font-size: clamp(28px, 3vw, 48px);
  font-weight: 700;
  line-height: 1.1;
  color: #fff;
  margin: 0 0 16px;
  font-size: 100px;
  font-style: normal;
  font-weight: 700;
  line-height: 1em; /* 26.4% */
  text-transform: uppercase;
}

.theme-by-the-numbers__cell-text {
  font-family: var(--sans);
  color: #fff;
  margin: 0;
  

/* MSSF H5 */
  font-size: 36px;
  font-style: normal;
  font-weight: 500;
  line-height: 150%; /* 54px */
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1400px) {
  .theme-by-the-numbers__title {
    max-width: 600px
  }
}
@media (max-width: 1200px) {
  .theme-by-the-numbers__cell-heading {
    font-size: 60px
  }
  .theme-by-the-numbers__cell-text {
    font-size: 25px;
  }
}
@media (max-width: 768px) {
  .theme-by-the-numbers__cell-heading {
    font-size: 42px
  }
  .theme-by-the-numbers__cell-text {
    font-size: 18px;
  }
  .theme-by-the-numbers {padding: 0 0 48px;}
  .theme-by-the-numbers:before {
    height: 90px
  }
  .theme-by-the-numbers__title {
    margin-bottom: 24px;
    height: auto;
    padding: 40px 20px;
  }
  .theme-by-the-numbers__grid {
    gap: 16px;
  }
}

@media (max-width: 520px) {
  .theme-by-the-numbers {padding: 0 0 36px;}
  .theme-by-the-numbers__grid {
    grid-template-columns: 1fr;
  }
}
