.portfolio-card {
  width: 78vw;
  max-width: 320px;
}

.portfolio-card-preview {
  height: 400px;
}

.portfolio-card-figure img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: 50% 0%;
  transition: object-position 3s ease;
}

.portfolio-card:hover .portfolio-card-figure img {
  object-position: 50% 100%;
}

@media (min-width: 768px) {
  .portfolio-card {
    width: calc((100% - 2.5rem) / 2.5);
    max-width: none;
  }
}
