/*
- hover card images should be 300x300 OR 225x225 pixels
- mall all hover cards the same size when used in a group
- make sure the image is large enough so it doesn't stretch
- hover cards are built with square cards in mind
*/

.hc-wrapper {
  display: flex;
  justify-content: center;
}

.hc-card {
  height: 225px;
  width: 225px;
  border-radius: 15px;
  background-color: white;
  position: relative;
  padding: 1.5rem;
  box-shadow: 0px 7px 10px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: flex-end;

  transition: transform 0.3s ease-in-out;
}

.hc-card::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.6);
  height: 100%;
  width: 100%;
  border-radius: 15px;
  opacity: 0;

  transition: opacity 0.3s ease-in-out;
}

.hc-card img {
  height: 100%;
  width: 100%;
  -o-object-fit: cover;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 15px;
}

.hc-card .hc-content {
  z-index: 3;
  position: relative;
  color: var(--je-light-color);
  transform: translateY(30px);
  opacity: 0;

  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.hc-card .hc-content p {
  font-size: .9rem;
  letter-spacing: 1px;
  margin-top: .5em;
}

.hc-card:hover {
  transform: translateY(20px);
}

.hc-card:hover::before {
  opacity: 1;
}

.hc-card:hover .hc-content {
  opacity: 1;
  transform: translateY(0px);
}

@media(min-width: 1200px) {
  .hc-card {
    height: 300px;
    width: 300px;
  }
}