/* ============================================
   Toxunmus xatireler / Threads of Remembrance - styles
   Static exhibition site, responsive + bilingual (AZ first, EN second)
   ============================================ */

:root {
  --color-bg: #f6f6f2;
  --color-surface: #ffffff;
  --color-surface-muted: #eeeeea;
  --color-text: #111827;
  --color-text-light: #5f666d;
  --color-accent: #102a43;
  --color-accent-light: #31546f;
  --color-earth: #6f6257;
  --color-earth-muted: #a89c90;
  --color-border: #d8d8d2;
  --color-border-strong: #b8b8ae;
  --color-thread: rgba(16, 42, 67, 0.08);
  --color-thread-earth: rgba(111, 98, 87, 0.08);
  --shadow-soft: 0 12px 30px rgba(32, 36, 42, 0.045);
  --font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --font-heading: "Avenir Next", "Helvetica Neue", Arial, "Segoe UI", sans-serif;
  --font-heading-az: var(--font-heading);
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font-family);
  background-color: var(--color-bg);
  background-image:
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.46), transparent 30%),
    radial-gradient(circle at 78% 26%, rgba(111, 98, 87, 0.028), transparent 34%),
    linear-gradient(115deg, rgba(16, 42, 67, 0.014) 0%, transparent 36%, rgba(111, 98, 87, 0.012) 72%, transparent 100%);
  background-size: auto;
  color: var(--color-text);
  line-height: 1.72;
  font-size: 16px;
  overflow-x: hidden;
}

body,
button,
input,
textarea,
select {
  font-family: var(--font-family);
}

