:root {
  color-scheme: light;
  --paper: #f5f3ed;
  --ink: #22221f;
  --muted: #77756d;
  --line: #d9d6cc;
  --accent: #a1493f;
  --accent-soft: #e9ddd4;
  --art-paper: #e5e7dd;
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --sans: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  --page-gutter: clamp(1.25rem, 5.2vw, 5.5rem);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.94rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}

.skip-link {
  position: absolute;
  z-index: 5;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.6rem 0.85rem;
  transform: translateY(-160%);
  background: var(--ink);
  color: var(--paper);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 5.8rem;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 0 var(--page-gutter);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.wordmark,
.footer-name {
  flex: 0 0 auto;
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.11em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.8rem, 1.7vw, 1.7rem);
}

.site-nav a {
  position: relative;
  padding: 0.45rem 0;
  color: #55534d;
  font-size: 0.78rem;
  transition: color 160ms ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
}

.site-nav a:hover::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: var(--line);
  content: "";
}

.site-nav a[aria-current="page"]::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: var(--accent);
  content: "";
}

.menu-toggle {
  display: none;
}

.home-hero {
  display: grid;
  min-height: min(760px, calc(100svh - 5.8rem));
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 6.5rem);
  padding: clamp(3rem, 5.5vw, 5.5rem) var(--page-gutter);
}

.hero-artwork {
  width: 100%;
  margin: 0;
}

.hero-artwork-image {
  display: grid;
  min-height: 220px;
  aspect-ratio: 2 / 1;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--art-paper);
}

.hero-artwork-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.artwork-placeholder,
.page-placeholder {
  position: relative;
  display: grid;
  min-height: 180px;
  aspect-ratio: 1.28;
  place-items: center;
  overflow: hidden;
  border: 1px solid #d0d3c7;
  background-color: var(--art-paper);
  background-image: linear-gradient(90deg, transparent calc(50% - .5px), #c8cec2 50%, transparent calc(50% + .5px)), linear-gradient(transparent calc(50% - .5px), #c8cec2 50%, transparent calc(50% + .5px));
  color: #484d44;
}

.artwork-placeholder::after,
.page-placeholder::after {
  position: absolute;
  inset: 0.8rem;
  border: 1px solid rgb(72 77 68 / 22%);
  content: "";
  pointer-events: none;
}

.artwork-placeholder span,
.page-placeholder span {
  z-index: 1;
  max-width: 80%;
  padding: 0.65rem 0.85rem;
  background: var(--paper);
  font-size: 0.74rem;
  line-height: 1.5;
  text-align: center;
}

.artwork-placeholder strong {
  font-weight: 650;
}

.hero-artwork figcaption {
  margin-top: 0.7rem;
  color: var(--muted);
  font-size: 0.7rem;
}

.hero-artwork-caption {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.15rem 1rem;
  text-align: left;
}

.hero-artwork-caption .artwork-title {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.05rem;
}

.hero-artwork-caption span:nth-child(2),
.hero-artwork-caption span:last-child {
  text-align: right;
}

.hero-artwork-caption span:nth-child(3) {
  grid-column: 1 / -1;
  max-width: 34rem;
}

.hero-heading {
  padding-bottom: 1rem;
}

.eyebrow,
.section-index {
  margin: 0 0 1.25rem;
  color: var(--accent);
  font-size: 0.7rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow-location {
  color: var(--muted);
}

.hero-heading h1,
.section-page h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3.6rem, 7vw, 7rem);
  font-weight: 400;
  line-height: 0.97;
}

.hero-mediums {
  margin: 1.5rem 0 0;
  color: #55534d;
  font-size: 0.82rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 2.2rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--accent);
  font-size: 0.78rem;
  transition: gap 160ms ease;
}

.text-link:hover {
  gap: 0.95rem;
}

.text-link span {
  color: var(--accent);
}

.hero-mediums span,
.introduction h2 span {
  color: var(--accent);
}

