@font-face {
  font-family: "Diatype";
  src: url("../fonts/ABCDiatype-Medium.woff");
  font-weight: normal;
  font-style: normal;
}

:root {
  --gutter-width: 15px;
}

html,
body {
  -webkit-scroll-behavior: smooth;
  scroll-behavior: smooth;
}

html {
  padding: 0;
  margin: 0;
}

body {
  overflow: hidden;
  padding: 0;
  margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
a,
li {
  font-family: "Diatype", sans-serif;
  color: #181818;
  font-weight: normal;
  margin: 0;
  padding: 0;
}

h1,
p,
a {
  font-size: 15px;
  margin: 0;
}

h1 {
  text-transform: uppercase;
}

ul,
li {
  text-decoration: none;
  list-style: none;
}

a,
a:visited,
a:active {
  text-decoration: none;
  color: currentColor;
}

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

header {
  position: fixed;
  top: 0;
  width: calc(100% - 30px);
  padding: var(--gutter-width);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-column-gap: var(--gutter-width);
  background-color: white;
  z-index: 100;
}

header > h1 {
  grid-column: 1 / span 2;
}

/* Hamburger */

.hamburger {
  position: fixed;
  right: var(--gutter-width);
  top: var(--gutter-width);
  width: 25px;
  display: -ms-grid;
  display: grid;
  grid-template-rows: repeat(1, 1fr);
  justify-items: center;
  z-index: 999;
  cursor: pointer;
}

.hamburger div {
  background-color: #181818;
  position: relative;
  width: 2px;
  height: 20px;
  -webkit-transition: all 0.2s ease-in-out;
  transition: all 0.2s ease-in-out;
}

.two {
  transform: rotate(90deg);
  position: absolute !important;
}

#toggle {
  display: none;
}

#toggle:checked + .hamburger .one {
  -webkit-transform: rotate(90deg);
  transform: rotate(90deg);
}

#toggle:checked + .hamburger .two {
  -webkit-transform: rotate(270deg);
  transform: rotate(270deg);
}

#toggle:checked ~ .menu {
  height: calc(50vh - 65px);
  padding-top: var(--gutter-width);
}

/* Menu */
.menu {
  grid-column: 1 / span 4;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-column-gap: var(--gutter-width);
  background-color: white;
  margin: 0;
  list-style: none;
  clear: both;
  height: 0px;
  overflow: hidden;
  transition: height 0.4s ease;
  z-index: 120;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
  scrollbar-width: none;
}

#credits {
  display: inherit;
  align-items: flex-end;
  grid-column: 1 / span 2;
}

/*-------- CONTENT ---------*/
#content-desktop {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-column-gap: 0;
}

#content-mobile {
  display: none;
  height: calc(100vh - 50px);
  scrollbar-width: none;
  margin-top: 50px;
  overflow-y: auto;
}

#content-desktop,
#content-mobile {
  margin-top: 50px;
}

#left,
#right {
  height: calc(100vh - 50px);
  max-height: calc(100vh - 50px);
  grid-column: span 2;
  overflow-y: hidden;
  scrollbar-width: none;
  touch-action: none;
}

.menu::-webkit-scrollbar,
#left::-webkit-scrollbar,
#right::-webkit-scrollbar,
#content-mobile::-webkit-scrollbar {
  width: 0;
}

#right {
  display: flex;
  flex-direction: column-reverse;
}

#right > .duplicable {
  display: flex;
  flex-direction: column-reverse;
}

.slider {
  max-width: 100%;
}

.slider-description {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-column-gap: var(--gutter-width);
  padding: var(--gutter-width);
  background-color: white;
  position: inherit;
  z-index: 2;
}

.slider-description p:nth-child(2n) {
  text-align: center;
}

.slider-description p:last-child {
  text-align: right;
}

picture {
  width: 100%;
}

img {
  width: 100%;
}

::selection {
  background: lightgrey;
}

.lazyload,
.lazyloading {
  filter: blur(1px);
}

.lazyloaded {
  transition: all 300ms;
  filter: blur(0px);
}

@media screen and (max-width: 1280px) {
  h1,
  p,
  a {
    font-size: 13.5px;
    margin: 0;
  }
}

@media screen and (max-width: 780px) {
  header {
    max-height: 100vh;
  }
  #toggle:checked ~ .menu {
    display: block;
    height: calc(100vh - 60px);
    overflow-y: auto;
  }

  .menu > div {
    grid-column: span 4;
    margin-bottom: 1.2rem;
  }

  .menu > div:last-child {
    margin-bottom: 150px;
  }

  #content-desktop {
    display: none;
  }

  #content-mobile {
    display: block;
  }
}
