$font-size-zero: 0;
$pdpcarousel-button-fontsize: 40px;

.nw-maincarousel-col {
  position: relative;
  padding: 0 70px;
}

.nw-maincarousel-wrapper {
  width: 100%;
  height: 1px;
  padding-bottom: 131%; // stylelint-disable-line
}

.nw-maincarousel {
  overflow: hidden;
  width: 100%;
  white-space: nowrap;
}

.nw-maincarouselzoom-carousel {
  position: relative;
  top: 50%;
  transform: translate(0, -50%);
  overflow: hidden;
  margin: 0 auto;
  max-width: 100%;
  width: calc(356 / 458 * 100vh - 100px);
  white-space: nowrap;

  @media screen and (min-width: $screen-min-sm) {
    position: static;
    transform: translate(0, 0);
  }
}

.nw-maincarouselzoom-image {
  display: inline-block;
  width: 100%;
  padding: 1px;
}

.nw-maincarousel-placeholder {
  display: inline-block;
  width: 100%;
  height: 0;
  padding-bottom: 131%; // stylelint-disable-line
  background: $maincarousel-placeholder-background;

  &.is-imgplaceholder {
    background: $transparent;
  }
}

.nw-maincarousel-image {
  position: relative;
  display: inline-block;
  width: 100%;
  font-size: $font-size-zero;
  vertical-align: top;
}

.nw-maincarousel-lazy {
  width: 100%;
  min-height: 1px;
}

.nw-maincarousel-videoelem {
  position: absolute;
  top: 50%;
  transform: translate(0, -50%);
  margin: 0 auto;
  width: 100%;
}

.nw-maincarousel-videoicon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 65px; // stylelint-disable-line
  color: $maincarousel-videoicon-color;
}

.nw-carousel-video {
  cursor: pointer;
}

.nw-maincarouselbutton {
  position: absolute;
  z-index: 1;
  top: 10%;
  border: 0;
  width: 70px;
  height: 80%;
  font-size: $pdpcarousel-button-fontsize;
}

.nw-maincarouselbutton-prev {
  left: 0;
}

.nw-maincarouselbutton-next {
  right: 0;
}

.nw-maincarouselbutton-icon {
  font-weight: 600;
}

.nw-maincarousel-dotswrapper {
  text-align: center;
}

.nw-maincarouselzoom-dotswrapper {
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  text-align: center;
}

.nw-maincarousel-dots {
  display: inline-block;
  margin: 3px;
  box-shadow: 0 0 3px 1px #fff;
  border-radius: 50%;
  width: 8px;
  height: 8px;
  background: darken-colors($concrete, 8);

  &.is-active {
    background: $color-primary;
  }
}

.nw-maincarouselzoom-lazy {
  width: 100%;
}

.nw-maincarousel-zoompreview {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 100%;
  display: none;
  overflow: hidden;
  box-shadow: 0 0 10px #999;
  border: 1px solid #eee;
  width: 400px;
  height: 100%;
  background: $white;

  @media screen and (min-width: $screen-min-md) {
    &.is-active {
      display: block;
    }
  }
}

.nw-maincarousel-zoommobilemodal {
  .nwc-modal-close {
    display: none;
  }

  .nwc-modal-children {
    padding: 0;
  }
}

.nw-maincarousel-mobilezoompreview {
  position: absolute;
  top: 0;
  left: 0;
  overflow: auto;
  width: calc(100% + 15px);
  height: calc(100% + 15px);
  padding: 0 15px 15px 0;
}

.nw-maincarousel-previewtoastr {
  top: 100vh;
  margin-top: -60px;
}

.nw-image-container-outline {
  outline: none;

  @media screen and (max-width: $screen-max-xs) {
    display: contents;
  }
}
