/* Headings */
h1 {
  font-size: 5.5vw;
  font-weight: 600;
  margin: 0;
  color: #393e46;
}

h2 {
  font-family: "din-2014-narrow", sans-serif;
  font-style: normal;
  font-weight: 300;
}

.home-first h1,
.home-first h2 {
  width: 70%;
  color: #393e46;
}

.home-first h2 {
  font-size: 2.2vw;
  margin: 16px 0 48px;
}

/* Home Section */
.home-first {
  margin-top: -12vh;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 6vw 7vw;
  box-sizing: border-box;
}

.home-first-content {
  animation: 1.5s ease fadeInUp;
}

/* Projects */
.home-new-projects {
  background-color: #eee;
  padding: 14vh 7vw 4vw;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.home-new-projects-text {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-bottom: 4vw;
  width: 100%;
}

.home-new-projects-text h2 {
  font-weight: 400;
  font-size: 1.6rem;
  margin: 0;
  color: #393e46;
}

.home-new-projects-text .button {
  justify-content: flex-end !important;
}

/* Gallery */
#gallery {
  line-height: 0;
  column-count: 2;
  column-gap: 2vw;
  animation: 1s ease fadeInUp;
}

#gallery img {
  width: 100% !important;
  height: auto !important;
  margin-bottom: 2vw;
  filter: brightness(0.75);
  transition: ease 0.2s;
}

#gallery img:hover {
  filter: brightness(1);
}

#gallery h3 {
  margin: 0 0 3vw;
  color: #393e46;
  font-size: 1.2rem;
  word-wrap: break-word;
  white-space: normal;
  line-height: 1.4;
}

/* Details */
.information-details {
  background: #393e46;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 13vh 7vw 10vh;
  box-sizing: border-box;
  color: white;
}

.information-details h2 {
  font-family: "din-2014", sans-serif;
  font-style: normal;
  font-size: 1.6rem;
  font-weight: 300;
  padding-bottom: 4vw;
  margin: 0;
}

.information-details h3 {
  font-size: 1.6rem;
  font-weight: 300;
  margin: 0;
}

.information-details-columns {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
}

.information-details .button {
  justify-content: flex-end;
  width: 100%;
  padding-bottom: 5vh;
}

/* Clients */
.clients {
  padding-top: 6vw;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
}

.clients img {
  width: 10vw;
  align-items: center;
}

.clients img:nth-last-child(-n+3) {
  margin-left: 5vw;
}

.clients h3 {
  width: 100%;
  padding-bottom: 4vw;
}

/* Buttons */
#mobile-button {
  display: none;
}

/* Media Queries */
@media (max-width: 800px), (max-width: 400px) {
  #gallery {
    column-count: 1;
  }
}

@media (max-width: 767px) {
  .home-project:nth-last-child(-n+3) {
    display: none;
  }

  .home-first h1 {
    width: 80%;
    font-size: 13vw;
  }

  .home-first h2 {
    font-size: 5.5vw;
    width: 80%;
    margin-bottom: 34px;
  }

  .button {
    width: 42% !important;
    margin-bottom: 40px;
  }

  .button a {
    font-size: 16px;
  }

  .button svg {
    width: 30px;
    height: auto;
  }

  #gallery img {
    height: 30vh !important;
    object-fit: cover;
  }

  #gallery h3 {
    margin-top: 15px;
    margin-bottom: 25px;
  }

  #desktop-button {
    display: none;
  }

  #mobile-button {
    display: block;
  }

  .information-details h2,
  .information-details h3 {
    font-size: 1.2rem;
    margin-left: 15vw;
  }

  .project-information-columns1 {
    margin-bottom: 15px;
    width: 100%;
  }

  .project-information-columns2 {
    margin-right: 5vw;
    padding-bottom: 30px;
    max-width: 100%;
  }

  .information-details .button {
    width: 100%;
    margin-left: 15vw;
  }

  .clients img {
    width: 34vw;
  }

  .clients img:nth-last-child(2),
  .clients img:nth-last-child(4) {
    margin-left: 5vw;
  }

  .clients img:nth-last-child(0),
  .clients img:nth-last-child(3) {
    margin-left: 0;
  }

  .home-new-projects-text {
    display: none;
  }
}
