.cmf-profile-picture {
  position: relative;
  z-index: 1;

  width: 200px;
  height: 200px;

  // background-image:url(/app/assets/images/profile-placeholder.png);
  background-size: contain;
  border-radius: 1em;

  &.was-avatar {
    background: inherit;
    background-image: none;
  }

  &:hover .delete-mask {
    display: flex;
  }
}

.delete-mask {
  position: absolute;
  z-index: 3;

  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  width: 200px;
  height: 200px;

  text-align: center;

  background-color: rgb(0 0 0 / 50%);
  border-radius: 100%;

  p {
    margin-top: 20px;
    color: #fff;
  }
}

.cmf-profile-picture img {
  position: absolute;
  z-index: 2;

  width: 100%;
  max-width: 200px;
  height: 100%;
  max-height: 200px;

  object-fit: cover;
  border-radius: 100%;
}

.gravatar-wrapper {
  position: relative;

  .upload-drop {
    position: absolute;
    z-index: 2020;
    left: 0;
  }

  .upload-photo-mask {
    cursor: pointer;

    position: absolute;
    top: 0;
    left: 0;

    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    width: 200px;
    height: 200px;

    background: rgb(0 0 0 / 50%);
    border-radius: 100%;

    .mat-icon {
      width: 50px;
      height: 50px;
      font-size: 50px;
    }

    p,
    .mat-icon {
      // display: block;
      color: white;
    }

    .upload {
      position: relative;
      top: -50px;
    }
  }

  &:hover .upload-photo-mask {
    display: flex;
  }
}

.upload-photo-drop {
  position: absolute;
  top: 150%;
  right: 350%;

  width: 100%;
  height: 100%;

  background-color: rgb(0 0 0 / 40.4%);
}