.introduction {
  display: grid;
  grid-template-columns: minmax(150px, 0.7fr) minmax(0, 2.3fr);
  gap: clamp(2rem, 7vw, 7rem);
  padding: clamp(4rem, 9vw, 9rem) var(--page-gutter);
  border-top: 1px solid var(--line);
}

.introduction .section-index {
  padding-top: 0.75rem;
}

.introduction h2 {
  max-width: 750px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4.4vw, 4.5rem);
  font-weight: 400;
  line-height: 1.15;
}

.introduction-details {
  display: grid;
  grid-template-columns: minmax(150px, 0.7fr) minmax(0, 1.3fr);
  gap: 1.5rem;
  margin-top: 2rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--line);
}

.placeholder-copy,
.placeholder-note {
  margin: 0;
  font-size: 0.78rem;
}

.placeholder-copy {
  color: var(--accent);
}

.placeholder-note {
  max-width: 34rem;
  color: var(--muted);
}

.section-page {
  min-height: 67vh;
  padding: clamp(4rem, 8vw, 7.5rem) var(--page-gutter) clamp(5rem, 10vw, 9rem);
}

.section-page h1 {
  font-size: clamp(3.5rem, 8vw, 7rem);
}

.about-section {
  display: grid;
  grid-template-columns: minmax(150px, 0.7fr) minmax(0, 2.3fr);
  gap: clamp(2rem, 7vw, 7rem);
  padding: clamp(3rem, 7vw, 6rem) 0;
  border-top: 1px solid var(--line);
}

.about-section:first-child {
  padding-top: 0;
  border-top: 0;
}

.about-presentation h1#titre-presentation {
  margin-bottom: 1.25rem;
}

.about-section-label .section-index {
  margin: 0;
  padding-top: 0.75rem;
}

.about-section-content {
  min-width: 0;
  max-width: 56rem;
}

.about-section-content h2 {
  margin: 0 0 1.5rem;
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4.4vw, 4.5rem);
  font-weight: 400;
  line-height: 1.15;
}

.about-section-content h2 span {
  color: var(--accent);
}

.about-lead {
  max-width: 38rem;
  margin: 1.5rem 0 2rem;
  color: #55534d;
  font-size: 1.05rem;
}

.about-prose {
  max-width: 46rem;
}

.about-prose p {
  margin: 0 0 1rem;
}

.education-list {
  max-width: 46rem;
  margin: 0;
  border-top: 1px solid var(--line);
}

.education-entry {
  display: grid;
  grid-template-columns: minmax(8rem, 0.6fr) minmax(0, 1.4fr);
  gap: 1.5rem;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--line);
}

.education-entry dt {
  color: var(--muted);
  font-size: 0.78rem;
}

.education-entry dd,
.education-entry p {
  margin: 0;
}

.education-entry p + p {
  margin-top: 0.5rem;
}

.exhibition-list {
  max-width: 46rem;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.exhibition-entry {
  display: grid;
  grid-template-columns: minmax(5rem, 0.6fr) minmax(0, 1.4fr);
  gap: 1.5rem;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--line);
}

.exhibition-year {
  margin: 0;
  color: var(--accent);
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.3;
}

.artmonth-logo {
  display: block;
  width: min(100%, 20rem);
  height: auto;
  margin: 0 auto 1rem;
}

.exhibition-details h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.3;
}

.exhibition-details p {
  margin: 0.35rem 0 0;
  color: #55534d;
  font-size: 0.78rem;
}

.exhibition-gallery-toggle {
  margin-top: 0.75rem;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.76rem;
  cursor: pointer;
  transition: color 180ms ease, border-color 180ms ease;
}

.exhibition-gallery-toggle:hover,
.exhibition-gallery-toggle:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
}

.exhibition-gallery {
  grid-column: 1 / -1;
  padding-top: 0.75rem;
}

.exhibition-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.75rem, 2vw, 1.5rem);
}

.exhibition-gallery-grid figure {
  min-width: 0;
  margin: 0;
}

.exhibition-photo-open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.exhibition-photo-open img {
  display: block;
  width: 100%;
  height: auto;
}

