/* Cards carousel — Figma 310:6717 */

.wh-cards-card {
  display: flex;
  flex-direction: column;
  gap: 1.8125rem;
  height: 100%;
}

.wh-cards-card__media {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 23.75rem;
  overflow: hidden;
  border-radius: 1rem;
  background-color: #e5e7eb;
  background-image: var(--wh-card-image);
  background-position: center;
  background-size: cover;
  box-shadow:
    0 2px 2px rgb(0 0 0 / 5%),
    0 4px 3px rgb(0 0 0 / 10%);
  text-decoration: none;
}

.wh-cards-card__media--placeholder {
  background-image: none;
}

.wh-cards-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgb(11 31 65 / 15%) 0%,
    rgb(11 31 65 / 55%) 45%,
    rgb(11 31 65 / 88%) 100%
  );
  transition: opacity 0.35s ease;
}

.wh-cards-card__excerpt {
  position: relative;
  z-index: 1;
  padding: 1.5rem;
  font-size: 1.125rem;
  line-height: 1.75rem;
  color: #f9fafb;
  transition: opacity 0.35s ease;
}

.wh-cards-card__media:hover .wh-cards-card__overlay,
.wh-cards-card__media:focus-visible .wh-cards-card__overlay {
  opacity: 0;
}

.wh-cards-card__media:hover .wh-cards-card__excerpt,
.wh-cards-card__media:focus-visible .wh-cards-card__excerpt {
  opacity: 0;
}

.wh-cards-card__label {
  margin: 0;
  font-size: 1.875rem;
  font-weight: 600;
  line-height: 2.25rem;
  text-align: center;
}

.wh-cards-card__label a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.wh-cards-card__label a:hover,
.wh-cards-card__label a:focus-visible {
  opacity: 0.85;
}

@media (max-width: 767px) {
  .wh-cards-card__media {
    min-height: 20rem;
  }

  .wh-cards-card__label {
    font-size: 1.5rem;
    line-height: 1.875rem;
  }
}
