.card.card--project {
  --image-active: #00000080;
  --image-hover: #00000040;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-items: flex-start;
  text-decoration: none;
  gap: 0.875rem;
}

  .card.card--project:hover .image-wrapper::after {
      background: var(--image-hover);
    }

  .card.card--project:active .image-wrapper::after {
      background: var(--image-active);
    }

  @media (width > 50rem) {.card.card--project {
    flex-direction: row;
    align-items: center;
    gap: 1rem
}
  }

  .card.card--project .image-wrapper {
    max-width: 500px;
    position: relative;
    flex: 1 1 300px;
    overflow: hidden;
  }

  .card.card--project .image-wrapper::after {
      content: "";
      position: absolute;
      height: 100%;
      width: 100%;
      top: 0;
      left: 0;
      background: transparent;
      transition: background 300ms cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }

  .card.card--project .card--content {
    flex: 2 1 40%;
    flex-direction: column;
    gap: 0.875rem;
  }

  @media (width > 50rem) {

  .card.card--project .card--content {
      flex: 2 1 70%;
      gap: 1rem
  }
    }

  .card.card--project .card--body {
    font-size: 18px;
    font-weight: 400;
    line-height: 22px;
  }

  .card.card--project .card--tags span {
    color: var(--charcoal);
  }

  .card.card--project .card--date {
    font-weight: 500;
    color: var(--link-color);
  }

  .card.card--project .card--title > * {
    margin-block: 0;
  }

  .card.card--project[data-variant="project"] {
    align-items: flex-start;
  }

  .card.card--project[data-variant="project"] .image-wrapper {
      flex: none;
      aspect-ratio: 3 / 1;
    }