.exhibition-photo-open:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.exhibition-photo-viewer {
  width: min(96vw, 90rem);
  max-width: none;
  max-height: 96svh;
  padding: clamp(0.75rem, 2vw, 1.5rem);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
}

.exhibition-photo-viewer::backdrop {
  background: rgb(28 28 25 / 82%);
}

.exhibition-photo-viewer-header {
  display: flex;
  min-height: 2.5rem;
  align-items: center;
  gap: 1rem;
  padding-right: 3rem;
}

.exhibition-photo-viewer-header h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 400;
}

.exhibition-photo-viewer-count {
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
}

.exhibition-photo-viewer-close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  display: grid;
  width: 2.5rem;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.exhibition-photo-viewer-stage {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr) 2.5rem;
  min-height: 0;
  align-items: center;
  justify-items: center;
  gap: clamp(0.35rem, 1.5vw, 1.25rem);
  margin-top: 0.75rem;
}

.exhibition-photo-viewer-stage img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: calc(96svh - 6rem);
  height: auto;
  object-fit: contain;
}

.exhibition-photo-viewer-stage button {
  display: grid;
  width: 2.5rem;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 1.2rem;
  cursor: pointer;
}

.exhibition-photo-viewer-stage button:hover,
.exhibition-photo-viewer-stage button:focus-visible,
.exhibition-photo-viewer-close:hover,
.exhibition-photo-viewer-close:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
}

.about-links {
  display: grid;
  justify-items: start;
  gap: 0.6rem;
  margin-top: 2rem;
}

.about-link {
  display: inline-flex;
  align-items: baseline;
  gap: 0.7rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.78rem;
}

.about-link:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.page-intro {
  max-width: 38rem;
  margin: 1.5rem 0 0;
  color: #55534d;
  font-size: 1rem;
  text-wrap: pretty;
}

.placeholder-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: clamp(3rem, 7vw, 6rem);
}

.placeholder-grid .artwork-placeholder:nth-child(2) {
  margin-top: 3rem;
}

.page-placeholder {
  max-width: 52rem;
  margin-top: clamp(3rem, 7vw, 6rem);
}

.portrait-placeholder {
  max-width: 26rem;
  aspect-ratio: 0.82;
}

.text-placeholder {
  max-width: 52rem;
  margin-top: clamp(3rem, 7vw, 6rem);
  border-top: 1px solid var(--line);
}

.text-placeholder p,
.contact-placeholder p {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 0;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
}

.text-placeholder p::after {
  color: var(--muted);
  font-size: 0.72rem;
  content: "Contenu à ajouter";
}

.contact-placeholder {
  max-width: 40rem;
  margin-top: clamp(3rem, 7vw, 6rem);
  border-top: 1px solid var(--line);
}

.contact-placeholder span {
  color: var(--muted);
  text-align: right;
}

.site-footer {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1.2fr auto;
  align-items: start;
  gap: 2rem;
  padding: 2.4rem var(--page-gutter) 2.8rem;
  border-top: 1px solid var(--line);
  background: #eeece5;
  font-size: 0.76rem;
}

.site-footer p {
  margin: 0;
}

.footer-name {
  padding-top: 0.05rem;
}

.footer-contact {
  display: flex;
  gap: 1.5rem;
}

.footer-contact span {
  display: grid;
  gap: 0.25rem;
}

.footer-contact small,
.footer-language {
  color: var(--muted);
  font-size: 0.67rem;
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0.1rem;
  margin: 0;
  padding: 0.15rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  color: var(--muted);
  font-size: 0.72rem;
  white-space: nowrap;
}

.language-switcher::before {
  flex: 0 0 1rem;
  width: 1rem;
  height: 1rem;
  margin: 0 0.25rem;
  background-color: currentColor;
  content: "";
  pointer-events: none;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3a15 15 0 0 1 0 18M12 3a15 15 0 0 0 0 18'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3a15 15 0 0 1 0 18M12 3a15 15 0 0 0 0 18'/%3E%3C/svg%3E") center / contain no-repeat;
}

