body {
    position: relative;
    min-height: 100vh;
    grid-template-rows: auto 1fr auto;
    display: grid;
    background-color: #E7E7E7;
}

::-moz-selection {
    background: #EAFF00;
  }
  
  ::selection {
    background: #EAFF00;
  }

/* ---------------------------------- HEADER ---------------------------------- */
nav {
    position: absolute;
    padding: 10px 50px 10px 50px;
    background-color: #EAFF00;
    z-index: 3;
    top: 0;
    left: 0;
    right: 0;
}

nav a:hover {
    opacity: .5;
    transition-duration: .3s;
}

.nav-name-link {
    text-align: left;
}

.nav-name-link br {
    display: none;
}

ul {
    display: inline-flex;
}

ul li:nth-child(-n + 2) {
    margin-right: 50px;
}

.bar {
    display: block;
    height: .1em;
    width: 38px;
    background-color: #000000;
    margin: 9px auto;
}
    
    
nav .nav-content {
    display: grid;
    justify-content: space-between;
    place-items: center;
    grid-auto-flow: column;
}

nav .nav-content .menu {
    display: none;
}

nav .nav-content .menu:hover {
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
}

nav .dropdown {
    text-align: right;
}

@media (max-width: 992px) { 
    nav {
        padding: 10px 16px 10px 16px;
    }

    ul {
        display: block;
    }

    ul li:nth-child(-n + 2) {
        margin-right: 0;
    }

    .dropdown ul li {
        font-size: 2rem;
        font-weight: 400;
        padding-bottom: .6em;
    }
    
    .dropdown ul li:first-child {
        padding-top: .8em;
    }
    .showreel-link {
        display: none;
    }

    .site-title {
        padding: 0;
    }

    nav .nav-content .menu {
        display: initial;
    }

    nav .nav-content .links {
        display: none;
    }
}

@media (max-width: 576px) { 
    .nav-name-link br {
        display: block;
    }
}


/* ---------------------------------- SPLASH SECTION ---------------------------------- */
.splash-section {
    position: absolute;
    width: 100%;
    height: 100vh;
    z-index: -1;
    display: flex;
}

.splash-grid {
    margin-bottom: 30vh;
    width: 100%;
    display: grid;
    grid-row: 50px 1fr 50px;
    grid-template-columns: 50px 1fr 50px;
    grid-template-rows: 1fr auto;
}

.video-wrapper {
    height: 100%;
    width: 100%;
    background: url(../img/index-image.jpg) no-repeat center center;
    background-size: cover;
    grid-column: 1 /span 3;
    grid-row: 1 /span 2;
}

.video-wrapper video {
    height: 100%;
    width: 100%;
    object-fit: cover;
    right: 0;
    bottom: 0;
    background-size: cover;
    overflow: hidden;
}

.title-project-section {
    grid-column: 2;
    grid-row: 2;
    margin-bottom: 22px;
    z-index: 1;
    color: #FFF;
}

@media (max-width: 992px) { 
    .splash-grid {
        grid-template-columns: 20px 1fr 20px;
        margin-bottom: 20vh;
    }
}

