#gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 1vw;
    justify-content: center;
    padding: 0px 0px 50px 0px;
}

#gallery .gallery-item {
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
    padding: 0px;
    border: 1px solid #333;
    border-radius: 5px;
    width: 20vw;
    height: 20vw;
    position: relative;
    overflow: hidden;
}

#gallery .gallery-item.highlight {
    border: double 2px transparent;
    border-radius: 8px;
    background-image: linear-gradient(white, white),
        linear-gradient(to right, #5BCEFA, #F5A9B8, white, #F5A9B8, #5BCEFA);
    background-origin: border-box;
    background-clip: content-box, border-box;
}

#gallery .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    vertical-align: top;
    border-radius: 5px;
    transition: transform 0.3s ease-in-out;
}

#gallery .gallery-item:hover img {
    transform: scale(1.05);
    cursor: pointer;
}

#gallery .gallery-item-description {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    border-radius: 0px 0px 5px 5px;
    padding: 5px 10px;
    opacity: 0;
    transition: opacity 0.5s;
    background-color: rgba(0, 0, 0, 0.8);
    text-align: left;
}

#gallery .gallery-item:hover .gallery-item-description {
    opacity: 1;
}

#gallery .gallery-item .gallery-item-description h3 {
    color: white;
    font-size: 1.2em;
    margin: 0;
}

#gallery .gallery-item .gallery-item-description .date {
    color: #d1bfbf;
    font-size: 0.7em;
    margin: 0;
}

#gallery .gallery-item .gallery-item-description p {
    color: white;
    font-size: 0.9em;
    margin: 0;
}

@media (max-width: 750px) {
    #gallery {
        padding: 0px 0px 25px 0px;
    }

    #gallery .gallery-item {
        width: 45vw;
        height: 45vw;
    }
}

@media (max-width: 480px) {
    #gallery {
        gap: 2vh;
    }

    #gallery .gallery-item {
        width: 90vw;
        height: 90vw;
    }
}