

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    height: vh;
    width: vw;
}

nav {
    display: flex;
    font-size: 1.2em;
    justify-content: space-between;
    align-items: center;
    padding: 1em 2em;
    position: fixed;
    width: 100%;
    margin: 1em 0em 3em 0em;
}

nav div {
    display: flex;
    gap: 30px;
}

nav span a:link {
    text-decoration: none;
    color: black;
    font-weight: 400;
    margin-right: 1em;
    transition: all 0.3s ease;
}

nav a:link {
    text-decoration: none;
    color: rgb(0, 0, 0);
    transition: all 0.3s ease;
}

nav a:visited {
    color: rgb(189, 189, 189);
}

nav a.active:visited {
    color: black;
}

nav a:hover {
    color: black;
    transform: scale(105%);
}

nav a:active {
    color: black;
}



h3          {
    font-weight: 500;
    font-size: 1.2em;
    /* text-decoration: underline .5px; */
    /* text-underline-offset: 5px; */
    color: #888;
    }



.about-text {
    display: block;
    font-size: 1.5em;
    line-height: 1.2em;
    padding: 8em 4em 2em 1.5em;
    text-align: justify hyphenate;
}

.about-text-bio {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2em;
    padding: 2em 2.5em 2em 2.8em;
    font-size: 0.9em;
    line-height: 1.4;
    color:rgb(189, 189, 189);
    white-space: pre-line;
}

.contact {
    display: block;
    font-size: 1.25em;
    line-height: 1.2em;
    padding: 1em 2.5em 2em 2em;
    text-align: justify hyphenate;
}

*{
margin:0;
padding:0;
box-sizing:border-box;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    width: 100%;
    background: white;
    font-family: Arial, Helvetica, sans-serif;
    overflow-x: hidden;
}


.carousel{
height:100vh;
width:100vw;
display:grid;
grid-template-columns:15vw 70vw 15vw;
align-items:center;
}


button{
background:none;
border:none;
cursor:pointer;
display:flex;
justify-content:center;
align-items:center;
}


button svg{
width:32px;
height:32px;
fill:none;
stroke:#888;
stroke-width:1;
stroke-linecap:round;
stroke-linejoin:round;
transition:.3s;
}


button:hover svg{
stroke:#000;
}


.previous:hover svg{
transform:translateX(-4px);
}


.next:hover svg{
transform:translateX(4px);
}


.images{
height:100%;
width:100%;
display:flex;
justify-content:center;
align-items:center;
}

.images{
height:100%;
width:100%;
display:flex;
justify-content:center;
align-items:center;
}

.slide{
display:none;
flex-direction:column;
justify-content:center;
align-items:center;
max-width:90%;
max-height:82vh;
}

.slide.active{
display:flex;
}

.slide img{
max-width:100%;
max-height:82vh;
object-fit:contain;
}

.caption{
margin-top:1em;
font-size:0.85em;
line-height:1.3;
color:black;
text-align:left;
width:100%;
}

.videos .slide{
    display:none;
    justify-content:center;
    align-items:center;
    flex-direction:column;
    width:100%;
    height:100%;
}

.videos .slide.active{
    display:flex;
}

.videos video{
    max-width:90%;
    max-height:82vh;
    width:auto;
    height:auto;
    object-fit:contain;
}



/* Large screens */

@media(min-width:1600px){

.carousel{
grid-template-columns:12vw 76vw 12vw;
}

.slide img{
max-height:86vh;
}

button svg{
width:38px;
height:38px;
}

}


/* Tablets */

@media(max-width:900px){

    .nav {
        padding: 2em 
    }   

.carousel{
grid-template-columns:10vw 80vw 10vw;
}

.slide img{
max-height:70vh;
}

button svg{
width:26px;
height:26px;
}

}


/* Phones */

@media(max-width:500px){

.carousel{
grid-template-columns:12vw 76vw 12vw;
}

.project-carousel .slide img {
    max-height:42vh;
}

button svg{
width:22px;
height:22px;
}

}
/* Responsive */

@media(max-width:900px){

.project-page{
grid-template-columns:220px 1fr;
}


.project-info{
padding:25px;
}

}


