.gallery {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.thumbnail img {
    width: 240px;
    height: auto;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallerysmall .thumbnail img {
    width: 100px;
   
}


.thumbnail img:hover {
    transform: scale(1.05);
}

#popup {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.5s ease;
}

.popup-content {
    max-width: 90%;
    max-height: 90%;
    border: 3px solid white;
    animation: scaleIn 0.3s ease;
}

.close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.close:hover {
    color: #bbb;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from { transform: scale(0.8); }
    to { transform: scale(1); }
}
