.cardstack-box {
  position: relative;
  width: 100%;
  height: 100%;
}

.cardstack-box .card {
  width: 95%;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
}

.cardstack-box .card.hide {
  visibility: hidden;
}

.cardstack-box .card:not(.hide) {
  position: absolute;
  top: 0;
  left: 5%;
  transition: all 0.8s cubic-bezier(0.18, 0.98, 0.45, 1);
}

.cardstack-box .card:not(.hide)[data-slide="0"] {
  transform: translate(0px, 0px) scale(1);
  z-index: 6;
  opacity: 1;
}

.cardstack-box .card:not(.hide)[data-slide="1"] {
  transform: translate(-15px, 15px) scale(0.975);
  z-index: 5;
  opacity: 0.9;
}

.cardstack-box .card:not(.hide)[data-slide="2"] {
  transform: translate(-30px, 30px) scale(0.95);
  z-index: 4;
  opacity: 0.8;
}

.cardstack-box .card:not(.hide)[data-slide="3"] {
  transform: translate(-45px, 45px) scale(0.925);
  z-index: 3;
  opacity: 0.7;
}

.cardstack-box .card:not(.hide)[data-slide="4"] {
  transform: translate(-60px, 60px) scale(0.9);
  z-index: 2;
  opacity: 0.6;
}

.cardstack-box .card:not(.hide)[data-slide="5"] {
  transform: translate(-75px, 75px) scale(0.875);
  z-index: 1;
  opacity: 0.5;
}

.cardstack-box .card:not(.hide)[data-slide="0"] {
  transition: all 0.32s cubic-bezier(0.18, 0.98, 0.45, 1);
}
.content-placeholder {
  cursor: default;
}
.content-placeholder img {
  max-width: 100%;
  object-fit: cover;
}

@media screen and (max-width: 768px) {
  .cardstack-box {
    height: 500px;
  }
}

@media screen and (max-width: 576px) {
  .cardstack-box {
    height: 200px;
  }
}
