.history-content {
    width: 100%;
    max-width: 1420px;
    margin: auto;
    padding: 30px 20px 50px;
    overflow-wrap: anywhere;
}

.history-content .sub-title {
    margin: 0 0 24px;
    font-size: clamp(2rem, 5vw, 3.5rem);
}

.history-content a {
    color: #183658;
    text-decoration: underline;
    text-underline-offset: .15em;
}

.history-content a:focus-visible,
.history-skip:focus-visible {
    outline: 3px solid #183658;
    outline-offset: 3px;
}

.history-skip {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 100000003;
    padding: 10px 16px;
    color: #183658;
    background: #fff;
    transform: translateY(calc(-100% - 8px));
}

.history-skip:focus {
    transform: none;
}

.history-collection,
.history-content .gallery {
    display: grid;
    gap: 20px;
}

.history-collection {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
}

.history-collection section {
    background: #edf0f3;
    border-top: 4px solid #3e9744;
    padding: 16px 20px 20px;
}

.history-collection .sub-heading {
    margin-top: 0;
    font-size: 1.35rem;
    font-weight: 500;
}

.history-collection ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.history-collection li {
    border-top: 1px solid #cfd7df;
}

.history-collection a {
    display: block;
    padding: 9px 0;
}

.history-archive > p,
.history-archive > ul {
    max-width: 82ch;
}

.history-archive h2 {
    margin-top: 28px;
}

.history-archive img {
    max-width: 100%;
    height: auto;
}

.history-content .gallery {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 20px 0 32px;
}

.history-content .gallery-columns-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.history-content .gallery-columns-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.history-content .gallery-item {
    min-width: 0;
    margin: 0;
    padding: 10px;
    background: #edf0f3;
}

.history-content .gallery-icon a {
    display: block;
}

.history-content .gallery-icon img {
    width: 100%;
    height: 170px;
    object-fit: contain;
}

.history-content .gallery-caption {
    margin: 8px 0 0;
    font-size: .9rem;
}

.history-content .gallery > br {
    display: none;
}

.history-content .attachment img {
    max-height: 75vh;
}

.history-content table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
}

.history-content td,
.history-content th {
    padding: 8px;
    border: 1px solid #cfd7df;
}

.history-content .file-type {
    display: inline-block;
    margin-left: .35em;
    font-size: .75em;
}

.history-page .glightbox-container {
    z-index: 100000002 !important;
}

@media (max-width: 760px) {
    .history-collection {
        grid-template-columns: 1fr;
    }

    .history-content .gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .history-content .gallery-icon img {
        height: 135px;
    }
}
