.lightbox-overlay {
    display: none;
    position: fixed;
    z-index: 2000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.lightbox-overlay.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    background: white;
    padding: 15px;
    display: flex;
    flex-direction: row;
    max-height: 95vh;
    max-width: 95vw;
    overflow-y: scroll;
}

#lightbox-img {
    max-width: 70vw;
    max-height: 90vh;
}

#lightbox-text {
    padding-left: 20px;
    padding-right: 10px;
    width: 30vw;
    font-size: 12pt;
    white-space: pre-wrap;
}

.close-lightbox {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 20px;
    cursor: pointer;
}

@media (max-width: 768px) {
    .lightbox-content {
        flex-direction: column;
    }

    #lightbox-img {
        max-width: 100%;
        max-height: 80vh;
    }

    #lightbox-text {
        padding: 5px 0 0 0;
        width: 100%;
    }

    .close-lightbox {
        top: 2px;
        right: 5px;    
        font-size: 14px;
    }
}

.photo {
    border: 1px solid var(--ink-color);
    padding: 10px;
    background: white;
    box-shadow: 2px 2px 0 var(--ink-color);
    margin-top: 30pt;
    margin-bottom: 30pt;
}

.photo img {
    width: 100%;
    height: auto;
    display: block;
}

img.card {
    width: 15rem;
    display: block;
    margin: auto;
}

h1.card {
    text-align: center;
}

p.card {
    text-align: center;
    margin: auto;
    max-width: 100%;
}
