
.uee-photo-carousel {
  width: 100vw;
  max-width: none;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 20px 20px 34px;
  background: #ffffff;
  box-sizing: border-box;
  overflow: hidden;
}

.uee-photo-carousel * {
  box-sizing: border-box;
}

.uee-photo-stage {
  position: relative;
  width: min(1340px, 100%);
  height: 610px;
  margin: 0 auto;
  perspective: 650px;
}

.uee-photo-card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 180px;
  height: 350px;
  border-radius: 32px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255,255,255,.5), rgba(255,255,255,0)),
    linear-gradient(135deg, #e8e8e8, #d6d6d6);
  transform: translate(-50%, -50%);
  transform-style: preserve-3d;
  transition: transform .65s ease, opacity .65s ease, filter .65s ease, width .65s ease, height .65s ease;
  box-shadow: none;
  opacity: 1;
}

.uee-photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.uee-photo-card.has-img img {
  display: block;
}

.uee-photo-card::before {
  content: "IMAGE";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b5b5b5;
  font-size: 18px;
  letter-spacing: 2px;
  pointer-events: none;
}

.uee-photo-card.has-img::before {
  content: "";
}

.uee-photo-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.34);
  pointer-events: none;
}

.uee-photo-card.is-active::after {
  background: rgba(255,255,255,0);
}

.uee-photo-card.is-pos-0 {
  width: 190px;
  height: 384px;
  transform: translate(-50%, -50%) translate(-580px, 14px) rotateY(30deg);
  z-index: 1;
}

.uee-photo-card.is-pos-1 {
  width: 220px;
  height: 469px;
  transform: translate(-50%, -50%) translate(-305px, -24px) rotateY(24deg);
  z-index: 2;
}

.uee-photo-card.is-pos-2 {
  width: 286px;
  height: 499px;
  transform: translate(-50%, -50%) translate(0, 31px);
  z-index: 5;
}

.uee-photo-card.is-pos-3 {
  width: 220px;
  height: 469px;
  transform: translate(-50%, -50%) translate(305px, -24px) rotateY(-24deg);
  z-index: 2;
}

.uee-photo-card.is-pos-4 {
  width: 190px;
  height: 384px;
  transform: translate(-50%, -50%) translate(580px, 14px) rotateY(-30deg);
  z-index: 1;
}

.uee-photo-btn-wrap {
  text-align: center;
  margin-top: 0;
}

.uee-photo-next {
  width: 64px;
  height: 48px;
  border: 0;
  border-radius: 20px;
  background: #d2d2d2;
  color: #111;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background .25s ease, transform .25s ease;
}

.uee-photo-next:hover {
  background: #c4c4c4;
  transform: translateY(-2px);
}

.uee-photo-next:active {
  transform: translateY(0) scale(.96);
}

@media (max-width: 900px) {
  .uee-photo-carousel {
    padding: 18px 0 30px;
  }

  .uee-photo-stage {
    height: 500px;
  }

  .uee-photo-card {
    width: 170px;
    height: 280px;
    border-radius: 26px;
  }

  .uee-photo-card.is-pos-0 {
    width: 155px;
    height: 310px;
    transform: translate(-50%, -50%) translate(-380px, 12px) rotateY(30deg);
  }

  .uee-photo-card.is-pos-1 {
    width: 175px;
    height: 374px;
    transform: translate(-50%, -50%) translate(-210px, -20px) rotateY(24deg);
  }

  .uee-photo-card.is-pos-2 {
    width: 228px;
    height: 400px;
    transform: translate(-50%, -50%) translate(0, 27px);
  }

  .uee-photo-card.is-pos-3 {
    width: 175px;
    height: 374px;
    transform: translate(-50%, -50%) translate(210px, -20px) rotateY(-24deg);
  }

  .uee-photo-card.is-pos-4 {
    width: 155px;
    height: 310px;
    transform: translate(-50%, -50%) translate(380px, 12px) rotateY(-30deg);
  }
}

@media (max-width: 520px) {
  .uee-photo-stage {
    height: 390px;
  }

  .uee-photo-card {
    width: 160px;
    height: 230px;
    border-radius: 22px;
  }

  .uee-photo-card.is-pos-0 {
    width: 118px;
    height: 238px;
    transform: translate(-50%, -50%) translate(-265px, 8px) rotateY(30deg);
  }

  .uee-photo-card.is-pos-1 {
    width: 132px;
    height: 282px;
    transform: translate(-50%, -50%) translate(-142px, -14px) rotateY(24deg);
  }

  .uee-photo-card.is-pos-2 {
    width: 170px;
    height: 300px;
    transform: translate(-50%, -50%) translate(0, 20px);
  }

  .uee-photo-card.is-pos-3 {
    width: 132px;
    height: 282px;
    transform: translate(-50%, -50%) translate(142px, -14px) rotateY(-24deg);
  }

  .uee-photo-card.is-pos-4 {
    width: 118px;
    height: 238px;
    transform: translate(-50%, -50%) translate(265px, 8px) rotateY(-30deg);
  }
}
