/* -------------------------------- 

Main Components 

-------------------------------- */

.cd-gallery {
  width: 100%;
  max-width: 1048px;
  margin: 1.5em auto;
  padding: 0;
  height: 500px;
  position: relative;
}

.cd-gallery::after {
  clear: both;
  content: "";
  display: table;
}

.cd-gallery>li {
  overflow: hidden;
  position: relative;
  height: inherit;
}

#slide-left, #slide-right {
  display: inline-block;
  width: auto;
  margin: 0;
  height: auto;
  font-size: 5rem;
  position: absolute;
  top: 200px;
  z-index: 2;
}

#slide-right {
  right: 0;
}

#slide-left {
  left: 0;
}

.cd-gallery>li>a {
  display: block;
}

@media only screen and (min-width: 768px) {
  .cd-gallery {
    margin: 2em auto;
  }
  .cd-gallery>li {
    width: 100%;
    float: left;
    margin-right: 4%;
    margin-bottom: 2.5em;
    height: 500px;
  }
  .cd-gallery>li:nth-of-type(2n) {
    margin-right: 0;
  }
}

@media only screen and (min-width: 1048px) {
  .cd-gallery {
    margin: 2.5em auto;
  }
  .no-touch .cd-gallery>li:hover .cd-dots li.selected a {
    /* Slider dots - change background-color of the selected dot when hover over the its parent list item */
    background: #2f2933;
    border-color: #2f2933;
  }
  .no-touch .cd-gallery>li:hover .cd-dots a {
    /* Slider dots - change dot border-color when hover over the its parent list item */
    border-color: #9688a0;
  }
  .no-touch .cd-gallery>li:hover li.move-right, .no-touch .cd-gallery>li:hover li.move-left {
    /* show preview items when hover over the its parent list item */
    opacity: 0.3;
  }
}

.cd-item-wrapper {
  position: relative;
  overflow: hidden;
  list-style-type: none;
  height: inherit;
  padding: 0%;
}

.cd-item-wrapper li {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 25%;
  height: 100%;
  width: 50%;
  opacity: 0;
  /* Force Hardware Acceleration */
  -webkit-transform: translateZ(0);
  -ms-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  will-change: transform, opacity;
  -webkit-transform: translateX(200%) scale(0.7);
  -ms-transform: translateX(200%) scale(0.7);
  transform: translateX(200%) scale(0.7);
  -webkit-transition: -webkit-transform 0.4s, opacity 0.4s;
  -webkit-transition: opacity 0.4s, -webkit-transform 0.4s;
  transition: opacity 0.4s, -webkit-transform 0.4s;
  -o-transition: transform 0.4s, opacity 0.4s;
  transition: transform 0.4s, opacity 0.4s;
  transition: transform 0.4s, opacity 0.4s, -webkit-transform 0.4s;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}

.cd-item-wrapper li.selected {
  /* selected item */
  position: relative;
  z-index: 0;
  opacity: 1;
  -webkit-transform: translateX(0) scale(1);
  -ms-transform: translateX(0) scale(1);
  transform: translateX(0) scale(1);
}

.cd-item-wrapper li.move-left {
  /* item on left - preview visible */
  -webkit-transform: translateX(-50%) scale(0.7);
  -ms-transform: translateX(-50%) scale(0.7);
  transform: translateX(-50%) scale(0.7);
  opacity: 0.3;
}

.cd-item-wrapper li.move-right {
  /* item on right - preview visible */
  -webkit-transform: translateX(50%) scale(0.7);
  -ms-transform: translateX(50%) scale(0.7);
  transform: translateX(50%) scale(0.7);
  opacity: 0.3;
}

.cd-item-wrapper li.hide-left {
  /* items hidden on the left */
  -webkit-transform: translateX(-200%) scale(0.7);
  -ms-transform: translateX(-200%) scale(0.7);
  transform: translateX(-200%) scale(0.7);
}

.cd-item-wrapper li img {
  display: block;
  margin: 0 auto;
}

