/* All component rules are scoped to .vedaayan-slider. */
.vedaayan-demo-body {
  margin: 0;
  min-width: 320px;
  color: #171717;
  background: #f5f5f2;
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.vedaayan-demo {
  width: min(100% - 32px, 1120px);
  margin-inline: auto;
  padding: clamp(28px, 5vw, 64px) 0 40px;
}

.vedaayan-demo__header {
  max-width: 720px;
  margin: 0 auto 24px;
  text-align: center;
}

.vedaayan-demo__eyebrow {
  margin: 0 0 12px;
  color: #bd5700;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.vedaayan-demo__title {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.vedaayan-demo__title span {
  color: #bd5700;
}

.vedaayan-demo__intro,
.vedaayan-demo__note {
  color: #555;
  line-height: 1.6;
}

.vedaayan-demo__intro {
  margin: 14px 0 0;
  font-size: clamp(0.98rem, 2vw, 1.12rem);
}

.vedaayan-demo__note {
  max-width: 720px;
  margin: 18px auto 0;
  text-align: center;
  font-size: 0.92rem;
}

.vedaayan-slider {
  --vedaayan-accent: #c65b00;
  --vedaayan-ink: #1b1b1b;
  --vedaayan-panel: #ecece8;
  display: block;
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(25, 25, 25, 0.1);
  border-radius: 22px;
  background: var(--vedaayan-panel);
  box-shadow: 0 20px 60px rgba(24, 24, 24, 0.12);
}

.vedaayan-slider,
.vedaayan-slider *,
.vedaayan-slider *::before,
.vedaayan-slider *::after {
  box-sizing: border-box;
}

.vedaayan-slider:focus-visible {
  outline: 3px solid var(--vedaayan-accent);
  outline-offset: 5px;
}

.vedaayan-slider__viewport {
  position: relative;
  height: auto;
  overflow: hidden;
  background: #e9e9e6;
  touch-action: pan-y;
}

.vedaayan-slider__track {
  display: flex;
  width: calc(var(--vedaayan-slide-count, 1) * 100%);
  height: 100%;
  transform: translate3d(0, 0, 0);
  transition: transform 560ms cubic-bezier(0.22, 0.72, 0.2, 1);
  will-change: transform;
}

.vedaayan-slider__slide {
  display: grid;
  flex: 0 0 calc(100% / var(--vedaayan-slide-count, 1));
  place-items: center;
  max-width: calc(100% / var(--vedaayan-slide-count, 1));
  height: 100%;
  margin: 0;
  padding: 0px;
}

.vedaayan-slider__slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.vedaayan-slider__control {
  position: absolute;
  z-index: 2;
  top: 50%;
  display: grid;
  width: 48px;
  height: 48px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 50%;
  color: #fff;
  background: rgba(22, 22, 22, 0.72);
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transform: translateY(-50%);
  transition: background-color 160ms ease, transform 160ms ease;
}

.vedaayan-slider__control:hover {
  background: var(--vedaayan-accent);
  transform: translateY(-50%) scale(1.05);
}

.vedaayan-slider__control:focus-visible,
.vedaayan-slider__autoplay:focus-visible,
.vedaayan-slider__dot:focus-visible {
  outline: 3px solid var(--vedaayan-accent);
  outline-offset: 3px;
}

.vedaayan-slider__control svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.vedaayan-slider__prev {
  left: clamp(10px, 2.2vw, 24px);
}

.vedaayan-slider__next {
  right: clamp(10px, 2.2vw, 24px);
}

.vedaayan-slider__footer {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 20px;
  background: #fff;
}

.vedaayan-slider__pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
}

.vedaayan-slider__dot {
  display: block;
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #c7c7c2;
  cursor: pointer;
  transition: width 180ms ease, background-color 180ms ease;
}

.vedaayan-slider__dot[aria-current="true"] {
  width: 28px;
  background: var(--vedaayan-accent);
}

.vedaayan-slider__tools {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 16px;
}

.vedaayan-slider__count {
  color: #5d5d59;
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
}

.vedaayan-slider__autoplay {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid #d2d2cc;
  border-radius: 999px;
  color: var(--vedaayan-ink);
  background: #fff;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
}

.vedaayan-slider__autoplay:hover {
  border-color: var(--vedaayan-accent);
}

.vedaayan-slider__autoplay svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.vedaayan-slider__sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.vedaayan-slider [hidden] {
  display: none !important;
}

@media (max-width: 640px) {
  .vedaayan-demo {
    width: min(100% - 20px, 1120px);
    padding-top: 24px;
  }

  .vedaayan-demo__header {
    margin-bottom: 18px;
  }

  .vedaayan-slider {
    border-radius: 16px;
  }

  .vedaayan-slider__viewport {
    height: min(78svh, 800px);
    min-height: 340px;
  }

  .vedaayan-slider__slide {
    padding: 10px;
  }

  .vedaayan-slider__control {
    width: 42px;
    height: 42px;
  }

  .vedaayan-slider__footer {
    min-height: 64px;
    gap: 12px;
    padding: 10px 12px;
  }

  .vedaayan-slider__pagination {
    gap: 7px;
  }

  .vedaayan-slider__tools {
    gap: 10px;
  }

  .vedaayan-slider__autoplay {
    min-height: 38px;
    padding: 7px 10px;
  }
}

@media (max-height: 560px) {
  .vedaayan-slider__viewport {
    height: 78svh;
    min-height: 280px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vedaayan-slider__track,
  .vedaayan-slider__control,
  .vedaayan-slider__dot {
    transition-duration: 0.01ms;
  }
}

