/* Shared styling for product detail pages: bordered gallery, bordered details card, visible slider arrows */

.container.border > .row > .demo {
  width: 100%;
}

.container.border > .row > .demo .item {
  margin-bottom: 0;
}

.container.border > .row > .demo .clearfix {
  margin: 0 auto;
}

/* Main image and thumbnails */
.demo .lightSlider > li > img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

.demo .lightSlider > li > img,
.demo .lSPager.lSGallery img {
  border: 1px solid #e8e8e8;
  border-radius: 6px;
}

.demo .lSPager.lSGallery li {
  border-radius: 6px;
}

/* Slider arrows (the original sprite image is missing) */
.demo .lSAction > a {
  display: block;
  width: 40px;
  height: 40px;
  margin-top: -20px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.94);
  background-image: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  color: #222;
  font-size: 30px;
  line-height: 34px;
  opacity: 1;
  text-align: center;
  text-decoration: none;
}

.demo .lSAction > .lSPrev::before {
  content: "\2039";
}

.demo .lSAction > .lSNext::before {
  content: "\203A";
}

.demo .lSAction > a:hover {
  background-color: #fff;
}

.demo .lSAction > a:focus-visible {
  outline: 3px solid #222;
  outline-offset: 2px;
}

/* Details card */
.container.border > .row > .demo ~ div > .card {
  height: 100%;
  margin: 20px 0 0;
  padding: 20px;
  border: 1px solid #e8e8e8;
  border-radius: 6px;
}

/* Gallery and details card side by side, equal height */
@media (min-width: 992px) {
  .container.border > .row {
    display: flex;
  }

  .container.border > .row::before,
  .container.border > .row::after {
    display: none;
  }

  .container.border > .row > .demo {
    flex: 0 0 504px;
    float: none;
    width: 504px;
  }

  .container.border > .row > .demo ~ div {
    flex: 1 1 0;
    float: none;
    width: auto;
    min-width: 0;
  }

  .container.border > .row > .demo ~ div > .card {
    margin-top: 0;
  }
}
