.container_portfolio {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.card-portfolio {
  background-size: cover;
  background-position: center;
  height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  border-radius: 10px;
  align-items: center;
  text-decoration: none;
  overflow: hidden;
  box-shadow: 0px 4px 10px #0002;
  transition: 0.2s ease-in-out all;

  & > div {
    position: relative;
    height: 100%;
    width: 100%;
    &::before {
      content: "";
      position: absolute;
      width: 100%;
      height: 100%;
      background: linear-gradient(to top, #000000d1 35%, #ffffff00);
      transform: translateY(20%);
      transition: transform 0.3s ease-in-out;
      z-index: 1;
    }
  }

  &:hover {
    box-shadow: 0px 4px 15px #0005;
    & > div::before {
      transform: translateY(10%);
    }
  }
}

.card-portfolio-content {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: end;
  align-items: center;
  height: 100%;
  gap: 20px;
  color: var(--color-white);
  padding: 14px;
  z-index: 2;

  & > button {
    font-family: var(--font-text);
    background-color: var(--color-white);
    border-radius: 6px;
    border: none;
    padding: 6px 20px;
    box-shadow: 0px 4px 10px #0001;
    color: #000;
    cursor: pointer;
    transition: 0.2s ease-in-out all;
    font-size: 16px;
    transition: transform 0.2s ease-in-out all;

    &:hover {
      box-shadow: 0px 4px 10px #0002;
      opacity: 0.7;
    }
  }

  & > p {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
  }
}

@media (width < 750px) {
  .container_portfolio {
    grid-template-columns: 1fr;
  }
}