/* ---------------------------------- HORIZONTAL SLIDE ---------------------------------- */
.main-projects-section {
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.slide-project-section {
  height: fit-content;
  padding-top: 70vh;
  position: relative;
  align-self: normal;
}

.slide-project-grid {
    display: grid;
    grid-template-columns: auto auto;
}

.slide-project-grid:hover {
    cursor: zoom-in;
}

.slide-project-grid:hover .slide-image-item {
    transition-duration: .3s;
}

.slide-project-grid:hover .slide-info-title {
   color: #0055FF;
   transition-duration: .3s;
}

.slide-project-section-image {
    height: 30vh;
    width: auto;
    grid-column: 1;
}

.slide-project-section-image img {
    height: 30vh;
    min-height: 15em;
    display: block;
}

.slide-project-section-infos {
    grid-column: 3;
    min-width: 35em;
    min-height: 15em;
    position: relative;
    padding: 25px 0 25px 35px;
    margin-right: 35px;
    background-color: #FFFFFF;
}

.slide-info-year {
    margin-bottom: 15px;
    display: inline-block;
    width: 50%;
}

.slide-info-arrow {
    position: absolute;
    width: 15px;
    right: 0;
    padding-right: 35px;
}

.slide-info-title {
    margin-bottom: 10px;
    margin-right: 80px;
}

.slide-info-txt {
    margin-right: 80px;
}

@media (max-width: 992px) {
    .main-projects-section {
        display: inline-block;
    }
    
    .slide-project-section {
        padding-bottom: 50px;
        padding-top: 0;
    }

    .slide-project-section:first-child {
        margin-top: 80vh;
        padding-top: 0;
    }

    .slide-project-grid {
        grid-template-columns: auto;
        grid-template-rows: auto auto;
    }

    .slide-project-section-image {
        height: auto;
        width: 100%;
        grid-row: 1;
    }

    .slide-project-section-image img {
        width: 100%;
        height: auto;
        min-height: auto;
    }

    .slide-project-section-infos {
        grid-column: 1;
        grid-row: 2;
        min-width: 0;
        min-height: auto;
        position: relative;
        padding: 16px 16px 25px 16px;
        margin-right: 0;
        border-bottom: 0.5px black solid;
    }

      .slide-project-section-infos img {
        padding-right: 16px;
    }
}

/* ---------------------------------- PROJECT + ABOUT PAGE ---------------------------------- */
.col-section-project {
    display: grid;
    grid-template-columns: 50px 1fr 50px 1fr 50px;
    grid-template-rows: 5em auto 50px auto 50px auto;
    height: min-content;
}

.col-section-about {
    display: grid;
    grid-template-columns: 50px 1fr 50px 1fr 50px;
    grid-template-rows: 5em 1fr;
    height: min-content;
}

/* VISUAL CONTAINER */
.visual-container {
    grid-column: 2;
    grid-row: 2;
    width: 100%;
    background-color: #FFFFFF;
}

.visual-container img {
    width: 100%;
    display: block;
    background-color: #FFFFFF;
}

/* TITLE CONTAINER */
.project-title-container, .about-info-container  {
    grid-column: 4;
    grid-row: 2;
    align-self: flex-end;
}

.project-info-title {
    grid-column: 4;
    position: absolute;
    bottom: 0;
    height: min-content;
    align-self: end;
}

.project-title {
    margin-bottom: 5px;
}

.about-title {
    margin-bottom: 15px;
}

.project-year {
    padding-bottom: 13px;
}

.project-domain {
    max-width: 20em;
    font-weight: 400;
}

/* INFO CONTAINER */
.project-info-container {
    grid-column: 2;
    grid-row: 4;
    justify-items: stretch;
    display: grid;
}

button {
    display: block;
    all: unset;
    cursor: pointer;
    display: block;
}

.project-info-container h5 {
    border-top: 0.5px solid #000;
    padding: 10px 0 10px 0;
}

.panel {
    padding-bottom: 20px;
}

span {
    border-top: 0.5px solid #000;
}

/* BEHIND CONTAINER */
.project-behind-container {
    grid-column: 2 /span 3;
    grid-row: 6;
    justify-items: stretch;
    display: grid;
}

.title-gallery {
    padding-bottom: 22px;
}

.gallery img {
    height: 18em;
    margin: 0 1em 1em 0;
    background-color: #FFFFFF;
}

@media (max-width: 992px) { 
    .col-section-project {
        grid-template-columns: 16px 1fr 16px;
        grid-template-rows: 5em auto auto 50px auto 50px auto;
    }
    
    .col-section-about {
        grid-template-columns: 16px 1fr 16px;
        grid-template-rows: 5em auto auto;
    }

    .project-title-container, .about-info-container  {
        grid-column: 2;
        grid-row: 2;
        align-self: normal;
        margin-bottom: 20px;
        margin-top: 30px;
    }

    .visual-container {
        grid-column: 2;
        grid-row: 3;
        width: 100%;
        background-color: #FFFFFF;
    }

    .project-info-container {
        grid-row: 5;
    }

    .project-behind-container {
        grid-column: 2;
        grid-row: 7;
    }

    .gallery img {
        height: auto;
        width: 100%;
    }
}

/* ---------------------------------- GRID PHOTOGRAPHIE ---------------------------------- */

.wf-container {
    grid-column: 2 /span 3;
    grid-row: 2 /span 3;
    width: auto;
}

.wf-container:before,
.wf-container:after {
  content: '';
  display: table;
}

.wf-container:after {
    clear: both;
}

.wf-box {
    margin: 10px 10px 20px 10px;
}

.wf-box img {
  display: block;
  width: 100%;
}

.wf-box .content {
  border-top-width: 0;
  padding: 5px 8px;
  background-color: #FFFFFF;
}

.wf-column {
    float: left;
}

@media (max-width: 992px) { 
    .wf-container {
        grid-column: 2 /span 1;
    }
}

/* ---------------------------------- FOOTER ---------------------------------- */
footer {
    height: 5vh;
    display: flex;
    align-items: center;
    padding: 0 50px;
    align-self: flex-end;
}

@media (max-width: 992px) { 
    footer {
        padding: 0 16px;
    }
}