* {
  margin: 0;
  padding: 0;
}


.container-cards {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  grid-template-areas:"box-1 box-2 box-3 box-4"
                      "box-5 box-6";
  flex-wrap: wrap;
  transform-style: preserve-3d;
  perspective: 500px;
  margin: auto;
  row-gap: 100px;
}
.container-cards .box {
  position: relative;
  width: 350px;
  height: 350px;
  background: #000;
  transition: 2s;
  transform-style: preserve-3d;
  overflow: hidden;
  border-radius: 10px;
  margin-top: 45px;
  margin: 0px auto;
}
.container-cards:hover .box {
  transform: rotateY(25deg);
}
.container-cards .box:hover ~ .box {
  transform: rotateY(-25deg);
}
.container-cards .box:hover {
  transform: rotateY(0deg) scale(1.25);
  z-index: 1;
  box-shadow: 0 25px 40px rgba(0,0,0,0.5);
}
.container-cards .box .imgBx {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.container-cards .box .imgBx:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.7);
  background: linear-gradient(180deg,rgba(191, 27, 51, 1.0),#000);
  z-index: 1;
  opacity: 0;
  transition:0.5s;
  mix-blend-mode: multiply;
}
.container-cards .box:hover .imgBx:before {
  opacity: 1;
}
.container-cards .box .imgBx img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.container-cards .box .content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  display: flex;
  padding: 20px;
  align-items: flex-end;
  box-sizing: border-box;
}

.container-cards .box .content p {
  color: #fff;
  transition: 0.3s;
  display: flex;
  transform: translateY(200px);
  transition-delay: 0.3s;
  font-size: 30px;
  text-transform: uppercase;
  position: absolute;
  top: 45%;
  letter-spacing: 5px;
}
.container-cards .box:hover .content p {
  transform: translateY(0px);
}

