/* ==========================================================
   TEAM
   ========================================================== */


/* ==========================================================
   PAGE HEADER
   ========================================================== */

.page-header {
    padding: 100px 30px 70px;
    text-align: center;
}

.page-header .container {
    max-width: 850px;
    margin: 0 auto;
}

.page-header h1 {
    font-size: 4rem;
    margin-bottom: 20px;
}

.page-header p {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.9;
}


/* ==========================================================
   MEMBER SECTION
   ========================================================== */

.team-member {
    padding: 90px 30px;
}

.team-member:nth-child(even) {
    background: var(--background);
}


/* ==========================================================
   MEMBER CARD
   ========================================================== */

.member-card {
    max-width: 1200px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: 430px minmax(0, 1fr);

    gap: 70px;

    align-items: start;
}


/* ==========================================================
   PHOTO
   ========================================================== */

.member-photo {
    width: 100%;
    overflow: hidden;
    border-radius: 22px;
}

.member-photo img {
    display: block;

    width: 100%;
    height: 560px;

    object-fit: cover;

    border-radius: 22px;

    box-shadow: var(--shadow);

    transition: transform .35s ease;
}

.member-photo:hover img {
    transform: scale(1.03);
}


/* ==========================================================
   CONTENT
   ========================================================== */

.member-content {
    max-width: 760px;
    min-width: 0;
}

.member-role {
    display: inline-block;

    color: var(--primary);

    font-size: .9rem;
    font-weight: 600;

    margin-bottom: 12px;

    letter-spacing: .5px;
}

.member-content h2 {
    margin: 0 0 10px;

    font-size: 3.2rem;
    line-height: 1.15;
}

.member-content h3 {
    margin: 0 0 28px;

    font-size: 1.35rem;
    line-height: 1.5;

    color: var(--primary-dark);

    font-weight: 500;
}


/* ==========================================================
   BIO WRAPPER
   ========================================================== */

.member-bio-wrapper {
    position: relative;
}


/* ==========================================================
   BIO
   ========================================================== */
.member-bio {
    color: var(--text-light);
    font-size: 1.05rem;
    line-height: 1.9;

    overflow: hidden;

    max-height: none;

    transition: max-height .35s ease;
}

.member-bio p {
    margin: 0 0 18px;
}

.member-bio p:last-child {
    margin-bottom: 0;
}


/* ==========================================================
   READ MORE BUTTON
   ========================================================== */

.member-read-more {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    margin-top: 20px;

    padding: 10px 20px;

    background: transparent;

    border: 1px solid var(--primary);
    border-radius: 30px;

    color: var(--primary-dark);

    font-family: inherit;
    font-size: .9rem;
    font-weight: 600;

    cursor: pointer;

    transition:
        background .25s ease,
        color .25s ease,
        border-color .25s ease,
        transform .25s ease;
}

.member-read-more:hover {
    background: var(--primary);

    border-color: var(--primary);

    color: white;

    transform: translateY(-1px);
}


/* ==========================================================
   RESPONSIVE - TABLET
   ========================================================== */

@media (max-width: 992px) {

    .team-member {
        padding: 75px 30px;
    }


    .member-card {
        grid-template-columns: 1fr;

        gap: 40px;
    }


    .member-photo {
        max-width: 420px;

        margin: 0 auto;
    }


    .member-content {
        max-width: 850px;

        margin: 0 auto;

        text-align: center;
    }


    .member-content h2 {
        font-size: 2.7rem;
    }


    .member-content h3 {
        font-size: 1.2rem;
    }


    .member-bio {
        text-align: left;
    }


    /*
     * On tablet the image is above the text,
     * therefore the bio should not be restricted
     * by the image height.
     */

    .member-read-more {
        display: none !important;
    }

    .member-bio {
        max-height: none !important;
    }
}


/* ==========================================================
   RESPONSIVE - MOBILE
   ========================================================== */

@media (max-width: 576px) {

    .page-header {
        padding: 70px 20px 40px;
    }


    .page-header h1 {
        font-size: 2.6rem;
    }


    .page-header p {
        font-size: 1rem;
    }


    .team-member {
        padding: 55px 20px;
    }


    .member-card {
        gap: 30px;
    }


    .member-photo {
        max-width: 100%;
    }


    .member-photo img {
        height: 420px;
    }


    .member-content {
        text-align: left;
    }


    .member-content h2 {
        font-size: 2.15rem;
    }


    .member-content h3 {
        font-size: 1.05rem;

        margin-bottom: 22px;
    }


    .member-bio {
        font-size: .98rem;

        line-height: 1.8;

        max-height: none !important;
    }


    /*
     * On mobile there is no "read more".
     * The entire biography is displayed.
     */

    .member-read-more {
        display: none !important;
    }
}