@media only screen and (min-width: 1048px) {
  .cd-item-wrapper li.move-left, .cd-item-wrapper li.move-right {
    /* hide preview items */
    opacity: 0.5;
  }
  .cd-item-wrapper li.focus-on-left {
    /* class added to the .selected and .move-right items when user hovers over the .move-left item (item preview on the left) */
    -webkit-transform: translateX(3%) scale(1.25);
    -ms-transform: translateX(3%) scale(1.25);
    transform: translateX(3%) scale(1.25);
  }
  .cd-item-wrapper li.focus-on-left.move-right {
    -webkit-transform: translateX(53%) scale(0.7);
    -ms-transform: translateX(53%) scale(0.7);
    transform: translateX(53%) scale(0.7);
  }
  .cd-item-wrapper li.focus-on-right {
    /* class added to the .selected and .move-left items when user hovers over the .move-right item (item preview on the right) */
    -webkit-transform: translateX(-3%) scale(1.25);
    -ms-transform: translateX(-3%) scale(1.25);
    transform: translateX(-3%) scale(1.25);
  }
  .cd-item-wrapper li.focus-on-right.move-left {
    -webkit-transform: translateX(-53%) scale(0.7);
    -ms-transform: translateX(-53%) scale(0.7);
    transform: translateX(-53%) scale(0.7);
  }
  .cd-item-wrapper li.hover {
    /* class added to the preview items (.move-left or .move-right) when user hovers over them */
    opacity: 1 !important;
  }
  .cd-item-wrapper li.hover.move-left {
    -webkit-transform: translateX(-45%) scale(0.75);
    -ms-transform: translateX(-45%) scale(0.75);
    transform: translateX(-45%) scale(0.75);
  }
  .cd-item-wrapper li.hover.move-right {
    -webkit-transform: translateX(45%) scale(0.75);
    -ms-transform: translateX(45%) scale(0.75);
    transform: translateX(45%) scale(0.75);
  }
}

.cd-dots {
  /* not visible in the html document - created using jQuery */
  position: absolute;
  bottom: 95px;
  left: 50%;
  right: auto;
  -webkit-transform: translateX(-50%);
  -ms-transform: translateX(-50%);
  transform: translateX(-50%);
  padding: .2em;
}

.cd-dots::after {
  clear: both;
  content: "";
  display: table;
}

.cd-dots li {
  display: inline-block;
  float: left;
  margin: 0 5px;
  pointer-events: none;
}

.cd-dots li.selected a {
  background: #2f2933;
  border-color: #2f2933;
}

.cd-dots a {
  display: block;
  height: 6px;
  width: 6px;
  border-radius: 50%;
  border: 1px solid #9688a0;
  /* image replacement */
  overflow: hidden;
  text-indent: 100%;
  white-space: nowrap;
  -webkit-transition: border-color 0.2s, background-color 0.2s;
  -o-transition: border-color 0.2s, background-color 0.2s;
  transition: border-color 0.2s, background-color 0.2s;
}

@media only screen and (min-width: 1048px) {
  .cd-dots li {
    pointer-events: auto;
  }
  .cd-dots li.selected a {
    background: #cccccc;
    border-color: #cccccc;
  }
  .cd-dots a {
    height: 8px;
    width: 8px;
    border-color: #cccccc;
    /* fix a bug in IE9/10 - transparent anchor not clickable */
    background-color: rgba(255, 255, 255, 0);
  }
}

.cd-item-info {
  height: 90px;
  line-height: 90px;
  padding: 0 2em;
}

.cd-item-info::after {
  clear: both;
  content: "";
  display: table;
}

.cd-item-info b, .cd-item-info .cd-price, .cd-item-info .cd-new-price {
  font-weight: bold;
  font-size: 2rem;
}

.cd-item-info b {
  float: left;
}

.cd-item-info b a {
  color: #2f2933;
}

@media only screen and (min-width: 768px) {
  .cd-item-info b, .cd-item-info .cd-price, .cd-item-info .cd-new-price {
    font-size: 2.4rem;
  }
}

.no-js .move-right, .no-js .move-left {
  display: none;
}

/* -------------------------------- 

xcredits 

-------------------------------- */

.credits {
  width: 90%;
  margin: 2em auto;
  text-align: center;
}

.no-touch .credits a:hover {
  text-decoration: underline;
}

@media all and (max-width:425px) {
  .cd-item-wrapper li {
    left: 0;
    width: 100%;
  }
  .cd-item-wrapper li.move-left {
    webkit-transform: translateX(-60%) scale(0.7);
    -ms-transform: translateX(-60%) scale(0.7);
    -webkit-transform: translateX(-60%) scale(0.7);
    transform: translateX(-60%) scale(0.7);
  }
  .cd-item-wrapper li.move-right {
    webkit-transform: translateX(60%) scale(0.7);
    -ms-transform: translateX(60%) scale(0.7);
    -webkit-transform: translateX(60%) scale(0.7);
    transform: translateX(60%) scale(0.7);
  }
}