main figure {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    margin: 0.5rem auto;
}
main figure img {
    cursor: pointer;
}
/*.preload * {
    animation-duration: 0.001s !important;
    transition-duration: 0.001s !important;
}*/
.lightbox {
    align-items: center;
    background-color: var(--bg);
    display: flex;
    height: 100vh;
    justify-content: center;
    left: 0;
    opacity: 0;
    pointer-events: none;
    position: fixed;
    top: 0;
/*    transition: opacity 0.3s ease;*/
    width: 100vw;
    z-index: 9999;
}
.lightbox:target {
    opacity: 1;
    pointer-events: auto;
}
.lightbox-content {
    max-width: 85%;
    max-height: 85%;
    position: relative;
}
.lightbox-content img {
    border: none;
    display: block;
    height: auto;
    max-height: 85vh;
    pointer-events: none;
    user-select: none;
    width: 100%;
}
.lightbox-close-overlay {
    cursor: default;
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
}
.lightbox-close-btn {
    color: var(--fg);
    font-size: 2rem;
    font-weight: 300;
    line-height: 1;
    position: absolute;
    right: 30px;
    text-decoration: none;
    top: 20px;
    transition: color 0.2s;
    z-index: 10001;
}
.lightbox-close-btn:hover {
    color: #12182d;
}
.nav-arrow {
    color: var(--fg);
    font-size: 1.5rem;
    padding: 30px 20px;
    position: absolute;
    text-decoration: none;
    top: 50%;
    transform: translateY(-50%);
    transition: color 0.2s;
    user-select: none;
    z-index: 10001;
}
.nav-arrow:hover {
    color: #12182d;
}
.prev {
    left: 10px;
}
.next {
    right: 10px;
}
@media (max-width: 640px) {
    main figure {
        flex-wrap: wrap;
    }
    main figure a {
        width: calc(50% - 5px);
    }
    .lightbox-close-btn {
        top: 15px;
        right: 20px;
        font-size: 1.5rem;
    }
    .nav-arrow {
        font-size: 1.25rem;
        padding: 20px 10px;
    }
    .prev {
        left: 5px;
    }
    .next {
        right: 5px;
    }
}