/* Gerhard Bär's static artist dossier shares the gallery's typography and shell. */
.baer-dossier .dossier-hero-copy { max-width: 58rem; }
.baer-dossier .dossier-content { min-width: 0; }
.baer-dossier figure { margin: 0; }
.baer-dossier .baer-profile { grid-template-columns: minmax(0, 1fr); }
.baer-profile .dossier-artist-image { aspect-ratio: auto; height: auto; object-fit: contain; }
.baer-profile .dossier-artist-image-wrap { width: 85%; max-width: 40rem; }
.baer-profile .dossier-artist-copy { max-width: 42rem; }
.baer-dossier .dossier-artist-copy p,
.baer-intro,
.baer-essay { font-size: .75rem; line-height: 1.65; }
.baer-dossier .baer-profile .dossier-artist-copy p:not(.eyebrow),
.baer-social-section { font-size: .66rem; line-height: 1.55; }
.baer-profile .dossier-artist-copy .eyebrow,
.baer-project-copy .eyebrow { font-size: .58rem; }
.baer-section-grid,
.baer-project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1rem; }
.baer-section-card { color: inherit; text-decoration: none; min-width: 0; }
.baer-section-image { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.baer-section-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.baer-section-label { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding-top: .8rem; }
.baer-section-label h3 { font-size: 1rem; font-weight: 400; margin: 0; }
.baer-section-label span { font-size: .8rem; }
.baer-section-card p,
.baer-project-figure figcaption { margin: .4rem 0 0; font-size: .6rem; line-height: 1.5; color: var(--gallery-soft); }
.baer-section-card:hover .baer-section-label h3 { text-decoration: underline; text-underline-offset: .2em; }
.baer-work-card { min-width: 0; scroll-margin-top: calc(var(--gallery-header-height, 4rem) + 1.5rem); }
.baer-image-link { display: block; color: inherit; text-decoration: none; }
.baer-work-card .dossier-work-media { position: relative; min-height: 0; aspect-ratio: 4 / 3; }
.baer-work-card .dossier-work-image { position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-height: none; object-fit: contain; }
.baer-work-copy { padding-top: .8rem; }
.baer-work-copy h3 { margin: 0 0 .4rem; font-size: .85rem; font-weight: 500; }
.baer-work-copy p { margin: .2rem 0; font-size: .63rem; line-height: 1.5; }
.baer-work-copy .baer-reference { font-size: .54rem; opacity: .6; }
.baer-card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin-top: .75rem; }
.baer-dossier button.programme-link { background: transparent; border: 0; padding: 0; font-family: inherit; text-align: left; }
.baer-light-toggle { display: none; }
.baer-interactive .baer-light-toggle { display: inline-block; }
.baer-project-figure { min-width: 0; }
.baer-project-figure img { display: block; width: 100%; height: auto; }
.baer-project-copy { margin-bottom: .5rem; }
.baer-essay { width: 100%; color: var(--gallery-ink); }
.baer-social-section { scroll-margin-top: calc(var(--gallery-header-height, 4rem) + 1.5rem); }
.baer-essay-header { display: grid; gap: .65rem; margin-bottom: 1.6rem; }
.baer-essay-header .eyebrow { margin: 0; }
.baer-essay-header h2 { margin: 0; font-size: 1.4rem; font-weight: 400; letter-spacing: -.02em; line-height: 1.2; }
.baer-essay > p { max-width: 66ch; margin: 0 0 1.4em; }
.baer-project-archive { --project-list-width: min(66ch, 55%); --project-photo-gap: clamp(12px, 2vw, 24px); position: relative; margin-top: 2.8rem; }
.baer-project-archive h3 { margin: 0; font-size: 1rem; font-weight: 400; scroll-margin-top: calc(var(--gallery-header-height, 4rem) + 1.5rem); }
.baer-project-archive h3 a { color: inherit; text-decoration: none; }
.baer-project-archive h3 a:hover { text-decoration: underline; text-underline-offset: .2em; }
.baer-project-locations { width: var(--project-list-width); margin: 1rem 0 0; padding: 0; list-style: none; }
.baer-project-locations li { display: grid; grid-template-columns: 5rem minmax(0, 1fr); gap: 1rem; padding: .65rem 0; border-bottom: 1px solid rgba(17,17,17,.08); font-size: inherit; line-height: inherit; }
.baer-project-year { color: var(--gallery-soft); font-variant-numeric: tabular-nums; }
.baer-project-preview { min-width: 0; }
.baer-project-title { display: inline-block; color: inherit; text-decoration: none; }
.baer-project-title:hover,
.baer-project-preview.is-active .baer-project-title { text-decoration: underline; text-underline-offset: .2em; }
.baer-project-photos { position: absolute; top: var(--project-preview-y, 0px); left: calc(var(--project-list-width) + var(--project-photo-gap)); width: min(420px, calc(100% - var(--project-list-width) - var(--project-photo-gap))); height: clamp(240px, 26vw, 330px); transform: translateY(-50%); visibility: hidden; pointer-events: none; }
.baer-project-photos img { position: absolute; display: block; width: auto; height: auto; max-width: min(128px, 33%); max-height: min(128px, 39%); opacity: 0; transform: translate3d(0, .35rem, 0); box-shadow: 0 8px 20px rgba(16,18,16,.06); transition: opacity 220ms ease, transform 220ms ease; }
.baer-project-photos img:nth-child(1) { left: 0; top: 8%; }
.baer-project-photos img:nth-child(2) { left: 34%; top: 0; }
.baer-project-photos img:nth-child(3) { left: 67%; top: 20%; }
.baer-project-photos img:nth-child(4) { left: 12%; top: 58%; }
.baer-project-photos img:nth-child(5) { left: 60%; top: 60%; }
.baer-project-photos:has(> img:last-child:nth-child(3)) img:nth-child(2) { left: 36%; top: 30%; }
.baer-project-photos:has(> img:last-child:nth-child(3)) img:nth-child(3) { left: 65%; top: 60%; }
.baer-project-preview.is-active .baer-project-photos { visibility: visible; }
.baer-project-preview.is-active img { opacity: 1; transform: translate3d(0, 0, 0); }
.baer-project-preview.is-active img:nth-child(2) { transition-delay: 35ms; }
.baer-project-preview.is-active img:nth-child(3) { transition-delay: 70ms; }
.baer-project-preview.is-active img:nth-child(4) { transition-delay: 105ms; }
.baer-project-preview.is-active img:nth-child(5) { transition-delay: 140ms; }
.baer-table-copy { margin-top: 1.8rem; font-size: .66rem; line-height: 1.55; }
.baer-table-gallery .baer-table-wide { grid-column: 1 / -1; }
.baer-table-bottom-actions { margin-top: 1.5rem; }
.baer-essay-source { margin-top: 2.5rem; font-size: .62rem; line-height: 1.6; color: var(--gallery-soft); }
.baer-essay-source a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.baer-essay-source a + a { display: block; margin-top: .5rem; }
.baer-intro { margin: 0; max-width: 40rem; }
.baer-work-index { border-block: 1px solid rgba(17, 17, 17, .12); padding: .85rem 0; }
.baer-work-index summary { font-size: .65rem; text-transform: uppercase; letter-spacing: .07em; cursor: pointer; }
.baer-work-index ol { list-style: none; padding: .8rem 0 0; margin: 0; columns: 2; column-gap: 2rem; }
.baer-work-index li { break-inside: avoid; }
.baer-work-index a { display: flex; justify-content: space-between; gap: .8rem; padding: .35rem 0; color: inherit; font-size: .63rem; text-decoration: none; border-bottom: 1px solid rgba(17,17,17,.06); }
.baer-work-index a:hover { text-decoration: underline; }
.baer-viewer { width: min(94vw, 90rem); max-width: 94vw; height: 92dvh; max-height: 92dvh; padding: 1.2rem; border: 0; background: #e9e9e4; color: #101210; }
.baer-viewer[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 1rem; }
.baer-viewer::backdrop { background: rgba(16,18,16,.8); }
.baer-viewer, .baer-viewer * { cursor: auto; }
.baer-viewer a, .baer-viewer button { cursor: pointer; }
.baer-viewer-head, .baer-viewer-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.baer-viewer-head h2 { margin: 0; font-size: 1rem; font-weight: 400; }
.baer-viewer button { border: 0; border-bottom: 1px solid currentColor; background: transparent; padding: .4rem 0; color: inherit; font: inherit; font-size: .65rem; }
.baer-viewer button:disabled { opacity: .3; cursor: default; }
.baer-viewer-stage { display: grid; min-width: 0; min-height: 0; }
/* The same grey matte surrounds the original, unaltered artwork in either light state. */
.baer-light-stage { background: #d3d3d1; }
.baer-light-stage img {
  -webkit-mask-image: var(--baer-light-mask);
  mask-image: var(--baer-light-mask);
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}
.baer-viewer-stage > .baer-art-crop { display: contents; }
/* One consistent matte and panel footprint for the additional single-view photographs. */
.baer-framed-stage { position: relative; container-type: size; overflow: hidden; background: #d3d3d1; }
.baer-framed-stage > .baer-art-crop {
  display: block; position: absolute; left: 50%; top: 50%;
  width: min(80.7cqw, calc(var(--baer-art-height) * var(--baer-art-ratio)));
  aspect-ratio: var(--baer-art-ratio); transform: translate(-50%, -50%);
  overflow: hidden; box-shadow: 0 .3rem .65rem rgba(16,18,16,.13);
}
.baer-framed-stage .baer-art-crop img {
  position: absolute; inset: auto; display: block;
  left: var(--baer-source-left); top: var(--baer-source-top);
  width: var(--baer-source-width); height: var(--baer-source-height);
  max-width: none; max-height: none; object-fit: fill;
}
.baer-viewer-photo { display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.baer-viewer-stage.has-source-photo { grid-template-columns: minmax(0, 1fr) minmax(8rem, 22%); gap: 1.2rem; }
.baer-viewer-source { align-self: end; margin: 0; min-width: 0; }
.baer-viewer-source[hidden] { display: none; }
.baer-viewer-source img { display: block; width: 100%; max-height: 25dvh; object-fit: contain; object-position: right bottom; }
.baer-viewer-source figcaption { margin-top: .5rem; font-size: .55rem; color: #62665f; text-align: right; }
.baer-viewer-meta { display: grid; gap: .4rem; }
.baer-viewer-meta p { margin: 0; font-size: .65rem; line-height: 1.5; }
.baer-viewer-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.baer-viewer-counter { font-size: .6rem; }
.baer-dossier :focus-visible { outline: 2px solid #316443; outline-offset: 5px; }
html:has(.baer-viewer[open]) { overflow: hidden; }
@media (min-width: 1440px) {
  .baer-dossier .baer-profile { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
}
@media (max-width: 960px) {
  .baer-dossier .dossier-content { padding: 0; }
  .baer-dossier .dossier-sidebar-inner { gap: .8rem; }
  .baer-dossier .dossier-artist-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4rem 1rem; }
}
@media (max-width: 600px) {
  .baer-project-locations li { grid-template-columns: 3.4rem minmax(0, 1fr); gap: .5rem; }
  .baer-project-photos { height: 220px; }
  .baer-project-photos img { max-width: min(88px, 47%); max-height: 96px; }
  .baer-project-photos img:nth-child(1) { left: 0; top: 0; }
  .baer-project-photos img:nth-child(2) { left: 53%; top: 8%; }
  .baer-project-photos img:nth-child(3) { left: 0; top: 45%; }
  .baer-project-photos img:nth-child(4) { left: 53%; top: 48%; }
  .baer-project-photos img:nth-child(5) { left: 25%; top: 76%; }
  .baer-project-photos:has(> img:last-child:nth-child(3)) img:nth-child(2) { left: 53%; top: 25%; }
  .baer-project-photos:has(> img:last-child:nth-child(3)) img:nth-child(3) { left: 15%; top: 60%; }
  .baer-section-grid, .baer-project-grid { grid-template-columns: 1fr; }
  .baer-dossier .dossier-artist-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .baer-dossier .dossier-artist-button { font-size: .6rem; letter-spacing: .04em; min-height: 2.5rem; align-items: center; }
  .baer-dossier .dossier-work-card { padding: 0 0 1.5rem; }
  .baer-work-index ol { columns: 1; }
  .baer-viewer { padding: 1rem; }
  .baer-viewer-stage.has-source-photo { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; gap: .7rem; }
  .baer-viewer-stage.has-source-photo > .baer-art-crop { display: block; min-height: 0; }
  .baer-viewer-source { justify-self: end; width: 34%; }
  .baer-viewer-source img { max-height: 15dvh; }
  .baer-viewer-foot { flex-direction: column; align-items: start; }
  .baer-viewer-controls { width: 100%; justify-content: space-between; }
}
@media (prefers-reduced-motion: reduce) {
  .baer-project-photos img { transition: none; transform: none; }
}
