#portifolio {
  padding: 40px 0;
}

#portifolio .portifolioTitle {
  font-family: serif;
  text-align: center;
  margin-bottom: 0px !important;
  font-size: clamp(26px, 3vw, 50px);
}

#portifolio .portifolioDesc {
  text-align: center;
  margin-bottom: 40px;
  font-size: clamp(16px, 3vw, 20px);
}

#portifolio .row {
  margin-bottom: 24px;
}

#portifolio .dCardTitle {
  background-color: #ffffffee;
  font-size: 12px;
  color: #000;
  padding: 10px 20px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

#portifolio .dPCard {
  transform-style: preserve-3d;
  display: flex;
  justify-content: center;
  position: relative;
  transition: 0.5s transform;
}

#portifolio .dPCard > a {
  width: 100%;
  height: 100%;
}

#portifolio .dPCard:hover .front img {
  transform: scale(1.02);
  filter: brightness(0.8);
}

#portifolio .face {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  position: absolute;
  width: 100%;
  height: 100%;
}

#portifolio .front {
  transform: rotateY(180deg);
  position: relative;
}

#portifolio .front img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

#portifolio .back {
  background-color: #fff;
  backface-visibility: hidden;
  color: #000;
  padding: 10px;
}

#portifolio .backText {
  font-weight: bold;
}

#portifolio .btnContrate {
  background-color: #000;
  text-decoration: none;
  color: #fff;
  padding: 10px 50px;
  opacity: 0.7;
}

#portifolio .flip {
  transform: rotateY(180deg);
}

@media (min-width: 0px) {
  #portifolio .portifolioDesc {
    text-align: center;
  }
  #portifolio .face {
    width: 100%;
    height: 300px;
  }
}
