#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);
}

.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;
  }
}

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

.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;
  pointer-events: none;
}
.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;
  }
}
