.card img {
  width: 100%;
  height: auto;
}

.card .media .media-caption {
  display: none;
}

.card .card-img-top p {
  display: none;
}

.card-header,
.card-footer {
  background: transparent !important;
  border: none !important;
}

.card:not(.horizontal) .media-remote-video {
  border-radius: 20px 20px 0 0;
  overflow: hidden;
  aspect-ratio: 3 / 2;
}

.card.horizontal .media-remote-video {
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 3 / 2;
}

.card .media-remote-video .media-thumbnail {
  height: 100%;
}

.card .media-remote-video img {
  transform: scale(1.25);
  border-radius: 0;
}

.card .fallback {
  border-radius: 20px 20px 0 0;
}

.card .media--type-image img,
.card .card-img-top img,
.card img {
  border-radius: 20px 20px 0 0 !important;
}

.card-header {
  font-size: 24px;
  font-weight: 700;
}

.card:not(.video) .play-button {
  display: none !important;
}

.card.video .play-button {
  top: 0 !important;
  height: 100%;
  transform: none !important;
  z-index: 1;
}

.card.video .play-button button {
  border-radius: 0 !important;
  background-color: unset;
  border: 0;
  height: 100% !important;
  width: 100% !important;
}

.card.video .play-button button::before {
  display: none;
}

.card.video .media--view-mode-wide-3-2 {
  position: absolute;
  top: 0;
}

.card.video .card-body {
  display: none;
}

.card-body {
  color: #052049 !important;
  font-weight: 300;
}

.card .card-header h5,
.card .card-header .h5 {
  text-decoration: underline;
}

.card:hover .h5 {
  text-decoration: none;
}

.card.horizontal {
  margin-bottom: 2rem;
  border: 0;
  border-bottom: #E1E3E5 1px solid;
  padding: 1rem 0;
  border-radius: 0;
}

h3 a {
  font-size: 1.5rem;
  font-weight: 700;

  &:hover {
    text-decoration: none;
  }
}

.tag {
  font-size: 1rem;
  font-weight: 300;

  &::before {
    background: #14828c;
    border-radius: 0.125rem;
    content: '';
    display: inline-block;
    height: 14px;
    margin-right: 10px;
    width: 14px;
  }

  a {
    color: #14828c;
    text-decoration: underline;

    &:focus,
    &:hover {
      color: #0f388a;
      text-decoration: none;
    }
  }
}

.working-title {
  font-size: 1.3rem;
  font-weight: normal;
}

.department {
  font-size: 1.3rem;
  font-style: oblique;
}

&.type.sa-post {
  .tag::before {
    background-color: #0f388a;
  }

  .card-body .address {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .card-body .address > span {
    margin-right: 0.25rem;
  }

  .card-body .locality {
    margin-right: 0 !important;
  }

  .card-body .administrative-area {
    margin-left: 0.25rem;
  }

  .card-body .address .country {
    display: none;
  }
}

.card.horizontal a {
  line-height: 1.2;
  display: block;
  margin-top: 1rem;
}

.card.horizontal {
  @media (max-width: 767px) {
    padding: 0;
    padding-bottom: 0.5rem;
  }
}

.card-content {
  padding: 0 1rem;
}

.card.horizontal .card-header, .card.horizontal .card-footer, .card.horizontal .card-content {
  @media (max-width: 767px) {
    padding: 0;
  }
}

.card-body .field--item {
  font-size: 1.75rem;
}
