.card-profile-wrapper {
  container-name: card-profile;
  container-type: inline-size;
  /* height: 100%; */
  box-sizing: content-box;
  margin-bottom: 1rem;
  align-items: stretch;
  flex: 1;
  display: flex;
  align-items: stretch;
}

.card-profile {
  display: flex;
  box-sizing: content-box;
  width: 100%;
}

@container card-profile ( width < 360px ) {
  .card-profile {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .card-profile img {
    margin-right: auto;
    margin-bottom: 1rem;
  }
}

.card-profile img {
  object-fit: cover;
  width: 120px;
  height: 120px;
  margin-right: 1rem;
  flex-shrink: 0;
}
