:root {
  color-scheme: light;
  --bg: #f5f5f4;
  --surface: #ffffff;
  --ink: #191816;
  --muted: #62635f;
  --line: #d8d8d5;
  --accent: #8a1f18;
  --accent-soft: #f0e4de;
  --blue: #1f5f73;
  --green: #596a44;
  --shadow: 0 18px 55px rgba(25, 24, 22, 0.08);
  --wrap: min(1180px, calc(100vw - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration-color: rgba(138, 31, 24, 0.35);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(245, 245, 244, 0.92);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: var(--wrap);
  margin: 0 auto;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  gap: 1px;
  min-width: 180px;
  text-decoration: none;
}

.brand-logo {
  width: 230px;
  max-width: 42vw;
  height: auto;
}

.brand-mark {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  line-height: 1;
  letter-spacing: 0;
}

.brand-caption {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  flex-wrap: wrap;
}

.nav a {
  padding: 9px 12px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0;
  text-decoration: none;
  text-transform: uppercase;
}

.nav a:hover,
.nav a[aria-current="page"] {
  background: var(--surface);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}

.hero,
.page-hero {
  width: var(--wrap);
  margin: 34px auto 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 28px;
  align-items: stretch;
}

.hero-copy {
  display: flex;
  min-height: 580px;
  flex-direction: column;
  justify-content: flex-end;
  padding: 46px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 22px;
  color: var(--accent);
  font-size: 13px;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  max-width: 780px;
  font-size: 88px;
}

h2 {
  font-size: 52px;
}

h3 {
  font-size: 28px;
}

.lead {
  max-width: 820px;
  margin: 22px 0 0;
  color: #34312c;
  font-size: 21px;
  line-height: 1.55;
}

.hero-media {
  display: grid;
  gap: 18px;
}

.hero-media a,
.hero-media figure,
.image-card {
  margin: 0;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
}

.photoclub-hero-image {
  width: fit-content;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.photoclub-hero-image img {
  width: auto;
  max-width: 100%;
}

.hero-media img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
}

.section {
  width: var(--wrap);
  margin: 86px auto 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
}

.section-head p {
  max-width: 540px;
  margin: 0;
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 22px;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 8px 28px rgba(25, 24, 22, 0.04);
}

.card-body {
  padding: 22px;
}

.card h3 {
  margin-bottom: 12px;
  font-size: 26px;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.poster-card {
  display: block;
  min-height: 100%;
  text-decoration: none;
}

.poster-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: #ede8df;
}

.poster-card img[src*="Mothers_daughters/00.jpg"] {
  object-fit: contain;
}

.book-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #ede8df;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
}

.gallery figure {
  grid-column: span 6;
  margin: 0;
}

.gallery figure.wide {
  grid-column: span 12;
}

.gallery img {
  width: 100%;
  background: #ede8df;
  object-fit: contain;
}

.photoclub-gallery {
  display: block;
  column-count: 2;
  column-gap: 18px;
}

.photoclub-gallery figure,
.photoclub-gallery figure.wide {
  display: block;
  break-inside: avoid;
  margin: 0 0 18px;
}

.photoclub-gallery img {
  width: 100%;
}

.map-frame {
  width: 100%;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
}

.map-frame iframe {
  display: block;
  width: 100%;
  height: 520px;
  border: 0;
}

figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 15px;
}

.text-flow {
  max-width: 900px;
  margin: 0 auto;
}

.text-flow p,
.text-flow li {
  color: #34312c;
}

.text-flow p {
  margin: 0 0 18px;
}

.info-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.info-item {
  min-height: 120px;
  padding: 22px;
  background: var(--surface);
}

.info-item span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.info-item strong {
  display: block;
  font-size: 20px;
  line-height: 1.35;
}

.address-map-link {
  text-decoration-color: rgba(138, 31, 24, 0.35);
}

.program-list {
  display: grid;
  gap: 14px;
  counter-reset: lesson;
}

