/*
 * LS Vita YO-SlideShow legacy storefront skin
 * Recreates the original YO-SlideShow v1.0.1 appearance used on lsvita.com.
 */
.lsvita-yo-slideshow.yoSlideshow {
  --yo-duration: 500ms;
  position: relative;
  display: block;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  margin: 0 auto 20px;
  padding: 0;
  vertical-align: top;
  box-sizing: border-box;
}
.lsvita-yo-slideshow.yoSlideshow.responsive { display: block; }
.lsvita-yo-slideshow.yoSlideshow *,
.lsvita-yo-slideshow.yoSlideshow *::before,
.lsvita-yo-slideshow.yoSlideshow *::after { box-sizing: content-box; }

.lsvita-yo-slideshow.yoSlideshow .slide-wrapper,
.lsvita-yo-slideshow.yoSlideshow .thumb-wrapper { position: relative; }

.lsvita-yo-slideshow.yoSlideshow .slide-wrapper {
  width: 100%;
  overflow: hidden;
  aspect-ratio: var(--yo-ratio);
}

/* Fill and center within the OpenCart middle content column. */
#content .lsvita-yo-slideshow.yoSlideshow {
  width: 100%;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.lsvita-yo-slideshow.yoSlideshow .thumb-wrapper { margin-top: 10px; }

.lsvita-yo-slideshow.yoSlideshow ul {
  display: block;
  overflow: hidden;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lsvita-yo-slideshow.yoSlideshow a {
  -webkit-transition: all .3s ease;
  -moz-transition: all .3s ease;
  -ms-transition: all .3s ease;
  -o-transition: all .3s ease;
  transition: all .3s ease;
}

.lsvita-yo-slideshow.yoSlideshow .yo-slide-list {
  position: relative;
  width: 100% !important;
  height: 100% !important;
  max-width: 100%;
}

.lsvita-yo-slideshow.yoSlideshow .slide-wrapper ul li.yo-slide {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  float: left;
  width: 100% !important;
  max-width: 100%;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--yo-duration) ease;
}

.lsvita-yo-slideshow.yoSlideshow .slide-wrapper ul li.yo-slide.is-active {
  position: relative;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 2;
}

.lsvita-yo-slideshow.yoSlideshow ul li.yo-slide > a {
  display: block;
  float: left;
  background: transparent;
  width: 100%;
  height: 100%;
}

.lsvita-yo-slideshow.yoSlideshow ul li.yo-slide img {
  display: block;
  max-width: 100%;
  border: none;
  float: left;
}

.lsvita-yo-slideshow.yoSlideshow.responsive .slide-wrapper ul li.yo-slide {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: var(--yo-ratio);
}

.lsvita-yo-slideshow.yoSlideshow.responsive .slide-wrapper ul li.yo-slide img {
  width: 100%;
  height: auto;
}

.lsvita-yo-slideshow.yoSlideshow .clearfix { float: none; clear: both; }

/* Original thumbnail styling */
.lsvita-yo-slideshow.yoSlideshow .thumb-wrapper .yo-slide {
  position: relative;
  display: block;
  float: left;
}

.lsvita-yo-slideshow.yoSlideshow .thumb-wrapper .yo-slide a {
  display: block;
  margin: 2px;
  padding: 2px;
  background: #ffffff;
  -webkit-box-shadow: 0 1px 1px rgba(0,0,0,0.2);
  box-shadow: 0 1px 1px rgba(0,0,0,0.2);
}

.lsvita-yo-slideshow.yoSlideshow .thumb-wrapper .yo-slide img {
  display: block;
  width: var(--yo-thumb-width);
  height: var(--yo-thumb-height);
  border: 0;
  object-fit: cover;
}

/* Original arrow sprite / movement */
.lsvita-yo-slideshow.yoSlideshow .yo-prev,
.lsvita-yo-slideshow.yoSlideshow .yo-next {
  position: absolute;
  top: 50%;
  z-index: 777;
  display: block;
  margin-top: -16px;
  padding: 0;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 2px;
  background: rgba(0,0,0,.1) url('../image/yo-arrow.png') no-repeat;
  opacity: 0;
  text-indent: -9999px;
  font-size: 0;
  line-height: 0;
  cursor: pointer;
  -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
  filter: alpha(opacity=0);
}

.lsvita-yo-slideshow.yoSlideshow .yo-prev:hover,
.lsvita-yo-slideshow.yoSlideshow .yo-next:hover { background-color: rgba(0,0,0,.25); }

