/* Small visual adjustments to the original member.php layout. */
.member-profile {
    padding-top: 36px;
    background: #fff;
    color: #222;
}

.member-profile .row > center {
    width: 100%;
}

.member-profile .profile-card {
    display: flex;
    align-items: center;
    gap: 40px;
    margin: 0;
    padding: 32px;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    text-align: left;
}

.member-profile .profile-photo-link {
    display: block;
    flex: 0 0 260px;
    width: 260px;
    max-width: 100%;
    color: #7537a7;
    text-align: center;
}

.member-profile .profile-photo {
    display: block;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 30%;
    background: #f5f5f5;
}

.member-profile .profile-photo-hint {
    display: block;
    margin-top: 14px;
    font-size: 12px;
    line-height: 1.6;
}

.member-profile .profile-photo-hint i {
    margin-right: 5px;
}

.member-profile .profile-photo-link:focus-visible,
.member-admin summary:focus-visible,
.profile-photo-close:focus-visible {
    outline: 3px solid #7537a7;
    outline-offset: 5px;
}

.member-profile .profile-details {
    flex: 1;
    min-width: 0;
    margin-top: 0 !important;
    font-size: 14px;
    line-height: 1.9;
    overflow-wrap: anywhere;
}

.member-profile .profile-name {
    margin-bottom: 12px;
    font-family: Poppins-SemiBold, sans-serif;
    font-size: 32px;
    line-height: 1.3;
    color: #171717;
}

.member-profile .profile-queen {
    display: table;
    margin: 12px 0;
    padding: 4px 12px;
    border: 1px solid #e2d5ec;
    border-radius: 20px;
    color: #7537a7;
    font-family: Poppins-Medium, sans-serif;
    font-size: 12px;
    line-height: 1.6;
}

.member-profile .profile-handle {
    color: #777;
}

.member-profile .profile-bio {
    text-align: left;
    max-width: 70ch;
    line-height: 1.9;
    color: #555;
}

.member-profile .profile-bio hr {
    margin: 18px 0;
}

.member-profile .profile-bio small {
    font-size: 14px;
}

.member-profile .profile-details .btn {
    margin: 14px 4px 0 0;
    padding: 9px 16px;
    border-color: #7537a7;
    color: #7537a7;
}

.member-profile .profile-details .btn:hover {
    background: #7537a7;
    color: #fff;
}

.member-admin {
    max-width: 1140px;
    margin: 0 auto 40px;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    background: #fff;
    color: #222;
    font-size: 14px;
}

.member-admin summary {
    padding: 20px 24px;
    cursor: pointer;
    font-family: Poppins-Medium, sans-serif;
    list-style-position: inside;
}

.member-admin summary span {
    float: right;
    color: #7537a7;
    font-size: 12px;
}

.member-admin-content {
    padding: 20px 24px;
    border-top: 1px solid #eee;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.member-admin-content a {
    color: #7537a7;
}

.profile-photo-open {
    overflow: hidden;
}

.profile-photo-view {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 70px 24px 60px;
    border: 0;
    background: #111;
    color: #fff;
}

.profile-photo-view[open] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
}

.profile-photo-view:not([open]) {
    display: none;
}

.profile-photo-view img {
    display: block;
    min-height: 0;
    max-width: 100%;
    max-height: calc(100% - 50px);
    object-fit: contain;
}

.profile-photo-view p {
    color: #fff;
    text-align: center;
    font-size: 14px;
}

.profile-photo-close {
    position: absolute;
    top: 14px;
    right: 18px;
    width: 44px;
    height: 44px;
    border: 1px solid #777;
    border-radius: 50%;
    background: transparent;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
}

@media (min-width: 601px) and (max-width: 900px) {
    .member-profile .profile-card {
        gap: 28px;
        padding: 26px;
    }

    .member-profile .profile-photo-link {
        flex-basis: 210px;
        width: 210px;
    }

    .member-profile .profile-photo {
        width: 210px;
        height: 210px;
    }
}

@media (max-width: 600px) {
    .member-profile {
        padding-top: 20px;
        padding-bottom: 32px;
    }

    .member-profile .profile-card {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding: 26px 18px;
    }

    .member-profile .profile-photo-link {
        flex-basis: auto;
        width: min(208px, 100%);
    }

    .member-profile .profile-photo {
        width: 100%;
        height: auto;
        aspect-ratio: 1;
    }

    .member-profile .profile-details {
        width: 100%;
        text-align: center;
    }

    .member-profile .profile-name {
        max-width: 26ch;
        margin: 0 auto 8px;
        font-size: 24px;
        line-height: 1.4;
    }

    .member-profile .profile-queen {
        margin: 12px auto;
    }

    .member-profile .isotope-item {
        padding-bottom: 0;
    }

    .member-profile .profile-bio {
        margin-top: 8px;
        text-align: left;
    }

    .member-profile .profile-details .btn {
        min-height: 44px;
        margin: 10px 3px 0;
    }

    .member-profile .isotope-item > .bor10:not(.profile-card) {
        margin-left: 0;
        margin-right: 0;
        padding: 20px 16px;
    }
}
