
.gallery {
    width: 90%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    grid-gap: 20px;
    justify-content: center;
    align-items: center;
    margin-bottom:30px;
}

/* Styling individual images */
.gallery-img {
    width: 100%;
    height: auto;
    cursor: pointer;
    transition: transform 0.2s;
}

/* Hover effect on images */
.gallery-img:hover {
    transform: scale(1.1);
    cursor: zoom-in;
}

/* Styling for the enlarged image popup */
.image-popup-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
}

/* Styling for the close button */
.close-button {
    position: absolute;
    top: 50px;
    right: 50px;
    font-size: 60px;
    color: #fff;
    cursor: pointer;
}

/* Hover effect on close button */
.close-button:hover {
    color: red;
}

/* Enlarged image styles */
#popupImage {
    display: block;
    max-width: 80%;
    max-height: 80%;
    margin: 0 auto;
    margin-top: 30px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Making images more responsive for smaller devices */
@media (max-width: 670px) {
    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        grid-gap: 10px;
    }

    .gallery-img {
        width: 100%;
        height: auto;
    }

}
