
html, body {
    margin: 0;
    padding: 0;
    border: 0;
    box-sizing: border-box;
    min-height: 100vh;
    max-width: 100vw;
    overflow-x: hidden;
}

body {
    background-color: #fdfff3;
    font-family: 'Space Grotesk', sans-serif;
    font-family: 'Spectral', serif;
    transition: background 1s ease;
}

*, *:before, *:after {
    box-sizing: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

nav, footer {
    display: flex;
    justify-content: space-around;
}

nav {
    position: fixed;
    top: 2%;
    width: 100%;
    align-items: flex-start;
}

footer {
    margin-top: 10%;
    margin-bottom: 2%;
    align-items: flex-end;
}

.nav-footer-grids {
    grid-template-columns: 1fr 1fr 1fr 1fr;
    align-items: center;
    margin-top: 1%;
}

ul, li {
    list-style-type: none;
}

a {
    text-decoration: none;
    cursor: pointer;
}

/* Type */

h1, h2, h3, h4, li, p, a, span {
    color: #4F4D44;
    transition: 0.3s;
}

h1, h2, h3, h4, p, .overlay a, span, a {
    font-family: 'Spectral', serif;
    font-weight: 200;
}

h4, li, text#nav-projects {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
}

h1 {
    font-size: 4em;
    letter-spacing: -5px;
}

h2 {
    font-size: 2em;
    letter-spacing: -2.1px;
    line-height: 35px;
}

h3 {
    font-size: 1.25em;
    letter-spacing: -0.5px;
    line-height: 25px;
}

h4 {
    text-transform: uppercase;
    font-size: 0.7em;
    line-height: 1.5625em;
}

p {
    font-size: 0.85em;
}

.overlay-content a {
    font-size: 2.5em;
    letter-spacing: -2px;
}

text#nav-projects {
    font-size: 1.4em;
}

@media screen and (min-width: 1000px) {
    h1 {
        font-size: 7.75em
      }
    h2 {
        font-size: 3.125em;
        letter-spacing: -3px;
        line-height: 55px;
      }

    h3 {
        font-size: 1.5em;
        letter-spacing: -1px;
        line-height: 35px;
    }

    h4 {
        font-size: 1em;
    }
    p {
        font-size: 1em;
    }
    .overlay-content a {
        font-size: 4.5em;
        letter-spacing: -4px;
    }
}

/* Alignment */

article {
    margin: 8% 0 10% 0;
}

.light-text {
    color:#FEFFFC;
}

h1.light-text {
    margin-bottom: 0;
}

h2.light-text {
    margin-top: 0;
}

#home header h2, #home header p {
    display: flex;
    justify-content: center;
    text-align: center;
}

header em {
    margin-left: 0.75%;
}

em {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 400;
    font-style: normal;
}

header h1 {
    margin-top: 10%;
    margin-bottom: 2%;
}

header img {
    display: block;
    margin: auto;
    width: auto;
}

#fiona-photo {
    margin-top: 9%;
    max-height: 800px;
}

hr {
    margin: 10% 2% 0 2%;
}

.section-divider {
    display: flex;
    flex-direction: row;
}

.section-divider-text {
    margin-left: 5%;
    width: 22.67%;
}

footer ul {
    padding: 0;
    margin: 0;
}

footer h3 {
    font-size: .95em;
    margin: 0;
    text-transform: uppercase;
}

footer p {
    font-size: 0.75em;
}

footer.nav-footer-grids {
    align-items: flex-end;
}

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

    footer h3 {
        font-size: .75em;
    }
  }


/* Grid */

.one-project, .two-project, .one-project-photo {
    display: grid;
    grid-gap: 3%;
    margin: 3% 3% 5% 3%;
}

.project-header-grid {
    display: grid;
}

.one-project {
    grid-template-rows: auto auto;
    grid-template-columns: 1fr 1.5fr;
}

.one-project > div.project-right > img, .two-project > div.project-left > img,  .two-project > div.project-right > img {
    width: 100%;
    object-fit: cover;
}

#home .one-project > div.project-right > img, #home .two-project > div.project-left > img, #home .two-project > div.project-right > img{
    filter: grayscale(1);
    opacity: 80%;
}

#home .one-project > div.project-right > img:hover, #home .two-project > div.project-left > img:hover, #home .two-project > div.project-right > img:hover{
    filter: none;
    transition: 0.1s ease-in;
}

.one-project-photo, .prev-project {
    grid-template-rows: auto;
    grid-template-columns: 1fr;
    align-content: center;
}

.one-project-photo {
    justify-items: center;
}

.two-project  {
    grid-template-rows: auto auto;
    grid-template-columns: 1fr 1fr;
}

.project-header-grid {
    grid-template-columns: 0.8fr;
    margin-left: 20%;
}

.project-header-description em {
    text-transform: uppercase;
    font-size: 0.7em;
    font-weight: 500;
}

