.crp-page { width: min(1180px, 100%); margin-inline: auto; }
.crp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px 32px; align-items: end; }
.crp-archive { row-gap: 44px; }
.crp-card { min-width: 0; }
.crp-card a { display: block; color: inherit; text-decoration: none; }
/* Collection cards reuse the homepage caption rules verbatim.
   The extra rule only protects narrow cards with long location names. */
.crp-card-caption p { text-align: right; min-width: 0; overflow-wrap: anywhere; }
.crp-card img { display: block; width: auto; height: auto; max-width: 100%; max-height: 680px; margin-inline: auto; }
.crp-wide { grid-column: 1 / -1; }
.crp-image-link img { display: block; width: auto; height: auto; max-width: 100%; max-height: min(78svh, 1000px); margin-inline: auto; }
.crp-page nav { margin-block: 24px; display: flex; flex-wrap: wrap; gap: 16px; }
.crp-page a:focus-visible, .crp-page button:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.crp-viewer {
    position: fixed;
    inset: 0;
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    height: 100vh;
    height: 100dvh;
    max-height: none;
    margin: 0;
    border: 0;
    padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
    background: #fff;
    color: #111;
}
.crp-viewer[open] {
    display: grid;
    grid-template-rows: 44px minmax(0, 1fr);
    gap: 16px;
}
.crp-viewer:not([open]) { display: none; }
.crp-viewer::backdrop { background: #fff; }
.crp-viewer-controls {
    display: flex;
    justify-content: flex-end;
    min-width: 0;
    margin: 0;
}
.crp-viewer-controls button {
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #111;
    font: inherit;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}
.crp-viewer-controls button:focus-visible {
    outline: 2px solid #111;
    outline-offset: 2px;
}
.crp-viewer-stage {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 0;
}
.crp-viewer-stage img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    touch-action: auto;
}
html:has(.crp-viewer:modal) { overflow: hidden; }

/* Single Field Studies follow the existing Works detail-page rhythm. */
.crp-page.crp-single-page {
    width: 100%;
    max-width: var(--wp--style--global--wide-size, 1340px);
    margin-inline: auto;
    overflow-wrap: anywhere;
}
.crp-single-page .crp-image-link {
    display: block;
    width: fit-content;
    max-width: 100%;
    margin-inline: auto;
    line-height: 0;
    text-decoration: none;
    cursor: zoom-in;
}
.crp-single-page .crp-single-media img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    margin-inline: auto;
}
.crp-single-page .crp-single-details {
    max-width: var(--wp--style--global--content-size, 645px);
    margin-inline: auto;
}
.crp-single-page .crp-single-media + .crp-single-details {
    margin-top: clamp(40px, 4vw, 56px);
}
.crp-single-page h1 { margin: 0; }
.crp-single-page .crp-single-year {
    margin: 10px 0 0;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.5;
    color: #666;
}
.crp-single-page .crp-single-disclosure {
    margin-top: clamp(32px, 3vw, 40px);
}
.crp-single-disclosure > summary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    list-style: none;
    font-size: 15px;
    font-weight: 400;
    cursor: pointer;
}
.crp-single-disclosure > summary::-webkit-details-marker { display: none; }
.crp-single-disclosure > summary:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 4px;
}
.crp-single-minus,
.crp-single-disclosure[open] .crp-single-plus { display: none; }
.crp-single-disclosure[open] .crp-single-minus { display: inline; }
.crp-single-page .crp-single-meta {
    display: grid;
    grid-template-columns: minmax(0, 10rem) minmax(0, 1fr);
    column-gap: 24px;
    row-gap: 12px;
    margin: 12px 0 0;
}
.crp-single-page .crp-single-meta dt,
.crp-single-page .crp-single-meta dd {
    margin: 0;
    font-weight: 400;
}
.crp-single-page .crp-single-meta dd { white-space: pre-line; }
.crp-single-page .crp-study-navigation {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0;
    margin: clamp(56px, 6vw, 72px) 0 0;
}
.crp-study-navigation a {
    display: inline-flex;
    align-items: center;
    gap: .25em;
    min-height: 44px;
    white-space: nowrap;
}
.crp-study-navigation__previous { grid-column: 1; justify-self: start; }
.crp-study-navigation__next { grid-column: 2; justify-self: end; }
.crp-single-page .crp-single-archive-link { margin: 32px 0 0; }
.crp-single-page .crp-single-archive-link a { display: inline-flex; align-items: center; min-height: 44px; }

/* Works uses the Core mobile boundary at 599.98px. Keep single details identical
   without broadening the existing archive/grid breakpoint. */
@media (max-width: 599.98px) {
    .crp-page.crp-single-page { width: 100%; }
    .crp-single-page .crp-single-meta { grid-template-columns: minmax(0, 1fr); row-gap: 4px; }
    .crp-single-page .crp-single-meta dd + dt { margin-top: 16px; }
    .crp-single-page .crp-image-link img { max-height: none; }
}
@media (max-width: 599px) {
    .crp-page { width: calc(100vw - 40px); max-width: 100%; }
    .crp-grid { grid-template-columns: minmax(0, 1fr); row-gap: 40px; }
    .crp-image-link img { max-height: none; }
}


