#view-gallery main {
    padding: 70px 0px;
    padding-bottom: 0px;
}

#view-gallery main {
    width: 100%;

    display: flex;
    flex-direction: column;
    align-items: center;
}

#gallery-container {
    width: 100%;

    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    place-items: center;

    font-family: "Lexend";
}

.gallery-cell {
    width: 100%;
    height: 600px;

    background-size: cover;
    background-position: center;

    display: flex;
    flex-direction: column-reverse;
    align-items: center;

    font-size: 30px;
    color: white;
    font-weight: 700;

    cursor: pointer;
}

.gallery-cell.expanded {
    position: fixed;
    z-index: 2;
    cursor: default;
}

.gallery-cell .title {
    width: 100%;

    padding: 0.3em;

    background-color: rgba(0, 0, 0, 0.5);

    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.backdrop {
    background: rgba(0, 0, 0, 0.6);
    position: fixed;
    width: 100dvw;
    height: 100dvh;
    left: 0;
    top: 0;
    z-index: 1; /* So that it's above the navbar. */
}

.gallery-row {
    z-index: 2;
    display: flex;
    gap: 20px;
}

.gallery-row .image {
    width: 80px;
    height: 80px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    cursor: pointer;
}

@media (max-width: 600px) {
    #gallery-container {
        width: 100%;

        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: 1fr 1fr;
        place-items: center;

        font-family: "Lexend";
    }
}
