.profile__avatar-form {
  width: 180px;
  flex: 0 0 180px;
  margin: 0;
}

.profile__info--photo_uploadable {
  position: relative;
  width: 100%;
  height: 180px;
}

.profile__avatar-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: profile-avatar-appear 220ms ease-out;
  transition: opacity 180ms ease;
}

.profile__avatar-form:hover .profile__avatar-image,
.profile__avatar-form:focus-within .profile__avatar-image {
  opacity: .82;
}

@keyframes profile-avatar-appear {
  from { opacity: .65; }
  to { opacity: 1; }
}

.profile__avatar-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  box-sizing: border-box;
  padding: 0 8px 22px;
  color: #fff;
  background: linear-gradient(transparent 40%, rgba(0, 0, 0, .65));
  font-size: 13px;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
}

.profile__avatar-overlay-icon img {
  display: block;
  width: 18px;
  height: 18px;
  margin: 0 auto 5px;
}

.profile__avatar-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.profile__avatar-form:focus-within .profile__avatar-overlay {
  outline: 2px solid #fa1a76;
  outline-offset: -2px;
}

@media (prefers-reduced-motion: reduce) {
  .profile__avatar-image {
    animation: none;
    transition: none;
  }
}

@media screen and (max-width: 500px) {
  .profile__avatar-form {
    width: 100px;
    flex-basis: 100px;
  }

  .profile__info--photo_uploadable {
    height: 100px;
  }

  .profile__avatar-overlay {
    padding-bottom: 12px;
    font-size: 10px;
  }
}
