@font-face {
    font-family: hatton;
    src: url(PPHatton-Medium.otf);
}
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
  background: #222;
}

.sharp{
  image-rendering: -moz-crisp-edges;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: pixelated;
  -ms-interpolation-mode: nearest-neighbor;
}

a{
  color: #fff;
  text-decoration:underline;
}
a:hover{
  text-decoration:none;
}

#grid {
  position: absolute;
  top: 0%;
  left: 0;
  width: 100%;
  height: 90%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 2px;
}
.cell {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  font-size: 2em;
  user-select: none;
  overflow: hidden;
  padding: 5px;
  font-family: hatton;
  border: 2px solid #222;
  cursor: pointer;
}

.image{
  position: absolute;
  width:100%;
  height:100%;
  background-position: center center;
  background-repeat: no-repeat;
  background-size:3000px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align:center;
  font-size: 10vmax;
  line-height:0.8;
  box-sizing: border-box;
  overflow: hidden;
  cursor: pointer;
  filter: brightness(0.5) saturate(0);
  transition: filter 0.25s ease;
}
.cell:hover > .image{
  filter: brightness(1) saturate(1);
  transition: filter 0.25s ease;
}

.maintitle {
  position: absolute;
  width:100%;
  height:100%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align:center;
  font-size: 10vmax;
  line-height:0.8;
  text-shadow: 0 0 50px rgba(144, 144, 144, 0.3);
}

@media only screen and (max-width: 900px) {
  .maintitle{
    font-size: 8vmax;
  }
}

.project-title {
  font-size: 10vmax;
  line-height:0.8;
  text-align: center;
}

.project{
  background-size: contain;
  filter:saturate(1);
}

video{
  object-fit: contain;
  width:100%;
  height:100%;
}

.text {
  max-width: 30em;
  box-sizing: border-box;
  padding: 1em;
  hyphens:auto;
}

.course{
  font-size: 0.75em;
}

.nav{
  position: absolute;
  bottom: 0;
  left:0;
  right:0;
  margin:auto;
  z-index:100;
  color: #fff;
  background-color:rgba(51, 51, 51,0.8);
  font-family: hatton;
  width: 30vw;
  padding:5px;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align:center;
  font-size: 1.5vmax;
}
.title{
  position:absolute;
  width:100%;
  height:100%;
  inset:0;
  color: #272727;
  font-size:24vw;
  line-height:0.5;
}
#header{
  position: absolute;
  bottom:0;
  left:0;
  width:100%;
  height:10%;
  font-family: hatton;
  font-size: 2.5vmax;
  color: #ccc;
  letter-spacing: -0.1em;
  display: flex;
  align-items: center;
  justify-content: right;
  padding: 20px;
  box-sizing: border-box;
  overflow:hidden;
  user-select: none;
}
#header>span:hover{
  color: #fff;
  cursor: pointer;
}
@media only screen and (max-width: 900px) {
  #header{
    font-size: 5vmax;
  }
}