/*** FCFATELIER ****/
:root {
  --bg-color: #fffffa;
  --space1: 18px;
  --spacetop: 10px;
  --font-big: 32px;
  --font-medium: 18px;
}

html,
body {
  margin: 0px;
  padding: 0px;
  color: #0033ff;
  background-color: var(--bg-color);
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  font-family: "Neue Haas Unica W01 Regular", Helvetica;
  /* font-family:'Neue Haas Unica W01 Hea1492559', Helvetica; */
  font-size: 15px;
}
div {
  box-sizing: border-box;
}
a,
a:link,
a:visited {
  color: inherit;
  text-decoration: none;
}

/* ----------- PAGE ------------ */
#page-container {
  position: absolute;
  top: 0px;
  left: 0px;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  padding: var(--space1);
  padding-top: 55px;
  padding-bottom: 55px;
  overflow: auto;
  z-index: 1;
  scroll-padding-top: 53px; /* -2px for borders */
}
#project-page {
  width: 100%;
  overflow: hidden;
  min-height: 100%;
  display: grid;
  grid-template-columns: 300px auto 300px;
  padding-bottom: 40px;
}

#page-mid {
  min-height: 100%;
  border-right: 2px solid;
  padding: 0px 40px;
}
#page-mid .image {
  max-width: 100%;
  max-height: 700px;
  padding: 0px 40px;
  margin-top: var(--space1);
  overflow: hidden;
  text-align: center;
}
#page-mid .image img {
  max-height: 700px;
  max-width: 90%;
  margin: 0px auto;
  cursor: pointer;
}
#page-mid .caption {
  margin-bottom: 80px;
}
#intro-container,
#intro-bg-container {
  position: absolute;
  width: 100%;
  min-height: 100%;
  top: 0px;
  left: 0px;
  box-sizing: border-box;
  background-color: var(--bg-color);
  padding: var(--space1);
  padding-top: 55px;
  padding-bottom: 55px;
}
#intro-bg-container {
  z-index: 0;
}
#intro-container {
  z-index: 10;
  mask-image: url(../_img/mask.svg);
  mask-size: cover;
  mask-position: 0 0;
  mask-repeat: no-repeat;
  -webkit-mask-image: url(../_img/mask.svg);
  -webkit-mask-size: cover;
  -webkit-mask-position: 0 0;
  -webkit-mask-repeat: no-repeat;
  transition: -webkit-mask-position, 2s;
}
#intro-container.unmasked {
  mask-position: 100vw 0;
  -webkit-mask-position: 100vw 0;
  pointer-events: none;
}

#intro-page img {
  width: 100%;
}
#about-page {
  width: 100%;
  overflow: hidden;
  min-height: 100%;
  display: grid;
  grid-template-columns: 50% 50%;
}
#about-page .col {
  border-right: 2px solid;
  border-bottom: 2px solid;
  height: 100%;
  padding: var(--spacetop) var(--space1) var(--space1) 0px;
}

#about-page .col img {
  max-width: 100%;
  max-height: 600px;
}
#about-page .col:nth-child(even) {
  border-right: none;
  /* t r b l */
  padding: var(--spacetop) 0 var(--space1) 0;
}
#about-people {
  display: grid;
  grid-template-columns: 50% 50%;
}
.about-image {
  text-align: center;
}
.person {
  padding: 0px var(--space1);
}

/*** PROJECT ***/
#projects{
  position: relative;
  width: 100%;
  overflow: hidden;
  min-height: 100%;
  display: grid;
  grid-template-columns: 50% 50%;
  border-top: 2px solid;
}
#projects .project {
  border-right: 2px solid;
  border-bottom: 2px solid;
  height: auto;
  padding: 5px var(--space1) var(--space1) 0px;
}
#projects .project.selected {
  background-color: #ffc;
}
#projects .project:nth-child(even) {
  border-right: none;
  /* t r b l */
  padding: 5px 0 var(--space1) var(--space1);
}

