@import url('base.css');
@import url('contact.css');

* {
    box-sizing: border-box;
}

body {
    font-family: Montserrat, serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

#top-content {
    position: relative;
    padding: 100px 100px 90px;
}

#top-content #who-are-we {
    margin: 20px 0 80px;
    display: flex;
}

#top-content .left-content {
    width: 45%;
    font-weight: bold;
    text-transform: uppercase;
    font-size: var(--large-font-size);
}

#top-content #who-are-we .left-content {
    font-size: var(--extra-large-font-size);
    font-weight: 800;
}

html[lang='es'] #top-content #who-are-we .left-content {
    font-size: 70px;
}

#top-content .right-content {
    width: 48%;
    font-size: var(--medium-font-size);
}

#top-content #vision, #top-content #history {
    margin: 40px 0 60px;
    display: flex;
}

#top-content .side-decoration {
    width: 50px;
    height: 300px;
    position: absolute;
    right: 0;
    top: 200px;
    background-color: var(--accent-color);
}

#quote {
    background-color: var(--header-background);
    color: var(--light-text-color);
    padding: 10rem 20rem;
    position: relative;
    font-size: var(--medium-font-size);
}

#top-quote {
    position: absolute;
    left: 8rem;
    top: 3rem;
    background-image: url(/images/team/quotes-top.webp);
    width: 100px;
    height: 100px;
}

#bottom-quote {
    position: absolute;
    right: 8rem;
    bottom: 3rem;
    background-image: url(/images/team/quotes-btm.webp);
    width: 100px;
    height: 100px;
}

#quote-string {
	max-width: 1720px;
	margin: auto;
}

#quote-attribution {
    width: 100%;
	max-width: 1720px;
    text-align: right;
	margin: 2rem auto 0;
}


section#our-team-photos {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 1240px;
    position: relative;
}

section#our-team-photos #our-team-photos-grey {
    width: calc(100% / 2 - 450px);
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    background: var(--light-grey-background);
}

section#our-team-photos div#our-team-photos-container {
    display: flex;
    max-width: 1100px;
    align-self: center;
    width: 100%;
}

section#our-team-photos div#our-team-photos-container #our-team-photos-members {
    width: 66%;
    position: relative;
    padding-top: 3vh;
}

section#our-team-photos div#our-team-photos-container #our-team-photos-members .team-member {
    display: flex;
    padding: 22px;
}

section#our-team-photos div#our-team-photos-container #our-team-photos-members .team-member:hover {
    cursor: pointer;
	color: var(--accent-color);
}

section#our-team-photos div#our-team-photos-container #our-team-photos-members .team-member .team-member-photo img {
    width: 150px;
    height: 150px;
    cursor: pointer;
    max-inline-size: none;
}

section#our-team-photos div#our-team-photos-container #our-team-photos-members .team-member .team-member-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 3rem;
}

section#our-team-photos div#our-team-photos-container #our-team-photos-members .team-member .team-member-details .team-member-name {
    font-size: var(--normal-font-size);
    cursor: pointer;
}

section#our-team-photos div#our-team-photos-container #our-team-photos-members .team-member .team-member-details .team-member-description {
    font-size: var(--small-font-size);
    cursor: pointer;
}

section#our-team-photos div#our-team-photos-container #our-team-photos-title {
    text-transform: uppercase;
    font-size: var(--large-font-size);
    color: var(--main-text-color);
    position: relative;
    top: 40%;
}

section#our-team-photos div#our-team-photos-container #our-team-photos-title .decoration {
    position: absolute;
    top: 54px;
    left: 54px;
    width: 180px;
    height: 4px;
    background-color: var(--accent-color);
}

section#our-team-photos div#our-team-photos-container #our-team-photos-title div {
    width: 125px;
    text-align: right;
    line-height: 55px;
}

section#board-photos {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 1240px;
    position: relative;
}

