/**
 *
 * Cape Gastro Card Components
 *
 */

.card,
.card *,
a.btn,
*>a.btn {
  font-family: 'Open Sans', sans-serif;
}

.card .card-body .card-title {
  font-size: 20px;
  line-height: 30px;
}

.card {
  padding: 40px;
}

.card.active {
  background-color: var(--theme-color);
  color: #ffffff;
}

.card.active * {
  color: inherit;
}

.card .card-img-top {
  max-width: 130px;
  max-height: 130px;
  margin: auto;
}


.card-deck .card {
  display: -ms-flexbox;
  display: flex;
  -ms-flex: 1 auto;
  flex: 1 auto;
  -ms-flex-direction: column;
  flex-direction: column;
  margin: 20px;
}

.card {
  min-width: calc(1140px / 3 - 2 * 20px);
  max-width: 340px;
  /* width: 100%; */
  height: 415px;
  border: 1px solid #c0c0c0 !important;
  border-radius: 1rem;
  margin: 1rem 20px;
}

.card .card-img-top.img-fluid {
  max-width: 130px;
  max-height: 130px;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/*
.card .card-img-top.img-fluid[src$='.svg'] {
  filter: invert(1);
}
*/

.card.active .card-img-top.img-fluid[src$='.svg'],
.card:hover .card-img-top.img-fluid[src$='.svg'] {
  filter: invert(0);
}

.card .card-body,
.card .card-body * {
  text-align: center;
}

.card .card-body .card-title {
  min-height: 100px;
  max-height: 100px;
  margin: 1.25rem auto;
  color: var(--theme-color);
  font-size: 20px;
  font-weight: 400;
  line-height: 30px;
  text-transform: uppercase;
}

.card .card-text .cta {
  max-width: 100%;
  max-height: 40px;
  width: 100%;
  margin: auto;
  overflow: hidden;
}

.card a.card-link,
.card a[class*=link],
.card .card-body .cta a.stretched-link {
  background-color: #5f6062;
  /* var(--color-background); */
  color: var(--color-white);
  line-height: 40px;
  padding: 0.5rem 4rem;
}

.card.active,
.card:hover {
  background-color: var(--theme-color);
}

.card.active .card-body .card-title,
.card:hover .card-body .card-title {
  color: var(--color-white);
}

.card.active .card-link,
.card.active [class*=link],
.card.active .card-body .cta a.stretched-link,
.card:hover .card-link,
.card:hover [class*=link],
.card:hover .card-body .cta a.stretched-link {
  background-color: var(--color-white);
  color: var(--theme-color);
  line-height: 40px;
}

/* 
.card.active a.stretched-link,
.card:hover a.stretched-link {
  filter: drop-shadow(-1px 2px 3px rgba(10, 10, 10, 0.5));
}
 */

.card .card-body {
  padding: 0;
}

.card.active,
.card:hover,
.card.active .card-body,
.card:hover .card-body {
  cursor: pointer;
}

.card .card-img-top.img-fluid {
  display: block;
}

.card .card-img-top.img-fluid.on-hover {
  display: none;
}

.card.active .card-img-top.img-fluid,
.card:hover .card-img-top.img-fluid {
  display: none;
}

.card.active .card-img-top.img-fluid.on-hover,
.card:hover .card-img-top.img-fluid.on-hover {
  display: block;
}

.card-columns {
  display: flex;
  justify-content: space-between !important;
  flex-wrap: wrap;
}

.card-columns .card {
  flex: 0 0 345px;
}

.card {
  min-width: 280px;
  max-width: 345px;
  margin: 1rem 0;
}

.card-columns {
  -webkit-column-count: 3;
  -moz-column-count: 3;
  column-count: 3;
  -webkit-column-gap: 0;
  -moz-column-gap: 0;
  column-gap: 0;
  orphans: 1;
  widows: 1;
}

.card-columns {
  justify-content: space-around !important;
}

.card-columns .card {
  margin: 1rem 0;
}


@media only screen and (max-width: 1440px) {
  .card-columns .card {
    flex: 0 0 340px;
  }

  .card {
    min-width: 280px;
    max-width: 340px;
    padding: 50px 20px;
    margin: 1rem 0;
  }

  .card .card-body .card-title {
    font-size: 20px;
    letter-spacing: calc(1em * (40 / 1000));
  }

}

@media only screen and (max-width: 1366px) {

  .card-columns .card {
    flex: 0 0 300px;
  }

}

@media only screen and (max-width: 1280px) {
  .card {
    max-width: 300px;
  }

  .card-columns .card {
    flex: 0 0 30vmax;
  }

  .card {
    min-width: 240px;
    padding: 50px 20px;
    margin: 1rem 0;
  }

  .card .card-body .card-title {
    font-size: 19px;
    min-height: 110px;
    max-height: 110px;
  }


}

@media only screen and (max-width: 1200px) {
  .card-columns .card {
    flex: 0 0 24vmax;
  }
}

@media only screen and (max-width: 1024px) {
  .card {
    padding: 50px 15px;
  }

  .card-columns .card {
    margin: 0.5rem 0;
  }

  .card {
    min-width: 240px;
    max-width: 330px;
  }

  .card .card-body .card-title {
    font-size: 15px;
    font-weight: 400;
  }

  .card a.card-link,
  .card a[class*=link],
  .card .card-body .cta a.stretched-link {
    padding: 0.5rem 3rem;
  }

  .card-columns {
    -webkit-column-count: 2;
    -moz-column-count: 2;
    column-count: 2;
    -webkit-column-gap: 0;
    -moz-column-gap: 0;
    column-gap: 0;
    orphans: 1;
    widows: 1;
  }

  .card {
    max-width: 240px;
  }

  .card-columns .card {
    flex: 0 0 240px;
  }
}

@media only screen and (max-width: 992px) {

  .card-columns {
    -webkit-column-count: 2;
    -moz-column-count: 2;
    column-count: 2;
    -webkit-column-gap: 0;
    -moz-column-gap: 0;
    column-gap: 0;
    orphans: 1;
    widows: 1;
  }

  .card-columns {
    justify-content: space-between !important;
  }

  .card .card-body .card-title {
    min-height: 90px;
    font-size: 17px;
  }

  .card-columns .card {
    flex: 0 0 280px;
  }
}

@media only screen and (max-width: 768px) {

  .card-columns {
    -webkit-column-count: 1;
    -moz-column-count: 1;
    column-count: 1;
    -webkit-column-gap: 0;
    -moz-column-gap: 0;
    column-gap: 0;
    orphans: 1;
    widows: 1;
  }

  .card-columns {
    justify-content: space-around !important;
  }

  .card .card-body .card-title {
    min-height: 90px;
    font-size: 17px;
  }

  .card-columns .card {
    flex: 0 0 50%;
  }

  .card {
    min-width: 280px;
    max-width: 50%;
    margin: 1rem !important;
    height: auto;
  }

  .card .card-body .card-title {
    min-height: unset;
    max-height: unset;
  }

  .page-section .title h2 {
    font-size: 18px;
  }

  .card-deck .card,
  .card {
    min-width: 285px;
    max-width: 285px;
    margin: 25px auto !important;
  }

}