.language-switcher a {
  display: inline-flex;
  min-width: 2rem;
  min-height: 2rem;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.35rem;
  border-radius: 4px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1;
  transition: background-color 160ms ease, color 160ms ease;
}

.language-switcher a:hover {
  background: var(--art-paper);
  color: var(--ink);
}

.language-switcher a[aria-current="page"] {
  background: var(--art-paper);
  color: var(--ink);
  font-weight: 650;
}

.site-nav .language-switcher {
  flex: 0 0 auto;
  margin-left: 0;
}

.site-nav .language-switcher a:hover::after,
.site-nav .language-switcher a[aria-current="page"]::after {
  content: none;
}

.translation-pending {
  color: var(--accent);
  font-style: italic;
}

@media (max-width: 1000px) {
  .site-header {
    flex-wrap: wrap;
    gap: 0;
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
  }

  .menu-toggle {
    display: flex;
    min-height: 2.5rem;
    align-items: center;
    gap: 0.75rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--ink);
    font: inherit;
    cursor: pointer;
  }

  .menu-toggle-label {
    font-size: 0.78rem;
  }

  .menu-toggle-icon {
    display: grid;
    width: 1.15rem;
    gap: 0.3rem;
  }

  .menu-toggle-icon span {
    display: block;
    height: 1px;
    background: currentColor;
  }

  .site-nav {
    display: none;
    flex: 0 0 100%;
    flex-wrap: wrap;
    gap: 0.3rem 1.4rem;
    padding: 1.25rem 0 0.2rem;
  }

  .site-nav.is-open {
    display: flex;
  }
}

@media (max-width: 700px) {
  .home-hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-top: 2rem;
  }

  .hero-artwork {
    order: 2;
  }

  .hero-heading {
    order: 1;
    padding: 1.5rem 0 0;
  }

  .hero-heading h1 {
    font-size: clamp(3.6rem, 17vw, 6rem);
  }

  .text-link {
    margin-top: 1.5rem;
  }

  .artwork-placeholder {
    aspect-ratio: 1.08;
  }

  .hero-artwork-image {
    min-height: 180px;
  }

  .introduction {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .introduction-details {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .about-section {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 3rem 0;
  }

  .about-section:first-child {
    padding-top: 0;
  }

  .about-section-label .section-index {
    padding-top: 0;
  }

  .placeholder-grid {
    grid-template-columns: 1fr 1fr;
  }

  .placeholder-grid .artwork-placeholder:nth-child(2) {
    margin-top: 0;
  }

  .placeholder-grid .artwork-placeholder:last-child {
    grid-column: 1 / -1;
    width: calc(50% - 0.5rem);
  }

  .site-footer {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem 1rem;
  }

  .footer-language {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }

  .footer-contact {
    grid-column: 1 / -1;
  }
}

@media (max-width: 420px) {
  .hero-heading h1 {
    font-size: 3.45rem;
  }

  .section-page h1 {
    font-size: clamp(2.65rem, 10vw, 3rem);
  }

  .education-entry {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .exhibition-entry {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .placeholder-grid {
    grid-template-columns: 1fr;
  }

  .placeholder-grid .artwork-placeholder:last-child {
    grid-column: auto;
    width: 100%;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .footer-language {
    grid-column: auto;
    grid-row: auto;
    justify-self: start;
  }

  .footer-contact {
    grid-column: auto;
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}

.works-page {
  padding-top: clamp(4rem, 8vw, 7.5rem);
}

.works-heading {
  max-width: 54rem;
}

.works-heading .section-index {
  margin-bottom: 1.5rem;
}

.works-heading .page-intro {
  max-width: 34rem;
  margin-top: 1.35rem;
}

.works-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1.7rem;
  margin-top: clamp(3rem, 6vw, 5rem);
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--line);
}

.works-filters button {
  padding: 0.3rem 0 0.45rem;
  border: 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.78rem;
  cursor: pointer;
}

.works-filters button:hover,
.works-filters button[aria-pressed="true"] {
  border-bottom-color: var(--accent);
  color: var(--ink);
}

.works-collection {
  padding-top: 1rem;
}

.work-category {
  padding-top: clamp(3.5rem, 7vw, 6rem);
}

.work-category[hidden],
.work-card[hidden] {
  display: none;
}

.work-category-heading {
  display: grid;
  grid-template-columns: minmax(100px, 0.45fr) minmax(0, 2.55fr);
  align-items: baseline;
  gap: 1.5rem;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line);
}

.work-category-heading .section-index {
  margin: 0;
}

.work-category-heading h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.2vw, 2.7rem);
  font-weight: 400;
  line-height: 1.15;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: start;
  column-gap: clamp(0.8rem, 2.3vw, 2rem);
  row-gap: clamp(3rem, 6vw, 5rem);
}