h1,
h2,
h3,
h4 {
  color: var(--color-accent);
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

h1 [data-lang="az"],
h2 [data-lang="az"],
h3 [data-lang="az"],
h4 [data-lang="az"] {
  font-family: var(--font-heading-az);
}

p {
  margin-top: 0;
}

a {
  color: var(--color-accent);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
  transition: color 0.18s ease, text-decoration-color 0.18s ease;
}

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

[data-i18n] [data-lang][hidden] {
  display: none !important;
}

.container {
  width: min(100%, 1120px);
  margin: 0 auto;
  padding: 0 28px;
}

main,
section,
.container,
.grid,
.works-grid,
.home-posters,
.material-list,
.article-content,
.exhibit-description,
.exhibit-meta,
.exhibit-images {
  min-width: 0;
}

@keyframes quietReveal {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes imageReveal {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.home-hero-inner,
.home-poster-section .container,
.home-about-grid,
.hero .container,
.works-header,
.works-section,
.materials-header,
.material-entry,
.article-reading,
.exhibit-header,
.exhibit-images,
.exhibit-description {
  animation: quietReveal 560ms ease-out both;
}

/* Header & Navigation */
header {
  background: #ECECE7;
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 18px 0;
}

.logo {
  color: var(--color-accent);
  font-family: var(--font-heading);
  font-size: 1.26rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
  text-decoration: none;
  min-width: 0;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0 0 0 auto;
  padding: 0;
}

.nav-links a {
  color: var(--color-text);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
  transition: color 0.18s ease, border-color 0.18s ease;
  border-bottom: 1px solid transparent;
  padding-bottom: 4px;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-accent);
  border-color: var(--color-earth-muted);
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 4px;
  padding: 2px 0 2px 14px;
  border-left: 1px solid var(--color-border);
  color: var(--color-text-light);
  line-height: 1;
}

.language-option {
  appearance: none;
  background: transparent;
  border: 0;
  border-bottom: 1px solid transparent;
  border-radius: 0;
  color: var(--color-text-light);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
  padding: 6px 3px 5px;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.language-option:hover {
  color: var(--color-accent);
}

.language-option.is-active,
.language-option[aria-pressed="true"] {
  color: var(--color-accent);
  border-color: var(--color-earth-muted);
}

.language-divider-mark {
  color: var(--color-border-strong);
  font-size: 0.78rem;
  line-height: 1;
  margin: 0 1px;
}

/* Hero Section */
.hero {
  padding: 96px 0 68px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2.35rem, 5vw, 4.25rem);
  max-width: 920px;
  margin: 0 auto 22px;
  line-height: 1.04;
  font-weight: 720;
  color: var(--color-accent);
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.hero .subtitle {
  color: var(--color-text-light);
  font-size: 1.2rem;
  line-height: 1.68;
  max-width: 660px;
  margin: 0 auto 42px;
}

/* Homepage entrance */
.home-hero {
  min-height: auto;
  display: grid;
  align-items: start;
  padding: 34px 0 34px;
  border-bottom: 1px solid var(--color-border);
}

.home-hero-inner {
  display: grid;
  max-width: 980px;
  text-align: center;
}

.home-kicker,
.home-eyebrow {
  color: var(--color-earth);
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 18px;
  text-transform: uppercase;
}

.home-title {
  font-family: var(--font-heading);
  font-size: clamp(3.2rem, 8vw, 7.1rem);
  font-weight: 660;
  letter-spacing: 0;
  line-height: 0.98;
  margin: 0 auto 30px;
  max-width: 1000px;
}

.home-title [data-lang="az"] {
  font-family: inherit;
}

.home-title [data-lang="en"] {
  font-family: inherit;
}

.home-title-part {
  white-space: nowrap;
}

.home-summary {
  color: var(--color-text);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.58;
  margin: 0 auto;
  max-width: 720px;
}

.home-summary p {
  margin: 0;
}

.home-summary p + p {
  margin-top: 4px;
}

.home-context {
  color: var(--color-text-light);
  font-size: 1.02rem;
  line-height: 1.7;
  margin: 34px auto 0;
  max-width: 720px;
}

.home-statement {
  border-bottom: 1px solid var(--color-border);
  padding: 52px 0 48px;
}

.home-statement-copy {
  color: var(--color-accent);
  font-family: var(--font-heading);
  font-size: clamp(1.16rem, 2.2vw, 1.72rem);
  font-weight: 520;
  line-height: 1.45;
  margin: 0 auto;
  max-width: 920px;
}

.home-statement-copy p {
  margin: 0;
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 22px;
  margin-top: 38px;
}

.home-link {
  border-bottom: 1px solid var(--color-earth-muted);
  color: var(--color-accent);
  font-family: var(--font-heading);
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.2;
  padding: 8px 0;
  text-decoration: none;
}

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

.home-poster-section,
.home-about {
  padding: 86px 0;
}

.home-poster-section {
  background: rgba(255, 252, 246, 0.34);
  border-bottom: 1px solid var(--color-border);
  padding-top: 46px;
}

.home-section-heading {
  border-top: 1px solid var(--color-border);
  display: grid;
  grid-template-columns: minmax(0, 0.36fr) minmax(0, 0.64fr);
  gap: 28px;
  margin-bottom: 34px;
  padding-top: 22px;
}

.home-section-heading h2 {
  font-size: clamp(1.65rem, 3vw, 2.7rem);
  line-height: 1.06;
  margin: 0;
}

.home-poster-section .home-section-heading h2 {
  white-space: nowrap;
}

.home-posters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin: 0 auto;
  max-width: 900px;
}

.home-poster {
  margin: 0;
}

.home-poster img {
  animation: imageReveal 520ms ease-out both;
  background: #ECECE7;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  box-shadow: var(--shadow-soft);
  cursor: zoom-in;
  display: block;
  height: auto;
  transition: border-color 0.18s ease, opacity 0.22s ease;
  width: 100%;
}

.home-poster figcaption {
  color: var(--color-text-light);
  font-family: var(--font-heading);
  font-size: 0.76rem;
  font-weight: 700;
  margin-top: 10px;
  text-align: right;
}

.home-about-grid {
  display: grid;
  gap: 0;
}

.home-about-copy {
  border-left: 1px solid var(--color-border);
  font-size: 1.05rem;
  line-height: 1.76;
  margin-left: calc(36% + 14px);
  max-width: 760px;
  padding-left: 32px;
}

.home-about-copy p {
  margin-bottom: 1.08em;
}

/* Sections */
.section {
  padding: 76px 0;
}

.container.section {
  padding-left: 28px;
  padding-right: 28px;
}

.section-title {
  color: var(--color-accent);
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3vw, 2.45rem);
  font-weight: 680;
  line-height: 1.15;
  margin: 0 0 38px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-border);
}

