.yc-image-preview {
  position: fixed;
  height: 100%;
  width: 100%;
  left: 0;
  top: 0;
  .yc-image-preview-mask {
    position: absolute;
    height: 100%;
    width: 100%;
    background-color: var(--color-mask-bg);
  }
  .yc-image-preview-wrapper {
    position: absolute;
    height: 100%;
    width: 100%;
    .yc-image-preview-img-container {
      height: 100%;
      width: 100%;
      position: absolute;
      .yc-image-preview-img {
        left: 50%;
        top: 50%;
        position: absolute;
        display: inline-block;
        max-width: 100%;
        max-height: 100%;
        vertical-align: middle;
        cursor: grab;
        user-select: none;
      }
    }
    .yc-image-preview-toolbar {
      position: absolute;
      bottom: 46px;
      left: 50%;
      transform: translate(-50%);
      padding: 4px 16px;
      background-color: var(--color-bg-2);
      border-radius: var(--border-radius-medium);
      display: flex;
      align-items: flex-start;
      .yc-image-preview-toolbar-action {
        cursor: pointer;
        border-radius: var(--border-radius-small);
        background-color: transparent;
        color: var(--color-text-2);
        font-size: 14px;
        display: flex;
        align-items: center;
        justify-content: center;
        .yc-image-preview-toolbar-action-content {
          padding: 13px;
          line-height: 1;
        }
        &:not(.yc-image-preview-toolbar-action-disabled):hover {
          color: rgb(var(--primary-6));
          background-color: var(--color-neutral-2);
        }
      }
      .yc-image-preview-toolbar-action-disabled {
        color: var(--color-text-disabled);
        background-color: transparent;
        cursor: not-allowed;
      }
    }
    .yc-image-preview-close-btn {
      cursor: pointer;
      position: absolute;
      top: 36px;
      right: 36px;
      width: 32px;
      height: 32px;
      background: rgba(0, 0, 0, 0.5);
      border-radius: var(--border-radius-circle);
      color: var(--color-white);
      font-size: 14px;
      text-align: center;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .yc-image-preview-arrow-right,
    .yc-image-preview-arrow-left {
      cursor: pointer;
      position: absolute;
      z-index: 2;
      width: 32px;
      height: 32px;
      color: var(--color-white);
      background-color: #ffffff4d;
      border-radius: var(--border-radius-circle);
      display: flex;
      align-items: center;
      justify-content: center;
      &:hover {
        background-color: #ffffff80;
      }
    }
    .yc-image-preview-arrow-left {
      top: 50%;
      left: 20px;
      transform: translateY(-50%);
    }
    .yc-image-preview-arrow-right {
      top: 50%;
      right: 20px;
      transform: translateY(-50%);
    }
  }
}

.yc-image-preview-absolute {
  position: absolute;
}
