.gallery-screen {
    position: absolute;
    width: 100%;
    height: 100%;

    display: flex;
    flex-direction: column;
}

.gallery-header {
    height: 100px;

    display: flex;
    justify-content: center;
    align-items: center;

    /* background-image: url("../images/texture.png"); 
    background-repeat: repeat;
    background-size: 64px;
    */
    background-color: rgba(68, 68, 68, 0.4);
    border-bottom: 4px solid #111;
}

#home-logo {
    height: 60px;
    max-height: min(20vh, 65px);
    max-width: min(80vw, 900px);
    cursor: pointer;
}

.gallery-container {
    flex: 1;
    overflow-y: auto;

    /*backdrop-filter: blur(4px);*/
    background-color: rgba(5, 5, 5, 0.8);
}

.gallery-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;

    padding: 4px;

    justify-items: center;
}

.gallery-item {
    display: flex;
    align-items: center;
    gap: 20px;

    width: 700px;

    padding: 15px;

    background: rgba(59, 59, 59, 0.8);

    border: 3px solid #111;
}

.gallery-item img {
    width: 200px;
    height: auto;
}

.gallery-info {
    display: flex;
    flex-direction: column;


}

.gallery-title {
    font-size: 25px;
}

.gallery-author {
    font-size: 20px;
    color: #aaa;
    padding-top: 10px;

}

.footer {
    height: 80px;

    /*
    background-image: url("../images/texture.png");
    background-repeat: repeat;
    background-size: 64px;
    */
    border-top: 4px solid #111;
    background-color: rgba(68, 68, 68, 0.4);
    flex-shrink: 0;
}

.footer button {
    padding-top: -20%;
}



.gallery-image {
    position: relative;

}

.gallery-tooltip {
    position: absolute;

    bottom: 10px;
    left: 50%;

    transform: translateX(-50%);

    background: rgba(0, 0, 0, 0.8);
    color: white;

    padding: 5px 10px;

    font-size: 17px;

    opacity: 0;
    transition: opacity 0.2s;

    pointer-events: none;
}

.gallery-image:hover .gallery-tooltip {
    opacity: 1;
}

.gallery-item img {
    cursor: pointer;
}


@media (max-width: 768px) {

    .gallery-item {
        flex-direction: column;

        width: 90%;

        text-align: center;
    }

    .gallery-item img {
        width: 100%;
        max-width: 350px;
    }

    .gallery-info {
        margin-top: 10px;
    }

    .gallery-tooltip {
        display: none;
    }

    .gallery-list {
        display: flex;
        flex-flow: column;

    }

    .gallery-container {
        -webkit-overflow-scrolling: touch;
    }



    .footer button {
        width: 5%;
        height: 5%;

    }

}