.lsvita-yo-slideshow.yoSlideshow .yo-prev { left: 0; background-position: 0 0; }
.lsvita-yo-slideshow.yoSlideshow .yo-next { right: 0; background-position: -30px 0; }

.lsvita-yo-slideshow.yoSlideshow .slide-wrapper:hover .yo-prev,
.lsvita-yo-slideshow.yoSlideshow .thumb-wrapper:hover .yo-prev {
  left: 30px;
  opacity: 1;
  -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
  filter: alpha(opacity=100);
}

.lsvita-yo-slideshow.yoSlideshow .slide-wrapper:hover .yo-next,
.lsvita-yo-slideshow.yoSlideshow .thumb-wrapper:hover .yo-next {
  right: 30px;
  opacity: 1;
  -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
  filter: alpha(opacity=100);
}

/* Original pagination */
.lsvita-yo-slideshow.yoSlideshow .yo-nav {
  position: absolute;
  bottom: 15px;
  z-index: 777;
  width: 100%;
  text-align: center;
}

.lsvita-yo-slideshow.yoSlideshow .yo-nav a {
  display: inline-block;
  margin: 2px;
  padding: 0;
  width: 6px;
  height: 6px;
  border: 1px solid rgba(255,255,255,.65);
  border-radius: 0;
  background-color: rgba(0,0,0,.065);
  text-indent: -9999px;
  font-size: 0;
  line-height: 0;
}

.lsvita-yo-slideshow.yoSlideshow .yo-nav a:hover,
.lsvita-yo-slideshow.yoSlideshow .yo-nav a.selected { background-color: rgba(255,255,255,.65); }

/* Original caption */
.lsvita-yo-slideshow.yoSlideshow .yo-caption {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 10;
  width: 100%;
  background-color: rgba(0,0,0,.35);
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  -ms-box-sizing: border-box;
  box-sizing: border-box;
}

.lsvita-yo-slideshow.yoSlideshow .yo-caption h3,
.lsvita-yo-slideshow.yoSlideshow .yo-caption p {
  padding: 0 30px;
  color: #ffffff;
  text-shadow: 0 1px 1px rgba(0,0,0,.65);
}

.lsvita-yo-slideshow.yoSlideshow .yo-caption h3 { margin: 10px 0; font-size: 20px; }

/* Original timer */
.lsvita-yo-slideshow.yoSlideshow .yo-timer {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 777;
  width: 0;
  height: 4px;
  background-color: rgba(255,255,255,.35);
}

.lsvita-yo-slideshow.yoSlideshow.show-timer .yo-timer.is-running {
  animation: lsvitaYoTimer var(--yo-timeout) linear forwards;
}
@keyframes lsvitaYoTimer { from { width: 0; } to { width: 100%; } }

@media (max-width: 767px) {
  .lsvita-yo-slideshow.yoSlideshow { width: 100%; max-width: 100%; }
  .lsvita-yo-slideshow.yoSlideshow .yo-caption { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .lsvita-yo-slideshow.yoSlideshow .slide-wrapper ul li.yo-slide { transition: none !important; }
  .lsvita-yo-slideshow.yoSlideshow .yo-timer { display: none; }
}

/* LS Vita v5: force YO-SlideShow to use the entire OpenCart center column. */
#common-home #content > .lsvita-yo-slideshow.yoSlideshow,
#common-home #content .lsvita-yo-slideshow.yoSlideshow {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

#common-home #content .lsvita-yo-slideshow.yoSlideshow .slide-wrapper,
#common-home #content .lsvita-yo-slideshow.yoSlideshow .yo-slide-list,
#common-home #content .lsvita-yo-slideshow.yoSlideshow .yo-slide-list > li.yo-slide,
#common-home #content .lsvita-yo-slideshow.yoSlideshow .yo-slide-list > li.yo-slide > a,
#common-home #content .lsvita-yo-slideshow.yoSlideshow .yo-slide-list > li.yo-slide img {
  width: 100% !important;
  max-width: none !important;
}

#common-home #content .lsvita-yo-slideshow.yoSlideshow .yo-slide-list > li.yo-slide img {
  height: 100% !important;
  object-fit: cover !important;
}

#common-home #content .lsvita-yo-slideshow.yoSlideshow .yo-thumb-list {
  width: 100% !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
}

#common-home #content .lsvita-yo-slideshow.yoSlideshow .yo-thumb-list > li {
  float: none !important;
  flex: 0 0 auto !important;
}
