/* Basics */

@font-face {
  font-family: 'SuisseIntl';
  src: url('../fonts/SuisseIntl-Book-WebS.woff2') format('woff2'),
    url('../fonts/SuisseIntl-Book-WebS.woff') format('woff'),
    url('../fonts/SuisseIntl-Book-WebS.eot?#iefix') format('embedded-opentype'),
    url('../fonts/SuisseIntl-Book-WebS.ttf') format('truetype'),
    url('../fonts/SuisseIntl-Book-WebS.svg#svgFontName') format('svg');
  font-weight: 400;
  text-rendering: optimizeLegibility;
}

html {
  font-family: "SuisseIntl", "HelveticaNeueLTPro-Roman", "Helvetica Neue", "HelveticaNeue", Helvetica, Arial, sans-serif;
  font-size: 48px;
  line-height: 1;
}

@media screen and (max-width: 1500px){
  html {
    font-size: 36px;
  }
}

@media screen and (max-width: 1200px){
  html {
    font-size: 24px;
  }
}

body {
  padding: 32px;
}

@media screen and (max-width: 600px){
  body {
    padding: 16px;
  }
}

/* Links */

a {
  text-decoration: none;
  color: black;
  outline: 0;
}

a.black {
  text-decoration: none;
  color: black;
}

a.black:hover {
  text-decoration: none;
  color: lightgray;
}

a:focus {
  outline: none;
}

main a {
  text-decoration: none;
  color: lightgray;
}

main a:hover {
  text-decoration: none;
  color: black;
}

a:hover { color: lightgrey; }
.active { color: lightgrey; }
.active-home:hover { color: black; }
.back { cursor: pointer; }

/* Paragraph */

.covertext ul, .title ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.about ul {
  list-style-type: none;
  padding-inline-start: 24px;
}

.about ul li:before {
  content: '\2022';
  position: absolute;
  margin-left: -24px;
}

.about p:first-of-type {
  margin-top: 0;
}

/* Image */

img {
  vertical-align: top;
}

/* Grid */

.col {
  flex: 1;
}

.left {
  text-align: left;
}

.center {
  text-align: center;
}

.right {
  text-align: right;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-column-gap: 32px;
  grid-row-gap: 200px;
}

@media screen and (max-width: 1024px){
  .grid {
    grid-template-columns: 1fr 1fr;
  }
}

.logomobile {
  display: none;
}

@media screen and (min-width: 1921px) {
  .grid {
    grid-template-columns: 1fr 1fr 1fr 1fr;
  }
}

@media screen and (max-width: 600px){
  .grid {
    grid-template-columns: 1fr;
    grid-row-gap: 32px;
  }
  .logo {
    flex: 2;
    text-align: center;
  }
  .logomobile {
    display: block;
  }
}

/* Navigation */

nav {
  display: flex;
  position: fixed;
  width: calc(100% - 64px);
  z-index: 2;
}

.col.ham {
  display: none;
}

.col2 {
  flex: 2;
}

.menumob {
  display: block;
}

@media screen and (max-width: 600px){
  nav {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    padding: 16px;
    font-size: 24px;
    background-color: white;
  }
  .col.ham {
    display: block;
  }
  .menu {
    display: none;
  }
  .menumob {
    display: none;
  }
  nav label {
    display: block;
    position: absolute;
    width: 72px;
    height: 56px;
    top: 0;
    right: 0;
    padding-top: 16px;
    padding-left: 32px;
    margin-right: 0;
  }
  input#hamburger {
    display: none;
  }
  label .open { display: block;}
  label .close { display: none; }
  input:checked+label .open { display: none;  }
  input:checked+label .close { display: block; margin-top: 11px;}
  label:focus {
    outline: none;
  }
  nav ul li {
    display: block;
    font-size: 26px !important;
  }
  nav ul {
    display: none;
  }
  input#hamburger:checked ~ ul {
    display: block;
    position: absolute;
    width: 100%;
    margin-top: 1px;;
    left: 0;
    padding-top: 50px;
    padding-bottom: 16px;
    background-color: white;
    z-index: -1;
    -webkit-box-shadow: 0px 9999px 3px 9999px rgba(255,255,255,0.95);
    -moz-box-shadow: 0px 9999px 3px 9999px rgba(255,255,255,0.95);
    box-shadow: 0px 9999px 3px 9999px rgba(255,255,255,0.95);
  }
  .proj {
    left: 232px;
  }
  nav li {
    font-size: 26px;
    text-align: center;
  }
  nav li:first-child {
    padding-top: 18px;
  }
  nav li:not(:first-child) {
    padding-top: 45px;
  }
  nav li a {
    color: black;
  }
  .cross {
    transform: rotate(45deg);
  }
}

