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

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

#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: 3.75px;
  width: 0%;
  left: 50%;
}
#nav-toggle.is-open span:nth-child(2) {
  -webkit-transform: rotate(45deg);
          transform: rotate(45deg);
}
#nav-toggle.is-open span:nth-child(3) {
  -webkit-transform: rotate(-45deg);
          transform: rotate(-45deg);
}

main {
  padding-top: 100px;
}
@media screen and (min-width: 550px) {
  main {
    padding-top: 150px;
  }
}

.description {
  margin: 50px auto;
  width: 60%;
  text-align: center;
}
@media screen and (min-width: 550px) {
  .description {
    margin: 100px auto;
  }
}

.filters {
  position: relative;
}
.filters:after {
  content: "";
  position: absolute;
  height: 100%;
  z-index: 1;
  top: 0;
  right: 0;
  pointer-events: none;
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0), white 85%);
  width: 15%;
}
.filters .content {
  padding: 0;
  margin-bottom: 40px;
  position: relative;
  display: flex;
  flex-wrap: nowrap;
  overflow: auto;
  margin-left: 20px;
  scrollbar-width: none;
}
.filters .content::-webkit-scrollbar {
  display: none;
}
@media screen and (min-width: 550px) {
  .filters .content {
    margin: 0;
    padding: 0;
  }
}
@media screen and (min-width: 550px) {
  .filters {
    margin-bottom: 40px;
    position: relative;
    display: flex;
    flex-wrap: nowrap;
    overflow: auto;
    padding: 0 40px;
    flex-direction: row;
  }
}
.filters span {
  display: block;
  padding: 5px 20px;
  text-transform: capitalize;
  border-radius: 40px;
  background: transparent;
  transition: background-color 0.5s ease;
}
.filters span:hover {
  background-color: rgba(0, 0, 0, 0.07);
  cursor: pointer;
}
@media screen and (max-width: 430px) {
  .filters span {
    display: block;
  }
}
.filters span.active-filter {
  background-color: #111;
  color: #fff;
}
.filters span.active-filter:hover {
  background: #111 !important;
}

.filter {
  white-space: nowrap;
}

.projects-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  border-bottom: 1px solid;
  margin-bottom: 70px;
}

.projects-item {
  padding: 20px;
  display: flex;
  border-top: 1px solid;
  background-color: #fff;
  position: relative;
  transition: background 0.5s ease, color 0.5s ease;
  flex-direction: column;
}
.projects-item > * {
  flex: 1;
  margin-bottom: 10px;
}
@media screen and (min-width: 550px) {
  .projects-item {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: minmax(0, auto);
  }
  .projects-item > * {
    margin-bottom: 0px;
  }
}
@media screen and (min-width: 550px) {
  .projects-item {
    padding: 20px 40px;
  }
}
@media screen and (min-width: 640px) {
  .projects-item {
    display: flex;
    flex-direction: row;
  }
  .projects-item > * {
    flex: 1;
  }
}
.projects-item:hover {
  background-color: #111;
  color: #fff;
}
.projects-item .project-image {
  display: flex;
  align-items: flex-start;
}
.projects-item .project-image img {
  max-height: 100px;
}
@media screen and (min-width: 640px) {
  .projects-item .project-image {
    align-items: center;
  }
  .projects-item .project-image img {
    max-height: 100px;
  }
}

.overlay {
  opacity: 0;
  transition: opacity 0.5s ease-in;
  position: absolute;
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}
.overlay:hover {
  opacity: 1;
}

.project-title {
  text-transform: capitalize;
  font-size: 2em;
}
@media screen and (min-width: 550px) {
  .project-title {
    overflow: auto;
    min-height: 0px;
    align-self: start;
    margin-bottom: 1em;
  }
}
@media screen and (min-width: 640px) {
  .project-title {
    margin-bottom: 0;
  }
}

@media screen and (min-width: 550px) {
  .project-image {
    order: 3;
    grid-row: 1/3;
    align-self: stretch;
  }
}
@media screen and (min-width: 640px) {
  .project-image {
    order: 2;
  }
}

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

.hide {
  display: none;
}

.show {
  display: flex;
}