.gallery_grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Create 3 equal columns */
    gap: 2rem; /* Add a gap of 2rem between rows and columns */
    
  }
  
  .gallery_grid img {
    width: 100%; /* Set the width of the images */
    height: 30rem; /* Set the height of the images */
    border-radius: 8px; /* Optional: Add rounded corners */
    object-fit: cover; /* Ensure images cover the grid cell */
    display: block; /* Ensure the image is treated as a block-level element */
    margin: auto; /* Center the image horizontally and vertically */
  }

  .gallery_grid img:hover {
    cursor: pointer; /* Change cursor to pointer on hover */
    transform: scale(1.05); /* Slightly enlarge the image on hover */
    transition: transform 0.3s ease; /* Smooth transition for the scaling effect */
  }

 /* Fullscreen overlay styles */
 .fullscreen-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.fullscreen-overlay img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    object-fit: contain;
}

.prev-button,
.next-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: white;
    font-size: 3rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 1000;
    user-select: none;
}

.prev-button {
    left: 3rem;
}

.next-button {
    right: 3rem;
}

.prev-button:hover,
.next-button:hover {
    color: #21E892;
}