/* Main */

main {
  margin-top: calc(247px + 48px);
}

.intro, .credits {
  margin: auto;
  margin-bottom: 247px;
  width: 50%;
  text-align: center;
}

.credits {
  margin-bottom: 0;
  width: 75%;
}

.cover {
  position: relative;
}

.covertext {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
}

.coverimage {
  text-align: center;
  background-color: #F7F7F7;
}

.coverimage img {
  width: 100%;
  /* max-width: 100%; */
  /* max-height: 100%; */
}

@media screen and (max-width: 600px){
  .coverimage img {
    width: 100%;
  }
}

.cover:hover img {
  opacity: 0.2;  
}

.cover:hover .covertext {
  opacity: 1;
  color: black;
}

.info {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-column-gap: 32px;
  position: sticky;
  top: 32px;
  margin-bottom: 247px;
  z-index: -1;
}

.description {
  font-size: 24px;
}

.description-mobile {
  display: none;
}

.layout {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-row: 1;
  grid-column-gap: 32px;
  margin-bottom: 200px;
}

.layout:last-of-type {
  margin-bottom: 0;
}

.project {
  margin-top: 0;
}

.image-a1 {
  grid-column: 1;
}

.image-a2 {
  grid-column: 1 / span 2;
}

.image-a3 {
  grid-column: 3;
}

.image-a4 {
  grid-column: 2 / span 2;
}

.image-b1 {
  grid-column: 1;
  align-self: end;
}

.image-b2 {
  grid-column: 2 / span 2;
  align-self: end;
}

.image-b3 {
  grid-column: 1 / span 2;
  align-self: end;
}

.image-b4 {
  grid-column: 3;
  align-self: end;
}

.image-c1 {
  grid-column: 1;
  grid-row: 1 / 3;
}

.image-c2 {
  grid-column: 2 / 4;
  grid-row: 2 / 4;
}

.image-c3 {
  grid-column: 1 / 3;
  grid-row: 1 / 3;
}

.image-c4 {
  grid-column: 3;
  grid-row: 2 / 4;
  align-self: end;
}

.image-d1 {
  grid-column: 1;
  grid-row: 2 / 4;
  align-self: end;
}

.image-d2 {
  grid-column: 2 / 4;
  grid-row: 1 / 3;
}

.image-d3 {
  grid-column: 1 / 3;
  grid-row: 2 / 4;
  align-self: end;
}

.image-d4 {
  grid-column: 3;
  grid-row: 1 / 3;
}

.image-e1 {
  grid-column: 2;
  grid-row: 1;
}

.image-e2 {
  grid-column: 2;
  grid-row: 1;
}

@media screen and (min-width: 1921px) {
  .layout {
    grid-template-columns: 1fr 1fr 1fr 1fr;
  }
  .image-a1 {
    grid-column: 1;
  }
  .image-a2 {
    grid-column: 1 / span 2;
  }
  .image-a3 {
    grid-column: 4;
  }
  .image-a4 {
    grid-column: 3 / span 2;
  }
  .image-b1 {
    grid-column: 1;
    align-self: end;
  }
  .image-b2 {
    grid-column: 3 / span 2;
    align-self: end;
  }
  .image-b3 {
    grid-column: 1 / span 2;
    align-self: end;
  }
  .image-b4 {
    grid-column: 4;
    align-self: end;
  }
  .image-c1 {
    grid-column: 1;
    grid-row: 1 / span 2;
  }
  .image-c2 {
    grid-column: 3 / span 2;
    grid-row: 2 / span 2;
  }
  .image-c3 {
    grid-column: 1 / span 2;
    grid-row: 1 / span 2;
  }
  .image-c4 {
    grid-column: 4;
    grid-row: 2 / span 2;
    align-self: end;
  }
  .image-d1 {
    grid-column: 1;
    grid-row: 2 / span 2;
    align-self: end;
  }
  .image-d2 {
    grid-column: 3 / span 2;
    grid-row: 1 / span 2;
  }
  .image-d3 {
    grid-column: 1 / span 2;
    grid-row: 2 / span 2;
    align-self: end;
  }
  .image-d4 {
    grid-column: 4;
    grid-row: 1 / span 2;
  }
}

