.screenshots {
    display: flex;
    flex-flow: row wrap;
    justify-content: space-between;
}

.thumbnail {
    transition: transform 0.5s;
}

.thumbnail img {
    width: 200px;
}

.lightbox {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 99999;
    width: 100vw;
    height: 100vh;
    display: none;
    background: rgb(0 0 0 / 0.75);
}

.lightbox:has(:target) {
    display: block;
}

.magnified {
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
}

.magnified:target {
    display: flex;
    flex-flow: column;
    /*justify-content: center;*/
    align-items: stretch;
    gap: 0.5rem;
}

.magnified img {
    max-height: 70vh;
    max-width: 90vw;
}

.lightbox {
    color: var(--lightbox-text);
    font-size: 3em;
}

.lightbox a, .lightbox a:active, .lightbox a:visited {
    color: var(--lightbox-text);
    text-decoration: none;
}

.lightbox-nav {
    margin-top: 1rem;
}
#left-arrow { float: left; }
#right-arrow { float: right; }