

.portfolio-wrapper {
  margin-top: 5px;
    margin-left: 0px;
}

.line {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}
.line:hover ~ .line .slide {
  transform: translateY(-100%);
}
.line:hover .slide {
  transform: translateX(100%);
}
.line:hover .card:hover ~ .card .slide {
  transform: translateX(-100%);
}
.line:hover .card:hover .slide {
  transform: none;
  visibility: visible;
  transition-delay: 0s;
}

.card {
  overflow: hidden;
  position: relative;
  flex: 1 1 auto;
  max-width: 380px;
  height: 260px;
  margin: 15px;  /*5*/
}
.card .photo-container {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.3);
  background-size: cover;
  background-position: center;
  transform-origin: bottom right;
  transition: 0.2s;
}
.card .photo-container::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}
.card .slide {
  visibility: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.5);
  padding: 15px;
  will-change: transform;
  transform: translateY(100%);
  transition: all 0.275s ease-in-out, visibility 0s 0.275s;
}
.card .slide h2 {
  color: #ffffff;
  font-weight: bolder;
  font-size: 28px;
  margin: 0 0 15px;
  z-index: 0;
}
.card .slide .divider {
  margin-bottom: 15px;
  width: 30px;
  height: 5px;
  background-color: #f5811e;
}
.card .slide p {
  color: #ffffff;
  margin: 0;
}
@media (max-width: 580px) {
  .card {
    flex: none;
    width: 100%;
  }
}