@import '../../style/theme/default.less';

@upload-list-prefix-cls: ~'@{kui-prefix}-upload-list';

.@{upload-list-prefix-cls} {
  display: flex;
  flex-wrap: wrap;
  padding-top: 36px;

  &-item {
    position: relative;
    width: calc((100% - 72px) / 3);
    margin-bottom: 36px;

    &:nth-child(3n - 1) {
      width: calc(100% - (100% - 72px) / 3 * 2);
      padding: 0 36px;
    }
  }

  &-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  &-circle {
    border-radius: 50%;
  }

  &-add {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-align: center;
    background: #f8f8f8;
    border-radius: 8px;
  }

  &-add-tip {
    font-family: PingFangSC-Regular, PingFang SC;
    font-size: 26px;
    font-weight: 400;
    line-height: 40px;
    color: #999;
  }

  &-add-icon {
    font-size: 30px;
    color: #333;
  }

  &-delete {
    position: absolute;
    top: -30px;
    right: -30px;
    z-index: 1;
    width: 60px;
    height: 60px;
    background-image: url('../images/icon-delete.png');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 30px auto;
  }

  &-item:nth-child(3n - 1) &-delete {
    right: 7px;
  }
}
