.shotphone {
  width: 220px;
  height: 440px;
  flex-shrink: 0;
}

.shotphone--lg {
  width: 260px;
  height: 520px;
}

.shotphone--sm {
  width: 168px;
  height: 336px;
}

.shotphone__bezel {
  width: 100%;
  height: 100%;
  background: #0a0a0f;
  border-radius: 34px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-sizing: border-box;
}

.shotphone--sm .shotphone__bezel {
  border-radius: 26px;
  padding: 6px;
}

.shotphone__viewport {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 26px;
  background: #111;
  position: relative;
}

.shotphone--sm .shotphone__viewport {
  border-radius: 20px;
}

.shotphone__img {
  display: block;
  width: 100%;
  height: auto;
  will-change: transform;
}

.shotphone__viewport.is-scrollable .shotphone__img {
  animation: shotphonePan var(--pan-duration, 10s) ease-in-out var(--pan-delay, 0s) infinite
    alternate;
}

@keyframes shotphonePan {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(0, calc(-1 * var(--scroll, 0px)), 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .shotphone__viewport.is-scrollable .shotphone__img {
    animation: none;
  }
}
