.gallery-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.gallery-img:hover {
  transform: scale(1.05);
}

/* Modal Styling */
.image-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 10px;
}

/* Image inside modal */
.modal-content {
  max-width: 90%;
  max-height: 80vh;
  border-radius: 5px;
}

/* Close button */
.close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 28px;
  color: white;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.2);
  padding: 5px 10px;
  border-radius: 5px;
}

/* Navigation buttons */
.prev, .next {
  position: absolute;
  top: 50%;
  font-size: 30px;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  border-radius: 5px;
  transform: translateY(-50%);
}

.prev {
  left: 10px;
}

.next {
  right: 10px;
}

/* 📌 Mobile Responsiveness */
@media (max-width: 768px) {
  .gallery-img {
    height: 150px; /* Reduce height on smaller screens */
  }

  .modal-content {
    max-width: 95%;
    max-height: 75vh; /* Adjust size for small screens */
  }

  .close {
    top: 5px;
    right: 10px;
    font-size: 24px;
  }

  .prev, .next {
    font-size: 24px;
    padding: 8px 12px;
  }
}