.work-card:nth-child(6n + 1) {
  grid-column: 1 / span 5;
}

.work-card:nth-child(6n + 2) {
  grid-column: 7 / span 6;
  margin-top: clamp(2rem, 5vw, 4.5rem);
}

.work-card:nth-child(6n + 3) {
  grid-column: 3 / span 7;
}

.work-card:nth-child(6n + 4) {
  grid-column: 1 / span 6;
}

.work-card:nth-child(6n + 5) {
  grid-column: 8 / span 5;
  margin-top: clamp(2rem, 5vw, 4.5rem);
}

.work-card:nth-child(6n) {
  grid-column: 3 / span 7;
}

.work-open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.work-image {
  display: grid;
  min-height: 180px;
  aspect-ratio: 1.12;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--art-paper);
}

.work-card:nth-child(3n + 2) .work-image {
  aspect-ratio: 0.92;
}

.work-card:nth-child(3n) .work-image {
  aspect-ratio: 1.35;
}

.work-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.work-image-placeholder {
  background-color: var(--art-paper);
  background-image: linear-gradient(90deg, transparent calc(50% - .5px), #c8cec2 50%, transparent calc(50% + .5px)), linear-gradient(transparent calc(50% - .5px), #c8cec2 50%, transparent calc(50% + .5px));
}

.work-image-placeholder > span {
  max-width: 80%;
  padding: 0.7rem 0.85rem;
  background: var(--paper);
  color: #484d44;
  font-size: 0.7rem;
  line-height: 1.5;
  text-align: center;
}

.work-caption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.8rem;
}

.work-title {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1.7vw, 1.4rem);
  line-height: 1.3;
}

.work-caption .work-year {
  flex: 0 0 auto;
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.7rem;
}

.work-caption-receptacle6 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.25rem 1rem;
}

.work-caption-receptacle6 .work-year {
  text-align: right;
}

.work-caption-receptacle6 .work-caption-description {
  grid-column: 1 / -1;
  margin: 0;
  color: #55534d;
  font-size: 0.76rem;
}

.work-open:hover .work-title {
  color: var(--accent);
}

.work-dialog {
  width: min(74rem, calc(100% - 2rem));
  max-width: none;
  max-height: min(88svh, 60rem);
  padding: clamp(1rem, 3vw, 2.5rem);
  overflow: auto;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
}

.work-dialog::backdrop {
  background: rgb(28 28 25 / 68%);
}

.work-dialog-close-form {
  position: absolute;
  z-index: 1;
  top: 0.75rem;
  right: 0.75rem;
}

.work-dialog-close {
  display: grid;
  width: 2.5rem;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.work-dialog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(15rem, 0.8fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
}

.work-dialog-layout.is-text-only {
  grid-template-columns: minmax(0, 1fr);
}

.work-dialog-image {
  display: grid;
  min-height: 15rem;
  aspect-ratio: 1.2;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--art-paper);
}

.work-dialog-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.work-dialog-information h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1.15;
}

