.stack {
  width: 55%;
  max-width: 400px;
  transition: 0.25s ease;
    &:hover {
    transform: rotate(50deg);
    .card:before {
    transform: translatey(-2%) rotate(-4deg);
    }
    .card:after {
    transform: translatey(2%) rotate(4deg);
    }
}
}

.card {
  border: 4px solid black;
  background-color: #fff;
  position: relative;
  transition: 0.15s ease;
  cursor: pointer;
  padding: 5% 5% 5% 5%;
  &:before,
  &:after {
    content: "";
    display: block;
    position: absolute;
    height: 100%;
    width: 100%;
    border: 4px solid black;
    background-color: #fff;
    transform-origin: center center;
    z-index: -1;
    transition: 0.15s ease;
    top: 0;
    left: 0;
  }

  &:before {
    transform: translatey(-2%) rotate(-6deg);
  }

  &:after {
    transform: translatey(2%) rotate(6deg);
  }
}

.image {
  width: 100%;
  background-color: #eee;
  position: relative;
  border: 4px solid black;
  padding: 0;
  aspect-ratio: unset; /* remove o aspecto fixo */
}

.image img {
  width: 100%;
  height: auto;
  display: block;
}

.browser-warning {
  margin-bottom: 4rem;
}

@supports (aspect-ratio: 1 / 1) {
  .browser-warning {
    display: none;
  }
}

.tape {
  position: absolute;
  width: 100px;
  height: 20px;
  background: #f9eec2;
  opacity: 0.8;
  transform: rotate(-8deg);
  z-index: 2;
}

.tape.tl { top: -10px; left: -10px; transform: rotate(-10deg); }
.tape.tr { top: -10px; right: -10px; transform: rotate(10deg); }
.tape.bl { bottom: -10px; left: -10px; transform: rotate(8deg); }
.tape.br { bottom: -10px; right: -10px; transform: rotate(-12deg); }

.foto:nth-child(1) { position: absolute; top: 115px; left: 0;  z-index: 7;}
.foto:nth-child(2) { position: absolute; top: 260px; left: 443px;  z-index: 8; }
.foto:nth-child(3) { position: absolute; top: 175px; right: 0;  z-index: 6; }

.foto:nth-child(4) { position: absolute; top: 500px; left: 0;  z-index: 5; }
.foto:nth-child(5) { position: absolute; top: 645px; left: 443px;  z-index: 4; }
.foto:nth-child(6) { position: absolute; top: 560px; right: 0;  z-index: 3; }

.foto:nth-child(7) { position: absolute; top: 885px; left: 0;  z-index: 2; }
.foto:nth-child(8) { position: absolute; top: 945px; right: 0;  z-index: 1; }

@media (max-width: 768px) {
  .card {
    width: 45%;
  }
}

@media (max-width: 480px) {
  .card {
    width: 90%;
  }
}

@media (max-width: 1450px) {
  .pb-12.relative {
    display: grid;
    padding-top: 40px;
    grid-template-columns: repeat(2, 1fr); 
    gap: 6rem;
    justify-items: center;
    position: static; 
  }

  .foto {
    position: static !important; 
    width: 100%;
    max-width: 400px;
  }
}

@media (max-width: 768px) { 
  .pb-12.relative {
    display: none;
  }
}