.section-title::after {
  content: "";
  display: block;
  width: 72px;
  height: 1px;
  margin-top: 15px;
  background: var(--color-earth-muted);
}

/* Cards (Exhibits grid) */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 26px;
}

.card {
  display: block;
  background: #ECECE7;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  overflow: hidden;
  transition: border-color 0.18s ease, transform 0.18s ease, background-color 0.18s ease;
  text-decoration: none;
  color: inherit;
}

.card:hover {
  background: #ECECE7;
  border-color: var(--color-border-strong);
  transform: translateY(-1px);
}

.card:focus-visible,
.work-card:focus-visible,
.material-entry:focus-visible,
.article-card:focus-visible,
.btn:focus-visible,
.back-link:focus-visible,
.language-option:focus-visible,
.nav-links a:focus-visible {
  outline: 2px solid var(--color-accent-light);
  outline-offset: 3px;
}

.card-image {
  animation: imageReveal 520ms ease-out both;
  display: block;
  width: 100%;
  height: 232px;
  object-fit: cover;
  background: var(--color-surface-muted);
  border-bottom: 1px solid var(--color-border);
}

.image-placeholder {
  background: #ECECE7;
}

.card-content {
  padding: 24px 24px 26px;
}

.card-content h3 {
  margin: 0 0 12px;
  color: var(--color-accent);
  font-size: 1.14rem;
  font-weight: 650;
  line-height: 1.28;
}

.card-content p {
  margin: 0;
  color: var(--color-text-light);
  font-size: 0.95rem;
  line-height: 1.62;
}

/* Works catalogue */
.works-page {
  padding-top: 68px;
}

.works-header {
  background: transparent;
  border-bottom: 0;
  margin: 0 0 58px;
  max-width: 760px;
  position: static;
  top: auto;
  z-index: auto;
}

.works-kicker {
  color: var(--color-earth);
  font-size: 0.76rem;
  font-weight: 760;
  letter-spacing: 0.08em;
  line-height: 1.35;
  margin: 0 0 14px;
  text-transform: uppercase;
}

.works-section {
  border-top: 0;
  padding: 26px 0 46px;
}

.works-section:last-child {
  padding-bottom: 0;
}

