.ym-pta-image,
.ym-pta-image .et_pb_image_wrap {
  width: 100%;
  height: 100%;
}

.ym-pta-image img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
}

.ym-pta-kicker,
.ym-pta-language-label {
  margin: 0 0 9px;
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
}

.ym-pta-subtitle,
.ym-section-subtitle {
  margin: 5px 0 22px;
  color: var(--primary);
  font-weight: 700;
}

.ym-pta-impact-card {
  height: 100%;
}

.ym-pta-impact-card .et_pb_blurb_content {
  max-width: none;
}

.ym-pta-language-card {
  height: 100%;
}

.ym-pta-language-card-cy {
  border-top: 4px solid var(--accent) !important;
}

.ym-pta-language-card-en {
  border-top: 4px solid var(--supporting-blue) !important;
}

@media (min-width: 981px) {
  .ym-pta-intro-row,
  .ym-pta-language-row {
    display: grid !important;
    align-items: stretch;
  }

  /*
   * Remove Divi's clearfix pseudo-elements.
   * Otherwise they are treated as grid items.
   */
  .ym-pta-intro-row::before,
  .ym-pta-intro-row::after,
  .ym-pta-language-row::before,
  .ym-pta-language-row::after {
    display: none !important;
    content: none !important;
  }

  .ym-pta-intro-row {
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    gap: 48px;
  }

  .ym-pta-language-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }

  .ym-pta-intro-row > .et_pb_column,
  .ym-pta-language-row > .et_pb_column {
    float: none !important;
    width: auto !important;
    margin: 0 !important;
  }

  .ym-pta-intro-row > .et_pb_column:last-child {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .ym-pta-impact-card .et_pb_main_blurb_image {
  margin-bottom: 14px !important;
}
}

@media (max-width: 980px) {
  .ym-pta-image img {
    min-height: 360px;
  }
}

@media (max-width: 767px) {
  .ym-pta-image img {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .ym-pta-impact-card {
    margin-bottom: 18px !important;
  }
}