@media screen and (max-width: 568px) {
    .one-project, .two-project { 
        grid-template-columns: 1fr; 
    }

    .one-project > .project-right {
        order:-9999;
    }

    .one-project > .text-container {
        order:9999;
    }
}

@media screen and (max-width: 436px) {
    .one-project, .two-project {
        margin: 3%;
    }
    .project-right {
        margin-bottom: 10%;
    }
}

.project-photo {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.project-photo img {
    object-fit: cover;
    flex-shrink: 2;
    min-width: 100%;
    min-width: 100%;
}

.project-header-types {
    display: flex;
    align-items: flex-start;
    margin-top: 5%;
    grid-gap: 5%;
}

.project-header-types div {
    margin-right: 10%;
}

#project article > header {
    margin-top: 0;
}

@media screen and (max-width: 1200px) {
    #fiona-photo {
        margin-top: 25%;
    }
    .project-header-grid {
        width: 100vw;
        margin-left: auto;
        padding: 5%;
        margin-top: 20%;
        grid-template-columns: 1fr;
    }
    .project-header-description svg {
        width: 6%;
    }
  }

/* Project Styles */

.text-container, .project-header-text-container {
    display: flex;
    flex-direction: column;
    -ms-flex-preferred-size: 0;
    flex-basis: 0;
    -webkit-box-flex: 1;
    -ms-flex-positive: 1;
    flex-grow: 1;
    -ms-flex-negative: 1;
    flex-shrink: 1;
    margin: 5%;
}

.project-header-text-container {
    width: 75%;
    justify-content: space-evenly;
    margin: auto;
    margin-top: 4%;
}

.project-header-types h4, .project-header-types p,  .prev-next-project h4, .prev-next-project p, .nav-footer-grids h4, .nav-footer-grids p {
    margin-top: 0;
    margin-bottom: 0;
}

.prev-next-project div:last-child {
    text-align: right;
}

.project-header-description h2 {
    margin-top: 3%;
}

.project-header-description h3 {
    margin-top: 5%;
}
 .project-header-grid img {
     margin-top: 20%;
     margin-left: 40%;
     width: 40%;
 }

.two-project > .project-right > .text-container, .two-project > .project-left > .text-container {
    margin: 0 5% 0 5%;
}

.project-name h2 {
    margin-bottom: 0;
}

.project-type{
    display: flex;
    flex-direction: row;
    margin-top: auto;
    align-items: center;
  }

.project-type > .arrow-button{
    margin-left: auto;
}

/* Arrow */

.arrow-button {
    display: flex;
    border-radius: 20px;
    transition: all .3s ease;
    font-weight: bold;
    cursor: pointer;
    align-items: center;
    font-size: 14px;
}

.arrow-button > .arrow {
    width: 15px;
    height: 15px;
    border-right: 1px solid #4F4D44;
    border-bottom: 1px solid #4F4D44;
    position: relative;
    transform: rotate(-45deg);
    transition: all .3s ease;
}

.arrow-button > .arrow::before {
    display: block;
    background-color: currentColor;
    width: 50px;
    transform-origin: bottom right;
    height: 1px;
    position: absolute;
    opacity: 0;
    bottom: calc(-2px / 2);
    transform: rotate(45deg);
    transition: all .3s ease;
    content: "";
    right: 0;
}

.arrow-button:hover > .arrow {
    transform: rotate(-45deg) translate(4px, 4px);
    border-color: #4F4D44;
}

.arrow-button:hover > .arrow::before {
    opacity: 1;
    width: 25px;
}

.arrow-button:hover {
    color: #4F4D44;
}
  
  @media screen and (max-width: 568px) {
    #home .arrow-button .arrow{
    display: none;
    }
  }
  
  @media screen and (max-width: 1000px) {
    #home .arrow-button .arrow{
        display: none;
        }
  }


.prev-next-project {
    display: flex;
    flex-direction: row;
    margin: 0 10% 0 10%;
    justify-content: space-between;
    align-items: flex-start;
}

    @media screen and (min-width: 2000px) {
        .prev-next-project {
            margin: 0 20% 0 20%;
        }
    }


  @media screen and (max-width: 568px) {
    .display-none {
        display:none;
    }

    footer {
        flex-direction: row;
    }

    footer.nav-footer-grids {
        justify-content: space-around;
        align-items: flex-start;
        margin-top: 5%;
    }

    footer.nav-footer-grids div:first-child {
        margin-left: 10%;
    }

    .one-project {
        margin-top: 20%;
    }

    .one-project > .text-container {
        margin-top: 0;
    }

}

/* Nav Styles */

svg#nav-projects-ellipse {
    cursor: pointer;
}

#nav-projects-ellipse ellipse {
    stroke-width: 1px;
    stroke-dasharray: 280;
    stroke-dashoffset: 0;
}

#nav-projects-ellipse:hover ellipse {
    animation: animate-ellipse 1.3s linear forwards;
}

