.container-portfolio-slider {
  margin-top: 2rem;
  width: 100%;
  height: 65vh;
  display: block;
  justify-content: center;
  align-items: center;
  overflow-x: hidden;

  @media (max-width: 768px) {
      height: 20vh;
  }


}

.portifolio-button {
  width: 100%;
  text-align: center;
  position: absolute;
  margin-top: 1em;
}

.portifolio-button button {
  border-radius: 8px;
  border: none;
  cursor: pointer;
  margin: 0 5px;
  border: 1px solid rgba(0, 0, 0, 0.4);
  transition: 0.3s;
  background: rgba(255, 255, 255, 0.1);
  font-size: 1.8em;
  padding: 0 32px;
  backdrop-filter: blur(5px);
  color: rgba(255, 255, 255, 0.3);
}

.portifolio-button button:hover {
  background: rgba(56, 1, 1, 0.2);
  color: #fff;
}

.portifolio-slider {
  height: 100%;
  width: 100%;
  display: flex;
  position: absolute;
  align-items: center;
  overflow: hidden;

  @media (max-width: 768px) {

    height: 20%;
    align-items: center;
  }
}

.portifolio-slider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  @media (max-width: 768px) {
    width: 20%;
    height: 20%;
  }
}

.firstSlide {
  animation: firstChild 1s forwards;
}

.lastSlide {
  animation: lastChild 1s forwards;
}

@keyframes firstChild {
  0% {
    left: 10%;
    transform: scale(0.2) translate(-50%, -50%);
  }
  100% {
    left: -13%;
    transform: scale(0.2) translate(-50%, -50%);
  }

  
}



@keyframes lastChild {
  0% {
    left: -13%;
    transform: scale(0.2) translate(-50%, -50%);
  }
  100% {
    left: 100%;
    transform: scale(0.2) translate(-50%, -50%);
  }
}
