.gallery-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  height: 100vh;
  overflow: hidden;
}


.gallery-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4); /* Adjust darkness here */
  z-index: 2;
}

.gallery-hero img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  animation: fadeIn 2s ease-in-out forwards;
  filter: brightness(60%); /* Reduce brightness here (100% is normal) */
}

/* 🎨 Gradient Overlay */
.gallery-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.6), rgba(0,0,0,0.2));
  z-index: 2;
  animation: fadeIn 2s ease-in-out forwards;
}

/* ✨ Text Fade-In */
.gallery-hero h1,
.gallery-hero p {
  position: relative;
  z-index: 3;
  color: white;
  opacity: 0;
  animation: fadeInUp 1s ease-out forwards;
}

.gallery-hero h1 {
  font-family: 'Playfair Display';
  animation-delay: 0.5s;
  font-size: 2.8rem;
}

.gallery-hero p {
  animation-delay: 1s;
  font-size: 1.2rem;
  max-width: 700px;
  padding: 0 1rem;
}

/* 🎞️ Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(1.02); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}


.gallery-section {
  width: 100%;
  height: 100vh;
  padding: 20px;
  background-color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  grid-row: auto;
}

.grid-gallery {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 50px 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(300px,1fr));
  grid-auto-rows: 260px;
  grid-auto-flow: dense;
  grid-gap: 20px;
}

.grid-gallery-item {
  position: relative;
}

.grid-gallery-item .image {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.grid-gallery-item .image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s;
  user-select: none;
}

.grid-gallery-item .image:hover img {
  transform: scale(1.4);
}

.grid-item-title {
  margin: -10px 25px;
  padding: 2px 6px;
  color: #DAF1DE;
  background-color: rgba(112, 112, 112, 0.6);
  font-size: 19px;
  font-weight: 600;
  text-transform: capitalize;
  position: absolute;
  white-space: nowrap;
  z-index: 9999;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease-in-out, transform 1s ease-in-out;
}

.grid-gallery-item:hover .grid-item-title {
  opacity: 1;
  transform: translateY(0);
}


.whatsapp-chat {
  position: fixed;
  bottom: 20px;
  right: -300px; /* start hidden off screen */
  background: #fff;
  color: #000;
  font-size: 16px;
  padding: 10px 16px;
  border-radius: 30px;
  text-decoration: none;
  display: flex;
  align-items: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  z-index: 9999;
  font-family: Arial, sans-serif;
  opacity: 0;
  transition: all 0.6s ease;
}

.whatsapp-chat.show {
  right: 20px; /* final position */
  opacity: 1;
}

.whatsapp-chat:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.25);
}

.whatsapp-icon {
  width: 22px;
  height: 22px;
  margin-right: 8px;
}

.why-choose-us h2 {
  font-family: 'Playfair Display';
  text-align: left;
    font-size: 3rem;
   } 


@media (max-width: 768px) {
.gallery-section {
    position: relative;
    height: 100vh;
    width: 100%;
    flex-shrink: 0;
}

.grid-gallery {
    max-height: 105vh;
}

.grid-gallery-item .image {
    overflow: hidden;
}

}

@media (max-width: 425px) {
    .gallery-hero h1 {
        font-size: 2rem;
        text-align: center;
    }

    .gallery-hero p {
        text-align: center;
        padding: 0 60px 0 60px;
    }

    .gallery-section {
    height: 90rem;
    padding: 1rem;
    flex-direction: column;
    align-items: flex-start;
  }

  .grid-gallery {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    padding: 0;
    margin-top: -35rem;
    gap: 1rem;
  }

  .grid-gallery-item .image {
    height: 220px;
  }

  .grid-gallery-item .image img {
    height: 100%;
    object-fit: cover;
  }

  .grid-item-title {
    font-size: 16px;
    margin: 10px;
  }

}

@media (max-width: 375px) {
  .gallery-section {
    height: 85rem;
    padding: 0rem 1rem 0rem 1rem;
  }

  .grid-gallery {
    margin-top: -28rem;
  }

    .grid-gallery-item .image {
    height: 200px;
  }

  .gallery-hero h1 {
    font-size: 1.8rem;
  }

  .gallery-hero p {
    padding: 0 30px;
  }

}