.image-a1 img,
.image-a2 img,
.image-a3 img,
.image-a4 img,
.image-b1 img,
.image-b2 img,
.image-b3 img,
.image-b4 img,
.image-c1 img,
.image-c2 img,
.image-c3 img,
.image-c4 img,
.image-d1 img,
.image-d2 img,
.image-d3 img,
.image-d4 img,
.image-e1 img,
.image-e2 img  {
  width: 100%;
}

.image-a1,
.image-a2,
.image-a3,
.image-a4,
.image-b1,
.image-b2,
.image-b3,
.image-b4,
.image-c2,
.image-c3,
.image-c4,
.image-d1,
.image-d2,
.image-d3,
.image-e1,
.image-e2  {
  text-align: center;
  background-color: #F7F7F7;
}

.background  {
  background-color: #F7F7F7;
}

.background  img {
  mix-blend-mode: multiply;
}

.about {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-column-gap: 32px;
  font-size: 24px;
}

@media screen and (max-width: 1280px){
  .about {
    font-size: 20px;
  }
  .description {
    font-size: 20px;
  }
}

@media screen and (max-width: 1200px){
  main {
    margin-top: calc(200px + 48px);
  }
  .intro {
    margin-bottom: 200px;
  }
  .info {
    margin-bottom: 200px;
  }
  .description {
    font-size: 16px;
  }
  .about {
    font-size: 16px;
  }
  .about ul {
    padding-inline-start: 16px;
  }
  .about ul li:before {
    margin-left: -16px;
  }
}

@media screen and (max-width: 600px){
  main {
    margin-top: 120px;
  }
  .covertext {
    font-size: 24px;
  }
  .project {
    margin-top: 120px;
  }
  .intro {
    width: 100%;
    margin-bottom: 110px;
    font-size: 24px;
    text-align: center;
  }
  .about {
    grid-template-columns: 1fr;
    font-size: 16px;
  }
  .about .col:not(:first-of-type) {
    margin-top: 16px;
  }
  .about ul:last-of-type {
    margin-bottom: 0;
  }
  .info {
    grid-template-columns: 1fr;
    position: relative;
    top: 0;
    margin-bottom: 67px;
    z-index: -1;
  }
  .title {
    margin: auto;
    width: calc(100% - 32px);
    font-size: 24px;
    text-align: center;
    margin-bottom: 32px;
    z-index: -1;
  }
  .description {
    display: none;
  }
  .description-mobile {
    font-size: 16px;
    margin-top: 86px;
    margin-bottom: 98px;
  }
  .layout {
    grid-template-columns: 1fr;
    margin-bottom: 90px;
  }
  .image-a1,
  .image-a2,
  .image-a3,
  .image-a4,
  .image-b1,
  .image-b2,
  .image-b3,
  .image-b4,
  .image-c1,
  .image-c2,
  .image-c3,
  .image-c4,
  .image-d1,
  .image-d2,
  .image-d3, 
  .image-d4,
  .image-e1,
  .image-e2 {
    grid-column: 1;
    grid-row: auto;
    margin-bottom: 16px;
  }
  .image-a1 img,
  .image-a2 img,
  .image-a3 img,
  .image-a4 img,
  .image-b1 img,
  .image-b2 img,
  .image-b3 img,
  .image-b4 img,
  .image-c1 img,
  .image-c2 img,
  .image-c3 img,
  .image-c4 img,
  .image-d1 img,
  .image-d2 img,
  .image-d3 img,
  .image-d4 img,
  .image-e1 img,
  .image-e2 img  {
    width: 100%;
    height: auto;
  }
  .credits {
    width: 100%;
    padding-left: 16px;
    padding-right: 16px;
    padding-bottom: 16px;
    font-size: 16px;
  }
}

/* Error */

.errorpage {
	display: flex;
	align-items: center;
	justify-content: center;
	position: fixed;
  width: 100%;
  height: 100%;
  top:0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
}

.errortext {
	position: absolute;
  font-family: "SuisseIntl", "HelveticaNeueLTPro-Roman", "Helvetica Neue", "HelveticaNeue", Helvetica, Arial, sans-serif;
	font-size: 20vw;
	text-transform: uppercase;
	color: black;
	margin: 0;
}