.work-dialog-year {
  margin: 0.55rem 0 2rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.work-dialog-information dl {
  margin: 0;
  border-top: 1px solid var(--line);
}

.work-dialog-information dl > div {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}

.work-dialog-information dt {
  margin-bottom: 0.2rem;
  color: var(--muted);
  font-size: 0.7rem;
}

.work-dialog-information dd {
  margin: 0;
  font-size: 0.82rem;
}

@media (max-width: 700px) {
  .exhibition-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .exhibition-photo-viewer {
    width: calc(100% - 1rem);
    max-height: 98svh;
    padding: 0.75rem;
  }

  .exhibition-photo-viewer-stage {
    grid-template-columns: 2rem minmax(0, 1fr) 2rem;
    gap: 0.25rem;
  }

  .exhibition-photo-viewer-stage button {
    width: 2rem;
  }

  .exhibition-photo-viewer-stage img {
    max-height: calc(98svh - 6rem);
  }

  .works-filters {
    gap: 0.35rem 1rem;
  }

  .works-filters button {
    font-size: 0.72rem;
  }

  .work-category-heading {
    grid-template-columns: 3rem minmax(0, 1fr);
    gap: 0.75rem;
  }

  .works-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    column-gap: 0.8rem;
    row-gap: 2.5rem;
  }

  .work-card:nth-child(n) {
    grid-column: span 3;
    margin-top: 0;
  }

  .work-card:nth-child(3n) {
    grid-column: 2 / span 4;
  }

  .work-image,
  .work-card:nth-child(n) .work-image {
    min-height: 140px;
    aspect-ratio: 0.9;
  }

  .work-card:nth-child(3n) .work-image {
    aspect-ratio: 1.2;
  }

  .work-dialog-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .work-dialog-image {
    min-height: 12rem;
    aspect-ratio: 1.2;
  }

  .work-dialog-information {
    padding-right: 0.5rem;
  }

  .work-dialog-year {
    margin-bottom: 1.25rem;
  }
}

@media (max-width: 420px) {
  .works-filters {
    column-gap: 0.8rem;
  }

  .works-grid {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 2.25rem;
  }

  .work-card:nth-child(n) {
    grid-column: 1;
  }

  .work-card:nth-child(n) .work-image {
    aspect-ratio: 1.15;
  }

  .work-dialog {
    width: calc(100% - 1rem);
    max-height: 94svh;
    padding: 0.75rem;
  }

  .work-dialog-image {
    margin-top: 2rem;
  }
}

.work-card:nth-child(n) .work-image-natural {
  display: block;
  min-height: 0;
  aspect-ratio: auto;
  overflow: visible;
  border: 0;
  background: transparent;
}

.work-image-natural img {
  height: auto;
  object-fit: contain;
}

