:root {
    --member-columns: 1;
    --member-photo-width: 240px;
    --member-photo-height: 280px;
}

#team {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
    padding-bottom: 50px;
}

.member {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative; 
    margin-bottom: 50px;
}

.hex-photo {
    width: var(--member-photo-width);
    height: var(--member-photo-height);
    clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}

.member-border {
    width: calc(var(--member-photo-width) + 30px);
    height: calc(var(--member-photo-height) + 30px);
    position: absolute;
    top: -15px;
    clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
    content: " ";
    background-color: #bdbdbd;
}

.member-border:before {
    width: calc(var(--member-photo-width) + 28px);
    height: calc(var(--member-photo-height) + 28px);
    position: absolute;
    left: 1px;
    top: 1px;
    clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
    content: " ";
    background-color:#fff;
}

.hex-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease;
}

.hex-photo img:hover {
    transform: scale(1.1, 1.1);
    transition: transform 0.4s ease;
}

.member-name {
    margin-top: 35px;
    font-family: Gotham, 'Palatino Linotype', sans-serif;
    font-weight: 500;
    font-size: 1.6em;
}

.member-role {
    font-family: Gotham, 'Palatino Linotype', sans-serif;
    font-style: italic;
    font-weight: 300;
    font-size: 18px;
}

.bio {
    opacity: 0;
    display: none;
    transition: opacity 2s ease;   
}

.bio-active {
    display: flex;
    position: fixed;
    opacity: 1;
    flex-direction: column;
    align-items: center;
    background-color: white;
    padding: 30px 30px;
    left: 0;
    top: 0;
    transition: opacity 2s;
    z-index: 10;
}

.bio-photo {
    display: none;
}

.bio-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.bio-description, .bio-description-small {
    margin-top: 40px;
    margin-left: 20px;
    font-family: Gotham, 'Palatino Linotype', sans-serif;
    font-weight: 300;
    font-size: 18px;
    padding-bottom: 50px;
}

.bio-close {
    position: absolute  ;
    right: 30px;
    top: 20px;
    border: none;
    background-color: transparent;
}

.close-icon {
    width: 20px;
    height: 20px;
}

.bio-close:hover .close-icon:before, .bio-close:hover .close-icon:after {
    background-color: #dc5980;
    transition: background-color 0.2s ease;
}

.close-icon:before, .close-icon:after {
    position: absolute;
    left: 9px;
    content: " ";
    height: 22px;
    width: 2px;
    border-radius: 3px;
    background-color: #636363;
    transition: background-color 0.2s ease;
}

.close-icon:before {
    transform: rotate(45deg);
}

.close-icon:after {
    transform: rotate(-45deg);
}

@media screen and (max-width: 1024px){
    .bio-active {
        height: 100vh;
        z-index: 1000;
    }

    .bio-description-small {
        font-size: 16px;
    }
}

@media screen and (min-width: 1024px) {
    .hex-photo {
        margin-top: 0;
    }

    .bio {
        position: relative;
        flex-direction: row;
        justify-content: center;
        background-color: #F3EEF9;
        width: 95vw;
        margin-bottom: 30px;
    }
    
    .bio-photo {
        display: block;
    }

    .bio-text {
        display: block;
        width: 60vw;
        margin-left: 80px;
    }

    .bio-name, .bio-role {
        padding-left: 20px;
    }

    .members-row {
        display: flex;
        justify-content: space-between;
        width: calc(var(--member-photo-width) * 2 + 150px);
        margin-top: 30px;
    }
}

@media screen and (max-width: 300px) {
    :root {
        --member-photo-width: 216px;
        --member-photo-height: 252px;
    }

    .member-border {
        display: none;
    }
}