.v-card {
  --v-card-gap: 1.6rem;
  --v-card-padding: 1.6rem;
  --v-card-shade: 0 1px 2px 0 #B3B3B3;
  --v-card-font-size: 1.6rem;
  --v-card-blue: #06C;

  display: flex;
  flex-direction: column;
  gap: var(--v-card-gap);
  padding: var(--v-card-padding);
  box-shadow: var(--v-card-shade);
  background: var(--color-white);
  width: 100%;
  box-sizing: border-box;

  /* prevent content overflow */
  min-width: 0;
  overflow: hidden;

  @media only screen and (min-width: 768px) {
    --v-card-font-size: 1.8rem;
    --v-card-padding: 2rem;
    --v-card-gap: 2rem;
  }

  &.v-card--hyperlink {
    @media only screen and (min-width: 768px) {
      flex-direction: row;
    }
  }
}

.v-card__title {
  font-size: 1.6rem;
  line-height: normal;
  font-weight: 500;
  margin: 0 0 0.8rem 0;
  overflow-wrap: anywhere;
  word-wrap: break-word;
  max-width: 100%;
}

.v-card__description {
  font-size: var(--v-card-font-size);
  line-height: normal;
  font-weight: 400;
  margin: 0 0 1.85rem 0;
  overflow-wrap: anywhere;
  word-wrap: break-word;
  max-width: 100%;
}

.v-card__image {
  width: 100%;
  height: 18.4rem;
  overflow: hidden;

  @media only screen and (min-width: 768px) {
    height: 20rem;
  }

  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
}

.v-card__content {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
}

.v-button__hyperlink {
  margin-top: auto;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
  min-width: 0;
  max-width: 100%;
}

/* Chevron heading variant */
.v-card--chevron-heading .v-card__description {
  margin: 0;
}

.v-card--chevron-heading .v-button {
  order: -1;
  margin-bottom: 1.05rem;
  color: var(--v-card-blue);
}

.v-card--chevron-heading .v-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Hyperlink variant */
.v-card--hyperlink .v-card__image {
  flex: 0 0 auto;
  width: 10rem;
  height: 10rem;
  max-width: 100%;
  overflow: hidden;

  @media only screen and (min-width: 768px) {
    width: 14rem;
    height: 14rem;
  }

  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
}

.v-card--hyperlink .v-card__title {
  @media only screen and (min-width: 768px) {
    font-size: 2.2rem;
  }
}

.v-card--hyperlink .v-card__description {
  @media only screen and (min-width: 768px) {
    margin-bottom: 1.7rem;
  }
}