.lesson {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 22px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.lesson strong {
  color: var(--accent);
}

.site-footer {
  margin-top: 90px;
  border-top: 1px solid var(--line);
  background: #e7e8e5;
}

.footer-inner {
  width: var(--wrap);
  margin: 0 auto;
  padding: 38px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  color: var(--muted);
  font-size: 15px;
}

.footer-inner--stacked {
  display: block;
}

.footer-info-strip {
  margin-bottom: 30px;
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.contact-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  flex-wrap: wrap;
}

.contact-links--legacy {
  justify-content: center;
}

.email-link {
  color: var(--ink);
  font-size: 15px;
  text-decoration: none;
  border-bottom: 1px solid rgba(138, 31, 24, 0.35);
}

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

.social-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.social-links--legacy {
  justify-content: center;
  margin: 6px auto;
}

.social-link {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  text-decoration: none;
}

.social-link img {
  width: 36px !important;
  height: 36px !important;
  display: block;
}

.social-link:hover {
  opacity: 0.72;
}

.legacy-note {
  width: var(--wrap);
  margin: 28px auto 0;
  color: var(--muted);
  font-size: 14px;
}

body.legacy-modern {
  padding: 0 0 40px;
}

body.legacy-modern table,
body.legacy-modern hr {
  width: var(--wrap) !important;
  max-width: var(--wrap) !important;
}

body.legacy-modern td {
  max-width: 100%;
}

body.legacy-modern img {
  max-width: 100% !important;
  height: auto !important;
}

body.legacy-modern table:first-of-type {
  margin-top: 22px;
}

.archive-exhibition {
  background: var(--bg);
}

.archive-exhibition > table:first-of-type,
.archive-exhibition > table:first-of-type + hr,
.archive-exhibition .archive-site-header + table,
.archive-exhibition .archive-site-header + table + hr {
  display: none !important;
}

body.archive-exhibition.legacy-modern table,
.archive-exhibition > table {
  display: block !important;
  width: var(--wrap) !important;
  max-width: var(--wrap) !important;
  height: auto !important;
  margin-top: 34px;
  margin-bottom: 0;
  background: transparent;
}

.archive-exhibition > table > tbody,
.archive-exhibition > table > tbody > tr,
.archive-exhibition > table > tr {
  display: block !important;
  width: 100% !important;
  height: auto !important;
}

.archive-exhibition td {
  display: block !important;
  width: 100% !important;
  max-width: 960px;
  height: auto !important;
  margin-left: auto;
  margin-right: auto;
  padding: 0 12px 18px;
  color: var(--ink);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  text-align: left;
  vertical-align: top !important;
}

body.archive-exhibition td.archive-empty,
.archive-exhibition td.archive-empty {
  display: none !important;
  width: 0 !important;
  max-width: 0 !important;
  height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
}

.archive-exhibition p {
  margin-top: 0 !important;
  margin-bottom: 18px !important;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.65 !important;
}

.archive-exhibition p:empty {
  display: none;
}

.archive-exhibition a,
.archive-exhibition p,
.archive-exhibition td,
.archive-exhibition li {
  overflow-wrap: anywhere;
}

.archive-exhibition p[align="justify"],
.archive-exhibition .MsoNormal {
  max-width: 880px;
}

.archive-exhibition td:has(img) {
  max-width: var(--wrap);
  text-align: center;
}

.archive-exhibition p:has(img) {
  display: flex;
  max-width: var(--wrap);
  align-items: flex-start;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  text-align: center;
}

.archive-exhibition p:not(:has(img)),
.archive-exhibition div:not(.header-inner):not(.nav):not(.social-links):not(.contact-links),
.archive-exhibition ul {
  max-width: 880px;
}

.archive-exhibition ul {
  margin: 0 auto 18px !important;
  padding: 0 !important;
  list-style: none;
}

.archive-exhibition li,
.archive-exhibition ul p {
  margin-left: 0 !important;
  padding-left: 0 !important;
}

.archive-exhibition font,
.archive-exhibition span {
  font-family: inherit !important;
}

.archive-exhibition span[style*="font-size:26pt"],
.archive-exhibition span[style*="font-size:24pt"],
.archive-exhibition span[style*="font-size:22pt"],
.archive-exhibition font[face="Georgia"] {
  font-family: Georgia, "Times New Roman", serif !important;
}

.archive-exhibition span[style*="font-size:26pt"] {
  font-size: 48px !important;
  line-height: 1.12 !important;
}

.archive-exhibition span[style*="font-size:24pt"],
.archive-exhibition span[style*="font-size:22pt"] {
  font-size: 34px !important;
  line-height: 1.18 !important;
}

.archive-exhibition img {
  margin: 0 auto 12px;
}

.archive-exhibition .social-links img,
.archive-exhibition .brand-logo {
  margin-bottom: 0;
}

.archive-exhibition > table:last-of-type {
  background: #e7e8e5;
  margin-top: 44px;
  padding: 24px 0;
}

.archive-exhibition > table:last-of-type td {
  background: transparent !important;
  padding-bottom: 10px;
  text-align: center;
}

.archive-exhibition > table:last-of-type .contact-links {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  gap: 12px;
}

.archive-exhibition > table:last-of-type .email-link {
  display: inline-block;
  margin: 0 auto;
}

.archive-exhibition > table:last-of-type .social-links {
  justify-content: center;
}

.archive-exhibition > table:last-of-type p {
  margin-bottom: 6px !important;
}

.archive-footer {
  width: var(--wrap);
  margin: 44px auto 0;
  border-top: 1px solid #9e9e9a;
  padding: 60px 0 64px;
  text-align: center;
}

.archive-footer .contact-links {
  align-items: center;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}

.archive-footer .social-links {
  justify-content: center;
}

.archive-footer p {
  max-width: 100%;
  margin: 0 0 6px !important;
  text-align: center !important;
}

.archive-footer + hr,
.archive-footer + hr + table {
  display: none !important;
}

@media (max-width: 920px) {
  :root {
    --wrap: min(100vw - 28px, 1180px);
  }

  body {
    font-size: 16px;
  }

  .header-inner {
    min-height: auto;
    padding: 16px 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .nav {
    justify-content: flex-start;
    gap: 2px;
  }

  .nav a {
    padding: 8px 9px;
    font-size: 12px;
  }

  .hero {
    grid-template-columns: 1fr;
    margin-top: 20px;
  }

  .hero-copy {
    min-height: auto;
    padding: 28px;
  }

  .lead {
    font-size: 18px;
  }

  h1 {
    font-size: 56px;
  }

  h2 {
    font-size: 38px;
  }

  .section {
    margin-top: 58px;
  }

  .section-head,
  .footer-inner,
  .footer-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-row {
    display: flex;
  }

  .contact-links {
    align-items: flex-start;
    justify-content: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .contact-links--legacy {
    align-items: center;
  }

  .grid.two,
  .grid.three,
  .grid.four,
  .info-strip {
    grid-template-columns: 1fr;
  }

  .gallery figure,
  .gallery figure.wide {
    grid-column: span 12;
  }

  .photoclub-gallery {
    column-count: 1;
  }

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

  .archive-exhibition > table {
    display: block !important;
    width: var(--wrap) !important;
    max-width: var(--wrap) !important;
    height: auto !important;
    margin-top: 28px;
  }

  .archive-exhibition > table:first-of-type,
  .archive-exhibition > table:first-of-type + hr {
    display: none !important;
  }

  .archive-exhibition > table > tbody,
  .archive-exhibition > table > tbody > tr,
  .archive-exhibition > table > tr {
    display: block !important;
    width: 100% !important;
    height: auto !important;
  }

  .archive-exhibition td {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    padding: 0 0 18px !important;
    text-align: left !important;
    vertical-align: top !important;
  }

  .archive-exhibition td.archive-empty {
    display: none !important;
  }

  .archive-exhibition p,
  .archive-exhibition div,
  .archive-exhibition .MsoNormal {
    max-width: 100%;
    text-align: left !important;
    line-height: 1.65 !important;
  }

  .archive-exhibition p:has(img) {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .archive-exhibition img {
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
    margin-left: auto;
    margin-right: auto;
  }

  .archive-exhibition span[style*="font-size:26pt"] {
    font-size: 38px !important;
  }

  .archive-exhibition span[style*="font-size:24pt"],
  .archive-exhibition span[style*="font-size:22pt"] {
    font-size: 28px !important;
  }

  .map-frame iframe {
    height: 420px;
  }
}

@media (max-width: 520px) {
  h1 {
    font-size: 40px;
  }

  .brand-mark {
    font-size: 25px;
  }

  .brand-logo {
    width: 190px;
    max-width: 76vw;
  }

  .card-body,
  .info-item,
  .lesson {
    padding: 18px;
  }
}

body.archive-exhibition td.archive-empty,
body.archive-exhibition .archive-site-header + table,
body.archive-exhibition .archive-site-header + table + hr {
  display: none !important;
}

@media (min-width: 921px) {
  body.archive-exhibition td.archive-empty {
    display: none !important;
  }

  body.archive-exhibition > table:last-of-type .contact-links {
    width: 100% !important;
    max-width: 420px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    align-items: center !important;
    flex-direction: column !important;
    justify-content: center !important;
    text-align: center !important;
  }
}
