
    body {
      font-family: Arial, sans-serif;
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    .gallery-container {
      display: flex;
      flex-wrap: wrap;
      gap: 15px;
      justify-content: center;
      padding: 20px;
    }

    .gallery-item {
      width: calc(25% - 15px); /* 4 items per row */
      position: relative;
    }

    .gallery-item img {
      width: 100%;
      height: auto;
      display: block;
      border-radius: 8px;
      cursor: pointer;
      transition: transform 0.3s ease-in-out;
    }

    .gallery-item img:hover {
      transform: scale(1.05);
    }

    @media (max-width: 1024px) {
      .gallery-item {
        width: calc(33.33% - 15px); /* 3 items per row */
      }
    }

    @media (max-width: 768px) {
      .gallery-item {
        width: calc(50% - 15px); /* 2 items per row */
      }
    }

    @media (max-width: 480px) {
      .gallery-item {
        width: 100%; /* 1 item per row */
      }
    }

    /* Modal Styles */
    .modal {
      display: none;
      position: fixed;
      z-index: 1000;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.8);
      justify-content: center;
      align-items: center;
    }

    .modal-content {
      max-width: 90%;
      max-height: 90%;
      border-radius: 10px;
    }

    .modal img {
      width: 100%;
      height: auto;
      display: block;
    }

    .close {
      position: absolute;
      top: 20px;
      right: 30px;
      color: white;
      font-size: 30px;
      cursor: pointer;
    }
	
             






  .modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
  }

  .modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .modal-content img {
    max-width: 100%;
    max-height: 100%;
  }

  .prev,
.next {
  position: fixed; /* Fixed position ensures the arrows stick to the edges of the screen */
  top: 50%; /* Center vertically on the screen */
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.7); /* Semi-transparent background */
  border: none;
  color: black;
  font-size: 24px;
  cursor: pointer;
  padding: 10px;
  border-radius: 50%;
  z-index: 2; /* Ensures the arrows are above other elements */
}

.prev {
  left: 5px; /* Stick to the left edge with a 5px gap */
}

.next {
  right: 5px; /* Stick to the right edge with a 5px gap */
}

.close {
  position: fixed; /* Fixed position for the close button */
  top: 5px; /* 5px gap from the top */
  right: 5px; /* 5px gap from the right */
  font-size: 30px; /* Responsive size */
  color: white;
  cursor: pointer;
  z-index: 3; /* Ensures it’s always on top */
  background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
  border-radius: 50%;
  padding: 5px 10px;
}

@media (max-width: 768px) {
  .prev,
  .next {
    font-size: 20px; /* Adjust size for smaller screens */
    padding: 8px;
  }

  .close {
    font-size: 24px; /* Adjust size for smaller screens */
    padding: 4px 8px;
  }
}

@media (max-width: 480px) {
  .prev,
  .next {
    font-size: 18px; /* Further size reduction for very small screens */
    padding: 6px;
  }

  .close {
    font-size: 20px; /* Further size reduction for very small screens */
    padding: 3px 6px;
  }
}

  .gallery-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }

  .gallery-item img {
    cursor: pointer;
    width: 100%;
    border-radius: 5px;
    transition: transform 0.2s ease-in-out;
  }

  .gallery-item img:hover {
    transform: scale(1.05);
  }



  /* Modal Overlay */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8); /* Semi-transparent background */
  display: none; /* Hidden by default */
  justify-content: center;
  align-items: center;
  z-index: 1000; /* Ensures it stays on top */
}

/* Modal Content */
.modal-content {
  max-height: 100vh; /* Fit to screen height */
  max-width: 100vw; /* Fit to screen width */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Modal Image */
.modal-content img {
  max-height: 100%; /* Image height fits the modal */
  max-width: 100%;  /* Image width fits the modal */
  object-fit: contain; /* Ensures the image is fully visible without being cut */
  margin: 0; /* No margin */
  display: block; /* Ensures proper layout */
}

/* Close Button */
.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: #fff;
  color: #333;
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  font-size: 20px;
  line-height: 28px;
  text-align: center;
  cursor: pointer;
  z-index: 1001;
}

/* Responsive Adjustments for Tablets (768px - 1024px) */
@media (max-width: 1024px) {
  .modal-content img {
      max-height: 95%; /* Adjusted height for tablets */
      max-width: 95%;  /* Adjusted width for tablets */
  }
}

/* Responsive Adjustments for Mobile Devices (480px - 768px) */
@media (max-width: 768px) {
  .modal-content img {
      max-height: 90%; /* Adjusted height for smaller screens */
      max-width: 90%;  /* Adjusted width for smaller screens */
  }
}

/* Responsive Adjustments for Very Small Devices (less than 480px) */
@media (max-width: 480px) {
  .modal-content img {
      max-height: 85%; /* Adjusted height for very small screens */
      max-width: 85%;  /* Adjusted width for very small screens */
  }
}

