.nut-theme-dark {
  .nut-image {
    .nut-img-loading {
      background: $dark-background;
    }

    .nut-img-error {
      background: $dark-background;
    }
  }
}

.nut-image {
  display: block;
  position: relative;
  .nut-img {
    display: block;
    width: 100%;
    height: 100%;
  }

  &.nut-image-round {
    border-radius: 50%;
    overflow: hidden;
  }

  .nut-img-loading {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f7f8fa;
  }
  .nut-img-error {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f7f8fa;
  }
}
