/*
 * Swivo Carousel – Frontend Styles
 * Item sizing is handled by JS reading the original block layout.
 * CSS only handles visual chrome: arrows, dots, marquee wrapper, hidden states.
 */

/* 1. Main wrapper */
.swv-carousel {
  position: relative;
}

/* 2. Marquee: clip the max-content track to the viewport width. */
.swv-carousel[data-swv-animation="marquee"] {
  overflow: clip;
}

/* 3. Track: hide scrollbar (layout set by JS) */
.swv-track::-webkit-scrollbar {
  display: none;
}

/* 4. Navigation wrapper (arrows) */
.swv-nav {
  position: absolute;
  inset-block-start: 50%;
  inset-inline: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
  padding-inline: 8px;
  z-index: 2;
}

/* 5. Arrow buttons */
.swv-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  inline-size: 36px;
  block-size: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(4px);
  cursor: pointer;
  pointer-events: auto;
  padding: 0;
  color: inherit;
  transition: opacity 0.2s ease, background-color 0.2s ease;
}

.swv-arrow:hover {
  background: rgba(255, 255, 255, 1);
}

.swv-arrow svg {
  inline-size: 18px;
  block-size: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* 6. Flip arrow icons in RTL */
[dir="rtl"] .swv-arrow svg {
  transform: scaleX(-1);
}

/* 8. Dots container */
.swv-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding-block: 12px;
}

.swv-dots[data-swv-dots-position="top"] { order: -1; }

.swv-dots[data-swv-dots-position="inside"] {
  position: absolute;
  inset-block-end: 12px;
  inset-inline: 0;
  z-index: 2;
}

/* 9. Individual dot */
.swv-dot {
  inline-size: 8px;
  block-size: 8px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.25);
  padding: 0;
  cursor: pointer;
  transition: background-color 0.25s ease, transform 0.25s ease;
}

.swv-dot.swv-active {
  background: rgba(0, 0, 0, 0.8);
  transform: scale(1.3);
}

/* 10. Hidden states */
.swv-carousel[data-swv-animation="marquee"] .swv-nav,
.swv-carousel[data-swv-animation="marquee"] .swv-dots,
.swv-carousel[data-swv-arrows="false"] .swv-nav,
.swv-carousel[data-swv-dots="false"] .swv-dots {
  display: none;
}

/* 11. Responsive arrows */
@media (min-width: 600px) {
  .swv-arrow {
    inline-size: 40px;
    block-size: 40px;
  }
  .swv-arrow svg {
    inline-size: 20px;
    block-size: 20px;
  }
}