section#board-photos #our-board-photos-container {
    display: flex;
    max-width: 1100px;
    align-self: center;
    width: 100%;
}

section#board-photos #our-board-photos-container #board-photos-title {
    width: 50%;
    text-transform: uppercase;
    font-size: var(--large-font-size);
    color: var(--main-text-color);
    position: relative;
    top: 30%;
}

section#board-photos #our-board-photos-container #board-photos-title .decoration {
    position: absolute;
    top: 54px;
    right: 120px;
    width: 180px;
    height: 4px;
    background-color: var(--accent-color);
}

section#board-photos #our-board-photos-container #board-photos-title div {
    text-align: right;
    line-height: 55px;
}

section#board-photos #our-board-photos-container #board-photos-members {
    width: 50%;
    position: relative;
    padding-top: 3vh;
    z-index: 2;
}

section#board-photos #our-board-photos-container #board-photos-members .board-member {
    display: flex;
    position: relative;
    justify-content: flex-end;
    padding: 22px;
	transition: transform 0.25s;
}

section#board-photos #our-board-photos-container #board-photos-members .board-member:hover {
	cursor: pointer;
    color: var(--accent-color);
}

section#board-photos #our-board-photos-container #board-photos-members .board-member .board-member-photo img {
    width: 150px;
    height: 150px;
    cursor: pointer;
    max-inline-size: none;
}

section#board-photos #our-board-photos-container #board-photos-members .board-member .board-member-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-right: 3rem;
}

section#board-photos #our-board-photos-container #board-photos-members .board-member .board-member-details .board-member-name {
    font-size: var(--normal-font-size);
    text-align: right;
    cursor: pointer;
}

section#board-photos #our-board-photos-container #board-photos-members .board-member .board-member-details .board-member-description {
    font-size: var(--small-font-size);
    text-align: right;
    cursor: pointer;
}

section#board-photos #board-photos-grey {
    background-color: var(--light-grey-background);
    width: calc(100% / 2 - 450px);
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
}

.extended-bio {
    display: none;
    position: fixed;
    background: rgba(0, 0, 0, 0.6);
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overscroll-behavior: contain;
    z-index: 10;
    color: var(--main-text-color);
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.extended-bio .img-block {
    display: none;
}

.extended-bio .extended-bio:before {
    content: "";
    display: inline-block;
    height: 100%;
    vertical-align: middle;
}

.extended-bio .extended-bio-container {
    display: flex;
    margin: auto;
    background: var(--white-background);
    width: 66%;
	max-width: 1200px;
    padding: 2.5rem;
    opacity: 0;
    transition: opacity 0.7s ease-in-out;
}

.extended-bio .extended-bio-right {
    flex: 1;
    padding: 0 2rem;
}

.extended-bio .extended-bio-name {
    font-size: 3rem;
}

.extended-bio .extended-bio-description {
    font-size: 1.5rem;
    color: var(--accent-color);
}

.extended-bio .extended-bio-details {
    font-size: 1rem;
    margin-top: 1.5rem;
}


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

	#quote {
		padding: 10rem;
	}

	#top-quote {
		left: 4rem;
		top: 3rem;
	}

	#bottom-quote {
		right: 4rem;
		bottom: 3rem;
	}

}


/* Laptop */
@media screen and (max-width: 1400px) {

    :root {
        --extra-large-font-size: 66px;
    }

	#top-content .left-content {
        width: 44%;
	}

    html[lang='es'] #top-content #who-are-we .left-content {
        font-size: 55px;
    }

	#top-content .right-content {
		width: 56%;
		font-size: var(--normal-font-size);
	}

}

