@font-face {
    font-family: 'HaasGrotRoman';
    src: url('./fonts/HaasGrotDisp-55Roman.woff2') format('woff2'),
         url('./fonts/HaasGrotDisp-55Roman.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'HaasGrot65';
    src: url('fonts/HaasGrotDisp-65Medium.woff2') format('woff2'),
        url('fonts/HaasGrotDisp-65Medium.woff') format('woff');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

html {
    width: 100%;
    height: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    height:100vh;
width:100vw;
max-height:100vh;
max-width:100vw;
    font-family: 'HaasGrotRoman';
    color: #282828;
    overflow-x: scroll;
    overflow-y: scroll;
    scroll-behavior: smooth;
}

a {
  color: #282828;
}

a:hover {
  color: #e1e1e1;
}

::-webkit-scrollbar {
  width: 2%;
}

::-webkit-scrollbar-track {
  background: #ffffff;
}

::-webkit-scrollbar-thumb {
  background: #ffffff;
  border: 1px solid #e1e1e1;
}

::-webkit-scrollbar-thumb:hover {
  background: #fff;
  border: 1px solid #e1e1e1;
}

nav {
  width: 100%;
  z-index: 2;
  position: fixed;
  border-bottom: 1px solid #e1e1e1;
}

#nav-grid {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  background-color: white;
  justify-content: space-between;
}

.nav-item {
  font-size: 3em;
  line-height: 1em;
  text-transform: uppercase;
}

.rtl:hover {
  direction: rtl;
  unicode-bidi: bidi-override;
  transform: scale(-1, 1);
}

ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

li a {
  text-decoration: none;
  color: #282828;
}

li a:hover {
  text-decoration: none;
  color: #e1e1e1;
  cursor: pointer;
}

#grid_bg {
  position: absolute;
  background-image: url('background.svg');
  width: 150%;
  height: 200%;
  opacity: 0.2;
  pointer-events: none;
}

main {
  position: relative;
  top: 5.5vh;
}

.container{
  position: relative;
  top: 5vh;
  left: 7.5%;
  display: grid;
  grid-template-columns: 7.5% 7.5% 7.5% 7.5% 7.5% 7.5% 7.5% 7.5%;
  grid-template-rows: auto;
  row-gap: 2.5%;
  column-gap: 7.5%;
}

.item img {
  width: 100%;
}

 .item video {
   width: 100%;
 }

.item-1 {
  grid-column: 1 / 3;
}

.item-2 {
  grid-column: 3 / 6;
}

.item-3 {
  grid-column: 6 / 9;
}

.item-4 {
  grid-column: 8 / 12;
}

.item-5 {
  grid-column: 1 / 4;
}

.item-6 {
  grid-column: 4 / 6;
}

.item-7 {
  grid-column: 6 / 8;
}

.item-8 {
  grid-column: 8 / 11;
}

.item-9 {
  grid-column: 1 / 5;
}

.item-10 {
  grid-column: 5 / 7;
}

.item-11 {
  grid-column: 7 / 11;
}

.item-11 {
  grid-column: 7 / 11;
}

.item-12 {
  grid-column: 1 / 3;
}

figure a {
  color: black;
  text-decoration: none;
}

figure a:hover{
  text-decoration: none;
  color: #e1e1e1;
  cursor: pointer;
}

figcaption {
  position: relative;
  font-size: 1.6em;
  text-transform: uppercase;
  line-height: 1em;
}

figcaption a {
  text-decoration: none;
}

@media screen and (max-width: 600px) {
  #grid_bg {
    height: 100vh;
  }

  #nav-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    background-color: white;
    justify-content: space-between;
  }

  .nav-item {
    font-size: 2em;
    line-height:1em;
  }

  .nav-item-1 {
    flex-grow: 2;
  }

  main {
    position: relative;
    top: 8vh;
  }

  .container {
    top: 3vh;
    grid-template-columns: 15% 15% 15% 15% 15% 15%;
    row-gap: 2.5%;
    column-gap: 7.5%;
  }

  .item-1 {
    grid-column: 1 / 3;
  }

  .item-2 {
    grid-column: 3 / 6;
  }

  .item-3 {
    grid-column: 6 / 8;
  }

  .item-4 {
    grid-column: 1/3;
  }

  .item-5 {
    grid-column: 3/5;
  }

  .item-6 {
    grid-column: 5/8;
  }

  .item-7 {
    grid-column: 1/3;
  }

  .item-8 {
    grid-column: 3/5;
  }

  .item-9 {
    grid-column: 5/8;
  }

  figcaption {
    font-size: 1.2em;
    line-height: 1em;
  }
}
