/**
 * User Manager Overwrites
 */

 #profile-badge-container {
    position: relative;
    display: flex;
    justify-content: space-between;
    flex-direction: row;
 }

 .profile-wrapper {
    position: relative;
    min-height: 800px;
}

.profile-badge-wrapper {
    position: absolute;
    top: 0;
    left: 10px;
    width: auto;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.profile-badge-content {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 275px 0 0 0 ;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-wrap: wrap;
    word-wrap: break-word;
    word-break: break-all;
}

.profile-badge-img {
    width: 125px;
    height: 125px;
    position: relative;
    overflow: hidden;
    border-radius: 50%;
    border: 5px solid #fff;
}

.profile-badge-img.center img,
.wpum-profile-img.center img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}


#content img.avatar.horizontal {
    height: 100%;
    width: auto;
    max-width: 9999px;
    max-width: max-content;
    min-width: 100%;
    object-fit: cover;
}

.profile-name {
    text-align: center;
}

.edit-link {
    margin: 0 auto;
}

.profile-social {
    list-style: none;
    margin: 0;
}

.profile-social li {
    display: inline-block;
}
.profile-social li+li {
    margin-left: 5px;
}

.profile-content-settings {
    padding: 2rem 50px;
    text-align: center;
}

#profile-content-information {
    margin-left: 400px;
    padding: 1.5rem 50px;
    text-align: left;
}



/** Directory cards **/

.wpum-directory form {
    border-radius: 16px;
    border: 1px solid #e5e5e5;
    overflow: hidden;
}

#wpum-directory-search-form,
#wpum-directory-top-bar {
    border: none;
}

#wpum-directory-users-list {
    padding-top: 1rem;
    border: none;
}

#wpum-directory-users-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: stretch;
}

#wpum-directory-users-list .wpum-profile-card {
    width: 32.5%;
    margin-top: 0;
    margin-bottom: 25px;
    border-radius: 8px;
    overflow: hidden;
}

.wpum-profile-card+.wpum-profile-card  {
    margin-left: 1.25%;
}
.wpum-profile-card:nth-child(3n+1)  {
    margin-left: 0;
}

.wpum-profile-img {
    position: relative;
    width: 100px;
    height: 100px;
    overflow: hidden;
    margin: 0 auto;
    border-radius: 50%;
    border: 5px solid #fff;
}

#wpum-profile-card {
    background-color: #fff;
}
#wpum-profile-card .wpum-profile-img img {
    padding: 0;
    border: none;
}

.wpum-card-name {
    margin-bottom: 10px;
}

.profile-role {
    background-color: #F9F9F9;
    color: #333;
    font-weight: 700;
    border-radius: 4px;
    padding: 5px 10px;
    font-size: 80%;
    position: absolute;
    top: 10px;
    left: 10px;
    box-shadow: 0 0 10px 2px rgba(0,0,0,.1);
}

.profile-role.badge {
    position: relative;
    top: -25px;
    left: 0;
    box-shadow: none;
}

.profile-info {
    margin-bottom: 1rem;
}

.profile-company {
    font-weight: 700;
    font-size: 90%;
}

.wpum-card-details {
    color: var(--e-global-color-text)!important;
}

.wpum-directory-pagination {
    display: block;
    width: 100%;
}

@media (max-width: 768px) {
  #profile-badge-container {
    display: block;
  }

  .profile-wrapper #header-cover-image {
      position: absolute;
  }

  #profile-content-information {
      margin-left: 0;
  }

  .profile-badge-wrapper {
      position: relative;
      width: 100%;
      left: 0;
  }

  .profile-wrapper .profile-content-settings {
      padding: 2rem 30vw;
  }

}

@media (max-width: 500px) {
  #wpum-directory-users-list {
    display: block;
  }

  .wpum-profile-card:nth-child(3n+1),
  .wpum-profile-card+.wpum-profile-card,
  .wpum-profile-card  {
    margin-left: 0;
    width: 100%;
    display: block
}

  .profile-wrapper .profile-content-settings {
      padding: 2rem 20vw;
  }
}