.psd-carousel {
  --psd-cw: clamp(280px, 34vw, 760px);
  position: relative;
  margin: 0;
  width: 100vw;
  max-width: 100vw;
  margin-inline: calc(50% - 50vw)
}

.psd-viewport {
  position: relative;
  width: 100%;
  height: clamp(240px, 25vw, 560px);
  perspective: 1750px;
  overflow-x: clip;
  overflow-y: visible;
  touch-action: pan-y;
  cursor: grab
}

.psd-viewport.is-dragging {
  cursor: grabbing
}

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

.psd-card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--psd-cw);
  aspect-ratio: 16/10;
  margin: 0;
  margin-left: calc(var(--psd-cw) * -.5);
  margin-top: calc(var(--psd-cw) * -.3125);
  border-radius: var(--ps-btn-radius, 6px);
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(34, 61, 144, .1);
  box-shadow: 0 22px 55px rgba(34, 61, 144, .16);
  transform-origin: center center;
  will-change: transform, opacity;
  backface-visibility: hidden;
  opacity: 0
}

.psd-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none
}

.psd-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 2.5vw, 2rem);
  margin-top: clamp(1.6rem, 3vw, 2.6rem)
}

.psd-caption {
  flex: 0 0 auto;
  width: 200px;
  min-width: 0;
  min-height: 2.35rem;
  margin: 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .2rem
}

.psd-caption .psd-name {
  font-family: var(--ps-accent-font);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .03em;
  font-size: .9rem;
  line-height: 1.15;
  color: var(--ps-blue, #223d90)
}

.psd-caption .psd-tag {
  font-family: var(--body);
  font-weight: 500;
  font-size: .82rem;
  line-height: 1.3;
  color: #5a6080;
  color: rgb(var(--ps-blue-rgb, 34 61 144) / .7)
}

.psd-arrow {
  position: relative;
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(34, 61, 144, .18);
  border-radius: var(--ps-btn-radius, 6px);
  background: #fff;
  color: var(--ps-blue, #223d90);
  cursor: pointer;
  transition: background-color .3s ease, border-color .3s ease, color .3s ease, transform .3s cubic-bezier(.22, 1, .36, 1)
}

.psd-arrow::before {
  content: "";
  position: absolute;
  inset: 0;
  background: currentColor;
  -webkit-mask: var(--ps-arrow-mask) no-repeat center/20px;
  mask: var(--ps-arrow-mask) no-repeat center/20px
}

.psd-arrow--prev::before {
  transform: scaleX(-1)
}

.psd-arrow:hover {
  background: var(--ps-blue, #223d90);
  border-color: var(--ps-blue, #223d90);
  color: #fff
}

.psd-arrow:active {
  transform: scale(.94)
}

.psd-arrow:focus-visible {
  outline: 2px solid var(--ps-blue, #223D90);
  outline-offset: 3px
}

@media (max-width:600px) {
  .psd-controls {
    gap: clamp(.6rem, 3.5vw, 1rem)
  }

  .psd-caption {
    width: min(175px, 50vw)
  }
}

@media (prefers-reduced-motion:reduce) {
  .psd-arrow {
    transition: none
  }
}