@media (max-width: 767px) {
  .work-category {
    padding-top: clamp(2.5rem, 7vw, 3.5rem);
  }

  .works-grid {
    grid-template-columns: minmax(0, 1fr);
    column-gap: 0;
    row-gap: clamp(2rem, 6vw, 3rem);
  }

  .work-card:nth-child(n) {
    grid-column: 1;
    min-width: 0;
    margin-top: 0;
  }

  .work-open {
    min-width: 0;
    max-width: 100%;
  }

  .work-caption {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.25rem;
    min-width: 0;
  }

  .work-caption > * {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .work-caption .work-year {
    margin-top: 0;
  }
}

@media (min-width: 768px) and (max-width: 1000px) {
  .work-caption {
    flex-direction: column;
    gap: 0.25rem;
  }

  .work-caption > * {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .work-caption .work-year {
    flex: 0 1 auto;
  }
}

@media (max-width: 700px) {
  .work-dialog {
    margin-block: max(0.5rem, env(safe-area-inset-top, 0px)) max(0.5rem, env(safe-area-inset-bottom, 0px));
    max-height: min(88vh, calc(100vh - max(0.5rem, env(safe-area-inset-top, 0px)) - max(0.5rem, env(safe-area-inset-bottom, 0px))));
    max-height: min(88dvh, calc(100dvh - max(0.5rem, env(safe-area-inset-top, 0px)) - max(0.5rem, env(safe-area-inset-bottom, 0px))));
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .work-dialog-close-form {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    justify-content: flex-end;
    margin-bottom: -2.5rem;
    pointer-events: none;
  }

  .work-dialog-close {
    flex: 0 0 auto;
    pointer-events: auto;
  }

  .work-dialog-layout {
    padding-top: 2.75rem;
  }

  .work-dialog-image:has(img) {
    max-height: min(40vh, 18rem);
    max-height: min(40dvh, 18rem);
    margin-top: 0;
  }

  .work-dialog-image:has(img) img {
    max-height: min(40vh, 18rem);
    max-height: min(40dvh, 18rem);
    object-fit: contain;
  }
}

.work-dialog-image:has(img) {
  min-height: 0;
  aspect-ratio: auto;
  border: 0;
  background: transparent;
}

.work-dialog-image:has(img) img {
  height: auto;
}

.home-hero .hero-artwork-image {
  display: block;
  min-height: 0;
  aspect-ratio: auto;
  overflow: visible;
  border: 0;
  background: transparent;
}

.home-hero .hero-artwork-image img {
  height: auto;
  object-fit: contain;
}

.footer-newsletter {
  width: 100%;
  padding: clamp(3rem, 5.5vw, 5rem) var(--page-gutter);
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.footer-newsletter .sib-form {
  width: 100%;
  text-align: left !important;
  background: transparent !important;
}

.footer-newsletter .sib-form-container {
  width: 100%;
}

.footer-newsletter .sib-form-message-panel {
  width: 100%;
  max-width: 48rem !important;
  margin: 0 0 1rem;
  padding: 1rem;
  font-family: var(--sans) !important;
}

.footer-newsletter #sib-container {
  width: 100%;
  max-width: 48rem !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  text-align: left !important;
}

.footer-newsletter #sib-container .sib-form-block {
  color: var(--ink) !important;
  font-family: var(--sans) !important;
  text-align: left !important;
}

.footer-newsletter #sib-container form > div:first-child .sib-form-block {
  color: var(--ink) !important;
  font-family: var(--serif) !important;
  font-size: clamp(1.6rem, 2.4vw, 2rem) !important;
  font-weight: 400 !important;
  line-height: 1.2;
}

.footer-newsletter #sib-container form > div:nth-child(2) .sib-form-block {
  font-size: 0.84rem !important;
}

.footer-newsletter #sib-container p {
  margin: 0;
}

.footer-newsletter #sib-container .sib-text-form-block {
  max-width: 42rem;
  font-size: 0.84rem;
}

.footer-newsletter #sib-container .entry__label,
.footer-newsletter #sib-container .entry__choice span:last-child,
.footer-newsletter #sib-container .entry__specification {
  color: var(--ink) !important;
  font-family: var(--sans) !important;
}

.footer-newsletter #sib-container .entry__label {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.footer-newsletter #sib-container .entry__choice span:last-child {
  font-size: 0.78rem !important;
}

.footer-newsletter #sib-container .entry__specification {
  display: block;
  margin-top: 0.55rem;
  color: var(--muted) !important;
  font-size: 0.7rem !important;
}

.footer-newsletter #sib-container a {
  color: var(--accent) !important;
}

.footer-newsletter #sib-container input[type="text"]:not(.input--hidden) {
  width: 100%;
  min-height: 3rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
}

.footer-newsletter #sib-container input[type="text"]:not(.input--hidden)::placeholder {
  color: var(--muted) !important;
  font: inherit !important;
}

.footer-newsletter #sib-container input[type="text"]:not(.input--hidden):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.footer-newsletter #sib-container .sib-form-block__button {
  padding: 0.75rem 1.3rem;
  border: 0 !important;
  border-radius: 0 !important;
  background: var(--accent) !important;
  color: var(--paper) !important;
  font-family: var(--sans) !important;
  font-size: 0.76rem !important;
  letter-spacing: 0.08em;
  text-align: center !important;
}

@media (max-width: 700px) {
  .footer-newsletter {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .footer-newsletter #sib-container,
  .footer-newsletter .sib-form-message-panel {
    max-width: none !important;
  }
}