/* The curated homepage deliberately does not inherit archive grid rules. */
/* Match the 32px inline gutter of Works and Photography detail views. */
.crp-home { width: min(1180px, calc(100vw - 64px)); max-width: none; margin-inline: 0; position: relative; left: 50%; transform: translateX(-50%); }
.crp-home-heading h1 { margin-bottom: 0; font-weight: 400; }
.crp-home-heading p { margin-block: 6px 0; color: #767676; font-size: .8rem; }
/* The archive is primary navigation directly below the Photography heading, as on Works. */
.crp-home .crp-home-archive { margin: 26px 0 0; }
.crp-home-archive a { color: inherit; text-decoration: underline; }
.crp-home-archive a:hover { text-decoration: underline; }
.crp-home .crp-home-groups { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; border-block: 1px solid #e2e2e2; padding-block: 17px; margin-block: 30px 26px; }
.crp-home-groups a { color: inherit; text-decoration: none; }
.crp-home-groups a:hover, .crp-home-caption a:hover, .crp-home-back:hover { text-decoration: underline; }
.crp-home .crp-home-index { margin: 0; display: block !important; }
.crp-home-index h2 { font-weight: 400; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: #696969; margin-block: 0 14px; }
.crp-home-mosaic { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 8px; width: 100%; max-width: 760px; }
.crp-home-mosaic.crp-mosaic-ready { display: flex; flex-direction: column; gap: 10px; }
.crp-mosaic-row { display: flex; flex-wrap: nowrap; align-items: flex-start; justify-content: flex-start; min-width: 0; }
.crp-home-tile { display: block; min-width: 0; line-height: 0; text-decoration: none; }
.crp-home-tile img { display: block; width: 100%; height: auto; max-width: none; object-fit: contain; }
.crp-home-tile:hover img { opacity: .78; }
.crp-home-instruction { margin: 16px 0 66px; font-size: .8rem; color: #757575; }
.crp-home-sequence { display: block; }
.crp-home-study { margin: 0 auto 112px; max-width: 1050px; scroll-margin-top: 20px; }
.crp-home-counter { margin: 0 0 16px; font-size: .76rem; letter-spacing: .12em; color: #757575; }
.crp-home-image { width: 100%; }
.crp-home-image img { display: block; width: auto; height: auto; max-width: 100%; max-height: min(80svh, 950px); margin-inline: auto; object-fit: contain; }
.crp-home-caption { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 3px 20px; margin-top: 18px; font-size: .82rem; }
.crp-home-caption h2 { font-size: inherit; font-weight: 400; margin: 0; }
.crp-home-caption a { color: inherit; text-decoration: none; }
.crp-home-caption p { margin: 0; color: #757575; }
.crp-home-back { display: inline-block; margin-top: 14px; font-size: .78rem; color: #757575; text-decoration: none; }
/* Preserve the quiet transition to the global footer without duplicate archive links. */
.crp-home-end { border-top: 1px solid #dedede; margin-top: 32px; margin-bottom: 40px; }
.crp-home :is(a):focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
@media (max-width: 599px) {
    .crp-home { width: calc(100vw - 64px); max-width: 100%; }
    .crp-home-mosaic.crp-mosaic-ready { gap: 6px; }
    .crp-home .crp-home-groups { gap: 10px 12px; font-size: .85rem; }
    .crp-home-instruction { margin-bottom: 56px; }
    .crp-home-study { margin-bottom: 84px; }
    .crp-home-image img { max-height: 78svh; }
}
@media (prefers-reduced-motion: no-preference) {
    .crp-motion-ready .crp-home-study:not(.crp-is-visible) { opacity: 0; }
    .crp-motion-ready .crp-home-study { transition: opacity 380ms ease; }
    .crp-motion-ready .crp-home-study.crp-direct-target { opacity: 1 !important; transition: none; }
}

/* Archive filters: no JavaScript required. */
.crp-archive-filters { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:16px 32px; padding-block:16px; margin-block:28px 30px; border-block:1px solid #dedede; }
.crp-page .crp-archive-categories { display:flex; flex-wrap:wrap; align-items:center; gap:10px 23px; margin:0; }
.crp-archive-categories a { color:inherit; font-size:.88rem; text-decoration:none; }
.crp-archive-categories a:hover { text-decoration:underline; }
.crp-archive-categories a[aria-current="page"] { text-decoration:underline; text-underline-offset:5px; text-decoration-thickness:1px; }
.crp-archive-years { display:flex; align-items:center; flex-wrap:wrap; gap:8px; margin:0; font-size:.85rem; }
.crp-archive-years label { color:#666; }
.crp-archive-years select { max-width:100%; padding:6px 9px; border:1px solid #bfbfbf; border-radius:0; color:inherit; background:transparent; font:inherit; }
.crp-archive-years button { padding:6px 11px; border:1px solid currentColor; border-radius:0; color:inherit; background:transparent; cursor:pointer; font:inherit; }
.crp-archive-years button:hover { background:#f1f1f1; }
.crp-archive-years select:focus-visible { outline:2px solid currentColor; outline-offset:3px; }
@media (max-width:599px) { .crp-archive-filters { align-items:flex-start; gap:19px; margin-block:23px 26px; } .crp-page .crp-archive-categories { gap:10px 16px; } }
