
/* Hero Section */
.hero-section-gallery {
  background: url('img/gallery-zamin-zaidad/DSC_4713.JPG') no-repeat center/cover;
  background-position: 20% 31%;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 50vh;
  text-align: center;
  position: relative;
  margin-top: 75px;
  color: #fff;
}

.first-zz-lunching {
  background: url('img/gallery-zamin-zaidad/1st-zz-lunching/zz-lunching.jpeg') no-repeat center/cover;
  background-position: 20% 68%;
}

.second-realestate-learning-festival {
  background: url('img/gallery-zamin-zaidad/2nd-realestate-learning-festival/DSC_0900.JPG') no-repeat center/cover;
  background-position: 20% 42%;
}

.five-zpl-cricket{
  background: url('img/gallery-zamin-zaidad/5th-zpl-cricket/DSC_1449.jpg') no-repeat center/cover;
  background-position: 20% 21%;
}

.hero-section-gallery::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); 
  z-index: 1;
}

.hero-section-gallery .container {
  position: relative;
  z-index: 2; 
}
  .hero-section-gallery a{
    color: #ffffff;
  }

  .hero-section-gallery h1 {
    font-size:3rem;
    margin-bottom: 20px;
    font-weight: 600;
  }

  .hero-section-gallery p {
    font-size: 1.2rem;
    margin-bottom: 30px;
  }

  .hero-content button a {
    text-decoration: none;
  }

  
/* ------------------------- */
.gallery-filters button.active {
  background:#0F265C;
  padding: 10px 20px;
  margin: 5px;
  text-align: left !important;
  color: white;
  border: none;
  outline: none;
  border-radius: 8px;
}

/* ------GALLERY OVERLAY------- */
.gallery-item {
  position: relative;
  display: block;
  overflow: hidden;/
}

.gallery-item .gallery-img {
  display: block;
  width: 100%;
  height: auto;
}

.gallery-item .overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
}

.gallery-item:hover .overlay {
  opacity: 1;
}

  .gallery-section {
    padding: 40px 10px;
    text-align: center;
    margin: 0 0 60px 0;
  }
  
  .gallery-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #222;
  }
  
  /* Additional CSS for the gallery */

.gallery-item{
  max-height: 232px;
  overflow: hidden;
}

  .gallery-section .gallery-img {
    width: 100%;
    height: auto;
    max-width: 370px; 
    max-height: 417px;
    transition: transform 0.3s ease-in-out;
    cursor: pointer;
  }
  .gallery-section .gallery-img:hover {
    transform: scale(1.05);
  }
  
  .gallery-section .modal-arrows {
    position: absolute;
    width: 28px;
    height: 24px;
    top: 50%;
    color: white;
    border: 1px solid rgb(121, 121, 121);
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    z-index: 10;
    user-select: none;
  }
  
  .modal-arrow-left {
    background-color: rgba(0, 0, 0, 0.534);
    left: 10px;
  }
  
  .modal-arrow-right {
    background-color: rgba(0, 0, 0, 0.534);
    right: 10px;
  }
  
  .close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1rem;
    color:#0F265C;
    z-index: 10;
    opacity: 1;
    text-shadow: none;
  }
  
  .modal-body {
    max-width: 100%;
    max-height:100% !important;
    object-fit: contain;
    background: transparent !important;
    overflow-y: hidden;
  }

  
/* Adjust close button */
.modal-content .close {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 28px;
  height: 28px;
  background-color: rgba(0, 0, 0, 0.534);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  text-align: center;
  line-height: 40px;
}
.modal-content {
  position: relative;
  top: 20%;
  left: 20%;
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
}

.modal-dialog {
  max-width: 90%;
  max-height: 90vh;
  margin: 1.75rem auto;
}

.modal-content {
  background: #fff;
  border-radius: 8px;
  max-width: 60%;
  max-height: 90vh;
  text-align: center;
  overflow-y: auto;
}

#modalImage {
  width: 100%; 
  height:100%; 
  margin: 0 auto; 
  display: block;
}

.modal-content h2 {
  margin-bottom: 10px;
}

.modal-content p {
  margin-bottom: 20px;
}

.modal-content button {
  border: none;
  text-align: center;
  border-radius: 99px;
  outline: none;
}

  @media (max-width: 1024px) {
    .hero-section-gallery h1 {
      font-size: 4rem;
    }
  
    .hero-section-gallery p {
      font-size: 1rem;
    }
  
    .btn-custom {
      padding: 8px 15px;
    }
  }
  
  @media (max-width: 768px) {

    .hero-section-gallery {
      padding: 0 0 32px;
    }
  
    .hero-section-gallery h1 {
      font-size: 2rem;
    }

    .modal-content {
      max-width: 90%;
      padding: 0;
      position: relative;
      left: 5%;
    }
  }
  
  
  /* Responsive Styles for Mobile */
  @media (max-width: 480px) {
  
    .hero-section h1 {
      font-size: 2rem;
    }
  
    .gallery-title {
      font-size: 2rem;
    }
  
    .gallery-grid {
      grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
      grid-gap: 10px;
    }
  
    .modal{
      left: 5%;
    }
  
    .modal-content {
      width: 90%;
    }
  }
  