/* Tablet */
@media only screen and (max-width: 1200px) {

    :root {
        --extra-large-font-size: 40px;
    }

    html[lang='es'] #top-content #who-are-we .left-content {
        font-size: 40px;
    }

    #top-content {
        padding: 0 20px 75px;
    }

    #top-content #who-are-we, #top-content #vision, #top-content #history {
        flex-direction: column;
    }

    #top-content #who-are-we {
        margin: 50px 0 25px;
    }

    #top-content #vision, #top-content #history {
        margin: 25px 0;
    }

    #top-content #who-are-we .left-content,
    #top-content #vision .left-content,
    #top-content #history .left-content {
        width: 100%;
        display: flex;
        justify-content: left;
        margin-bottom: 25px;
    }

    #top-content #who-are-we .left-content {
        font-size: var(--extra-large-font-size);
    }

    #top-content #vision .left-content,
    #top-content #history .left-content {
        font-size: var(--large-font-size);
    }

    #top-content #who-are-we .left-content #who-are-we-line-2 {
        margin-left: 1rem;
    }

    #top-content #who-are-we .right-content,
    #top-content #vision .right-content,
    #top-content #history .right-content {
        width: 100%;
        font-size: var(--normal-font-size);
    }

    #top-content .side-decoration {
        display: none;
    }

	#quote {
		padding: 6rem;
		font-size: var(--normal-font-size);
	}

	#top-quote {
		left: 0;
		top: 0;
	}

	#bottom-quote {
		right: 0;
		bottom: 0;
	}

    section#our-team-photos {
        #our-team-photos-grey {
            width: calc(100% / 2 - 37vw);
        }
    }

    section#our-team-photos div#our-team-photos-container #our-team-photos-members {
        width: 66%;
    }

    section#our-team-photos div#our-team-photos-container #our-team-photos-members .team-member {
        left: -10vw;
    }

    section#board-photos {
        margin-bottom: 100px;
    }

    .extended-bio .extended-bio-left img {
        width: 125px;
    }

    .extended-bio .extended-bio-right .extended-bio-name {
        font-size: 1.5rem;
    }

    .extended-bio .extended-bio-right .extended-bio-description {
        font-size: 1rem;
    }

    .extended-bio .extended-bio-right .extended-bio-details {
        font-size: 0.9rem;
    }
}



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

    .extended-bio .extended-bio-container {
        flex-direction: column;
        width: 80%;
        height: 80vh;
        overflow: auto;
        position: relative;
    }

    .extended-bio .extended-bio-container .extended-bio-left {
        text-align: center;
    }

    .extended-bio .extended-bio-container .extended-bio-left .img-block {
        display: block;
        width: 100%;
        position: absolute;
        top: 0;
        left: 0;
        height: 100px;
        background-color: #dedede;
    }

    .extended-bio .extended-bio-container .extended-bio-left img {
        position: relative;
    }

    .extended-bio .extended-bio-container .extended-bio-right {
        padding: 0;
    }

    .extended-bio .extended-bio-container .extended-bio-right .extended-bio-name, .extended-bio .extended-bio-container .extended-bio-right .extended-bio-description {
        text-align: center;
    }

}


