@import url("menu.css");
.credited-image { position: relative; }
.image-credit-toggle {
    position: absolute;
    bottom: 8px;
    left: 8px;
    z-index: 2;
    width: 22px;
    height: 22px;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: transparent;
    text-shadow: 0 1px 4px #000;
    font-size: 22px;
    line-height: 1;
    padding: 0;
    cursor: pointer;
}
.image-credit-panel {
    position: absolute;
    bottom: 8px;
    left: 38px;
    z-index: 2;
    padding: 0;
    color: #fff;
    font-size: 14px;
    line-height: 1.5;
    text-shadow: 0 1px 4px #000, 0 0 8px rgba(0,0,0,0.8);
    overflow-wrap: anywhere;
}
.image-credit-panel[hidden] { display: none; }
* { box-sizing: border-box; }
body { max-width: 700px; margin: 2rem auto; padding: 0 1rem; background: #fff; color: #000; font: 18px/1.6 Georgia, serif; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.08em; }
a:hover { text-underline-offset: 0.2em; }
header { padding: 0 0 1rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 18px; }
header > a { font-weight: bold; text-decoration: none; }
nav { display: flex; flex-wrap: wrap; gap: 22px; }
nav a { text-decoration: none; }
nav a[aria-current] { text-decoration: underline; }
main { margin: auto; padding: 0 0 3rem; }
h1 { font-size: 2em; line-height: 1.3; font-weight: bold; margin: 2em 0 0.67em; border-bottom: 1px solid #000; padding-bottom: 0.2em; }
h2 { font-size: 1.25em; line-height: 1.35; margin: 14px 0 6px; border-bottom: 1px solid #000; padding-bottom: 0.2em; }
.intro { max-width: 680px; margin-bottom: 36px; }
.book-eyebrow { font-size: 0.85em; margin: 2rem 0 -1rem; color: #555; }
.grid article { scroll-margin-top: 6rem; }
.inline-gallery figure { margin: 0; }
.inline-gallery > figure { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 2rem) / 3); gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: 1rem 0; }
.inline-gallery > figure > figure { min-width: 0; scroll-snap-align: start; }
.inline-gallery > figure > figure img, .inline-gallery > figure > figure video { width: 100%; height: 260px; object-fit: contain; background: #fff; display: block; box-shadow: 0 8px 18px rgba(0,0,0,.09); }
@media(max-width:600px) { .inline-gallery > figure { grid-auto-columns: 82%; } }
.inline-gallery figure > img, .inline-gallery figure > video { display: block; width: 100%; height: 480px; object-fit: contain; background: #f6f6f6; }
.inline-gallery figcaption { font-size: 0.8em; line-height: 1.5; margin-top: 0.5rem; }
.exhibit-section { border-top: 1px solid #ccc; margin: 0; }
.exhibit-section:last-child { border-bottom: 1px solid #ccc; }
.exhibit-section summary { cursor: pointer; padding: 0.85rem 0; font-weight: 600; }
.exhibit-section summary { min-height: 44px; }
.gallery-thumbnails button { min-width: 44px; min-height: 44px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.section-body { padding: 0 0 1.25rem; }
.section-body p + p { margin-top: 0.85rem; }
button:focus-visible, summary:focus-visible, a:focus-visible { outline: 2px solid #176b59; outline-offset: 4px; }
@media(max-width:600px) { .inline-gallery figure > img, .inline-gallery figure > video { height: 360px; } }
.grid article { counter-increment: exhibit; }
.grid article::before { content: 'Plate ' counter(exhibit, decimal-leading-zero); display: block; font-size: 0.8em; color: #555; margin-bottom: 1rem; }
.exhibit-book { max-width: 1100px; }
.exhibit-book main { padding: 2rem clamp(1rem, 4%, 3rem); border-left: 1px solid #ddd; border-right: 1px solid #ddd; box-shadow: 6px 0 0 #f4f4f4, 7px 0 0 #ddd; }
.exhibit-book #media { margin: 2rem 0 3rem; }
.exhibit-book figure { margin: 0; }
.exhibit-book .project-media { margin: 0; width: 100%; height: 65vh; max-height: 650px; object-fit: contain; background: #f6f6f6; }
.exhibit-book figcaption { font-size: 0.8em; margin: 0.5rem 0; }
.gallery-controls { display: flex; justify-content: space-between; align-items: center; padding: 0.7rem 0; border-bottom: 1px solid #ccc; }
.gallery-controls button { border: 1px solid #aaa; background: #fff; font-size: 1.2rem; width: 44px; height: 40px; cursor: pointer; }
.gallery-thumbnails { display: flex; gap: 0.75rem; overflow-x: auto; padding: 1rem 0; }
.gallery-thumbnails button { flex: 0 0 82px; height: 65px; background: #fff; border: 1px solid #ccc; padding: 3px; cursor: pointer; }
.gallery-thumbnails button[aria-pressed="true"] { border: 2px solid #111; }
.gallery-thumbnails img { width: 100%; height: 100%; object-fit: contain; }
.exhibit-book .prose, .exhibit-book main > section { max-width: 700px; margin: 2rem auto; }
@media(prefers-reduced-motion:no-preference) { .exhibit-book main { animation: open-book 0.45s ease-out; transform-origin: left center; } @keyframes open-book { from { opacity: 0; transform: perspective(1600px) rotateY(-5deg); } to { opacity: 1; transform: none; } } }
.grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3rem; }
.grid article { padding-bottom: 2.5rem; border-bottom: 1px solid #bbb; }
.grid article h2 { font-size: 1.5em; border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.catalogue-medium { font-style: normal; color: #444; }
.catalogue-details { margin: 1.25rem 0; padding: 0.9rem 0; border-top: 1px solid #ddd; border-bottom: 1px solid #ddd; display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem 1.5rem; font-size: 0.88em; line-height: 1.5; }
.catalogue-details div { min-width: 0; }
.catalogue-details dt { font-size: 0.85em; color: #555; margin-bottom: 0.15rem; }
.catalogue-details dd { margin: 0; overflow-wrap: anywhere; }
.catalogue-details a { text-decoration-thickness: 1px; }
@media(max-width:480px) { .catalogue-details { grid-template-columns: 1fr; gap: 0.65rem; } }
.exhibit-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; align-items: center; }
.exhibit-pair a { display: block; min-width: 0; }
.exhibit-pair figure { margin: 0; min-width: 0; align-self: start; }
.exhibit-pair figcaption, .media-credit { font-size: 0.8em; line-height: 1.45; color: #444; margin-top: 0.5rem; }
.exhibit-pair figcaption { padding-top: 0.35rem; border-top: 1px solid #ddd; min-height: 3.5em; text-align: left; }
.credit-label { font-weight: bold; }
.standalone-project { scroll-margin-top: 6rem; margin: 2rem 0 3rem; }
.credit-table { overflow-x: auto; }
.credit-table table { width: 100%; border-collapse: collapse; font-size: 0.85em; }
.credit-table th, .credit-table td { padding: 0.6rem; border-bottom: 1px solid #ddd; text-align: left; vertical-align: top; }
.exhibit-pair .magazine-photo { object-position: 20% center; }
.exhibit-pair .exhibition-poster { object-fit: contain; background: #fff; }
.exhibit-pair img, .exhibit-pair video { width: 100%; height: auto; aspect-ratio: 210 / 297; object-fit: cover; object-position: center; display: block; background: #fff; }
article { min-width: 0; }
article > a { display: block; text-decoration: none; }
article img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; background: #eee; }
article p { margin: 6px 0; }
.exhibit-detail-link { padding-top: 0.6rem; font-weight: bold; }
.meta { color: #333; font-size: 0.9em; }
.project-media { width: 100%; max-height: 650px; object-fit: contain; background: #f2f2f2; display: block; margin: 28px 0; }
.prose { max-width: 720px; }
footer { border-top: 1px solid #000; padding: 1rem 0; font-size: 0.9em; }
@media(max-width:720px) { body { margin: 1.2rem auto; font-size: 17px; line-height: 1.55; } }
@media(max-width:600px) { .grid { grid-template-columns: 1fr; } }
.inline-gallery > figure, .inline-gallery > figure.gallery-track { gap: 0.6rem; align-items: flex-start; }
.inline-gallery > figure > figure, .gallery-track > figure, .gallery-track > figure.portrait-media { flex: 0 0 auto; width: auto; max-width: 100%; }
.inline-gallery > figure > figure img,
.inline-gallery > figure > figure video,
.inline-gallery > figure.gallery-track > figure img,
.inline-gallery > figure.gallery-track > figure video {
    height: 300px;
    width: auto;
    max-width: 100%;
    aspect-ratio: auto;
    object-fit: contain;
}
.gallery-enlarge { width: auto; max-width: 100%; }
.gallery-track > figure { position: relative; }
.inline-gallery figcaption { max-width: 38ch; }
.gallery-track iframe { height: 300px; width: 169px; aspect-ratio: 9 / 16; }
@media(max-width:600px) {
    .inline-gallery > figure > figure img, .inline-gallery > figure > figure video,
    .inline-gallery > figure.gallery-track > figure img, .inline-gallery > figure.gallery-track > figure video { height: 230px; }
    .gallery-track iframe { height: 230px; width: 130px; }
}

/* Gallery rails keep the artwork intact and reveal the next frame. */
body:has(.grid) { max-width: 1080px; }
.grid article > p, .grid article > dl, .grid article > details { max-width: none; width: 100%; }
.inline-gallery > figure.gallery-track { position: relative; display: flex; gap: 1.5rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: #497765 #eee; padding: 1.2rem 0 1.6rem; }
.gallery-track > figure { flex: 0 0 43%; min-width: 0; scroll-snap-align: start; }
.inline-gallery > figure.gallery-track > figure img, .inline-gallery > figure.gallery-track > figure video { height: 370px; aspect-ratio: auto; object-fit: contain; background: #f7f7f7; box-shadow: none; }
.gallery-enlarge { width: 100%; display: block; border: 0; padding: 0; background: transparent; cursor: zoom-in; }
.gallery-track figcaption { font-size: 0.78em; line-height: 1.5; padding-top: 0.6rem; }
.gallery-controls button { border-radius: 50%; border-color: #b8c7c0; color: #215c46; }
.gallery-controls button:hover { background: #e9f0ec; }
.gallery-lightbox { width: min(1100px, 94vw); max-height: 94vh; border: 0; padding: 2.8rem 1rem 1rem; }
.gallery-lightbox::backdrop { background: rgba(10,20,15,.8); }
.gallery-lightbox > img { width: 100%; height: 73vh; aspect-ratio: auto; object-fit: contain; background: #fff; }
.gallery-lightbox > button { position: absolute; right: 0.7rem; top: 0.4rem; width: 44px; height: 44px; border: 0; background: #fff; font-size: 1.8rem; cursor: pointer; }
.gallery-lightbox p { font-size: 0.85em; }
@media(max-width:600px) { .gallery-track > figure { flex-basis: 83%; } .inline-gallery > figure.gallery-track > figure img, .inline-gallery > figure.gallery-track > figure video { height: 330px; } }

/* Unframed gallery: preserve each photograph's native proportions. */
.inline-gallery > figure,
.inline-gallery > figure.gallery-track {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 1rem 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}
.inline-gallery > figure > figure,
.gallery-track > figure {
    flex: 0 0 calc((100% - 1.5rem) / 2);
    min-width: 0;
    scroll-snap-align: start;
}
.inline-gallery > figure > figure img,
.inline-gallery > figure > figure video,
.inline-gallery > figure.gallery-track > figure img,
.inline-gallery > figure.gallery-track > figure video {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}
.inline-gallery figcaption,
.gallery-track figcaption {
    font-size: 0.75em;
    line-height: 1.45;
    color: #666;
    padding-top: 0.5rem;
    margin: 0;
    border: 0;
}
.gallery-enlarge { background: transparent; }
.media-tabs { display: flex; gap: 1.5rem; border-bottom: 1px solid #bdc7c1; margin: 1rem 0; }
.media-tabs button { border: 0; border-bottom: 2px solid transparent; background: transparent; padding: 0.65rem 0; font-size: 1rem; cursor: pointer; color: #555; }
.media-tabs button[aria-selected="true"] { color: #183f30; border-bottom-color: #183f30; font-weight: 600; }
.project-media-tabs [hidden] { display: none !important; }
.primary-media > figure { margin: 0; }
.primary-media { width: 100%; margin: 1rem auto; }
.primary-media-row { display: flex; gap: 0.5rem; align-items: center; justify-content: center; }
.primary-media-row > figure { flex: 1; min-width: 0; margin: 0; display: flex; justify-content: center; }
.primary-media-row > figure > a { display: block; width: 100%; }
.primary-media-row img { object-position: center; }
.primary-credit { font-size: 0.75em; color: #666; line-height: 1.5; margin: 0.6rem 0 1rem; text-align: center; }
.primary-media img, .primary-media video { display: block; width: 100%; height: 420px; aspect-ratio: auto; object-fit: contain; background: transparent; }
.primary-media .gallery-enlarge { width: 100%; }
#wherever-i-go .primary-media video {
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    max-height: 605px;
    object-fit: contain;
}
#wherever-i-go .primary-media-row > figure:has(video) { flex: 1.44; }
#wherever-i-go .inline-gallery video {
    width: auto;
    max-width: 100%;
    aspect-ratio: auto;
    object-fit: contain;
}
.primary-media figcaption { font-size: 0.75em; color: #666; margin: 0.5rem 0 1rem; }
@media(max-width:600px) { .primary-media img, .primary-media video { height: 300px; } }
.gallery-scrollbar { display: flex; align-items: center; gap: 0.7rem; margin: 0.6rem 0 1rem; padding: 0.2rem; border-top: 1px solid #bbc6c0; border-bottom: 1px solid #bbc6c0; }
.gallery-scrollbar button { width: 44px; height: 44px; flex-shrink: 0; border: 0; background: transparent; color: #244c3c; font-size: 1.5rem; cursor: pointer; }
.gallery-scrollbar button:disabled { opacity: 0.3; cursor: default; }
.gallery-scrollbar input { flex: 1; min-width: 0; height: 44px; accent-color: #37654f; cursor: ew-resize; }
.inline-gallery .gallery-controls,
.inline-gallery .gallery-thumbnails { display: none; }
.inline-gallery > figure,
.inline-gallery > figure.gallery-track {
    overflow-x: auto;
    scrollbar-width: none;
    scrollbar-color: #888 #e5e5e5;
    padding-bottom: 1rem;
}
.inline-gallery > figure::-webkit-scrollbar { display: none; height: 0; }
.inline-gallery > figure::-webkit-scrollbar-track { background: #e5e5e5; border-radius: 5px; }
.inline-gallery > figure::-webkit-scrollbar-thumb { background: #888; border-radius: 5px; }
.inline-gallery > figure::-webkit-scrollbar-thumb:hover { background: #555; }
.grid article::before { content: none; display: none; }
.grid article > a:first-child h2 { margin: 0 0 0.25rem; }
.grid article > .catalogue-medium { margin: 0 0 1.1rem; }
.grid { gap: 2.5rem; }
.grid > article,
main > .standalone-project {
    padding: 2rem;
    margin: 0;
    border: 0;
    background: #f0f5f3;
}
.grid > article:nth-child(even) { background: #f2f3f8; }
main > .standalone-project { margin-top: 2.5rem; background: #f5f1f4; }
.grid > article .inline-gallery,
.grid > article .gallery-enlarge { background: transparent; }
@media(max-width:600px) {
    .grid > article, main > .standalone-project { padding: 1.25rem 0.85rem; }
}
.gallery-track iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; }
.gallery-track > figure.portrait-media { flex-basis: calc((100% - 3rem) / 3); }
@media(max-width:600px) { .gallery-track > figure.portrait-media { flex-basis: calc((100% - 1.5rem) / 2); } }
.inline-gallery > figure > figure img,
.inline-gallery > figure > figure video,
.inline-gallery > figure.gallery-track > figure img,
.inline-gallery > figure.gallery-track > figure video {
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
}
.inline-gallery > figure.gallery-track { gap: 0.6rem; }
.inline-gallery > figure.gallery-track > figure { flex: 0 0 auto; width: auto; max-width: 100%; }
.inline-gallery > figure.gallery-track > figure img,
.inline-gallery > figure.gallery-track > figure video {
    height: 300px;
    width: auto;
    aspect-ratio: auto;
    max-width: 100%;
}
.gallery-track iframe { height: 300px; width: 169px; aspect-ratio: 9 / 16; }
@media(max-width:600px) {
    .inline-gallery > figure.gallery-track > figure img,
    .inline-gallery > figure.gallery-track > figure video { height: 230px; }
    .gallery-track iframe { height: 230px; width: 130px; }
}
.series-work {
    display: grid;
    grid-template-columns: minmax(100px, 160px) minmax(0, 1fr);
    align-items: start;
    gap: 24px;
    margin: 24px 0 32px;
}
.series-work > figure { margin: 0; min-width: 0; }
.series-work > figure img {
    display: block;
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
}
.series-work-copy h3 { margin-top: 0; }
.series-work figcaption { font-size: 12px; color: #707070; margin-top: 6px; }
@media (max-width: 480px) {
    .series-work { grid-template-columns: 90px minmax(0, 1fr); gap: 14px; }
}
.project-index { display: block; margin: 0 0 1.5rem; }
.project-index > h2 { font-size: 1.1rem; border: 0; margin-bottom: 20px; }
.project-index-track {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
    overflow: visible;
    padding: 8px 6px 18px;
    scrollbar-color: #648078 #e5ece9;
    scrollbar-width: auto;
}
.project-index-track > a {
    flex: 0 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    justify-content: center;
    min-height: 44px;
    max-width: 100%;
    padding: 10px 20px;
    border: 1px solid rgba(75, 111, 99, 0.25);
    border-radius: 999px;
    background: rgba(236, 246, 241, 0.55);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(35, 65, 54, 0.07);
    text-align: center;
    font-size: 0.95rem;
    line-height: 1.4;
    transition: transform 180ms ease, background-color 180ms ease;
}
.project-index-track > a:hover { transform: translateY(-3px); background: rgba(219, 239, 229, 0.8); }
.project-index-track { gap: 6px; justify-content: flex-start; }
.project-index-track > a {
    display: inline-block;
    padding: 0.05rem 0.5rem;
    border: 1px solid #000;
    border-radius: 999px;
    background: var(--project-colour, #f7f7f7);
    box-shadow: 0 1px 0 #000;
    backdrop-filter: none;
    color: #000;
    font-size: 1rem;
    min-height: 44px;
    align-content: center;
}
.project-index-track > a:hover {
    background: var(--project-colour, #fff);
    transform: translateY(-2px);
    box-shadow: 0 3px 0 #000;
}
.project-index-track > a:active { transform: none; box-shadow: 0 1px 0 #000; }
@media (prefers-reduced-motion: reduce) {
    .project-index-track > a { transition: none; }
    .project-index-track > a:hover { transform: none; }
}
.project-index-track img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    border-radius: 0;
    object-fit: cover;
    object-position: center;
    background: transparent;
    transition: transform 180ms ease;
}
.project-index-name { font-size: 0.95rem; line-height: 1.3; margin-top: 12px; }
.project-index-medium { font-size: 0.75rem; line-height: 1.4; color: #626b67; margin-top: 5px; }
.project-index-track a:hover img,
.project-index-track a:focus-visible img { transform: translateY(-5px); }
.project-index-track a:focus-visible { outline: 2px solid #176b59; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
    .project-index-track img { transition: none; }
    .project-index-track a:hover img,
    .project-index-track a:focus-visible img { transform: none; }
}
