@import '../popup/popup.scss';
@import '../swiper/swiper.scss';
@import '../video/video.scss';
@import '../image/image.scss';

.nut-imagepreview {
  width: 100%;
  height: 100%;

  &-swiper {
    height: 100%;
    width: 100vw;
    background-color: transparent;
  }

  &-index {
    position: fixed;
    z-index: 2002;
    top: 50px;
    text-align: center;
    left: 0;
    right: 0;
    background: transparent;
    color: $white;

    .arrow {
      position: absolute;
      left: 15px;
      transform: rotateZ(180deg);
    }
  }

  &-pop {
    height: 100%;
    background: transparent !important;
    display: flex;
    align-items: center;
    width: 100%;
  }

  &-swiper {
    .nut-imagepreview-swiper-item,
    .nut-swiper-item {
      display: flex;
      align-items: center;
      justify-content: center;
      height: 100%;

      .nut-image-preview-box {
        width: 100%;
      }

      .nut-video {
        video {
          object-fit: contain;
        }
      }
    }
  }
}
