/* Version: 31-05-2026-16-39 */
.card-list {
    margin-bottom: 0px;
}

.members .member-item a {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 50px;
    box-sizing: border-box;
}

.member-item .member-img, .profil-window .member-img {
	height: 150px;
	width: 150px;
	border-radius: var(--portfolios-border-radius-full);
    background-size: cover;
}

.members .member-item .member-head, .profil-window .member-head {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.members .member-item .member-head *, .profil-window .member-head * {
    text-align: center;
}

.close-content-button, .profil-window, .profil-overlay {
    display: none;
}

/* Close icon default look */
.close-content-button img {
    filter: invert(1) brightness(1.2);
    -webkit-filter: invert(1) brightness(1.2);
}

/* Close icon (SVG) should use theme text color */
.close-content-button svg {
    width: 1.6rem;
    height: 1.6rem;
    fill: var(--portfolios-theme-text-main, #fff);
}

/* Focus and hover for accessibility */
.close-content-button:focus,
.close-content-button:hover {
    outline: 2px solid var(--portfolios-theme-color-border-custom, rgba(255,255,255,0.2));
    outline-offset: 2px;
    border-radius: var(--portfolios-border-radius-full);
}

.profil-overlay {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100vw;
    background-color: var(--modules-black-alpha3);
    opacity: 0;
    transition: opacity 220ms ease;
}
.profil-overlay.open {
    display: block;
    opacity: 1;
}

.profil-window {
    position: fixed;
    top: 10%;
    left: 25%;
    right: 25%;
    height: 80%;
    margin: 15px;
    display: none;
    opacity: 0;
    transform: translateY(-10px) scale(0.98);
    transition: opacity 240ms ease, transform 240ms ease;
}
.profil-window.open {
    display: block;
    opacity: 1;
    transform: translateY(0) scale(1);
}

.close-content-button {
    position: fixed;
    top: 10%;
    right: 20%;
    margin-top: 15px;
    padding: 8px;
    border-radius: var(--portfolios-border-radius-full);
    display: none;
}
.close-content-button.open { display: block; }

.close-content-button img {
    filter: invert(1) brightness(1.2);
    -webkit-filter: invert(1) brightness(1.2);
    display: block;
}

.profil-window .social-medias svg {
    fill: var(--portfolios-theme-fill, #0f0f0f);
}
.profil-window .social-medias a:hover {
    border-color: var(--portfolios-theme-fill-alt, #bdbdbd);
    box-shadow: var(--portfolios-button-hover-box-shadow, var(--portfolios-button-box-shadow));
}
.profil-window .social-medias a {
    background: var(--portfolios-theme-bg-main, #272727) !important;
    border-color: var(--portfolios-button-border-color, transparent);
}

body.modal-open {
    overflow: hidden;
}

.profil-window .profil-infos {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    height: 100%;
    width: 100%;
    box-sizing: border-box;
    padding: 50px;
    overflow-y: auto;
}

/* Make the profile image be part of the content flow so it scrolls with the modal */
.profil-window .member-img {
    position: static;
    margin: 0 auto 20px; /* center and space below */
    display: block;
    height: 150px;
    width: 150px;
    border-radius: var(--portfolios-border-radius-full);
    background-size: cover;
}

/* Reset the heading offset so it sits directly below the image */
.profil-window .member-head {
    margin-top: 0;
    text-align: center;
}

@media screen and (max-width: 900px) {
    .profil-window .member-img {
        width: 90px;
        height: 90px;
        margin-bottom: 12px;
    }
    .profil-window .member-head {
        margin-top: 8px;
    }
}

.close-content-button {
    position: fixed;
    top: 10%;
    right: 20%;
    margin-top: 15px;
}

@media screen and (max-width: 900px) {

    .profil-window {
        top: 5%;
        left: 5%;
        right: 5%;
        height: 90%;
        margin: 15px;
    }

    .profil-window .profil-infos {
        padding: 20px;
    }

    .member-item .member-img {
        width: 60px;
        height: 60px;
    }

}