/* Keep the storefront's existing layout while replacing Slick. */
.ec-carousel {
  max-width: 100%;
}

/* Reserve the image area before the carousel and its images initialize. */
.s__mainSlide .center-item img {
  display: block;
  aspect-ratio: auto 40 / 9;
}

.center-item:not(.splide__list):not(.ec-carousel-fallback) > li:not(:first-child),
.s__product__slide__slider:not(.splide__list):not(.ec-carousel-fallback) > li:not(:first-child) {
  display: none;
}

.s__product__photos {
  width: 480px;
  max-width: 100%;
  flex-shrink: 0;
}

.s__product__slide__slider,
.ec-carousel--product .splide__track,
.s__product__slide .singleImage {
  aspect-ratio: 1;
}

.s__product__slide__slider img,
.s__product__slide .singleImage img,
.s__product__slide__thumbnail-list img {
  display: block;
  aspect-ratio: 1;
  object-fit: contain;
}

.s__product__slide__thumbnail-list .thumbnail-item:not(.empty) {
  width: 19%;
  aspect-ratio: 1;
  align-self: flex-start;
}

.ec-carousel--product {
  margin-bottom: 20px;
}

.ec-carousel--product .s__product__slide__slider {
  margin-bottom: 0;
}

.ec-carousel--product .splide__slide img {
  display: block;
}

.ec-carousel--banner {
  margin-bottom: 30px;
}

.ec-carousel--banner .splide__pagination {
  bottom: -25px;
  padding: 0;
  width: 100%;
}

.ec-carousel--banner .splide__pagination li {
  margin: 0 5px;
}

.ec-carousel--banner .splide__pagination__page {
  display: block;
  width: 10px;
  height: 10px;
  border: 0;
  padding: 0;
  border-radius: 100px;
  background: #ccc;
  opacity: 0.65;
  cursor: pointer;
}

.ec-carousel--banner .splide__pagination__page.is-active {
  opacity: 1;
}

.ec-carousel--new.is-initialized .splide__list {
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: 0;
}

.ec-carousel--new .splide__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.ec-carousel--new .splide__arrow--prev {
  left: -25px;
}

.ec-carousel--new .splide__arrow--next {
  right: -25px;
}

.ec-carousel--new .splide__arrow svg {
  width: 20px;
  height: 20px;
  fill: #333;
}

.ec-carousel--new .splide__arrow--prev svg {
  transform: scaleX(-1);
}

.ec-carousel--new .splide__arrow:focus {
  outline: 2px solid #6d0e07;
}

/* Splide keeps the wrapper for breakpoint remounts; restore the ordinary phone list. */
@media screen and (max-width: 799px) {
  .ec-carousel--new .splide__list {
    display: block;
  }
}

.ec-carousel .splide__pagination__page:focus {
  outline: 2px solid #6d0e07;
  outline-offset: 3px;
}

.center-item.ec-carousel-fallback,
.s__product__slide__slider.ec-carousel-fallback {
  aspect-ratio: auto;
}
