/* Artwork presentation: restrained typography, generous rhythm, original image proportions. */
.cgw-page #content {
    display: block;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0;
}

/* Override GeneratePress's container margins with one centered collection wrapper. */
.cgw-page #content > .cgw-main {
    width: min(1180px, 100%);
    margin: 0 auto;
    padding: 70px clamp(18px, 5vw, 64px) 120px;
    color: var(--cgw-ink, #202020);
    box-sizing: border-box;
}
.cgw-heading{margin-bottom:90px}.cgw-heading h1{font-size:clamp(30px,4vw,48px);font-weight:400;letter-spacing:-.035em;line-height:1.18}
.cgw-grid{display:grid;grid-template-columns:minmax(0,1fr);row-gap:90px;align-items:start}
.cgw-card a{display:block;color:inherit;text-decoration:none}
.cgw-card img{display:block;width:100%;height:auto}.cgw-card h2{font-size:19px;font-weight:400;margin:22px 0 5px;line-height:1.4}.cgw-card p{font-size:14px;line-height:1.6;margin:0}
.cgw-card a:hover h2{text-decoration:underline;text-underline-offset:5px}.cgw-main a:focus-visible,.cgw-main button:focus-visible,.cgw-gallery:focus-visible{outline:2px solid #111;outline-offset:6px}
.cgw-empty{max-width:460px;font-size:20px;line-height:1.8;padding:60px 0 180px}.cgw-placeholder{min-height:220px;display:grid;place-items:center;padding:30px;border:1px solid #999;font-size:15px;text-align:center}
.cgw-back{display:inline-block;color:inherit;font-size:14px;text-decoration:none;margin-bottom:60px}.cgw-back:hover{text-decoration:underline}
.cgw-artwork{display:grid;grid-template-columns:minmax(0,1fr);gap:40px;align-items:start}.cgw-artwork-info h1{font-size:clamp(28px,3vw,38px);font-weight:400;letter-spacing:-.025em;line-height:1.2;margin:0 0 30px}.cgw-artwork-info dl{font-size:14px;margin:0 0 35px}.cgw-artwork-info dl>div{margin-bottom:15px}.cgw-artwork-info dt{font-size:12px;color:#555}.cgw-artwork-info dd{margin:2px 0 0}.cgw-description{font-size:16px;line-height:1.8}
.cgw-slide{margin:0 0 30px}.cgw-slide img{display:block;width:100%;height:auto;max-height:75vh;object-fit:contain;object-position:center top}.cgw-slide[hidden],.cgw-controls[hidden]{display:none!important}
.cgw-controls{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:24px}.cgw-controls button{width:48px;min-height:48px;padding:8px;border:1px solid #555;background:transparent;color:#111;font-size:24px;line-height:1;cursor:pointer}.cgw-controls button:hover{background:#111;color:white}.cgw-status{font-size:13px;letter-spacing:.04em}
@media(max-width:700px){.cgw-page #content > .cgw-main{padding-block:42px 75px}.cgw-heading{margin-bottom:48px}.cgw-grid{grid-template-columns:1fr;gap:60px}.cgw-card:nth-child(n){margin-top:0;max-width:none}.cgw-empty{font-size:18px;padding:20px 0 110px}.cgw-artwork{grid-template-columns:1fr;gap:40px}.cgw-back{margin-bottom:38px}.cgw-slide img{max-height:65vh}.cgw-artwork-info h1{margin-bottom:25px}}
@media(prefers-reduced-motion:reduce){.cgw-page *{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

.cgw-caption{max-width:65ch;margin:24px 0 0;font-size:16px;line-height:1.8}.cgw-caption h2{font-size:22px;font-weight:400;margin:0 0 12px}.cgw-caption p{white-space:pre-line}.cgw-artwork-info .cgw-description{max-width:65ch}

.cgw-main {
    --cgw-ink: #25221e;
    --cgw-muted: #514b42;
    --cgw-rule: #62584b55;
    --cgw-paper: rgb(255 253 248 / 93%);
    --cgw-card-paper: rgb(255 253 248 / 58%);
    --cgw-card-shadow: 0 2px 6px rgb(37 34 30 / 7%), 0 12px 28px rgb(37 34 30 / 10%);
    --cgw-panel-inset: clamp(20px, 3.5vw, 40px);
}

.cgw-detail :is(.cgw-artwork-info, .cgw-caption),
.cgw-exhibition-overview .cgw-listing-info {
    background: var(--cgw-card-paper);
    box-shadow: var(--cgw-card-shadow);
}

/* Match the detail layout on both language versions of the overview. */
.cgw-exhibition-overview .cgw-card > a {
    display: grid;
    gap: clamp(10px, 2vw, 24px);
    align-items: start;
}

.cgw-exhibition-overview .cgw-listing-info {
    padding: clamp(10px, 1.6vw, 18px);
    border: 1px solid var(--cgw-rule);
}

.cgw-exhibition-overview .cgw-card h2 {
    margin: 0 0 .35em;
    font-size: clamp(1.4rem, 3vw, 2.4rem);
    line-height: 1.1;
    letter-spacing: -.045em;
    overflow-wrap: anywhere;
}

.cgw-exhibition-overview .cgw-card p {
    color: var(--cgw-muted);
}

.cgw-detail .cgw-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 60px;
    height: 48px;
    margin-bottom: clamp(20px, 4vw, 48px);
    border: 1px solid var(--cgw-ink);
    border-radius: 8px;
    background: var(--cgw-ink);
    color: #fffdf8;
    font-size: 24px;
    line-height: 1;
    text-decoration: none;
}

.cgw-detail .cgw-back:hover {
    background: var(--cgw-paper);
    color: var(--cgw-ink);
}

.cgw-detail .cgw-artwork-info {
    padding: var(--cgw-panel-inset);
    border: 1px solid var(--cgw-rule);
}

.cgw-detail .cgw-artwork-info h1 {
    margin-bottom: .42em;
    font-size: clamp(2.35rem, 6vw, 5rem);
    line-height: 1.02;
    letter-spacing: -.055em;
    text-wrap: balance;
}

.cgw-detail .cgw-artwork-info dl {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 32px;
    margin: 0 0 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--cgw-rule);
}

.cgw-detail .cgw-artwork-info dl > div {
    margin: 0;
}

.cgw-detail .cgw-artwork-info dt,
.cgw-detail .cgw-status {
    color: var(--cgw-muted);
}

.cgw-detail .cgw-description {
    line-height: 1.7;
}

.cgw-detail .cgw-description blockquote {
    margin: 0 0 1.4em;
    padding: 0 0 0 1em;
    border-left: 1px solid var(--cgw-muted);
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    line-height: 1.55;
}

.cgw-detail .cgw-description blockquote p {
    margin-bottom: .45em;
}

.cgw-detail .cgw-description cite {
    color: var(--cgw-muted);
    font-size: .8em;
}

.cgw-detail .cgw-description > :last-child,
.cgw-detail .cgw-caption > :last-child {
    margin-bottom: 0;
}

/* Share the image's grid area with the controls so caption height never shifts the arrows. */
.cgw-detail .cgw-gallery:has(> .cgw-controls:not([hidden])) {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto;
}

.cgw-detail .cgw-gallery:has(> .cgw-controls:not([hidden])) > .cgw-slides,
.cgw-detail .cgw-gallery:has(> .cgw-controls:not([hidden])) .cgw-slide:not([hidden]) {
    display: grid;
    grid-area: 1 / 1 / 3 / -1;
    grid-template-columns: subgrid;
    grid-template-rows: subgrid;
    align-items: start;
}

.cgw-detail .cgw-controls {
    grid-area: 1 / 1;
    position: sticky;
    inset-block-start: 1rem;
    z-index: 1;
    align-self: center;
    margin: 0;
    padding-inline: clamp(8px, 1.8vw, 20px);
    pointer-events: none;
}

.cgw-detail .cgw-controls button {
    flex: 0 0 48px;
    box-sizing: border-box;
    border: 1px solid var(--cgw-rule);
    border-radius: 50%;
    background: var(--cgw-paper);
    box-shadow: var(--cgw-card-shadow);
    pointer-events: auto;
}

.cgw-detail .cgw-controls button:hover {
    background: var(--cgw-ink);
    color: white;
}

.cgw-detail .cgw-status {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.cgw-detail .cgw-slide {
    margin: 0;
}

/* Space consecutive visible photos in the gallery's no-script layout only. */
.cgw-detail .cgw-slide:not([hidden]) + .cgw-slide:not([hidden]) {
    margin-top: 24px;
}

.cgw-detail .cgw-slide img {
    width: 100%;
    max-height: none;
}

.cgw-detail .cgw-caption {
    max-width: none;
    margin: 0;
    padding: var(--cgw-panel-inset);
    border: 1px solid var(--cgw-rule);
    line-height: 1.6;
}

.cgw-detail .cgw-caption h2 {
    font-size: clamp(1.25rem, 2.5vw, 1.8rem);
    line-height: 1.2;
    letter-spacing: -.025em;
    text-wrap: balance;
}

@media (width > 700px) {
    .cgw-detail .cgw-artwork:not([data-cgw-exhibition]) .cgw-slide:has(> .cgw-caption) {
        grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr);
        gap: clamp(20px, 3vw, 40px);
        align-items: start;
    }

    .cgw-detail .cgw-artwork:not([data-cgw-exhibition]) .cgw-gallery:has(> .cgw-controls:not([hidden])):has(.cgw-slide:not([hidden]) > .cgw-caption) {
        grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr);
        grid-template-rows: auto minmax(0, 1fr);
        column-gap: clamp(20px, 3vw, 40px);
    }

    .cgw-detail .cgw-artwork:not([data-cgw-exhibition]) .cgw-gallery:has(> .cgw-controls:not([hidden])) .cgw-slide:not([hidden]) {
        gap: normal;
    }

    .cgw-detail .cgw-artwork:not([data-cgw-exhibition]) .cgw-gallery:has(> .cgw-controls:not([hidden])) .cgw-slide:not([hidden]) > .cgw-caption {
        grid-area: 1 / 2 / 3 / 3;
    }

    .cgw-detail .cgw-caption {
        overflow-wrap: anywhere;
    }
}

@media (max-width: 700px) {
    .cgw-detail .cgw-artwork {
        gap: 26px;
    }

}

.cgw-detail [data-cgw-exhibition] .cgw-caption {
    margin-top: 12px;
}

.cgw-detail .cgw-active-caption .cgw-caption {
    margin: 20px 0 0;
    padding: 20px 0 0;
    border: 0;
    border-top: 1px solid var(--cgw-rule);
    background: transparent;
    box-shadow: none;
}

.cgw-page #content > .cgw-exhibition-detail {
    padding-block-start: clamp(8px, 2vh, 24px);
}

.cgw-exhibition-detail .cgw-back {
    margin-bottom: 10px;
}

.cgw-exhibition-detail .cgw-artwork {
    gap: clamp(10px, 2vw, 24px);
}

.cgw-exhibition-detail .cgw-artwork-info {
    padding: clamp(10px, 1.6vw, 18px);
}

.cgw-exhibition-detail .cgw-slide img {
    width: auto;
    height: auto;
    max-width: 100%;
    margin-inline: auto;
}

.cgw-exhibition-detail .cgw-gallery:has(> .cgw-controls:not([hidden])) {
    --cgw-arrow-rail: clamp(54px, 7vw, 72px);
    align-content: start;
}

.cgw-exhibition-detail .cgw-gallery:has(> .cgw-controls:not([hidden])) .cgw-slide img {
    max-width: calc(100% - 2 * var(--cgw-arrow-rail));
}

.cgw-exhibition-detail .cgw-controls {
    padding-inline: 0;
}

.cgw-exhibition-detail .cgw-artwork-info h1 {
    font-size: clamp(1.4rem, 3vw, 2.4rem);
    margin-bottom: .35em;
}

.cgw-exhibition-detail .cgw-artwork-info dl {
    gap: 4px 16px;
    margin-bottom: 8px;
    padding-bottom: 8px;
}

.cgw-exhibition-detail .cgw-description summary {
    cursor: pointer;
    width: fit-content;
    text-decoration: underline;
    text-underline-offset: .2em;
}

.cgw-exhibition-detail .cgw-description[open] summary {
    margin-bottom: 16px;
}

.cgw-exhibition-detail .cgw-active-caption .cgw-caption {
    margin-top: 8px;
    padding-top: 8px;
    font-size: clamp(.8rem, 1.45vw, 1rem);
    line-height: 1.35;
}

.cgw-exhibition-detail .cgw-active-caption .cgw-caption h2 {
    margin-bottom: 6px;
    font-size: clamp(1.05rem, 2vw, 1.5rem);
}

.cgw-exhibition-detail .cgw-active-caption .cgw-caption p {
    margin-bottom: .45em;
}

.cgw-exhibition-detail .cgw-artwork[data-cgw-fit]:not(:has(details[open])) {
    grid-template-rows: auto minmax(100px, 1fr);
    height: max(320px, calc(100svh - var(--cgw-stage-top) - 12px));
    align-items: stretch;
}

.cgw-exhibition-detail .cgw-artwork[data-cgw-fit]:not(:has(details[open])) :is(.cgw-artwork-images, .cgw-gallery) {
    min-height: 0;
    height: 100%;
}

.cgw-exhibition-detail .cgw-artwork[data-cgw-fit]:not(:has(details[open])) .cgw-artwork-images {
    container-type: size;
}

.cgw-exhibition-detail .cgw-artwork[data-cgw-fit]:not(:has(details[open])) .cgw-slide img {
    max-height: 100cqh;
}

@media (width > 700px) {
    .cgw-exhibition-detail .cgw-artwork[data-cgw-fit] {
        grid-template-columns: minmax(0, 1fr) clamp(225px, 27vw, 315px);
        align-items: start;
    }

    .cgw-exhibition-detail .cgw-artwork[data-cgw-fit]:not(:has(details[open])) {
        grid-template-rows: minmax(0, 1fr);
    }

    .cgw-exhibition-detail .cgw-artwork[data-cgw-fit] .cgw-artwork-info {
        grid-area: 1 / 2;
        align-self: start;
    }

    .cgw-exhibition-detail .cgw-artwork[data-cgw-fit] .cgw-artwork-images {
        grid-area: 1 / 1;
    }

}

@media (max-width: 700px) {
    .cgw-page #content > :is(.cgw-exhibition-overview, .cgw-exhibition-detail) {
        padding-inline: 14px;
    }

    .cgw-exhibition-detail .cgw-artwork-info {
        grid-row: 2;
    }

    .cgw-exhibition-detail .cgw-artwork-images {
        grid-row: 1;
    }

    .cgw-exhibition-detail .cgw-artwork[data-cgw-fit]:not(:has(details[open])) {
        grid-template-rows: auto auto;
        height: auto;
    }

    .cgw-exhibition-detail .cgw-artwork[data-cgw-fit]:not(:has(details[open])) :is(.cgw-artwork-images, .cgw-gallery) {
        height: auto;
    }

    .cgw-exhibition-detail .cgw-artwork[data-cgw-fit]:not(:has(details[open])) .cgw-artwork-images {
        container-type: normal;
    }

    .cgw-exhibition-detail .cgw-artwork .cgw-slide img,
    .cgw-exhibition-detail .cgw-artwork[data-cgw-fit]:not(:has(details[open])) .cgw-slide img {
        width: 100%;
        max-height: none;
    }

    .cgw-exhibition-detail .cgw-gallery:has(> .cgw-controls:not([hidden])) {
        --cgw-arrow-rail: 0px;
    }

    .cgw-exhibition-detail .cgw-controls {
        padding-inline: 6px;
    }
}
