.content-with-image .bg-img {
  max-width: 200px;
  margin: 20px auto 0
}

.content-with-image .row {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.content-with-image .column {
  width: 95%;
  margin-bottom: 20px;
  display: flex;
}

.content-with-image .column:last-child {
  margin: 0;
}

@media all and (min-width: 768px) {
  .content-with-image .row {
    padding-top: 20px;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .content-with-image .column {
    width: 20%;
    padding: 0 5px;
  }

}

@media (min-width: 1024px) {
  .content-with-image .row {
    flex-wrap: nowrap;
  }
}



.content-with-image .card {
  padding: 5px;
  text-align: center;
  min-width: 190px;
  min-height: 265px;
  transition: all 200ms ease-in;
  transform: scale(1);
  width: 100%;
  color: #FFFFFF;
  font-weight: 700;
  font-size: 24px;
  display: flex;
  justify-content: center;
  align-items: center;

}

.content-with-image .card:hover {
  box-shadow: 5px 5px 20px #333333;
  z-index: 2;
  transition: all 200ms ease-in;
  transform: scale(1.1);
  text-decoration: none;
}


@media (min-width: 596px) {
  .content-with-image .bg-img {
    max-width: 240px
  }
}

@media (min-width: 768px) {
  .content-with-image .bg-img {
    max-width: 280px
  }
}

@media (min-width: 1024px) {
  .content-with-image .bg-img {
    max-width: 324px
  }
}

@media (min-width: 768px) {
  .content-with-image .content-wrapper .row .column {
    width: 48%
  }

  .content-with-image .content-wrapper .row .column:nth-child(odd) {
    margin-right: 7.5px
  }

  .content-with-image .content-wrapper .row .column:nth-child(even) {
    margin-left: 7.5px
  }
}

@media (min-width: 1024px) {

  .content-with-image .content-wrapper .row .column:nth-child(odd) {
    margin-right: 0
  }

  .content-with-image .content-wrapper .row .column:nth-child(even) {
    margin-left: 0
  }
}

.content-with-image .content-wrapper .row .column .card:hover {
  transform: scale(1) !important
}

@media (min-width: 1024px) {
  .content-with-image .content-wrapper .row .column .card:hover {
    transform: scale(1.1) !important
  }
}

.content-with-image img {
  width: 100%
}

@media (min-width: 992px) {
  .content-with-image .column {
    margin: 0;
  }

  .content-with-image figure {
    width: 100%;
    height: 0;
    padding-top: calc(9 / 22 * 100%);
    position: relative
  }

  .content-with-image figure.ratio9-17{
    padding-top: calc(9 / 17 * 100%);
  }

  .content-with-image figure img {
    height: 100%;
    width: 100%;
    object-fit: contain;
    position: absolute;
    top: 0;
    left: 0;
    right: 0
  }
}