.works-section-title {
  color: var(--color-accent);
  font-family: var(--font-heading);
  font-size: clamp(1.45rem, 2vw, 1.85rem);
  font-weight: 680;
  line-height: 1.18;
  margin: 0 0 26px;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.work-card {
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
  background: #ECECE7;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  color: inherit;
  overflow: hidden;
  text-decoration: none;
  transition: background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.work-card:hover {
  background: #ECECE7;
  border-color: var(--color-border-strong);
}

.work-card:hover h3 {
  color: var(--color-accent-light);
}

.work-image {
  animation: imageReveal 520ms ease-out both;
  aspect-ratio: 4 / 3;
  background: var(--color-surface-muted);
  border-bottom: 1px solid var(--color-border);
  display: block;
  height: auto;
  object-fit: cover;
  width: 100%;
}

.work-image.image-placeholder,
.work-image[src$="placeholder.svg"] {
  background:
    linear-gradient(135deg, rgba(138, 103, 77, 0.08), rgba(22, 58, 91, 0.035)),
    #ECECE7;
  object-fit: contain;
  padding: 34px;
}

.work-content {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 21px 20px 22px;
}

.work-meta {
  color: var(--color-earth);
  font-size: 0.78rem;
  font-weight: 720;
  line-height: 1.38;
  margin: 0;
}

.work-content h3 {
  color: var(--color-accent);
  font-family: var(--font-heading);
  font-size: 1.08rem;
  font-weight: 640;
  line-height: 1.28;
  margin: 0;
  overflow-wrap: anywhere;
}

.work-details {
  color: var(--color-text-light);
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 2px 0 0;
}

/* Exhibit detail page */
.object-page {
  padding-top: 62px;
}

.exhibit-header {
  margin-bottom: 38px;
}

.exhibit-header h1 {
  font-size: clamp(2rem, 3.8vw, 3.15rem);
  font-weight: 660;
  line-height: 1.12;
  margin: 18px 0 24px;
  max-width: 1040px;
}

.back-link {
  color: var(--color-earth);
  display: inline-flex;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
}

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

.exhibit-meta {
  color: var(--color-text-light);
  font-size: 0.9rem;
  max-width: 1040px;
  padding: 18px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.exhibit-meta dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 18px 30px;
  margin: 0;
}

.exhibit-meta div {
  min-width: 0;
}

.exhibit-meta dt {
  margin: 0 0 6px;
  color: var(--color-earth);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0;
  line-height: 1.3;
  text-transform: uppercase;
}

.exhibit-meta dd {
  margin: 0;
  color: var(--color-text);
  line-height: 1.5;
}

.exhibit-images {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  float: none;
  width: auto;
  margin: 0;
}

.exhibit-images img {
  animation: imageReveal 560ms ease-out both;
  display: block;
  width: 100%;
  max-width: 1040px;
  max-height: 760px;
  object-fit: contain;
  object-position: center;
  border-radius: 6px;
  border: 1px solid var(--color-border);
  background: #ECECE7;
  cursor: zoom-in;
}

.exhibit-images img.image-placeholder,
.exhibit-images img[src$="placeholder.svg"] {
  background:
    linear-gradient(135deg, rgba(138, 103, 77, 0.08), rgba(22, 58, 91, 0.035)),
    #ECECE7;
  min-height: 360px;
  object-fit: contain;
  padding: 48px;
}

.photo-credit {
  clear: none;
  float: none;
  width: auto;
  max-width: 1040px;
  margin: 10px 0 40px;
  color: var(--color-text-light);
  font-size: 0.78rem;
  line-height: 1.45;
  text-align: left;
}

.language-divider {
  margin: 42px 0;
  border: none;
  border-top: 1px solid var(--color-border);
}

.exhibit-description {
  max-width: 820px;
  font-size: 1.05rem;
  line-height: 1.75;
  margin-top: 42px;
}

.exhibit-description h2 {
  color: var(--color-earth);
  font-size: 0.78rem;
  font-weight: 760;
  letter-spacing: 0.08em;
  line-height: 1.35;
  margin: 0 0 18px;
  text-transform: uppercase;
}

.exhibit-description h3 {
  color: var(--color-accent);
  font-size: 1.05rem;
  font-weight: 650;
  line-height: 1.3;
  margin: 30px 0 14px;
}

.exhibit-description h2 + h3 {
  margin-top: 0;
}

.exhibit-description p,
.article-content p {
  margin-bottom: 1.05em;
}

.language-panel [data-lang] {
  display: block;
}

.lang-label {
  margin-bottom: 8px;
  color: var(--color-earth);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0;
  text-transform: uppercase;
}

/* Materials / reading archive */
.materials-page,
.reading-page {
  padding-top: 68px;
}

.materials-header,
.article-header {
  background: transparent;
  border-bottom: 0;
  margin: 0 0 54px;
  max-width: 780px;
  position: static;
  top: auto;
  z-index: auto;
}

.materials-kicker,
.article-kicker {
  color: var(--color-earth);
  font-size: 0.76rem;
  font-weight: 760;
  letter-spacing: 0.08em;
  line-height: 1.35;
  margin: 0 0 14px;
  text-transform: uppercase;
}

.materials-intro {
  color: var(--color-text-light);
  font-size: 1.03rem;
  line-height: 1.68;
  margin: 0;
  max-width: 720px;
}

.material-list {
  border-top: 1px solid var(--color-border);
  display: grid;
  gap: 0;
  max-width: 920px;
}

.material-entry {
  background: transparent;
  border-bottom: 1px solid var(--color-border);
  color: inherit;
  display: block;
  padding: 26px 0 28px;
  text-decoration: none;
  transition: border-color 0.18s ease, color 0.18s ease;
}

.material-entry-active {
  cursor: pointer;
}

.material-entry-active:hover h2 {
  color: var(--color-accent-light);
}

.material-entry-forthcoming {
  color: var(--color-text-light);
}

.material-entry-top {
  align-items: baseline;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  margin-bottom: 12px;
}

.material-type,
.material-state {
  color: var(--color-earth);
  font-size: 0.72rem;
  font-weight: 760;
  letter-spacing: 0.06em;
  line-height: 1.35;
  text-transform: uppercase;
}

.material-state {
  color: var(--color-text-light);
}

.material-entry h2 {
  color: var(--color-accent);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-weight: 650;
  line-height: 1.25;
  margin: 0;
  max-width: 760px;
  transition: color 0.18s ease;
}

.material-entry-forthcoming h2 {
  color: var(--color-text);
}

.material-meta,
.article-content .meta {
  color: var(--color-text-light);
  font-size: 0.86rem;
  line-height: 1.45;
  margin: 10px 0 0;
}

.material-summary {
  color: var(--color-text-light);
  font-size: 0.95rem;
  line-height: 1.58;
  margin: 12px 0 0;
  max-width: 620px;
}

.article-content {
  max-width: 820px;
  font-size: 1.06rem;
}

.article-reading {
  margin-top: 20px;
}

.article-header {
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 38px;
  max-width: 820px;
  padding-bottom: 26px;
}

.article-content h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 660;
  line-height: 1.12;
  margin: 0 0 16px;
}

.article-meta {
  margin-top: 0;
}

.article-language-panel [data-lang] {
  display: block;
}

.article-content h2 {
  color: var(--color-earth);
  font-size: 0.78rem;
  font-weight: 760;
  letter-spacing: 0.08em;
  line-height: 1.35;
  margin: 0 0 22px;
  text-transform: uppercase;
}

.article-content h3 {
  color: var(--color-accent);
  font-size: 1.18rem;
  line-height: 1.3;
  margin: 34px 0 14px;
}

.article-content p {
  line-height: 1.78;
}

.article-content blockquote {
  border-left: 2px solid var(--color-earth);
  color: var(--color-text);
  font-size: clamp(1.08rem, 2vw, 1.22rem);
  line-height: 1.62;
  margin: 34px 0;
  padding: 4px 0 4px 24px;
}

/* Buttons */
.btn {
  display: inline-block;
  background: var(--color-accent);
  color: #fffaf2;
  padding: 12px 26px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 650;
  line-height: 1.25;
  transition: background-color 0.18s ease, border-color 0.18s ease;
  border: 1px solid var(--color-accent);
  cursor: pointer;
}

.btn:hover {
  background: var(--color-accent-light);
  color: #fffaf2;
  border-color: var(--color-accent-light);
}

/* Footer */
footer {
  background: #ECECE7;
  border-top: 1px solid var(--color-border);
  padding: 46px 0;
  margin-top: 88px;
  color: var(--color-text-light);
  font-size: 0.9rem;
}

footer p {
  margin: 0;
}

/* Utility */
.text-center { text-align: center; }
.mt-40 { margin-top: 40px; }

/* Exhibition posters side-by-side - previews sized to match the actual poster proportions (almost square) */
.posters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 380px));
  gap: 16px;
  justify-content: center;
  margin: 24px auto;
}

