.lab-card {
  width: var(--lab-card-width, 350px);
  height: var(--lab-card-height, 375px);
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.25));
  /* Center within any layout */
  margin-left: auto;
  margin-right: auto;
  align-self: center; /* when parent is flex */
}

.lab-card__image {
  position: relative;
  width: 100%;
  height: 60%;
  background-color: #e0e0e0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.lab-card__image > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lab-card__content {
  width: 100%;
  height: 40%;
  background: #ffffff;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.lab-card__title {
  margin: 0;
}

.lab-card__description {
  margin: 0;
  overflow: hidden;
}

.lab-card__cta {
  font-weight: 700;
  margin-top: auto;
}

@media (max-width: 480px) {
  .lab-card {
    width: 100%;
    max-width: var(--lab-card-width, 350px);
  }
}

/* Clickable card link reset */
.lab-card--link {
  display: flex;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.lab-card--link:hover,
.lab-card--link:focus {
  text-decoration: none;
}
