.carousel-wrapper {
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.carousel-center {
  margin: 0 auto;
  width: 466px;
  height: 582px;
  position: relative;
  perspective: 1000px;

  @media (max-width: 1024px) {
    width: 277px;
    height: 346px;
    perspective: 800px;
  }

  @media (max-width: 768px) {
    width: 200px;
    height: 250px;
  }
}

.carousel {
  height: 100%;
  width: 100%;
  position: absolute;
  transform-style: preserve-3d;
}

.carousel.transition {
  transition: transform 1s;
}

.carousel div {
  transform-style: preserve-3d;
}

.carousel-item {
  position: absolute;
  border-radius: 32px;
  overflow: hidden;
  width: 466px;
  height: 582px;
  background-color: #e9e9e9;
  transition: transform 1s;
  box-shadow: var(--bs-lg);
  display: flex;
  justify-content: center;
  align-items: center;

  @media (max-width: 1024px) {
    width: 277px;
    height: 346px;
    border-radius: 22px;
  }

  @media (max-width: 768px) {
    width: 200px;
    height: 250px;
  }
}

.carousel-a {
  transform: rotateY(0deg) translateZ(110px);

  @media (max-width: 1024px) {
    transform: rotateY(0deg) translateZ(60px) !important;
  }
}

.carousel-b {
  transform: rotateY(36deg) translateZ(110px) rotateY(-36deg);

  @media (max-width: 1024px) {
    transform: rotateY(36deg) translateZ(60px) rotateY(-36deg) !important;
  }
}

.carousel-c {
  transform: rotateY(72deg) translateZ(110px) rotateY(-72deg);

  @media (max-width: 1024px) {
    transform: rotateY(72deg) translateZ(60px) rotateY(-72deg) !important;
  }
}

.carousel-d {
  transform: rotateY(108deg) translateZ(110px) rotateY(-108deg);

  @media (max-width: 1024px) {
    transform: rotateY(108deg) translateZ(60px) rotateY(-108deg) !important;
  }
}

.carousel-e {
  transform: rotateY(144deg) translateZ(110px) rotateY(-144deg);

  @media (max-width: 1024px) {
    transform: rotateY(144deg) translateZ(60px) rotateY(-144deg) !important;
  }
}

.carousel-f {
  transform: rotateY(180deg) translateZ(110px) rotateY(-180deg);

  @media (max-width: 1024px) {
    transform: rotateY(180deg) translateZ(60px) rotateY(-180deg) !important;
  }
}

.carousel-g {
  transform: rotateY(216deg) translateZ(110px) rotateY(-216deg);

  @media (max-width: 1024px) {
    transform: rotateY(216deg) translateZ(60px) rotateY(-216deg) !important;
  }
}

.carousel-h {
  transform: rotateY(252deg) translateZ(110px) rotateY(-252deg);

  @media (max-width: 1024px) {
    transform: rotateY(252deg) translateZ(60px) rotateY(-252deg) !important;
  }
}

.carousel-i {
  transform: rotateY(288deg) translateZ(110px) rotateY(-288deg);

  @media (max-width: 1024px) {
    transform: rotateY(288deg) translateZ(60px) rotateY(-288deg) !important;
  }
}

.carousel-j {
  transform: rotateY(324deg) translateZ(110px) rotateY(-324deg);

  @media (max-width: 1024px) {
    transform: rotateY(324deg) translateZ(60px) rotateY(-324deg) !important;
  }
}

.next,
.prev {
  color: #444;
  position: absolute;
  top: 100px;
  padding: 1em 2em;
  cursor: pointer;
  background: #ccc;
  border-radius: 5px;
  border-top: 1px solid #fff;
  box-shadow: 0 5px 0 #999;
  transition:
    box-shadow 0.1s,
    top 0.1s;
}

.carousel-item figure {
  margin: 0 auto;
}

figure img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.navigation-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  opacity: 1;

  @media (max-width: 1024px) {
    bottom: 0;
  }
}

.navigation-dots .dot {
  z-index: 2;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: transparent;
  border: 2px solid #181818;
  cursor: pointer;

  &:hover {
    background-color: #fffaee;
  }

  @media (max-width: 1024px) {
    width: 12px;
    height: 12px;
  }
}

.navigation-dots .dot.active {
  background-color: #181818;
}

.navigation-tabs {
  display: flex;
  flex-direction: row;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 20px;
  opacity: 1;

  @media (max-width: 1024px) {
    gap: 8px;
    order: 2;
  }
}

.navigation-tabs .tab {
  width: 80px;
  position: relative;
  cursor: pointer;

  @media (max-width: 1024px) {
    width: 70px;
  }

  &::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -30px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: #fffaee;
    cursor: pointer;
    transform: translateX(-50%);
    opacity: 0;
  }
}

.navigation-tabs .tab.active {
  &::before {
    opacity: 1;
  }
}
