.main-top {
  height: 100vh;
  width: 100%;
  background: url("https://foundyoujewelry.com/assets/img/bespoke/banner.jpg") no-repeat center;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}
.main-top::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(to top, #444, rgba(0, 0, 0, 0));
  backdrop-filter: blur(1px);
  pointer-events: none;
  z-index: 1;
}

.section-3 .main .detail-section .content h2 {
  width: 400px;
}
.section-2 .main .detail-section .content h2 {
  width: auto;
}
.overlay {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  position: absolute;
  bottom: 8%;
  left: 50%;
  transform: translate(-50%, 10%);
  width: 100%;
  z-index: 4;
}
.overlay img {
  width: 15rem;
  margin-bottom: 1rem;
}
.overlay h2 {
  font-size: 8rem;
  color: #f5f2e9;
  font-weight: 400;
  line-height: 140px;
}
.overlay p {
  color: #f5f2e9;
  width: 40%;
  text-wrap: wrap;
  font-size: 1.375rem;
  font-weight: 400;
  line-height: 30px;
  text-align: center;
}
.overlay-img {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.bespoke-title {
  position: absolute;
  top: 60%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.bespoke-title h2 {
  font-size: 8rem;
  color: #f5f2e9;
  margin-top: 3rem;
  font-weight: 400;
}
/* .consultation-btn .btn {
  color: #f5f2e9;
  padding: 15px 30px;
  width: 15rem;
} */

.consultation-btn {
  color: #f5f2e9;
  padding: 15px 30px;
  width: 15rem;
  margin: 1rem 0;
}
.consultation-btn:hover {
  background: #f5f2e9;
  color: #231f20;
}

.consultation-box {
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.consultation-box .btn {
  width: 15rem;
}

.overlay-img img {
  width: 100%;
  height: 15vh;
}

.overlay-text {
  position: absolute;
  top: 75%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #f5f2e9;
  margin-top: 1.5rem;
  width: 45%;
  text-wrap: wrap;
  font-size: 1.563rem;
  font-weight: 400;
  line-height: 30px;
  text-align: center;
}

.image-section:hover img {
  transform: scale(1.08);
  transition: 0.4s ease-in-out;
  filter: grayscale(100%);
  cursor: pointer;
}

.consultation-btn .btn:hover {
  color: #000;
  background: #fff7f9;
}
.discover-wrapper img {
  width: 100%;
}
.discover-wrapper h2 {
  color: #231f20;
  font-size: 3.563rem;
  line-height: 70px;
  font-weight: 400;
  text-align: center;
  margin: 2rem 0 1rem;
}
.discover-wrapper p {
  text-align: center;
  width: 85%;
  font-size: 1.375rem;
  font-weight: 400;
  line-height: 30px;
  color: #7f7a66;
}

/* Collection */

.collection-section h2 {
  color: #231f20;
  font-size: 3.563rem;
  line-height: 70px;
  font-weight: 400;
}

/* .gallery-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 20px 0;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
}

.gallery-item.large {
  grid-column: span 2;
  grid-row: span 2;
} */

.collection-title {
  position: absolute;
  bottom: 0px;
  /* left: 10px; */
  padding: 10px;
  color: white;
  font-size: 1.3rem;
  background: rgb(0 0 0 / 18%);
  /* border-radius: 5px; */
  opacity: 0;
  width: 100%;
  transition: opacity 0.3s;
  box-shadow: -20px 13px 20px 17px rgba(0, 0, 0, 0.3);
}

.gallery-item:hover .collection-title {
  opacity: 1; /* Show on hover */
}

/* Responsive design for smaller screens */
@media (max-width: 992px) {
  .overlay {
    bottom: 8%;
    transform: translate(-50%, 10%);
  }
  .overlay img {
    width: 10rem;
    margin-bottom: 1rem;
  }
  .overlay h2 {
    font-size: 5rem;
  }
  .overlay p {
    width: 70%;
    font-size: 1.2rem;
    line-height: 25px;
    text-align: center;
  }
  .icons {
    color: #231f20;
  }
  .discover-wrapper h2 {
    font-size: 2rem;
    line-height: 35px;
  }
  .gallery-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  /* .main-top {
    height: 70vh;
    width: 100%;
    background: url("https://foundyoujewelry.com/assets/img/bespoke/bespoke-mobile.png") no-repeat center;
    background-size: cover;
    background-position: bottom;
  } */
  .section-2 .main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0;
    gap: 20px 0;
  }
  .section-3 .main {
    padding: 2rem 0 0 0;
  }
  .section-5 {
    margin-bottom: 2rem;
  }
  .overlay-text {
    top: 50%;
    margin-top: 1rem;
    font-size: 1.2rem;
    line-height: 20px;
    width: 90%;
  }
  .overlay-img {
    top: 35%;
  }
  .overlay-img img {
    height: 15vh;
  }
}

@media (max-width: 600px) {
  .overlay {
    /* bottom: 25%; */
    bottom: 10%;
    transform: translate(-50%, 10%);
    width: 100%;
  }
  .overlay img {
    width: 8rem;
    margin-bottom: 0;
  }
  .overlay p {
    font-size: 1rem;
    line-height: 24px;
  }
  .consultation-btn {
    width: 13rem;
    padding: 10px 30px;
  }
  .main-top {
    height: 70vh;
    width: 100%;
    /* background: url("assets/img/bespoke/bespoke-mobile.png") no-repeat center; */
    background-size: cover;
    background-position: bottom;
  }
  .overlay .overlay img {
    width: 8rem;
    margin-bottom: 0.5rem;
  }
  .overlay h2 {
    font-size: 4rem;
    line-height: 85px;
    /* margin-top: 1rem; */
  }
  .main-top {
    height: 80vh;
    width: 100%;
    /* background: url("assets/img/bespoke/bespoke-mobile.png") no-repeat center; */
    background-size: cover;
    background-position: center;
  }
  .discover-wrapper h2 {
    font-size: 1.875rem;
    line-height: 35px;
    margin-bottom: 0;
  }
  .section-2 .main .detail-section .content h2 {
    font-size: 1.875rem;
    line-height: 35px;
    width: auto;
  }
  .section-3 .main .detail-section .content h2 {
    width: 300px;
  }

  .overlay-img {
    top: 34%;
  }
  .overlay-img img {
    height: 10vh;
  }
  .overlay-text {
    top: 54%;
    margin-top: 0.5rem;
    width: 90%;
    font-size: 1rem;
    line-height: 20px;
  }
  .gallery-container {
    grid-template-columns: 1fr;
  }
  .bespoke-title {
    top: 45%;
  }
  .bespoke-title h2 {
    font-size: 4rem;
    margin-top: 1rem;
  }
  .consultation-btn {
    bottom: 28%;
  }
  .consultation-box p {
    font-size: 1rem;
    margin-top: 1rem;
    line-height: 20px;
    width: 100%;
  }
  .consultation .btn {
    width: 12rem;
  }
  .consultation-btn .btn {
    padding: 10px 10px;
    width: 12rem;
  }
  .gallery-item.large {
    grid-column: span 1;
    grid-row: span 1;
  }
  .collection-section h2 {
    font-size: 1.875rem;
    line-height: 35px;
  }
  .collection-title {
    opacity: 1;
    font-size: 1rem;
  }
}