.posters img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
}

@media (max-width: 768px) {
  .posters {
    grid-template-columns: repeat(2, minmax(0, 300px));
    gap: 10px;
  }
}

/* Lightbox / Fullscreen image viewer */
.lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 20px;
  cursor: zoom-out;
}

.lightbox-modal.active {
  display: flex;
}

.lightbox-modal img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.6);
  cursor: default;
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: rgba(255,255,255,0.15);
  color: white;
  border: none;
  font-size: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 100000;
  line-height: 1;
  transition: background 0.2s;
}

.lightbox-close:hover {
  background: rgba(255,255,255,0.3);
}

.lightbox-caption {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.85);
  font-size: 0.85rem;
  text-align: center;
  max-width: 90%;
  pointer-events: none;
}

/* ============================================
   RESPONSIVE / MOBILE
   ============================================ */

@media (max-width: 768px) {
  body {
    font-size: 15.8px;
    line-height: 1.68;
  }

  .container {
    padding: 0 22px;
  }

  .exhibit-description,
  .article-content,
  .hero .subtitle,
  .section > div[style*="max-width"] {
    padding-left: 2px;
    padding-right: 2px;
  }

  .nav {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto 34px;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 14px 0;
  }

  .nav-links {
    gap: 16px;
    font-size: 0.95rem;
    flex-wrap: wrap;
  }

  .hero {
    padding: 58px 0 46px;
  }

  .hero h1 {
    font-size: clamp(2rem, 9vw, 2.7rem);
  }

  .home-hero {
    min-height: auto;
    padding: 34px 0 32px;
  }

  .home-title {
    font-size: clamp(2.65rem, 11vw, 5.25rem);
    line-height: 0.98;
    margin-bottom: 24px;
  }

  .home-title [data-lang="en"] {
    display: inline-block;
    max-width: 10.8em;
  }

  .home-title [data-lang="en"] .home-title-part {
    display: block;
  }

  .home-context {
    font-size: 1rem;
    margin-top: 28px;
  }

  .home-statement {
    padding: 40px 0 38px;
  }

  .home-statement-copy {
    font-size: 1.14rem;
    line-height: 1.5;
  }

  .home-poster-section,
  .home-about {
    padding: 58px 0;
  }

  .home-poster-section {
    padding-top: 38px;
  }

  .home-section-heading {
    grid-template-columns: 1fr;
    gap: 6px;
    margin-bottom: 28px;
  }

  .home-eyebrow {
    margin-bottom: 4px;
  }

  .home-posters {
    gap: 18px;
  }

  .home-about-copy {
    border-left: 0;
    border-top: 1px solid var(--color-border);
    margin-left: 0;
    max-width: none;
    padding: 26px 0 0;
  }

  .hero .subtitle {
    font-size: 1.03rem;
    margin-bottom: 28px;
  }

  .section {
    padding: 48px 0;
  }

  .container.section {
    padding-left: 22px;
    padding-right: 22px;
  }

  .section-title {
    font-size: 1.65rem;
    margin-bottom: 28px;
    padding-bottom: 14px;
  }

  .grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .works-page {
    padding-top: 48px;
  }

  .works-header {
    margin-bottom: 42px;
  }

  .works-section {
    padding: 28px 0 42px;
  }

  .works-section-title {
    font-size: 1.42rem;
    margin-bottom: 20px;
  }

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

  .work-content {
    padding: 19px 18px 20px;
  }

  .card-image {
    height: 215px;
  }

  .card-content {
    padding: 22px;
  }

  .object-page {
    padding-top: 46px;
  }

  .exhibit-header {
    margin-bottom: 30px;
  }

  .exhibit-header h1 {
    font-size: clamp(1.75rem, 7vw, 2.2rem);
    line-height: 1.16;
    margin-bottom: 20px;
  }

  .exhibit-meta dl {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .exhibit-images {
    float: none;
    width: auto;
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 0;
  }

  .exhibit-images img,
  .photo-credit {
    max-width: none;
  }

  .exhibit-images img {
    max-height: 68vh;
  }

  .exhibit-images img.image-placeholder,
  .exhibit-images img[src$="placeholder.svg"] {
    min-height: 280px;
    padding: 36px;
  }

  .photo-credit {
    clear: none;
    float: none;
    width: auto;
    margin: 8px 0 34px;
    text-align: left;
  }

  .exhibit-description {
    margin-top: 34px;
    max-width: none;
  }

  .article-card {
    padding: 22px 20px;
  }

  .materials-page,
  .reading-page {
    padding-top: 48px;
  }

  .materials-header,
  .article-header {
    margin-bottom: 36px;
  }

  .material-entry {
    padding: 22px 0 24px;
  }

  .material-entry-top {
    gap: 8px;
  }

  .article-header {
    padding-bottom: 22px;
  }

  .article-content {
    font-size: 1rem;
  }

  footer {
    padding: 34px 0;
    margin-top: 56px;
  }
}

@media (max-width: 560px) {
  .posters {
    grid-template-columns: minmax(0, 1fr);
    max-width: 390px;
  }

  .home-posters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    max-width: min(100%, 620px);
  }
}

