[data-component-id="ivnational:teaser"] .resource-reference {
  display: flex;
  max-width: 720px;
  align-items: center;
  gap: 24px;
  width: 100%;
  flex-direction: column;
}

.resource-reference .ref-thumb {
  flex-shrink: 0;
  border-radius: 16px;
  box-shadow: 0px 0px 0px 0px #fff inset,
    0px 0px 0px 1px rgba(17, 24, 39, 0.1) inset;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  height: 336px;
}
.resource-reference .ref-link {
  min-height: 120px;
  height: 100%;
  width: 100%;
}

.resource-reference .ref-content {
  margin-right: auto;
}

.resource-reference .ref-body {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: #4B5563;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 150%;
}

[data-component-id="ivnational:teaser"] .ref-title {
  color: #006680;
  font-family: GaspoSlab, sans-serif;
  font-size: 24px;
  font-style: normal;
  font-weight: 400;
  line-height: 120%;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

[data-component-id="ivnational:teaser"] .ref-title a {
  color: #006680;
  text-decoration: none;
}

[data-component-id="ivnational:teaser"] .ref-tags {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

[data-component-id="ivnational:teaser"] .ref-tags .ref-tag {
  display: flex;
  padding: 6px 12px;
  flex-direction: column;
  align-items: flex-start;
  border-radius: 9999px;
  color: #4b5563;
  background: #f9fafb;
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  line-height: 16px;
  text-decoration: none;
}
.ref-tags .ref-tag.only-staff {
  background: #FFF0F5;
  color: #801039;
}

 /* handle spacing in parent when the component is used in a view */
.view-content.row:has([data-component-id="ivnational:teaser"]) {
  display: flex;
  gap: 24px;
  flex-direction: column;
  margin-bottom: 48px;
  margin-top: 48px;
}

@media (min-width: 600px) {
  [data-component-id="ivnational:teaser"] .resource-reference {
    flex-direction: row;
  }
  .resource-reference .ref-thumb {
    width: 120px;
    height: 120px;
  }
  .resource-reference .ref-link {
    width: 120px;
  }
}

