.card {
  display: flex;
  height: 100%;
  flex-direction: column;
  background-color: var(--colorGrey);
  color: var(--colorBlue);

  &:hover {
    box-shadow: 0px 0px 12px var(--colorGreyDarker);
  }

  & .card__content-wrap {
    text-align: center;
    overflow: hidden;
    padding: var(--spacing);

    @media (--screensMedium) {
      padding: 24px;
    }
  }

  &.card__content {
    margin-top: var(--spacingSmall);
    font-weight: var(--fontWeightNormal);
  }

  &.card__title {
    font-size: 1.2em;
    font-weight: var(--fontWeightBold);

    @media (--screensMedium) {
      min-height: 74px; /*  Force equal heights of all */
      display: -webkit-box;
      -webkit-line-clamp: 3;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }
  }

  & .card__image {
    line-height: 0;
    flex: 0 0 auto;
  }

  & .card__image-wrap {
    overflow: hidden;
  }

  & .card__image-element {
    transition: transform 0.75s ease;
  }

  & .card:hover .card__image-element {
    transform: scale(1.1);
  }
}

/* REDESIGN */

.card__redesign {
  width: 100%;
  background: white;
  display: flex;
  height: 100%;
  flex-direction: column;
  justify-content: flex-start;
  box-shadow: 1px 2px 4px #0000001a;
  border-radius: 2px;
  /*overflow: hidden;*/
  transition: 0.3s box-shadow;
  position: relative;

  &:hover {
    box-shadow: 1px 6px 12px #0000001a;
  }

  /* ANCHOR TAG WRAPPED AROUND CONTENT*/
  & > a {
    width: 100%;
    text-decoration: none;
    height: 100%;
    overflow: hidden;
    display: flex;
    border-bottom: none;
    flex-direction: column;
    color: inherit;
    margin-top: 0;

    &:hover {
      color: inherit;
      border-bottom: none;
    }
  }

  /* ACTUALL CONTENT e.g. TEXT*/

  & .card__content {
    display: flex;
    flex-direction: column;
    & p {
      margin-top: 0;
    }
  }
  & .card__content-wrap {
    text-align: left;
    margin: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;

    & a {
      position: relative;
      width: max-content;
      display: flex;
      align-items: center;
    }
  }

  & .card__svg {
    height: 80px;
    min-height: 80px;
    max-height: 80px;
    margin: 30px 0 20px 0;
    display: flex;
    justify-content: center;
    & svg {
      height: 80px;
    }
  }

  & .card__svg-url {
    margin: 30px 20px 20px;
    & image {
      height: 100%;
      width: 100%;
    }
  }

  & .card__image-element,
  & .card__image,
  & .card__image-wrap,
  & img {
    height: 130px;
    max-height: 130px;
  }

  & .card__image-element {
    display: block;
    object-fit: cover;
    object-position: center;
  }

  & .card__title {
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;

    @media (--screenMD) {
      -webkit-line-clamp: 3;
    }

    & div.link {
      width: fit-content;
    }
  }
}

/* _-------------------------*/

.card__normal {
  height: 380px;
  max-width: 325px;
  width: 100%;

  @media (--screenLG) {
    max-width: 350px;
  }

  & .card__content-wrap {
    text-align: left;
    margin: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  & .card__title {
    flex-grow: 0;
    margin-bottom: 16px;
    overflow: unset;
  }
  & .card__content {
    word-break: break-word;
    overflow: hidden;
    position: relative;
    text-overflow: ellipsis;
    flex-grow: 1;

    & p {
      margin: 0;
    }
    /* FADE OUT TEXT OVERFLOW*/
    &:before {
      content: '';
      width: 100%;
      height: 100%;
      position: absolute;
      left: 0;
      top: 0;
      background: linear-gradient(rgba(255, 255, 255, 0) 50%, white);
    }
  }

  & .card__image-element,
  & .card__image,
  & .card__image-wrap,
  & img {
    height: 150px;
    max-height: 150px;
  }

  & .card__link {
    margin-top: 16px;
  }
}

.arrow__svg {
  height: 12px;
  transform: rotate(180deg);
  margin-left: 10px;
  font-size: 16px;
}

.card__link {
  width: fit-content;
  align-items: center;
}