@media (max-width: 520px) {
  .nav {
    grid-template-columns: minmax(0, 1fr) 34px;
    row-gap: 8px;
  }

  .language-switcher {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: start;
    padding: 6px 0 0;
    border-left: 0;
    border-top: 1px solid var(--color-border);
    width: 100%;
  }

  .nav .hamburger {
    grid-column: 2;
    grid-row: 1;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 20px;
  }

  .container.section {
    padding-left: 20px;
    padding-right: 20px;
  }

  .exhibit-description,
  .article-content,
  .hero .subtitle {
    padding-left: 2px;
    padding-right: 2px;
  }

  .logo {
    font-size: 1.08rem;
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .hero h1 {
    font-size: 1.78rem;
    line-height: 1.08;
  }

  .home-hero {
    padding: 28px 0 28px;
  }

  .home-kicker,
  .home-eyebrow {
    font-size: 0.72rem;
  }

  .home-title {
    font-size: clamp(2.15rem, 12vw, 3.05rem);
    line-height: 1.02;
  }

  .home-title [data-lang="en"] {
    font-size: 0.92em;
    max-width: 8.65em;
  }

  .home-summary {
    font-size: 1rem;
  }

  .home-statement {
    padding: 34px 0 32px;
  }

  .home-statement-copy {
    font-size: 1.04rem;
    line-height: 1.55;
  }

  .home-actions {
    gap: 10px 18px;
    margin-top: 30px;
  }

  .home-poster-section,
  .home-about {
    padding: 46px 0;
  }

  .home-poster-section {
    padding-top: 32px;
  }

  .home-section-heading h2 {
    font-size: 1.55rem;
  }

  .section-title {
    font-size: 1.48rem;
  }

  .materials-page,
  .reading-page {
    padding-top: 40px;
  }

  .materials-header,
  .article-header {
    margin-bottom: 30px;
  }

  .materials-kicker,
  .article-kicker,
  .material-type,
  .material-state,
  .article-content h2 {
    font-size: 0.68rem;
  }

  .materials-intro {
    font-size: 0.98rem;
  }

  .material-entry-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .material-entry h2 {
    font-size: 1.16rem;
  }

  .article-content h1 {
    font-size: clamp(1.62rem, 8vw, 1.95rem);
    line-height: 1.18;
  }

  .article-content blockquote {
    font-size: 1.03rem;
    margin: 28px 0;
    padding-left: 18px;
  }

  .object-page {
    padding-top: 38px;
  }

  .back-link {
    font-size: 0.86rem;
  }

  .exhibit-header {
    margin-bottom: 26px;
  }

  .exhibit-header h1 {
    font-size: clamp(1.62rem, 8vw, 1.95rem);
    line-height: 1.18;
  }

  .exhibit-meta {
    padding: 16px 0;
  }

  .exhibit-meta dt {
    font-size: 0.68rem;
  }

  .exhibit-images img {
    max-height: 62vh;
  }

  .exhibit-images img.image-placeholder,
  .exhibit-images img[src$="placeholder.svg"] {
    min-height: 230px;
    padding: 28px;
  }

  .photo-credit {
    margin-bottom: 28px;
  }

  .exhibit-description {
    font-size: 1rem;
    line-height: 1.7;
    margin-top: 28px;
  }

  .works-page {
    padding-top: 42px;
  }

  .works-header {
    margin-bottom: 34px;
  }

  .works-kicker {
    font-size: 0.72rem;
  }

  .works-section {
    padding: 24px 0 36px;
  }

  .works-section-title {
    font-size: 1.32rem;
    margin-bottom: 18px;
  }

  .works-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .work-image {
    aspect-ratio: 16 / 11;
  }

  .work-image.image-placeholder,
  .work-image[src$="placeholder.svg"] {
    padding: 28px;
  }

  .work-content {
    gap: 9px;
    padding: 18px 18px 19px;
  }

  .work-content h3 {
    font-size: 1.04rem;
  }

  .card-image {
    height: 205px;
  }

  .btn {
    padding: 10px 20px;
    font-size: 0.95rem;
  }
}

/* ============================================
   HAMBURGER MENU (Mobile only)
   ============================================ */

.hamburger {
  display: none;
  background: none;
  border: none;
  width: 34px;
  height: 34px;
  position: relative;
  cursor: pointer;
  padding: 0;
  margin-left: auto;
  z-index: 300;
}

/* CSS hamburger icon */
.hamburger span {
  display: block;
  position: absolute;
  height: 2px;
  width: 22px;
  background: var(--color-accent);
  left: 6px;
  transition: all 0.3s ease;
}

.hamburger span:nth-child(1) { top: 10px; }
.hamburger span:nth-child(2) { top: 16px; }
.hamburger span:nth-child(3) { top: 22px; }

.hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg);
  top: 16px;
}
.hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg);
  top: 16px;
}

