#gallery-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1em;
    margin: 0.5em 0;
}

.gallery-thumb {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 2;
    height: auto;
    cursor: pointer;
    background-color: rgb(216, 216, 216);
    border: 1px solid lightgray;
    border-radius: 0.4em;
    overflow: hidden;
    transition: 0.3s ease;
}

@media screen and (min-width: 500px) {
    .gallery-thumb {
        width: 32%;
    }
}

.gallery-thumb:hover {
    opacity: 0.8;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 0;
    border-radius: 0;
}

#gallery-screen {
    display: none;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    color: white;
    font-size: 0.8em;
    text-align: center;
}
#gallery-screen img {
    border: 5px solid white;
    max-width: 90vw;
    max-height: 90vh;
    cursor: pointer;
}