@media(max-width:600px){

.project-page{
display:block;
height:auto;
}


.project-info{
padding:20px;
}


.project-carousel{
height:75vh;
grid-template-columns:12vw 76vw 12vw;
}

}

/* PROJECTS */

body{
height:100vh;
font-family:Arial, Helvetica, sans-serif;
}


.project{
height:100vh;
width:100vw;
display:grid;
grid-template-columns:40vw 75vw;
}

/* NAV */

.books{
display:flex;
gap:20px;
font-size: 16px;
font-weight: medium;
padding: 4em 1em 4em 0em
}


.books a:link{
text-decoration: none;
color: black;
transition: all 0.3s ease;
}

.books a:visited{
color: rgb(189, 189, 189);
}

.books a.active:visited{
color: black;
}

.books a:hover{
color: black;
transform: scale(105%);
}

.books a:active{
color: black;
}


/* LEFT COLUMN */

.info{
padding:40px;
font-size:14px;
line-height:1.5;
}


.info h1{

font-size:16px;
font-weight:normal;
margin-bottom:20px;

}

/* PROJECTS */


.project-page {
 width: 100vw;
 height: 100vh;
display: grid;
grid-template-columns: minmax(350px, 33%) 1fr;
}


/* Left information column */

.project-info {
    padding: 8em 2em 4em 3em;
    font-size: 14px;
    line-height: 1.5;
    width: 100%;
}


.project-info h1{ 
font-size:16px;
font-weight:normal;
margin-bottom:20px;
padding: 8em 0em;
}

/* Right carousel area */

.project-carousel{
    height:100vh;
    display:grid;
    grid-template-columns:12vw 1fr 8vw;
    align-items:center;
}


.project-carousel .images{
    height:100%;
    width:100%;
    display:flex;
    justify-content:center;
    align-items:center;
}


.project-carousel .slide{
    display:none;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    width:100%;
    height:100%;
}


.project-carousel .slide.active{
    display:flex;
}


.project-carousel .slide img{
    max-width:90%;
    max-height:82vh;
    width:auto;
    height:auto;
    object-fit:contain;
}


.project-carousel .caption{
    margin-top:1em;
    font-size:0.85em;
    line-height:1.3;
    color:rgb(189,189,189);
}

@media (max-width: 850px) {

    .project-page {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-areas:
            "books"
            "carousel"
            "content";
        height: auto;
    }

    .project-info {
        display: contents;
    }

    .books {
        grid-area: books;
        padding: 7em 2em 1em;
    }

    .project-carousel {
        grid-area: carousel;
        height: 50vh;
        grid-template-columns: 10vw 80vw 10vw;
        margin: 0 0 1.5em;
    }

    .project-content {
        grid-area: content;
        padding: 0 2em 2em;
    }

    body {
        overflow-y: auto;
    }

}

@media (max-width: 1000px) {
    .about-text-bio {
        grid-template-columns: repeat(2, 1fr);
        gap: 2em;
    }
}


/* Phones */

@media (max-width: 600px) {
    .about-text-bio {
        grid-template-columns: 1fr;
        padding: 2.5em;
        gap: 1.5em;
    }
}

.photo-grid {
    display:grid;
    grid-template-columns:repeat(4, 1fr);
    gap:3em 1.5em;
    padding:10em 6em 4em;
}


.photo-grid figure {
    margin:0;
}


.photo-grid img {
    width:100%;
    height:auto;
    display:block;
    object-fit:contain;
}


.photo-grid figcaption {
   font-size:0.85em;
    line-height:1.3;
    margin-top:0.75em;
    color:rgb(189,189,189);
}



/* TABLETS */

@media(max-width:1000px){

    .photo-grid {
        grid-template-columns:repeat(2, 1fr);
        gap:2.5em 1.5em;
    }

}



/* PHONES */

@media(max-width:600px){

    .photo-grid {
        grid-template-columns:1fr;
        padding:7em 4em 3em;
        gap:2em;
    }


    .photo-grid figcaption {
        font-size:0.9em;
    }

}