.yc-carousel-slider-shell {
  position: relative;
  margin: 30px 0;
  padding: 0 36px;
  overflow: visible;
}

.yc-carousel-slider {
  overflow: hidden;
  padding: 8px 0;
}

.yc-carousel-slider:not(.slick-initialized) {
  display: flex;
  gap: 0;
}

.yc-carousel-slider:not(.slick-initialized) .yc-carousel-slider__item {
  flex: 0 0 auto;
}

.yc-carousel-slider .slick-list {
  overflow: hidden;
}

.yc-carousel-slider .slick-track {
  display: flex;
  align-items: stretch;
}

.yc-carousel-slider .slick-slide {
  height: auto;
}

.yc-carousel-slider .slick-slide > div {
  height: 100%;
}

.yc-carousel-slider__item {
  box-sizing: border-box;
  width: min(var(--yc-cs-slide-width, 260px), calc(100vw - 84px));
  padding: 0 4px;
}

.yc-carousel-slider__image-frame {
  width: 100%;
}

.yc-carousel-slider__item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
  pointer-events: none;
  -webkit-user-drag: none;
  user-drag: none;
}

.yc-carousel-slider--fixed-ratio .yc-carousel-slider__image-frame {
  aspect-ratio: var(--yc-cs-image-ratio, 16 / 9);
  overflow: hidden;
  border-radius: 6px;
}

.yc-carousel-slider--fixed-ratio .yc-carousel-slider__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  border-radius: 0;
}

.yc-carousel-slider--max-height .yc-carousel-slider__item img {
  max-height: var(--yc-cs-image-max-height, none);
  width: 100%;
  object-fit: contain;
}

.yc-carousel-slider--fixed-ratio.yc-carousel-slider--max-height .yc-carousel-slider__image-frame {
  width: 100%;
  max-height: var(--yc-cs-image-max-height, none);
}

.yc-carousel-slider--fixed-ratio.yc-carousel-slider--max-height .yc-carousel-slider__item img {
  max-height: none;
  object-fit: cover;
}

.yc-carousel-slider__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 24px;
  height: min(120px, 72%);
  border: 0;
  border-radius: 7px;
  background: var(--yc-cs-button-bg, #222222);
  color: var(--yc-cs-icon-color, #ffffff);
  cursor: pointer;
  font-size: 38px;
  font-weight: 300;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.yc-carousel-slider__arrow--prev {
  left: 4px;
}

.yc-carousel-slider__arrow--next {
  right: 4px;
}

.yc-carousel-slider__arrow:hover,
.yc-carousel-slider__arrow:focus {
  background: var(--yc-cs-button-hover-bg, #383838);
  color: var(--yc-cs-icon-color, #ffffff);
  outline: none;
}

@media (max-width: 1023px) {
  .yc-carousel-slider__item {
    width: min(var(--yc-cs-slide-width, 220px), calc(100vw - 76px));
  }
}

@media (max-width: 599px) {
  .yc-carousel-slider-shell {
    padding: 0 30px;
  }

  .yc-carousel-slider__item {
    width: min(var(--yc-cs-slide-width, 180px), calc(100vw - 68px));
    padding: 0 3px;
  }

  .yc-carousel-slider__arrow {
    width: 22px;
    height: min(96px, 70%);
    font-size: 34px;
    border-radius: 6px;
  }

  .yc-carousel-slider__arrow--prev {
    left: 2px;
  }

  .yc-carousel-slider__arrow--next {
    right: 2px;
  }
}

.yc-carousel-slider__arrow.slick-disabled {
  display: none !important;
}

/* v1.0.26: native scroll layout with original button styling */
.yc-carousel-slider-shell {
  position: relative;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 24px;
  column-gap: 12px;
  align-items: center;
  width: 100%;
  max-width: 100%;
  margin: 30px 0;
  padding: 0;
  overflow: visible;
}

.yc-carousel-slider {
  grid-column: 2;
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 0;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
  padding: 8px 0;
}

.yc-carousel-slider::-webkit-scrollbar {
  display: none;
}

.yc-carousel-slider--dragging {
  cursor: grabbing;
  scroll-behavior: auto;
  user-select: none;
}

.yc-carousel-slider__item {
  flex: 0 0 auto;
}

.yc-carousel-slider__arrow {
  position: static;
  transform: none;
  z-index: 10;
  width: 24px;
  min-width: 24px;
  height: min(120px, 72%);
  min-height: 96px;
  border: 0;
  border-radius: 7px;
  background: var(--yc-cs-button-bg, #222222);
  color: var(--yc-cs-icon-color, #ffffff);
  cursor: pointer;
  font-size: 38px;
  font-weight: 300;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
}

.yc-carousel-slider__arrow span {
  color: var(--yc-cs-icon-color, #ffffff);
  line-height: 1;
  display: block;
}

.yc-carousel-slider__arrow--prev {
  grid-column: 1;
}

.yc-carousel-slider__arrow--next {
  grid-column: 3;
}

.yc-carousel-slider__arrow:hover,
.yc-carousel-slider__arrow:focus {
  background: var(--yc-cs-button-hover-bg, #383838);
  color: var(--yc-cs-icon-color, #ffffff);
  outline: none;
}

.yc-carousel-slider__arrow--hidden {
  visibility: hidden;
  pointer-events: none;
}

@media (max-width: 599px) {
  .yc-carousel-slider-shell {
    grid-template-columns: 22px minmax(0, 1fr) 22px;
    column-gap: 8px;
  }

  .yc-carousel-slider__item {
    width: min(var(--yc-cs-slide-width, 180px), calc(100vw - 68px));
    padding: 0 3px;
  }

  .yc-carousel-slider__arrow {
    width: 22px;
    min-width: 22px;
    height: min(96px, 70%);
    min-height: 82px;
    font-size: 34px;
    border-radius: 6px;
  }
}


/* v1.0.26: buttons + slider stay inside one 100% wide wrapper */
.yc-carousel-slider-shell {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  grid-template-columns: 24px minmax(0, 1fr) 24px;
  column-gap: 8px;
  padding: 0;
  overflow: hidden;
}

.yc-carousel-slider {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.yc-carousel-slider__arrow {
  box-sizing: border-box;
  width: 24px;
  min-width: 24px;
  max-width: 24px;
}

@media (max-width: 599px) {
  .yc-carousel-slider-shell {
    grid-template-columns: 22px minmax(0, 1fr) 22px;
    column-gap: 6px;
  }

  .yc-carousel-slider__arrow {
    width: 22px;
    min-width: 22px;
    max-width: 22px;
  }
}
