/* Shuffle stack: owns the carousel sizing + the [data-dlpa-shuffle] hooks the
   JS reads (autoplay/interval). Children (.dlpa-shuffle__card) are positioned
   by JS/CSS within this box. */
.dlpa-shuffle {
  --dlpa-shuffle-x: 24;
  --dlpa-shuffle-y: 13;
  position: relative;
  width: 100%;
  max-width: 640px;
  margin-inline: auto;
  aspect-ratio: 1 / 0.82;
}

@media (max-width: 860px) {
  .dlpa-shuffle {
    --dlpa-shuffle-x: 34;
    --dlpa-shuffle-y: 12;
    max-width: 420px;
  }
}

.dlpa-shuffle__card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--dlpa-shuffle-card-width, 54%);
  margin: 0;
  transform: translate(-50%, -50%);
  transition: transform 0.65s cubic-bezier(0.22, 0.7, 0.2, 1), opacity 0.5s ease;
  will-change: transform;
}

@media (max-width: 860px) {
  .dlpa-shuffle__card {
    --dlpa-shuffle-card-width: 60%;
  }
}

/* Keep the front card steady before it glides to the back of the stack. */
.dlpa-shuffle__card.is-lifting {
  transition: transform 0.5s cubic-bezier(0.34, 1.18, 0.4, 1), opacity 0.5s ease;
  opacity: 0.96;
  z-index: 99 !important;
}

.dlpa-shuffle__img {
  display: block;
  width: 100%;
  aspect-ratio: 288.534 / 250.559;
  object-fit: cover;
  border-radius: 5px 28px 5px 5px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.26);
}
