/* Supplied 3D Perspective Carousel — scoped for TryApex */
.c3d {
  position: relative;
  width: 100%;
  height: clamp(350px, 30vw, 480px);
  margin: 24px 0 18px;
  perspective: 1100px;
  perspective-origin: 50% 47%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 9%, #000 91%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, #000 9%, #000 91%, transparent 100%);
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

.c3d.is-dragging { cursor: grabbing; }

.c3d__track {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
}

.c3d__item {
  position: absolute;
  top: 50%;
  left: 50%;
  margin: 0;
  overflow: hidden;
  border: 0;
  border-radius: 22px;
  background: transparent;
  box-shadow: none;
  -webkit-mask-image: radial-gradient(white, black);
  mask-image: radial-gradient(white, black);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  will-change: transform, opacity;
  backface-visibility: hidden;
}

.c3d__item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.c3d__item::after {
  content: "";
  position: absolute;
  z-index: 3;
  inset: 0;
  background: linear-gradient(115deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, 0) 42%);
  mix-blend-mode: screen;
  pointer-events: none;
}

@media (max-width: 640px) {
  .c3d {
    height: 290px;
    margin-top: 24px;
    margin-bottom: 14px;
  }
  .c3d__item { border-radius: 18px; }
}

@media (min-width: 641px) and (max-height: 760px) {
  .c3d {
    height: 360px;
    margin-top: 18px;
    margin-bottom: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .c3d { cursor: default; }
}