.project-title {
  font-size: var(--font-big);
}
.project-image {
  padding: var(--space1);
  height: 500px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.project-intro {
  height: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
}

#projects .project img {
  max-width: 90%;
  max-height: 100%;
}
#project-links {
  padding-left: var(--space1);
}
.link {
  padding: var(--space1) 0px var(--space1);
  border-bottom: 2px solid;
}
.link .image {
  width: 100%;
  height: 250px;
  text-align: center;
  padding: 10px var(--space1);
  display: flex;
  justify-content: center;
  align-items: center;
}
.link .image img {
  max-width: 100%;
  max-height: 100%;
}

#overview-page {
  display: grid;
  grid-template-columns: 50% 50%;
  min-height: 100%;
}
.list-item {
  display: grid;
  grid-template-columns: 70px 110px auto;
  font-size: var(--font-medium);
  width: 100%;
}
.list-item.selected .title {
  font-style: italic;
}
.list-spacer {
  height: 30px;
  width: 100%;
}
.list-item div {
  overflow: hidden;
  text-overflow: ellipsis;
}
#project-preview {
  height: calc(100vh - 115px);
  position: sticky;
  position: -webkit-sticky;
  top: 0px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px;
  box-sizing: border-box;
  overflow: hidden;
}
#project-preview img {
  max-height: 100%;
  max-width: 100%;
}

/* -------- HEADER -------- */

.header-container {
  position: fixed;
  top: 0px;
  left: 0px;
  width: 100%;
  padding: 0px var(--space1);
  height: 55px;
  z-index: 10;
}
.header-container.frontpage {
  color: #000;
}
.header {
  display: grid;
  grid-template-columns: 200px auto 200px;
  border-bottom: 2px solid;
  width: 100%;
  height: 100%;
  background-color: var(--bg-color);
}
#nl-link,
#fr-link {
  cursor: pointer;
}

#header-menu {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  font-size: var(--font-medium);
  text-align: right;
}
.header-container.frontpage #header-menu {
  grid-template-columns: 1fr 1fr;
}
#header-menu .menu-item {
  height: 100%;
  padding-top: 10px;
}
#header-menu .menu-item.selected {
  font-style: italic;
}
#main-header {
  display: grid;
  grid-template-columns: 40% 60%;
  border-bottom: 2px solid;
  width: 100%;
  height: 100%;
  background-color: var(--bg-color);
}
.header-container.frontpage #main-header {
  border-bottom: none;
}
#main-title {
  font-size: var(--font-big);
  height: 100%;
  padding-top: 0px;
}
#project-back {
  cursor: pointer;
  transition: margin-left 0.3s;
  z-index: 99;
}
#project-back:hover {
  margin-left: -5px;
}
#project-title {
  text-align: center;
  font-size: var(--font-big);
  height: 100%;
  padding-top: 0px;
}
.project-meta {
  display: grid;
  grid-template-columns: 100px auto 100px;
  font-size: var(--font-medium);
}
.project-grouping {
  text-align: center;
}
#header-language,
#project-grouping {
  font-size: var(--font-medium);
  text-align: right;
  height: 100%;
  padding-top: 10px;
}

/* -------- SLIDESHOW ----- */
#slideshow-container {
  background-color: var(--bg-color);
  position: fixed;
  top: 0px;
  left: 0px;
  width: 100%;
  height: 100%;
  overflow: auto;
  z-index: 99;
  display: none;
}
#slideshow {
  display: flex;
  width: 100%;
  height: 100%;
  justify-content: center;
  align-items: center;
  padding: 50px;
  cursor: pointer;
}
#slideshow img {
  max-height: 100%;
  max-width: 100%;
}

