.history-article {
    max-width: 850px;
    margin: 0 auto;
    padding: 0 24px 64px;
    font-size: 18px;
    line-height: 1.8;
}

.history-article h2 {
    font-size: clamp(1.8rem,3vw,2.7rem);
    margin: 2.5rem 0 1rem;
    line-height: 1.2;
}

.history-article p {
    margin-bottom: 1.3rem;
}

.history-article a {
    color: var(--green2);
    text-decoration: underline;
}

.history-article figure {
    text-align: center;
    margin: 28px 0;
}

.history-article .photo {
    display: inline-block;
    padding: 0;
    border: 0;
    background: none;
    cursor: zoom-in;
    max-width: 100%;
}

.history-article .photo img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

.history-article .wide {
    width: 100%;
}

.history-article .thumb img {
    height: 210px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    float: left;
}

.history-article figcaption,
.history-caption {
    font-size: 14px;
    text-align: center;
    color: var(--muted);
}

#viewer {
    box-sizing: border-box;
    max-width: none;
    max-height: none;
    width: 100vw;
    height: 100dvh;
    border: 0;
    margin: 0;
    padding: 60px 16px 16px;
    background: #101613f5;
    color: white;
}

#viewer::backdrop {
    background: #000c;
}

#viewer img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

#close {
    position: absolute;
    right: 16px;
    top: 10px;
    font: 18px system-ui;
    padding: 8px 16px;
    cursor: pointer;
    border: 0;
    border-radius: 4px;
    background: white;
    color: #183028;
}

body.open {
    overflow: hidden;
}

.history-article button:focus-visible {
    outline: 3px solid var(--green2);
    outline-offset: 5px;
}

@media (max-width:600px){
    .history-article {
        font-size: 17px;
        padding-inline: 20px;
    }
}
