.igloo-media-preview {
  display: flex;
  justify-content: center;
  align-items: center;

  .ant-modal {
    display: inline-block;
    top: 0;
    padding: 0;
    overflow: hidden;
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100vh;
    margin: 0;

    .ant-modal-content {
      display: inline-block;
      background: transparent;
      width: 100vw;
      height: 100vh;
      padding: 0;
      filter: none;

      .ant-modal-body {
        display: inline-block;
        padding: 0;
      }

      .ant-modal-close {
        top: 24px;
        right: 24px;
        border-radius: 48px;
        background: #fff;

        .ant-modal-close-x {
          width: 40px;
          height: 40px;
          line-height: 40px;
          justify-content: center;
          cursor: pointer;
          color: @icon-color;

          &:hover {
            color: @text-color;
          }
        }
      }
    }
  }

  .igloo-media-list {
    position: relative;
    width: 100vw;
    height: calc(100vh - 32px);

    .igloo-media-page-btn {
      display: flex;
      justify-content: center;
      align-items: center;
      position: absolute;
      top: 50%;
      width: 48px;
      height: 48px;
      font-size: 24px;
      transform: translateY(-50%);
      cursor: pointer;
      background: rgba(33, 33, 33, 0.3);
      border-radius: 36px;
      user-select: none;
      color: #fff;

      &:hover {
        background-color: rgba(33, 33, 33, 0.6);
      }
    }

    .igloo-media {
      position: absolute;
      width: 100%;
      height: calc(100% - 200px);
      top: 92px;

      .image {
        max-width: 100%;
      }
    }

    .igloo-media-animating {
      transition: transform 500ms ease-in-out;
    }
  }

  .previewImage {
    max-width: 85vw;
    max-height: 85vh;
  }

  .igloo-document-name {
    display: flex;
    justify-content: space-around;
    font-size: 16px;
    font-weight: 500;
    font-stretch: normal;
    font-style: normal;
    line-height: 24px;
    letter-spacing: normal;
    color: #ffffff;
    margin-top: 16px;
  }

  .igloo-preview-zoom-in {
    right: 24px;
  }

  .igloo-preview-zoom-out {
    right: 80px;
  }

  .igloo-preview-download-btn {
    right: 136px;
  }

  .igloo-preview-action-btn {
    position: fixed;
    bottom: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    font-size: 16px;
    cursor: pointer;
    background: #fff;
    border-radius: 40px;
    user-select: none;
    color: @icon-color;

    &:hover {
      color: @text-color;
    }
  }

  .igloo-preview-disabled {
    cursor: not-allowed !important;
    pointer-events: none;
    opacity: 0.3;
  }

  .igloo-preview-next {
    right: 136px;
    user-select: none;
  }

  .igloo-preview-previous {
    right: 192px;
    user-select: none;
  }

  .igloo-preview-page-btn {
    position: fixed;
    bottom: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    font-size: 16px;
    cursor: pointer;
    background: #fff;
    border-radius: 40px;
    color: @icon-color;

    &:hover {
      color: @text-color;
    }
  }
}