/* Mobile */
@media only screen and (max-width: 600px) {

    #top-content #who-are-we .right-content,
    #top-content #vision .right-content,
    #top-content #history .right-content {
        font-size: var(--small-font-size);
    }

    #top-content #who-are-we .left-content #who-are-we-line-2 {
        margin-left: 0.6rem;
    }

	#quote {
		padding: 4rem;
		font-size: var(--small-font-size);
	}

	#top-quote {
		width: 50px;
		height: 50px;
		left: 0.5rem;
		top: 0.5rem;
		background-size: 100%;
		background-repeat: no-repeat;
	}

	#bottom-quote {
		width: 50px;
		height: 50px;
		right: 0.5rem;
		bottom: 0.5rem;
		background-size: 100%;
		background-repeat: no-repeat;
	}

    section#our-team {
        flex-direction: column;
        padding: 5vw 5vw 5rem 5vw;
    }

    section#our-team-photos #our-team-photos-grey {
        display: none;
    }

    section#our-team #our-team-container {
        flex-direction: column;
    }

    section#our-team #our-team-container #our-team-title {
        width: 100%;
        justify-content: flex-start;
        padding: 2rem 0;
    }

    section#our-team-photos div#our-team-photos-container #our-team-photos-title .decoration {
        left: 0;
        width: 20px;
        height: 120px;
        top: 0;
    }

    section#our-team #our-team-container #our-team-details {
        width: 100%;
    }

    section#our-team-photos {
        position: relative;
        padding-top: 5rem;
        height: auto;
        margin: 0 0 100px;
    }

    section#our-team-photos div#our-team-photos-container #our-team-photos-title {
        width: 100%;
        position: absolute;
        top: 0;
        padding-top: var(--large-font-size);
        text-align: center;
        font-weight: bold;
    }

    section#our-team-photos div#our-team-photos-container #our-team-photos-title div {
        display: inline;
    }

    section#our-team-photos div#our-team-photos-container #our-team-photos-grey {
        display: none;
    }

    section#our-team-photos div#our-team-photos-container #our-team-photos-members {
        width: 100%;
    }

    section#our-team-photos div#our-team-photos-container #our-team-photos-members .team-member {
        flex-direction: column;
        left: 0;
    }

    section#our-team-photos div#our-team-photos-container #our-team-photos-members .team-member .team-member-photo {
        text-align: center;
    }

    section#our-team-photos div#our-team-photos-container #our-team-photos-members .team-member .team-member-photo img {
        width: 40vw;
        height: 40vw;
    }

    section#our-team-photos div#our-team-photos-container #our-team-photos-members .team-member .team-member-details {
        padding: 2rem 0 0 0;
        text-align: center;
    }

    section#our-team-photos div#our-team-photos-container #our-team-photos-members .team-member .team-member-details .team-member-name {
        font-size: 1.3rem;
    }

    section#our-team-photos div#our-team-photos-container #our-team-photos-members .team-member .team-member-details .team-member-description {
        font-size: 1.1rem;
    }


    section#board-photos {
        height: auto;
    }

    section#board-photos #our-board-photos-container {
        position: relative;
        padding-top: 5rem;
    }

    section#board-photos #our-board-photos-container #board-photos-title .decoration {
        right: 0;
        width: 20px;
        height: 120px;
        top: -10px;
    }

    section#board-photos #our-board-photos-container #board-photos-grey {
        display: none;
    }

    section#board-photos #our-board-photos-container #board-photos-title {
        width: 100%;
        position: absolute;
        top: 0;
        padding-top: 1rem;
        text-align: center;
        font-size: var(--large-font-size);
        font-weight: bold;
    }

    section#board-photos #our-board-photos-container #board-photos-title div {
        display: inline;
    }

    section#board-photos #our-board-photos-container #board-photos-members {
        width: 100%;
    }

    section#board-photos #our-board-photos-container #board-photos-members .board-member {
        flex-direction: column;
        left: 0;
        position: relative;
        padding: 0 0 10rem 0;
    }

    section#board-photos #our-board-photos-container #board-photos-members .board-member .board-member-photo {
        text-align: center;
    }

    section#board-photos #our-board-photos-container #board-photos-members .board-member .board-member-photo img {
        width: 40vw;
        height: 40vw;
    }

    section#board-photos #our-board-photos-container #board-photos-members .board-member .board-member-details {
        padding: 0;
        position: absolute;
        top: 48vw;
        width: 100vw;
    }

    section#board-photos #our-board-photos-container #board-photos-members .board-member .board-member-details .board-member-name {
        font-size: 1.3rem;
        text-align: center;
    }

    section#board-photos #our-board-photos-container #board-photos-members .board-member .board-member-details .board-member-description {
        font-size: 1.1rem;
        text-align: center;
    }
}

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

    :root {
        --extra-large-font-size: 32px;
        --large-font-size: 24px;
        --medium-font-size: 20px;
        --normal-font-size: 18px;
    }

    html[lang='es'] #top-content #who-are-we .left-content {
        font-size: 32px;
    }

}

