.carousel {
  width: min(var(--boundary-w), 94vw);
  user-select: none;
}
.frame {
  position: relative;
  height: var(--boundary-h);
  width: 400px;
  background: #111;
  border-radius: var(--radius);
  overflow: hidden;
  display: grid;
  align-items: center;
  place-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.18);
}
.frame img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  display: block;
  background: #111;
}
.cbtn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: rgb(80 193 253);
  color: white;
  cursor: pointer;
  display: grid;
  place-items: center;
  backdrop-filter: blur(8px);
  transition: background 160ms ease, transform 160ms ease;
}
.cbtn:hover { background: rgba(255,255,255,0.28); }
.cbtn:active { transform: translateY(-50%) scale(0.98); }
.cbtn.prev { left: 12px; }
.cbtn.next { right: 12px; }

.cbtn:focus-visible {
  outline: 3px solid rgba(59,91,255,0.6);
  outline-offset: 3px;
}

@media (max-width: 520px) {
  :root { --boundary-h: 300px; }
}