#nav-toggle {
  cursor: pointer;
  height: 13px;
  position: relative;
  transform: rotate(0deg);
  transition: 0.2s ease;
  width: 28px;
  z-index: 100;
}
@media screen and (min-width: 580px) {
  #nav-toggle {
    display: none;
  }
}

#nav-toggle span {
  background: #111;
  display: block;
  height: 1px;
  left: 0;
  opacity: 1;
  position: absolute;
  transform: rotate(0deg);
  transition: 0.2s ease;
  width: 100%;
}
#nav-toggle span:nth-child(1) {
  margin-top: -1px;
}
#nav-toggle span:nth-child(2), #nav-toggle span:nth-child(3) {
  margin-top: 6px;
}
#nav-toggle span:nth-child(4) {
  margin-top: 13px;
}

#nav-toggle.is-open span {
  background: #fff !important;
}
#nav-toggle.is-open span:nth-child(1),
#nav-toggle.is-open span:nth-child(4) {
  margin-top: 5.5px;
  width: 0%;
  left: 50%;
}
#nav-toggle.is-open span:nth-child(2) {
  transform: rotate(45deg);
}
#nav-toggle.is-open span:nth-child(3) {
  transform: rotate(-45deg);
}

.main {
  display: flex;
  flex-direction: column;
}
.main > * {
  position: relative;
  z-index: 10;
}

.nav {
  position: fixed;
  top: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
}

.intro {
  font-size: 2em;
  text-align: center;
  line-height: 1;
  margin: 0 auto;
  z-index: -1;
  font-weight: 200;
  width: 100%;
  top: 0;
  height: 75vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.intro .year {
  color: #aaa;
}
.intro h1 {
  font-size: 1em;
}

.project {
  margin-bottom: 2em;
}
.project .caption {
  color: #aaa;
  text-align: center;
  height: 4em;
}

.is-horizontal {
  width: calc(100% - 6em);
}
@media screen and (min-width: 580px) {
  .is-horizontal {
    width: calc(100% - 8em);
    max-width: 1600px;
  }
}
.is-horizontal figure,
.is-horizontal video {
  margin: 0;
  padding: 0;
  border: 0;
  width: 100%;
}

img {
  display: block;
  max-width: 100%;
  position: relative;
  margin: 0 auto;
  width: 100%;
  pointer-events: none;
}

.is-vertical {
  width: 70%;
}
@media screen and (min-width: 580px) {
  .is-vertical {
    width: 60%;
    max-width: 800px;
  }
}

.is-center {
  align-self: center;
}

.projects {
  display: grid;
  gap: 15px;
  margin: 6em 40px 3em 40px;
  grid-template-columns: repeat(1, 1fr);
}
@media screen and (min-width: 480px) {
  .projects {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media screen and (min-width: 800px) {
  .projects {
    margin: 7em 4em 4em 4em;
  }
}

.projects-item {
  position: relative;
}
.projects-item .overlay {
  opacity: 1;
  z-index: 10;
}
.projects-item:hover .overlay {
  opacity: 0;
  z-index: 10;
}
@media screen and (min-width: 1620px) {
  .projects-item {
    font-size: 24px;
  }
}

.overlay {
  position: absolute;
  transition: opacity 0.5s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.6);
  color: #fff;
  opacity: 0;
}
.overlay .title {
  padding: 0.66em 1em;
}

.info {
  display: flex;
  flex-direction: column;
}
@media screen and (min-width: 550px) {
  .info {
    order: 2;
    grid-row-start: 2;
  }
}
@media screen and (min-width: 640px) {
  .info {
    order: 3;
  }
}