@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .nav {
    position: relative;
  }

  .nav .hamburger {
    flex: 0 0 34px;
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    margin-left: auto;
  }

  .language-switcher {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    padding-left: 10px;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    grid-column: 1 / -1;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-top: none;
    flex-direction: column;
    gap: 0;
    padding: 8px 0;
    box-shadow: var(--shadow-soft);
    z-index: 250;
  }

  .nav.open .nav-links {
    display: flex;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 14px 22px;
    font-size: 1rem;
    border-top: 1px solid var(--color-border);
    border-bottom: 0;
  }

  .nav-links a:first-child {
    border-top: none;
  }

  .nav-links a:hover,
  .nav-links a.active {
    background: var(--color-surface-muted);
    color: var(--color-accent);
  }
}

/* Hide hamburger on desktop */
@media (min-width: 769px) {
  .hamburger {
    display: none !important;
  }
}

@media (max-width: 520px) {
  .nav {
    grid-template-columns: minmax(0, 1fr) 34px;
  }

  .logo {
    max-width: 100%;
  }

  .language-switcher {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: start;
    padding: 6px 0 0;
    border-left: 0;
    border-top: 1px solid var(--color-border);
    width: 100%;
  }

  .nav .hamburger {
    display: block;
    grid-column: 2;
    grid-row: 1;
    position: relative;
    top: auto;
    right: auto;
    justify-self: end;
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