@keyframes animate-ellipse {
    0% {
        stroke-dashoffset: 280;
    }
    40% {
        stroke-dashoffset: 0;
    }
}


/* Open Nav */

.overlay {
    height: 100%;
    width: 100%;
    display: none;
    position: fixed;
    z-index: 1;
    top: 0;
    left: 0;
    background-color: #F2F6DA;
  }
  
  .overlay-content {
    position: relative;
    top: 8%;
    width: 100%;
    margin-left: 10%;
  }
  
  .overlay a {
    padding: 8px;
    text-decoration: none;
    display: block;
    transition: 0.3s;
    fill: #4F4D44;
  }

  .overlay-content a > svg  {
    width: 3%;
    height: 3%;
  }

  .overlay-content a:hover, .overlay-content a:focus {
    color: #5f5d1c;
    fill: #5f5d1c;
 }

 .overlay-content a:hover:first-child, .overlay-content a:focus:first-child, .overlay-content a:hover:nth-child(5), .overlay-content a:focus:nth-child(5) {
    fill: #FF702E;
 }

 .overlay-content a:hover:last-child, .overlay-content a:focus:last-child, .overlay-content a:hover:nth-child(2), .overlay-content a:focus:nth-child(2) {
    fill: #8093DC;
 }

 .overlay-content a:hover:nth-child(3), .overlay-content a:focus:nth-child(3) {
    fill: #F3E500;
 }

 .overlay-content a:hover:nth-child(4), .overlay-content a:focus:nth-child(4) {
    fill: #8A7A28;
 }


 .overlay-content a:hover:after {
     width: 100%;
 }
  
  .overlay .closebtn {
    position: absolute;
    top: 20px;
    right: 45px;
    font-size: 60px;
  }
  
  @media screen and (max-height: 450px) {
  
    .overlay a {font-size: 20px}
    .overlay .closebtn {
    font-size: 40px;
    top: 15px;
    right: 35px;
    }
  }

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

    .overlay-content a > svg  {
        width: 5%;
        height: 5%;
      }
    
    .overlay-content a {
        color: #5f5d1c;
     }

    .overlay-content a:first-child, .overlay-content a:nth-child(5) {
        fill: #FF702E;
     }
    
     .overlay-content a:last-child, .overlay-content a:nth-child(2) {
        fill: #8093DC;
     }
    
     .overlay-content a:nth-child(3) {
        fill: #F3E500;
     }
    
     .overlay-content a:nth-child(4) {
        fill: #8A7A28;
     }
  }

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

    ::-webkit-scrollbar {
        width: 1px;
      }

    .project-header-text-container {
        width: 90%;
    }

    .project-header-grid img {
        margin-left: 5%;
        width: 50%;
        height: 100%;
    }

    h3 {
        font-size: 0.9em;
        line-height: 20px;
    }

    .overlay-content a {
        font-size: 1.75em;
        letter-spacing: -2px;
    }

    svg#nav-projects-ellipse {
        width: 90px;
        height: 50px;
    }

  }

  /* Cursor */

  div.cursors div {
      position: absolute;
      top: 300px;
      left: 300px;
      width: 32px;
      height: 32px;
      background-color: #5f5d1c;
      border-radius: 50%;
      z-index: 10000;
      pointer-events: none;
      transform: translate(-50%, -50%)
  }

  div.cursors div span {
      position: absolute;
      top: 0;
      left: 40px;
      width: 300px;

      font-size: 1.25em;
      color: #5f5d1c;
      line-height: 32px;

      opacity: 0;
      transition: opacity 0.5s;
  }

  div.cursors div span.visible {
      opacity: 1;
  }

  @media only screen and (max-width: 1380px) {
    body div.cursors div {
        display: none;
    }
}

/* Hover Links */

.hover-underline-animation {
    display: inline;
    position: relative;
    color: #4F4D44;
  }
  
  .hover-underline-animation:after {
    content: "";
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: #FF702E;
    transform-origin: bottom right;
    transition: transform 0.25s ease-out;
  }
  
  .hover-underline-animation:hover:after {
    transform: scaleX(1);
    transform-origin: bottom left;
  }

/* Scroll Up */

  @media screen and (max-width: 768px) {
    [data-aos] {
      pointer-events: auto !important;
    }
  
    html:not(.no-js) [data-aos^=fade][data-aos^=fade] {
      opacity: 1 !important;
    }
  
    html:not(.no-js) [data-aos=fade-up] {
      transform: none !important;
    }
  }

/* Scroller */

/* width */
::-webkit-scrollbar {
    width: 5px;
  }
  
  /* Track */
  ::-webkit-scrollbar-track {
    background: #F2F6DA; 
  }
   
  /* Handle */
  ::-webkit-scrollbar-thumb {
    background: #FF702E; 
  }
  
  /* Handle on hover */
  ::-webkit-scrollbar-thumb:hover {
    background: #8A7A28; 
  }