
.gallery {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    list-style-type: none;
    padding: 64px;
}

.thumbnail {
    border: solid 3px;
    border-color: rgb(255, 255, 255);
    border-radius: 15px;
    box-shadow: 0 0 40px 1px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    margin: 1rem;
    max-height: 200px;
    max-width: 300px;
    overflow: hidden;
    transform: scale(1);
    transition: transform 0.3s;
}
.thumbnail:hover {
    transform: scale(1.1)
}

.thumbnail img {
    height: 100%;
    object-fit: cover;
    width: 100%;

}

.popup1 {
    align-content: center;
    animation: fadeIn 0.3s;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    height: 100vh;
    left: 0;
    position: fixed;
    top: 0;
    width: 100vw;
}

.popup1.hidden {
    display: none;
}

.popup1.fade-out {
    animation: fadeOut 0.3s both;
}

.popup__img {
    max-height: 80%;
    max-width: 80%;
}

.popup1__close {
    background-color: transparent;
    border: none;
    color: rgb(255, 255, 255);
    font-size: 48px;
    opacity: 0.5;
    position: fixed;
    right: 64px;
    top: 64px;
    transition: opacity 0.3s;
}

.popup1__close:hover {
    opacity: 1;
}

.popup__arrow {
    background-color: rgb(255, 255, 255);  

    border-radius: 50%;
    border-width: 3px;   
    color: rgb(0, 0, 0); 
    cursor: pointer;
    font-size: 128px;
    height: 72px;
    line-height: 64px;
    opacity: 0.5;
    position: absolute;
    top: 50%;
    transition: opacity 0.3s;
    width: 72px;
}

.popup__arrow:hover {
    opacity: 1;
}

.popup__arrow--left {
    left: 5%;
}

.popup__arrow--right {
    right: 5%;
    padding-left: 5px;
}

@keyframes fadeIn {
    from {
        opacity:0;
    }
    to {
        opacity: 1;
    }
}


@keyframes fadeOut {
    from {
        opacity:1;
    }
    to {
        opacity: 0;
    }
}