@use 'sass:map';
@use 'mixins/mixins' as *;
@use 'mixins/function' as *;
@use 'mixins/var' as *;
@use 'common/var' as *;

@include b(image-prev-next) {
  position: fixed;
  top: 50%;
  z-index: 2016;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  cursor: pointer;
  background: rgb(51 55 70 / 50%);
  border: 1px solid #ffffff57;
  border-radius: 35px;
  transform: translateY(-30px);

  .icon-prev-next {
    width: 60px;
    height: 60px;
    font-size: 20px;
    line-height: 60px;
    color: #fff;
    text-align: center;
    opacity: 1;
  }
}

@include b(image-prev) {
  left: 10%;
}

@include b(image-next) {
  right: 10%;

  .transform-rotate {
    transform: rotate(180deg);
  }
}

@include b(image-viewer-counts) {
  position: fixed;
  bottom: 66px;
  left: 50%;
  z-index: 2016;
  font-family: PingFangSC-Regular, sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #fff;
  transform: translateX(-50%);

  .image-viewer-count {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 48px;
  }
}

@include b(image-viewer-top) {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 2016;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-width: 100%;
  height: 40px;
  margin: 0;
  font-family: PingFangSC-Regular, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 40px;
  color: #333746;
  background: #fff;

  .title {
    padding-left: 34px;
    text-align: left;
  }

  .img-close {
    padding-right: 14px;
    cursor: pointer;
  }
}

@include b(viewer-container) {
  background: rgb(0 0 0 / 50%);
}

@include b(viewer-canvas) {
  > img {
    width: auto;
    max-width: 90% !important;
    height: auto;
    margin: 60px auto;
  }
}

@include b(viewer-toolbar) {
  > ul {
    padding: 6px 10px;
    background: #333746;
    border: 1px solid #ffffff57;
    border-radius: 20px;

    li {
      background-color: transparent;
    }

    .viewer-custom {
      width: 50px;
    }
  }
}

@include b(viewer-navbar) {
  background-color: #fff;

  .viewer-list {
    box-sizing: content-box;
    display: flex;
    justify-content: center;
    width: 100% !important;
    height: 64px;
    margin: 0 auto;
    transform: none !important;

    li {
      width: 40px;
      height: 52px;
      margin: 6px;
      opacity: 1;

      .viewer-active {
        width: 40px;
        height: 46px;
        border: 4px solid #3158ee;
      }
    }
  }
}
