/* Isolated gallery study. Global fonts, colours, margins and grid columns are shared. */
[hidden]{display:none!important}
.gallery-review-label{position:fixed;bottom:0;left:0;max-width:100%;z-index:5;padding:.25rem .5rem;background:var(--paper);font-size:.6875rem;line-height:1.4;color:var(--muted);pointer-events:none}
.gallery-review{
 --gallery-name-size:.8125rem;--gallery-all-size:.8125rem;--gallery-count-size:.75rem;
 --gallery-search-size:.8125rem;--gallery-search-leading:1.615384615;--gallery-sort-size:.8125rem;--gallery-result-size:.8125rem;
 --gallery-caption-size:.8125rem;--gallery-caption-leading:1.125rem;
 --gallery-caption-meta-size:.8125rem;--gallery-caption-meta-leading:1.125rem;
 --gallery-index-meta-size:.9375rem;
}
/* Role scale: an entry point, quiet controls, then title/date. Weight stays 500.
   The baseline switch exists only in the separate typography comparison. */
html:not([data-gallery-type=baseline]) .gallery-review{
 --gallery-name-size:.875rem;--gallery-all-size:1rem;--gallery-search-size:1rem;--gallery-search-leading:1.5;
 --gallery-caption-meta-size:.75rem;--gallery-caption-meta-leading:1.0625rem;
 --gallery-index-meta-size:.8125rem;
}
body.current-design .gallery-review .catalogue-layout{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:var(--gutter)}
body.current-design .gallery-review .catalogue-filters{grid-column:1/span 2;position:sticky;top:6rem;align-self:start;max-height:calc(100svh - 7rem);overflow-y:auto;overscroll-behavior:contain;padding-right:.75rem}
body.current-design .gallery-review .catalogue-results{grid-column:3/-1;display:block;min-width:0;position:relative}
.gallery-period-nav{display:flex;flex-direction:column;align-items:flex-start}
.gallery-period-nav h2{font-size:.75rem;line-height:1.75;color:var(--muted);margin:1.5rem 0 .25rem}
body.current-design .gallery-review .gallery-period-nav a{min-height:2.75rem;display:flex;align-items:center;font-size:var(--gallery-name-size);line-height:1.615384615;color:var(--muted);text-decoration:none}
body.current-design .gallery-review .gallery-period-nav [data-gallery-count=all]{font-size:var(--gallery-all-size);line-height:var(--gallery-search-leading)}
.gallery-nav-label,.gallery-selected-value{display:inline-flex;align-items:baseline;gap:.25rem;min-width:0}
.gallery-count{font-size:var(--gallery-count-size);line-height:inherit;color:var(--muted);white-space:nowrap;text-decoration:none}
.gallery-item-name{color:inherit;overflow-wrap:anywhere}
body.current-design .gallery-review .gallery-period-nav a[aria-current]{color:var(--ink);text-decoration:none}
.gallery-period-nav a[aria-current] .gallery-item-name{ text-decoration:underline;text-underline-offset:.3em;text-decoration-thickness:1px }
.gallery-period-nav a:focus-visible{outline:1px solid var(--ink);outline-offset:3px}
.gallery-tools{display:flex;align-items:flex-end;gap:2rem;margin:0 0 .5rem;min-width:0}
.gallery-period-select,.gallery-search-toggle{display:none}
body.current-design .gallery-review .catalogue-search-area{width:100%;max-width:22.5rem;margin:0}
body.current-design .gallery-review .catalogue-search{margin:0;width:100%}
body.current-design .gallery-review .search-input-row{display:flex;align-items:center;gap:.625rem;min-height:2.75rem;border:0;border-bottom:1px solid #d9d8d3}
.gallery-review .search-input-row>svg{width:1.25rem;height:1.25rem;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.25}
body.current-design .catalogue-page.gallery-review .catalogue-results .search-input-row #catalogue-query{width:100%;min-width:0;min-height:2.75rem;border:0;background:transparent;padding:0;font:inherit;font-size:var(--gallery-search-size);line-height:var(--gallery-search-leading);color:var(--ink);outline-offset:3px}
body.current-design .gallery-review .catalogue-search-area .catalogue-search .search-icon-button{display:grid;place-items:center;flex:0 0 2.75rem;min-width:2.75rem;width:2.75rem;height:2.75rem;box-sizing:border-box;padding:.75rem;border:0;background:none}
.gallery-review .search-icon-button svg{width:1.25rem;height:1.25rem}
body.current-design .gallery-review .catalogue-sidebar-controls{display:flex;flex-flow:row nowrap;align-items:center;justify-content:flex-start;gap:1rem;min-width:0;padding:0;margin:0 0 1.5rem;border:0;min-height:2.75rem}
.gallery-results-summary{display:flex;align-items:center;justify-content:flex-start;gap:.75rem;flex:0 0 auto;white-space:nowrap}
body.current-design .gallery-review .results-count{flex:0 0 auto;font-size:var(--gallery-result-size);line-height:1.615384615;margin:0;color:var(--muted);white-space:nowrap}
.gallery-review .gallery-reset{position:static;display:inline-flex;align-items:center;min-height:2.75rem;font-size:.8125rem;line-height:1.615384615;color:var(--muted);margin:0;white-space:nowrap;text-underline-offset:.25em}
body.current-design .gallery-review .catalogue-sort{margin:0 0 0 auto;min-width:0;display:block;width:auto;flex:0 0 auto}
body.current-design .gallery-review .catalogue-sort label,body.current-design .gallery-review .sidebar-view-label{display:none}
body.current-design .gallery-review #catalogue-sort{width:auto;max-width:100%;min-height:2.75rem;padding:0 1.5rem 0 0;font-size:var(--gallery-sort-size);border:0;background-color:transparent}
body.current-design .gallery-review .catalogue-view{width:auto;margin:0;flex:0 0 auto}
body.current-design .gallery-review .view-options{display:flex;gap:.25rem}
body.current-design .gallery-review .view-options a{width:2.75rem;height:2.75rem;min-height:2.75rem;display:grid;place-items:center;padding:0;color:var(--muted)}
body.current-design .gallery-review .view-options [aria-current=true]{color:var(--ink)}
body.current-design .gallery-review .view-label{display:none}
.gallery-review .compact-view-icon{display:block;width:1.25rem;height:1.25rem;fill:none;stroke:currentColor;stroke-width:1.25}
body.current-design .gallery-review .works-grid{margin-top:0;align-items:start;grid-auto-flow:row;row-gap:1.5rem}
body.current-design .gallery-review .works-grid .art-card>.image-button{margin-bottom:.5rem}
body.current-design .gallery-review .art-caption{text-align:left}
body.current-design .gallery-review .art-caption h2{color:var(--ink);white-space:normal;overflow:visible;text-overflow:clip;-webkit-line-clamp:unset}
body.current-design .gallery-review .art-caption .art-medium{color:var(--muted)}
/* Photo numbers share the same target size at every viewport. Keep the type
   and image geometry unchanged; the existing rail handles long photo sets. */
body.current-design .record-content .work-photo-index button{width:2.75rem;min-width:2.75rem;min-height:2.75rem;flex:0 0 2.75rem}
body.current-design .gallery-review .thumbnail-fallback{font-size:.8125rem;line-height:1.384615385;font-weight:500;padding:.5rem}
body.current-design .gallery-review [data-catalogue-thumbnail]{position:relative}
body.current-design[data-catalogue-layout] .catalogue-page.gallery-review .works-grid:not(.list) [data-image-state=loading]>.thumbnail-fallback{position:absolute;inset:0;height:auto;aspect-ratio:auto}
body.current-design .record-content .work-visual>.image-button[data-image-state=error]{min-height:min(14rem,60svh);background:var(--soft);cursor:default}
.media-error-note{max-width:36ch;margin:0;padding:1rem;font-size:.8125rem;line-height:1.5;color:var(--muted);text-align:center}
body.current-design .gallery-load-failure{max-width:52ch;margin-inline:auto;padding-top:4rem}
.gallery-load-failure h1{font-size:1.25rem;line-height:1.4;font-weight:500;margin-bottom:1rem}
.gallery-load-failure p{font-size:1rem;line-height:1.65;margin-bottom:1rem}
.gallery-load-failure a{display:inline-flex;align-items:center;min-width:2.75rem;min-height:2.75rem;text-decoration:underline;text-underline-offset:.25em}
html[data-type-scale]:not([data-gallery-type=baseline]) body.current-design .catalogue-page.gallery-review .works-grid .art-caption h2{font-size:var(--gallery-caption-size);line-height:var(--gallery-caption-leading)}
html[data-type-scale]:not([data-gallery-type=baseline]) body.current-design .catalogue-page.gallery-review .works-grid .art-caption .art-medium{font-size:var(--gallery-caption-meta-size);line-height:var(--gallery-caption-meta-leading)}
html:not([data-gallery-type=baseline]) body.current-design .gallery-review .catalogue-index .index-meta{font-size:var(--gallery-index-meta-size)}
@media(max-width:1199px){
 .gallery-review{--gallery-name-size:.9375rem;--gallery-count-size:.8125rem;--gallery-search-size:1rem;--gallery-search-leading:1.5;--gallery-sort-size:.9375rem}
 html:not([data-gallery-type=baseline]) .gallery-review{
  --gallery-name-size:1.125rem;--gallery-search-size:1.0625rem;--gallery-result-size:.875rem;
  --gallery-caption-size:.875rem;--gallery-caption-leading:1.25rem;
  --gallery-caption-meta-size:.75rem;--gallery-caption-meta-leading:1.125rem;
 }
 body.current-design .gallery-review .catalogue-layout{display:block}
 body.current-design .gallery-review .catalogue-filters{display:none}
 .gallery-period-select{display:flex;flex-direction:column;min-width:0;flex:1;max-width:17rem;gap:.125rem}
 .gallery-field-label{font-size:.8125rem;line-height:1.5;color:var(--muted)}
 .gallery-select-control{display:flex;align-items:center;position:relative;min-height:2.75rem;border-bottom:1px solid #d9d8d3;box-sizing:border-box}
 .gallery-selected-value{font-size:var(--gallery-name-size);line-height:1.6;color:var(--ink);padding-right:1.5rem;pointer-events:none}
 .gallery-select-control:after{content:'';position:absolute;right:.25rem;top:calc(50% - .25rem);width:.375rem;height:.375rem;border-right:1px solid currentColor;border-bottom:1px solid currentColor;transform:rotate(45deg);pointer-events:none}
 .gallery-select-control select{position:absolute;inset:0;width:100%;height:100%;min-height:2.75rem;opacity:0;font:inherit;font-size:1rem;cursor:pointer;z-index:1}
 .gallery-select-control:focus-within{outline:1px solid var(--ink);outline-offset:3px}
 body.current-design .gallery-review .gallery-tools>.catalogue-search-area{flex:1;margin-left:auto;align-self:flex-end}
}
@media(max-width:767px){
 html:not([data-gallery-type=baseline]) .gallery-review{
  --gallery-name-size:1.0625rem;--gallery-search-size:1rem;--gallery-result-size:.8125rem;
  --gallery-caption-size:.8125rem;--gallery-caption-leading:1.125rem;
 }
 body.current-design .gallery-review{padding-top:1rem}
 .gallery-tools{gap:.75rem;flex-wrap:wrap;margin-bottom:.5rem}
 .gallery-period-select{flex:1;max-width:none}
 .gallery-field-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 .gallery-search-toggle{display:grid;place-items:center;width:2.75rem;height:2.75rem;flex:0 0 2.75rem;background:none;border:0;padding:.75rem;color:var(--ink)}
 .gallery-search-toggle svg{width:1.25rem;height:1.25rem}
 body.current-design .gallery-review .gallery-tools>.catalogue-search-area{display:none;order:3;flex:1 0 100%;max-width:none;margin:0}
 body.current-design .gallery-review [data-gallery-search-open=true] .gallery-tools>.catalogue-search-area{display:block}
 body.current-design .gallery-review .catalogue-sidebar-controls{gap:0 .5rem}
 body.current-design .gallery-review .catalogue-sort{margin-left:0;margin-right:auto}
 body.current-design .gallery-review .gallery-results-summary:not([hidden])+.catalogue-sort{margin-left:auto;margin-right:0}
 .gallery-review .catalogue-view .view-options{gap:0}
 body.current-design .gallery-review [data-summary-wrap]{flex-wrap:wrap}
 body.current-design .gallery-review [data-summary-wrap] .gallery-results-summary{flex:1 0 100%;min-height:2.75rem}
 body.current-design .gallery-review [data-summary-wrap] .gallery-results-summary:not([hidden])+.catalogue-sort{margin-left:0;margin-right:auto}
}
