@import './theme/default';
@import './theme/font';

$rgbamaskbgcolor: rgba($color-black, 0.6);

.zent-image-p-body {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  z-index: 1;

  .zent-image-p-show-image {
    max-width: 90vw;
    max-height: 90vh;
    cursor: zoom-in;

    &.zent-image-p-is-zooming {
      cursor: zoom-out;
    }
  }
}

.zent-image-p-close {
  @include theme-color(background, stroke, 9, 0.6);
  position: fixed;
  text-align: center;
  border-radius: 40px;
  box-shadow: 0 0 8px rgba($color-black, 0.6);
  right: 20px;
  top: 20px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  z-index: 2;

  &:hover {
    @include theme-color(background-color, stroke, 9);
  }

  i {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }
}

.zent-image-p-footer {
  @include theme-color(color, stroke, 1);
  @include theme-color(background, stroke, 9, 0.6);
  position: fixed;
  border-radius: 40px;
  box-shadow: 0 0 8px rgba($color-black, 0.6);
  bottom: 20px;
  left: 50%;
  transform: translate(-50%);
  height: 40px;
  line-height: 40px;
  z-index: 2;
  font-size: $font-size-large;

  &.zent-image-p-footer-paging {
    min-width: 216px;

    &.zent-image-p-show-rotate-btn {
      min-width: 308px;
    }
  }

  &.zent-image-p-show-rotate-btn {
    min-width: 92px;
  }

  .zent-image-p-action {
    display: inline-block;
    cursor: pointer;
    padding: 0 30px;
    user-select: none;
    font-size: $font-size-large;
    min-width: 65px;
    text-align: center;

    &:hover {
      @include theme-color(background-color, stroke, 9);
    }

    &:first-child {
      border-radius: 40px 0 0 40px;
    }

    &:last-child {
      border-radius: 0 40px 40px 0;
    }

    &.zent-image-p-rotate-action {
      border-radius: 40px;
    }
  }
}

.zent-image-p-backdrop {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  background-color: $rgbamaskbgcolor;
  height: 100%;
  z-index: 1050;
}

.zent-image-p-wrap {
  position: fixed;
  overflow: auto;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  outline: 0;
}
