.banner {
  height: 40vh;
  padding: 0 0 0 30px;
  position: relative;
  overflow: hidden;
}
.banner .heading {
  height: 100%;
  display: flex;
  justify-content: start;
  align-items: flex-end;
}
.banner .heading .line {
  width: 75px;
  height: 2px;
  background-color: #000;
  margin-bottom: 26px;
}
.banner .heading h1 {
  overflow: hidden;
}
.banner .heading h1 .letter {
  color: #000;
  font-weight: 500;
  font-size: 9.3rem;
  display: inline-block;
}
.post-type-archive-residential .banner .heading h1 .letter-space {
  display: inline-block;
  width: 0.4em;
}
.banner .banner-img img {
  position: absolute;
  z-index: 1;
}
.post-type-archive-residential .banner .banner-img #img1 {
  bottom: 18px;
  left: 100px;
  width: 3%;
  rotate: 0deg;
}
.post-type-archive-residential .banner .banner-img #img2 {
  bottom: 10px;
  left: 175px;
  width: 3%;
  rotate: 0deg;
}
.post-type-archive-residential .banner .banner-img #img3 {
  bottom: 67px;
  left: 460px;
  width: 3%;
  rotate: 0deg;
}
.post-type-archive-residential .banner .banner-img #img4 {
  bottom: 25px;
  left: 760px;
  width: 3%;
  rotate: 0deg;
}
.banner .line-img img {
  position: absolute;
  bottom: 0;
  right: 50px;
  width: 16%;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 45px;
}
.project-card {
  position: relative;
  display: block;
  img {
	aspect-ratio: 1 / 1;
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.7s ease;
  }
  .project-name {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    gap: 5px;
    padding: 30px;
    opacity: 0;
    background: linear-gradient(
      to top,
      rgba(0, 0, 0, 0.7) 20%,
      rgba(0, 0, 0, 0) 100%
    );
    color: #fff;
    transition: opacity 0.7s ease;
    span {
      text-align: left;
      font-size: 2.5rem;
      color: #fff;
      line-height: 35px;
    }
    .country {
      font-size: 1.15rem;
      line-height: normal;
    }
  }
}

.project-card:hover img {
  filter: grayscale(0%);
}
.project-card:hover .project-name {
  opacity: 1;
}

@media (max-width: 1440px) {
  .post-type-archive-residential .banner .banner-img #img1 {
    bottom: 20px;
    left: 108px;
    width: 3%;
    rotate: 0deg;
  }
  .post-type-archive-residential .banner .banner-img #img2 {
    bottom: 20px;
    left: 185px;
    width: 3%;
    rotate: 0deg;
  }
  .post-type-archive-residential .banner .banner-img #img3 {
    bottom: 70px;
    left: 465px;
    width: 3%;
    rotate: 0deg;
  }
  .post-type-archive-residential .banner .banner-img #img4 {
    bottom: 28px;
    left: 765px;
    width: 3%;
    rotate: 0deg;
  }
}
@media (max-width: 1279px) {
  .post-type-archive-residential .banner .banner-img #img1 {
    bottom: 20px;
    left: 108px;
    width: 4%;
    rotate: 0deg;
  }
  .post-type-archive-residential .banner .banner-img #img2 {
    bottom: 20px;
    left: 185px;
    width: 4%;
    rotate: 0deg;
  }
  .post-type-archive-residential .banner .banner-img #img3 {
    bottom: 70px;
    left: 465px;
    width: 4%;
    rotate: 0deg;
  }
  .post-type-archive-residential .banner .banner-img #img4 {
    bottom: 28px;
    left: 765px;
    width: 4%;
    rotate: 0deg;
  }
}
@media (max-width: 1023px) {
  .banner {
    height: 35vh;
  }
  .banner .heading h1 .letter {
    font-size: 7rem;
  }
  .post-type-archive-residential .banner .banner-img #img1 {
    bottom: 12px;
    left: 85px;
    width: 4%;
  }
  .post-type-archive-residential .banner .banner-img #img2 {
    bottom: 13px;
    left: 145px;
    width: 3.5%;
    rotate: 0deg;
  }
  .post-type-archive-residential .banner .banner-img #img3 {
    bottom: 54px;
    left: 358px;
    width: 3.5%;
    rotate: 0deg;
  }
  .post-type-archive-residential .banner .banner-img #img4 {
    bottom: 20px;
    left: 590px;
    width: 4%;
    rotate: 0deg;
  }
}
@media (max-width: 767px) {
  .banner .heading h1 .letter {
    font-size: 5.5rem;
  }
  .post-type-archive-residential .banner .banner-img #img1 {
    bottom: 10px;
    left: 73px;
    width: 4%;
  }
  .post-type-archive-residential .banner .banner-img #img2 {
    bottom: 10px;
    left: 120px;
    width: 3.5%;
    rotate: 0deg;
  }
  .post-type-archive-residential .banner .banner-img #img3 {
    bottom: 45px;
    left: 288px;
    width: 3.5%;
    rotate: 0deg;
  }
  .post-type-archive-residential .banner .banner-img #img4 {
    bottom: 18px;
    left: 470px;
    width: 3.5%;
    rotate: 0deg;
  }
}
@media (max-width: 600px) {
  .banner .heading h1 .letter {
    font-size: 5rem;
  }
}
@media (max-width: 479px) {
  .banner {
    height: 30vh;
    padding: 0 0 0px 12px;
  }
  .banner .heading h1 .letter {
    font-size: 3.5rem;
  }
  .banner .line-img img {
    display: none;
  }
  .post-type-archive-residential .banner .banner-img #img1 {
    bottom: 5px;
    left: 38px;
    width: 5%;
  }
  .post-type-archive-residential .banner .banner-img #img2 {
    bottom: 3px;
    left: 68px;
    width: 5%;
    rotate: 0deg;
  }
  .post-type-archive-residential .banner .banner-img #img3 {
    bottom: 25px;
    left: 174px;
    width: 5%;
    rotate: 0deg;
  }
  .post-type-archive-residential .banner .banner-img #img4 {
    bottom: 10px;
    left: 295px;
    width: 5%;
    rotate: 0deg;
  }
}
