:root {
  font-family: Arial, Helvetica, sans-serif;
  color: #181818;
  background: #fff;
  font-synthesis: none;
  line-height: 1.5;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
body:has(dialog[open]) { overflow: hidden; }
main { flex: 1; }
.wrap { width: min(970px, calc(100% - 48px)); margin-inline: auto; }
a { color: inherit; text-underline-offset: .2em; }
a:hover { color: #545454; }
img { display: block; max-width: 100%; }
h1, h2, p, address { margin: 0; }
button { font: inherit; cursor: pointer; color: inherit; }
:focus-visible { outline: 2px solid #234f8d; outline-offset: 4px; }
.skip { position: absolute; z-index: 1; top: 12px; left: 12px; padding: 8px 14px; background: #fff; transform: translateY(-160%); }
.skip:focus { transform: none; }

.header { position: relative; text-align: center; padding-top: 24px; }
.logo { display: block; width: 169px; margin-inline: auto; }
.logo img { width: 100%; height: auto; }
.navigation { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 19px; margin-top: 6px; }
.navigation a { display: inline-flex; align-items: center; min-height: 44px; font-size: .86rem; white-space: nowrap; text-decoration: none; }
.navigation a:hover, .navigation [aria-current="page"] { text-decoration: underline; }
.instagram-icon { position: absolute; right: 44px; bottom: 0; display: grid; place-items: center; width: 44px; height: 44px; }
.instagram-icon svg { width: 19px; height: 19px; }
.footer { text-align: center; padding-block: 56px 26px; font-size: .8rem; color: #565656; }
.page-title { margin: 27px 0 24px; font-size: 1.12rem; font-weight: 400; text-align: center; text-transform: uppercase; }

.exhibitions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 46px clamp(18px, 3.1vw, 39px); }
.exhibition { min-width: 0; }
.poster, .lesson-slide, .installation-photo { display: block; cursor: zoom-in; }
.poster img, .installation-photo img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; background: #f2f2f2; }
.exhibition-copy { padding: 15px 8px 0; }
.exhibition h2 { font-size: 1.33rem; line-height: 1.18; }
.byline { margin-top: 6px; font-size: .93rem; }
.date { margin-top: 7px; color: #555; font-size: .84rem; }
.credits { margin-top: 8px; color: #3d3d3d; font-size: .94rem; line-height: 1.4; }
.exhibition .credits:not(.credits--full) { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.related { display: inline-block; margin-top: 10px; font-size: .94rem; }

.lesson-title { text-transform: none; }
.lesson-intro { margin: 28px auto; text-align: center; }
.lesson-gallery { width: min(100%, 364px); margin-inline: auto; }
.lesson-slide img { width: 100%; height: auto; aspect-ratio: 364 / 509; object-fit: cover; background: #f2f2f2; }
.lesson-slide + .lesson-slide { margin-top: 10px; }
.lesson-slide[hidden] + .lesson-slide { margin-top: 0; }
.carousel-controls { display: flex; justify-content: center; align-items: center; gap: 20px; margin-top: 10px; }
.carousel-controls button { background: #fff; border: 1px solid #767676; width: 44px; height: 44px; font-size: 1.25rem; }
.carousel-controls button:hover { background: #eee; }
.carousel-controls span { min-width: 58px; text-align: center; font-variant-numeric: tabular-nums; }
.lesson-contact { margin-top: 26px; text-align: center; }

.about-layout, .contact-layout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 54px; }
.about-layout { padding: 62px clamp(0px, 4vw, 56px) 24px; }
.about-name { font-size: clamp(2.8rem, 4.3vw, 3.6rem); line-height: 1.2; font-weight: 400; }
.about-copy h2, .contact-layout h2 { font-size: 1.18rem; font-weight: 400; margin-bottom: 14px; }
.about-copy p { font-size: 1.05rem; line-height: 1.8; }
.contact-layout { padding-top: 18px; }
.contact-layout address { margin-top: 23px; font-style: normal; }
.button { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px; border: 1px solid #1c1c1c; background: #1c1c1c; color: #fff; text-decoration: none; }
.button:hover { background: #434343; color: #fff; }

.back { margin: 20px 0 0; font-size: .94rem; }
.exposure-intro { margin: 12px auto; max-width: 650px; text-align: center; }
.installation { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 30px; }
.installation-photo img { aspect-ratio: 4 / 3; object-fit: contain; }

.viewer { position: fixed; border: 0; padding: 0; width: min(880px, calc(100% - 32px)); max-width: none; max-height: none; background: #fff; color: #181818; overflow: visible; }
.viewer::backdrop { background: rgb(0 0 0 / 75%); }
.viewer-panel { max-height: calc(100dvh - 36px); overflow: auto; overscroll-behavior: contain; }
.viewer-close { position: absolute; z-index: 1; top: 8px; right: 8px; width: 44px; height: 44px; border: 1px solid #6c6c6c; border-radius: 50%; background: #fff; font-size: 1.65rem; line-height: 1; }
.viewer-close:hover { background: #eee; }
.viewer-image { width: 100%; max-height: 64dvh; object-fit: contain; background: #f4f4f4; }
.viewer-copy { padding: 15px 20px 22px; }
.viewer-copy h2 { font-size: 1.2rem; }
.viewer-description { margin-top: 6px; white-space: pre-line; }
.viewer-description:empty { display: none; }
.viewer-link { display: inline-block; margin-top: 12px; }

@media (max-width: 760px) {
  .exhibitions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .instagram-icon { right: 0; }
  .about-layout, .contact-layout { gap: 30px; }
}
@media (max-width: 540px) {
  .wrap { width: calc(100% - 36px); }
  .header { padding-top: 15px; }
  .logo { width: 132px; }
  .navigation { gap: 0 13px; margin-top: 4px; }
  .navigation a { font-size: .76rem; }
  .instagram-icon { bottom: auto; top: 20px; right: -5px; }
  .page-title { margin: 21px 0 18px; }
  .exhibitions, .about-layout, .contact-layout, .installation { grid-template-columns: 1fr; }
  .exhibitions { gap: 30px; }
  .exhibition-copy { padding: 12px 1px 0; }
  .about-layout { padding-top: 27px; }
  .about-name br { display: none; }
  .about-name { font-size: 2.3rem; }
  .contact-layout { padding-top: 9px; }
  .lesson-intro { margin: 18px auto 23px; }
}
