/* A page per photo (templates/content_catalog/photo_detail.html). Linked from the page's own
   content block so it travels with the hx-boost swap (docs/frontend.md §2). Phone first: the
   picture, then its text; side by side from 900px. Both themes through the tokens. */

.photo-page {
    padding: 1.2rem 0 3rem;
}

.photo-page__layout {
    display: grid;
    gap: 1.4rem;
}

.photo-page__layout > .breadcrumbs {
    grid-column: 1 / -1;
}

.photo-page__figure {
    margin: 0;
    text-align: center;
}

/* The picture opens the shared viewer for a closer look. Escapes the gold-pill button reset. */
.photo-page__open {
    display: inline-block;
    max-width: 100%;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    box-shadow: none;
    text-transform: none;
    letter-spacing: normal;
    line-height: 0;
    cursor: zoom-in;
}

.photo-page__open:hover,
.photo-page__open:focus-visible {
    background: none;
    box-shadow: none;
}

.photo-page__open:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.photo-page__img {
    display: block;
    max-width: 100%;
    max-height: 78vh;
    width: auto;
    height: auto;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.photo-page__text {
    max-width: var(--measure-reading);
}

.photo-page__title {
    margin: 0.3rem 0 0.8rem;
    color: var(--text-main);
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem);
    line-height: 1.15;
}

.photo-page__caption {
    color: var(--reading-text);
    font-family: var(--font-reading);
    font-size: 20px;
    line-height: 1.55;
}

.photo-page__credit {
    margin-top: 0.6rem;
    color: var(--text-muted);
    font-family: var(--font-ui);
    font-size: 16px;
}

.photo-page__block {
    margin-top: 1.4rem;
}

.photo-page__label {
    margin: 0 0 0.4rem;
    color: var(--text-muted);
    font-family: var(--font-ui);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.photo-page__list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
    font-family: var(--font-ui);
    font-size: 18px;
}

.photo-page__list a,
.photo-page__more a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--accent-text);
}

.photo-page__list--pages {
    flex-direction: column;
    gap: 0;
}

.photo-page__kind {
    margin-left: 0.4rem;
    color: var(--text-muted);
    font-size: 16px;
}

.photo-page__more {
    margin-top: 1.6rem;
    font-family: var(--font-ui);
    font-size: 18px;
}

@media (min-width: 900px) {
    .photo-page__layout {
        grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
        align-items: start;
        column-gap: 2.4rem;
    }

    .photo-page__caption {
        font-size: 22px;
    }

    .photo-page__list,
    .photo-page__more {
        font-size: 18px;
    }
}
