/* ── CAROUSEL COMPONENT ── */
.carousel-wrapper {
  width: 45%;
  margin: 20px auto;
  font-family: inherit;
  user-select: none;
}

.carousel-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 3px;
  overflow: hidden;
  background: #111;
  touch-action: pan-y;
}

.carousel-frame.horizontal {
  aspect-ratio: 1.91 / 1;
}

/* Image track */
.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.carousel-slide {
  flex: 0 0 100%;
  height: 100%;
  position: relative;
}

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

/* Nav buttons */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 23px;
  height: 23px;
  border-radius: 50%;
  background: rgba(255,255,255,0.65);
  backdrop-filter: blur(4px);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background 0.2s, opacity 0.2s, transform 0.15s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.22);
  opacity: 0;
}

.carousel-frame:hover .carousel-btn:not([disabled]) {
  opacity: 0.85;
}

.carousel-btn:hover {
  background: rgba(255,255,255,1);
  transform: translateY(-50%) scale(1.07);
}

.carousel-btn:active {
  transform: translateY(-50%) scale(0.96);
}

.carousel-btn[disabled] {
  opacity: 0 !important;
  pointer-events: none;
}

.carousel-btn svg {
  width: 12px;
  height: 12px;
  stroke: #222;
  stroke-width: 2.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }

/* Dots */
.carousel-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-top: 10px;
  padding: 4px 0;
}

.carousel-dot {
  border-radius: 50%;
  background: #c0c0c0;
  transition: width 0.3s cubic-bezier(0.4,0,0.2,1),
              height 0.3s cubic-bezier(0.4,0,0.2,1),
              background 0.3s,
              opacity 0.3s;
  cursor: pointer;
  flex-shrink: 0;
}

.carousel-dot.active {
  background: #403d57;
}

/* Mobile */
@media (max-width: 768px) {
  .carousel-wrapper {
    width: 100%;
  }
}