/* -------- FOOTER -------- */
#footer-container {
  position: fixed;
  bottom: 0px;
  left: 0px;
  width: 100%;
  padding: 0px var(--space1);
  height: 60px;
  z-index: 10;
}
#timeline-container {
  position: fixed;
  bottom: -100%;
  left: 0px;
  width: 100%;
  padding: 0px var(--space1);
  height: 60px;
  z-index: 10;
  transition: bottom, 0.5s;
}
#timeline-container.visible {
  bottom: 0%;
}
#footer {
  display: grid;
  grid-template-columns: 200px auto 200px;
  border-top: 2px solid;
  width: 100%;
  height: 100%;
  background-color: var(--bg-color);
}
#timeline-footer {
  display: flex;
  justify-content: space-between;
  grid-template-columns: 200px auto 200px;
  border-top: 2px solid;
  width: 100%;
  height: 100%;
  background-color: var(--bg-color);
  font-size: var(--font-big);
}
#about-footer {
  display: grid;
  grid-template-columns: 25% 25% 25% 25%;
  border-top: 2px solid;
  width: 100%;
  height: 100%;
  background-color: var(--bg-color);
}
#about-footer div {
  padding: var(--spacetop) var(--space1);
}
#footer-date {
  display: flex;
  text-align: center;
  font-size: var(--font-big);
  justify-content: center;
  align-items: center;
  height: 100%;
}
#footer-prev,
#footer-next {
  font-size: var(--font-medium);
  padding-top: 20px;
  height: 100%;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}
#footer-prev {
  text-align: left;
}
#footer-next {
  text-align: right;
}

.year {
  cursor: pointer;
  /*background-size: 100%;*/
  background-position: center bottom;
  background-repeat: no-repeat;
}

.year.selected {
  /*border-bottom: 2px solid;*/
  background-image: url(../_img/marker.svg);
}

/*** SCREEN SIZES ****/

@media screen and (max-width: 1000px) {
  html,
  body {
    font-size: 13px;
  }
  :root {
    --bg-color: #fffffa;
    --space1: 18px;
    --spacetop: 10px;
    --font-big: 24px;
    --font-medium: 16px;
  }
  #main-header {
    display: block;
  }
  .header-container {
    height: auto;
  }
  .header {
    grid-template-columns: 100px auto;
  }
  .header #project-grouping {
    display: none;
  }
  #main-title {
    font-size: 24px;
    padding-top: 5px;
  }
  #header-menu {
    text-align: left;
  }
  #header-menu .menu-item {
    height: auto;
    padding: 10px 0px;
  }
  #overview-page {
    display: block;
  }
  #project-preview {
    display: none;
  }
  #project-list .list-item .year {
    display: none;
  }
  #project-list .list-item {
    grid-template-columns: 90px auto;
    height: auto;
  }
  .list-spacer {
    height: 0;
  }
  .list-item .location {
    display: none;
  }
  #intro-container,
  #intro-bg-container,
  #page-container {
    padding-top: 85px;
  }
  #page-container{
    scroll-padding-top: 83px; /* -2px for borders */
  }
  #projects,
  #project-page {
    display: block;
  }
  #page-mid {
    border: none;
  }
  #project-links {
    padding: 0;
    display: grid;
    grid-template-columns: 50% 50%;
    border-top: 2px solid;
  }
  #links-title {
    display: none;
  }
  .link {
    padding: var(--space1);
  }
  .link:nth-child(even) {
    border-right: 2px solid;
  }
  .link .image {
    height: auto;
  }
  #projects .project {
    border-right: none;
    padding: var(--space1) 0px;
  }
  #projects .project:nth-child(even) {
    padding: var(--space1) 0px;
  }

  .project-meta {
    grid-template-columns: 0px 0px auto;
  }
  .project-grouping {
    text-align: left;
    display: none;
  }
  .project-image {
    height: auto;
  }
  .project-intro {
    height: auto;
  }

  #about-page {
    display: block;
  }
  #about-page .col {
    border-right: none;
    padding: var(--space1) 0px;
    border-bottom: none;
  }
  #footer-container {
    display: none;
  }
}
