/* The photo archive keeps each photograph's original proportions. */
.all-photos-header {
    max-width: 760px;
    margin: 0 auto 40px;
    padding-top: clamp(40px, 5vw, 72px);
    text-align: center;
}

.all-photos-intro {
    display: block;
    color: var(--color-secondary-text);
    font-size: 1.5rem;
}

.all-photos-intro > * {
    margin: 16px 0 0;
}

.all-photos-batch {
    columns: 3;
    column-gap: 24px;
}

.all-photos-item {
    display: inline-block;
    width: 100%;
    margin: 0 0 28px;
    break-inside: avoid;
    vertical-align: top;
}

.all-photos-open {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    cursor: zoom-in;
}

.all-photos-open img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0;
    background: var(--color-border);
}

.all-photos-item figcaption {
    margin: 10px 0 0;
    padding: 0;
    color: var(--color-secondary-text);
    font: 400 1.2rem/1.5 var(--font-sans);
    text-align: left;
}

.all-photos-collection {
    color: inherit;
    overflow-wrap: anywhere;
    text-decoration: none;
}

.all-photos-collection:hover {
    color: var(--color-base);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.all-photos-controls,
.all-photos-noscript {
    margin: 16px 0 32px;
    text-align: center;
}

.all-photos-status,
.all-photos-noscript {
    color: var(--color-secondary-text);
    font: 400 1.3rem/1.6 var(--font-sans);
}

.all-photos-status {
    margin: 0 0 16px;
}

.all-photos-more {
    min-height: 44px;
    padding: 11px 22px;
    border: 1px solid var(--color-border);
    border-radius: 3px;
    background: transparent;
    color: var(--color-base);
    font: 500 1.3rem/1.5 var(--font-sans);
    cursor: pointer;
}

.all-photos-more:hover {
    border-color: var(--gallery-focus);
}

.all-photos-more:disabled {
    opacity: 0.6;
    cursor: wait;
}

/* The base theme hides PhotoSwipe captions; this viewer uses them for context. */
.pswp--all-photos .pswp__caption:not(.pswp__caption--fake) {
    display: block;
}

.pswp--all-photos .pswp__caption__center {
    color: #eee;
    font: 400 1.3rem/1.6 var(--font-sans);
    text-align: center;
}

.pswp--all-photos .pswp__caption__center a {
    display: inline-block;
    padding: 8px 0;
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.pswp--all-photos :focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

.all-photos-open:focus-visible,
.all-photos-collection:focus-visible,
.all-photos-more:focus-visible {
    outline: 2px solid var(--gallery-focus);
    outline-offset: 4px;
}

@media (max-width: 1000px) {
    .all-photos-batch {
        columns: 2;
        column-gap: 20px;
    }
}

@media (max-width: 600px) {
    .all-photos-batch {
        columns: 1;
    }

    .all-photos-header {
        margin-bottom: 28px;
    }
}
