/* Dimitri Perdikidis — modern static site */
:root {
  --ink: #1a1714;
  --ink-soft: #3d3832;
  --paper: #f3efe6;
  --paper-2: #e8e2d6;
  --stone: #c4b8a4;
  --sea: #1e3a42;
  --sea-mid: #2f5560;
  --accent: #8b4518;
  --accent-soft: #a65d2e;
  --line: rgba(26, 23, 20, 0.12);
  --shadow: 0 24px 60px rgba(26, 23, 20, 0.18);
  --font-display: "Cormorant Garamond", "EB Garamond", "Georgia", serif;
  --font-body: "Sora", "Source Sans 3", "Segoe UI", sans-serif;
  --max: 1120px;
  --header-h: 4.25rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html:lang(el) {
  --font-display: "EB Garamond", "Cormorant Garamond", "Georgia", serif;
  --font-body: "Source Sans 3", "Sora", "Segoe UI", sans-serif;
  /* Source Sans 3 / EB Garamond read smaller than Sora / Cormorant */
  font-size: 112%;
  /* Keep banner bar the same physical height as EN/ES (undo root rem growth) */
  --header-h: 3.79rem;
}

html:lang(el) body {
  line-height: 1.7;
}

html:lang(el) .nav-wrap {
  padding: 0.8rem 1.12rem;
  min-height: 2.9rem;
}

/* Brand name is Latin — keep same font/look as EN/ES */
html:lang(el) .brand {
  font-family: "Cormorant Garamond", "Georgia", serif;
  font-size: clamp(1.05rem, 2.14vw, 1.32rem);
  font-weight: 600;
  letter-spacing: 0.01em;
}

html:lang(el) .brand span {
  font-family: "Sora", "Segoe UI", sans-serif;
  font-size: 0.61rem;
  font-weight: 400;
  letter-spacing: 0.14em;
}

html:lang(el) .nav a {
  font-size: 0.81rem;
}

html:lang(el) .lang-switch a {
  font-size: 0.7rem;
}

html:lang(el) .section-head h2,
html:lang(el) .page-hero h1,
html:lang(el) .expo-feature .section-head h2 {
  letter-spacing: 0.01em;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding-top: var(--header-h);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(47, 85, 96, 0.12), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(139, 69, 24, 0.08), transparent 55%),
    linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%);
  min-height: 100vh;
}

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

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

button {
  font: inherit;
  cursor: pointer;
  border: 0;
  background: none;
  color: inherit;
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--sea-mid);
  outline-offset: 3px;
}

.nav a:focus-visible,
.lang-switch a:focus-visible,
.brand:focus-visible {
  outline-offset: 4px;
  border-radius: 2px;
}

.work-card:focus-visible,
.filter-btn:focus-visible,
.btn:focus-visible,
.menu-toggle:focus-visible,
.lightbox-close:focus-visible,
.lightbox-nav:focus-visible,
.lightbox-zoom-btn:focus-visible {
  outline-offset: 2px;
}

.lightbox :focus-visible {
  outline-color: rgba(243, 239, 230, 0.9);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.nav-wrap {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.9rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.25rem;
}

.brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.18rem, 2.4vw, 1.48rem);
  letter-spacing: 0.01em;
  flex: 0 0 auto;
  white-space: nowrap;
}

.brand span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 0.15rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.35rem 1.1rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  font-size: 0.86rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.72;
  transition: opacity 0.25s var(--ease);
}

.nav a:hover,
.nav a[aria-current="page"] {
  opacity: 1;
}

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  margin-left: 0.4rem;
}

.lang-switch a {
  padding: 0.35rem 0.65rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.55;
}

.lang-switch a.active {
  background: var(--ink);
  color: var(--paper);
  opacity: 1;
}

.menu-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line);
  border-radius: 0.4rem;
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 1.1rem;
  height: 1.5px;
  background: var(--ink);
  margin: 0 auto;
  position: relative;
}

.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-toggle span::before { top: -5px; }
.menu-toggle span::after { top: 5px; }

.hero {
  position: relative;
  min-height: min(92vh, 860px);
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--paper);
}

.hero-media {
  position: absolute;
  inset: 0;
  background-color: #1e3a42;
  background-image:
    linear-gradient(180deg, rgba(26, 23, 20, 0.25) 0%, rgba(26, 23, 20, 0.55) 45%, rgba(26, 23, 20, 0.92) 100%),
    var(--hero-image, none);
  background-size: cover;
  background-position: center 20%;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      -18deg,
      transparent 0 14px,
      rgba(243, 239, 230, 0.03) 14px 15px
    );
  opacity: 0.7;
  animation: drift 28s linear infinite;
}

@keyframes drift {
  from { transform: translateX(0); }
  to { transform: translateX(-40px); }
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 5rem 1.25rem 3.5rem;
}

.hero-title {
  margin: 0;
  line-height: 0;
  animation: rise 0.9s var(--ease) both;
}

.hero-signature {
  display: block;
  width: min(520px, 82vw);
  height: auto;
  max-height: 11rem;
  object-fit: contain;
  object-position: left bottom;
}

.hero h1.hero-title + p,
.hero p {
  margin: 1.25rem 0 0;
  max-width: none;
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: rgba(243, 239, 230, 0.88);
  text-align: justify;
  hyphens: auto;
  animation: rise 0.9s var(--ease) 0.12s both;
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  animation: rise 0.9s var(--ease) 0.22s both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--paper);
  color: var(--ink);
}

.btn-ghost {
  border: 1px solid rgba(243, 239, 230, 0.45);
  color: var(--paper);
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 4.5rem 1.25rem;
}

.section-head {
  margin-bottom: 2rem;
}

.section-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 560;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.section-head p {
  margin: 0.75rem 0 0;
  color: var(--ink-soft);
  text-align: justify;
  hyphens: auto;
}

.decade-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem;
}

.decade-card {
  position: relative;
  min-height: 12.5rem;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-radius: 0.35rem;
  overflow: hidden;
  color: var(--paper);
  background-color: var(--sea);
  background-image:
    linear-gradient(180deg, rgba(18, 16, 14, 0.15) 0%, rgba(18, 16, 14, 0.78) 100%),
    var(--decade-image, none);
  background-size: cover;
  background-position: center;
  transition: transform 0.35s var(--ease);
}

.decade-card:hover {
  transform: translateY(-4px);
}

.decade-card strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.decade-card span {
  font-size: 0.78rem;
  opacity: 0.8;
  margin-top: 0.25rem;
}

.prose {
  max-width: none;
}

.prose p {
  margin: 0 0 1.1rem;
  color: var(--ink-soft);
  text-align: justify;
  hyphens: auto;
}

.prose p:first-of-type {
  font-size: 1.12rem;
  color: var(--ink);
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 1px solid var(--line);
}

.timeline li {
  position: relative;
  padding: 0 0 1.4rem 1.4rem;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -4px;
  top: 0.45rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.timeline strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: 0.2rem;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}

.filter-btn {
  padding: 0.55rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.85rem;
}

.work-card {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 0.3rem;
  overflow: hidden;
  background: linear-gradient(145deg, var(--sea-mid), var(--ink));
  cursor: zoom-in;
  isolation: isolate;
}

.work-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--ease), opacity 0.35s ease;
}

.work-card:hover img {
  transform: scale(1.04);
}

.work-card .meta {
  position: absolute;
  inset: auto 0 0 0;
  padding: 2.2rem 0.8rem 0.75rem;
  background: linear-gradient(transparent, rgba(18, 16, 14, 0.88));
  color: var(--paper);
  font-size: 0.72rem;
  line-height: 1.35;
  transform: translateY(8px);
  opacity: 0;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  display: grid;
  gap: 0.15rem;
}

.work-card .meta .cap-title {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.25;
}

.work-card .meta .cap-tech,
.work-card .meta .cap-place {
  opacity: 0.88;
}

.work-card:hover .meta,
.work-card:focus-within .meta {
  opacity: 1;
  transform: translateY(0);
}

.work-card.missing::before {
  content: attr(data-id);
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: rgba(243, 239, 230, 0.55);
  letter-spacing: 0.04em;
  z-index: 1;
}

.list-block {
  display: grid;
  gap: 2.5rem;
}

.list-block.two-col {
  grid-template-columns: 1fr 1fr;
  align-items: start;
}

.list-block h3 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.45rem;
}

.list-block .years {
  margin: 0;
  padding: 0;
  list-style: none;
}

.list-block .years.dense {
  columns: 1;
}

.list-block .years.dense li {
  break-inside: avoid;
}

.list-block .years li {
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.list-block .years li strong {
  color: var(--ink);
  margin-right: 0.55rem;
  font-family: var(--font-display);
}

.expo-layout {
  display: grid;
  grid-template-columns: 13.5rem minmax(0, 1fr);
  gap: 2rem;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.25rem 3rem;
  align-items: start;
}

.expo-toc {
  position: sticky;
  top: calc(var(--header-h) + 1.25rem);
  padding: 1rem 0;
}

.expo-toc-label {
  margin: 0 0 0.85rem;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.expo-toc nav {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  border-left: 1px solid var(--line);
  padding-left: 0.85rem;
}

.expo-toc a {
  display: block;
  padding: 0.4rem 0;
  font-size: 0.92rem;
  line-height: 1.35;
  color: var(--ink-soft);
  transition: color 0.2s var(--ease), transform 0.2s var(--ease);
}

.expo-toc a:hover {
  color: var(--ink);
}

.expo-toc a.active {
  color: var(--ink);
  font-weight: 500;
  transform: translateX(2px);
}

.expo-toc .year {
  display: block;
  font-family: var(--font-display);
  font-size: 0.86rem;
  color: var(--accent);
  letter-spacing: 0.04em;
}

.expo-main {
  min-width: 0;
}

.expo-feature {
  max-width: none;
  margin: 0 0 3.25rem;
  padding: 0;
  scroll-margin-top: 5.5rem;
}

.expo-feature .section-head {
  margin-bottom: 1rem;
}

.expo-feature .prose {
  margin-bottom: 1.25rem;
}

.expo-feature .prose a {
  color: var(--sea-mid);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.critic-article .section-head p {
  margin-top: 0.5rem;
}

.critic-prose {
  max-width: none;
}

.critic-prose p {
  margin: 0 0 1rem;
  text-align: justify;
  hyphens: auto;
}

.critic-prose p:last-child {
  margin-bottom: 0;
}

.critic-prose .critic-note {
  text-align: left;
  color: var(--muted, #6b6560);
  font-size: 0.92em;
  margin-bottom: 1.25rem;
}

.critic-prose .critic-pdf a {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.expo-main > .section {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
  scroll-margin-top: 5.5rem;
}

.museums-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.biblio-hero {
  margin: 0 0 1.5rem;
  max-width: 36rem;
}

.biblio-hero img {
  width: 100%;
  height: auto;
  border-radius: 0.3rem;
  box-shadow: var(--shadow);
}

.biblio-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.7rem;
}

.biblio-list li {
  position: relative;
  padding-left: 1rem;
  color: var(--ink-soft);
  text-align: justify;
  hyphens: auto;
  line-height: 1.55;
}

.biblio-list li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.museums-list li {
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.95rem;
}

@media (max-width: 900px) {
  .expo-layout {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .expo-toc {
    position: static;
    top: auto;
    z-index: auto;
    margin: 0;
    padding: 0.85rem 0 1rem;
    background: transparent;
    backdrop-filter: none;
    border-bottom: 1px solid var(--line);
  }

  .expo-toc-label {
    margin-bottom: 0.65rem;
  }

  .expo-toc nav {
    flex-direction: row;
    flex-wrap: wrap;
    overflow: visible;
    gap: 0.4rem;
    border-left: 0;
    padding-left: 0;
    padding-bottom: 0;
  }

  .expo-toc a {
    flex: 0 1 auto;
    max-width: 100%;
    padding: 0.4rem 0.7rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
    font-size: 0.8rem;
    line-height: 1.3;
    white-space: normal;
  }

  .expo-toc a.active {
    background: var(--ink);
    color: var(--paper);
    border-color: var(--ink);
    transform: none;
  }

  .expo-toc .year {
    display: inline;
    margin-right: 0.3rem;
    color: inherit;
    opacity: 0.75;
  }

  .expo-toc a.active .year {
    color: rgba(243, 239, 230, 0.75);
  }

  .expo-feature,
  .expo-main > .section {
    scroll-margin-top: calc(var(--header-h) + 0.75rem);
  }

  .list-block.two-col {
    grid-template-columns: 1fr;
  }

  .gallery {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }

  .expo-main,
  .expo-feature,
  .prose {
    overflow: visible;
  }

  .prose .bio-inline {
    float: none;
    max-width: min(16rem, 100%);
    margin: 0 auto 1rem;
  }

  .biblio-hero {
    max-width: 100%;
  }
}

.contact-section {
  padding-top: 1rem;
}

.contact-panel {
  max-width: none;
  display: grid;
  gap: 2rem;
}

.contact-intro {
  max-width: none;
}

.contact-details {
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 0.4rem;
  background: rgba(255, 255, 255, 0.35);
  overflow: hidden;
}

.contact-row {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 1rem 1.25rem;
  align-items: baseline;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--line);
}

.contact-row:last-child {
  border-bottom: none;
}

.contact-row dt {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.contact-row dd {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
}

.contact-row dd p {
  margin: 0 0 0.35rem;
}

.contact-row dd p:last-child {
  margin-bottom: 0;
}

.contact-visit-title {
  font-weight: 500;
  margin-bottom: 0.5rem !important;
}

.contact-row a {
  color: var(--sea-mid);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-row a:hover {
  color: var(--ink);
}

.contact-sep {
  margin: 0 0.45rem;
  color: var(--ink-soft);
}

.interest-links {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.interest-links li {
  border-bottom: 1px solid var(--line);
}

.expo-main .interest-links {
  border-top: 0;
}

.interest-links a {
  display: grid;
  gap: 0.2rem;
  padding: 0.95rem 0;
  color: inherit;
  transition: color 0.2s var(--ease);
}

.interest-links a:hover {
  color: var(--sea-mid);
}

.interest-links .link-title {
  font-size: 1rem;
  line-height: 1.4;
  text-decoration: underline;
  text-underline-offset: 3px;
  color: var(--sea-mid);
}

.interest-links a:hover .link-title {
  color: var(--ink);
}

.interest-links .link-note {
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--ink-soft);
  text-decoration: none;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 1.25rem 2.5rem;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.85rem;
}

.site-footer a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.site-footer a:hover {
  color: var(--ink);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  place-items: center;
  padding:
    clamp(3.5rem, 8vh, 5rem)
    clamp(1rem, 3vw, 1.75rem)
    clamp(2.75rem, 7vh, 4rem);
  background: rgba(18, 16, 14, 0.9);
  box-sizing: border-box;
}

.lightbox.open {
  display: grid;
}

.lightbox-inner {
  max-width: min(920px, 100%);
  max-height: calc(100dvh - 7.5rem);
  width: 100%;
  display: grid;
  gap: 0.85rem;
  align-content: center;
  justify-items: center;
  box-sizing: border-box;
}

.lightbox-viewport {
  position: relative;
  width: 100%;
  max-height: calc(100dvh - 16.5rem);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-in;
  touch-action: manipulation;
}

.lightbox-viewport.is-zoomed {
  cursor: grab;
  touch-action: none;
}

.lightbox-viewport.is-dragging {
  cursor: grabbing;
}

.lightbox img {
  max-width: 100%;
  max-height: calc(100dvh - 16.5rem);
  margin: 0 auto;
  object-fit: contain;
  box-shadow: var(--shadow);
  transform-origin: center center;
  user-select: none;
  -webkit-user-drag: none;
  transition: transform 0.12s var(--ease);
}

.lightbox-viewport.is-dragging img {
  transition: none;
}

.lightbox-zoom {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}

.lightbox-zoom[hidden] {
  display: none;
}

.lightbox-zoom-btn {
  min-width: 2.35rem;
  height: 2.35rem;
  padding: 0 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(243, 239, 230, 0.35);
  background: rgba(18, 16, 14, 0.45);
  color: var(--paper);
  font-size: 1rem;
  line-height: 1;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), opacity 0.2s var(--ease);
}

.lightbox-zoom-btn:hover:not(:disabled) {
  background: rgba(18, 16, 14, 0.75);
  border-color: rgba(243, 239, 230, 0.7);
}

.lightbox-zoom-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.lightbox-zoom-reset {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  min-width: 2.8rem;
}

.lightbox-zoom-level {
  min-width: 3.2rem;
  text-align: center;
  color: rgba(243, 239, 230, 0.75);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

.lightbox p {
  margin: 0;
  color: rgba(243, 239, 230, 0.9);
  text-align: center;
  font-size: 0.92rem;
}

#lightbox-caption {
  display: grid;
  gap: 0.25rem;
  justify-items: center;
  padding: 0.35rem 0.5rem 0.15rem;
  max-width: 40rem;
}

#lightbox-caption .cap-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
}

#lightbox-caption .cap-tech,
#lightbox-caption .cap-place {
  font-size: 0.88rem;
  opacity: 0.88;
}

.lightbox-counter {
  margin: 0.35rem 0 0.15rem;
  color: rgba(243, 239, 230, 0.65);
  text-align: center;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  border: 1px solid rgba(243, 239, 230, 0.35);
  color: var(--paper);
  font-size: 1.4rem;
  line-height: 1;
  z-index: 2;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 50%;
  border: 1px solid rgba(243, 239, 230, 0.35);
  background: rgba(18, 16, 14, 0.45);
  color: var(--paper);
  font-size: 1.8rem;
  line-height: 1;
  display: grid;
  place-items: center;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.lightbox-nav:hover {
  background: rgba(18, 16, 14, 0.75);
  border-color: rgba(243, 239, 230, 0.7);
}

.lightbox-nav[hidden] {
  display: none;
}

.lightbox-prev {
  left: 0.75rem;
}

.lightbox-next {
  right: 0.75rem;
}

@media (max-width: 720px) {
  .lightbox {
    padding:
      clamp(3.25rem, 7.5vh, 4.25rem)
      0.85rem
      clamp(2.5rem, 6.5vh, 3.5rem);
  }

  .lightbox-inner {
    max-height: calc(100dvh - 6.5rem);
  }

  .lightbox-viewport,
  .lightbox img {
    max-height: calc(100dvh - 17.5rem);
  }

  .lightbox-prev {
    left: 0.35rem;
  }

  .lightbox-next {
    right: 0.35rem;
  }

  .lightbox-nav {
    width: 2.4rem;
    height: 2.4rem;
    font-size: 1.5rem;
  }
}

.page-hero {
  padding: 3.5rem 1.25rem 1rem;
  max-width: var(--max);
  margin: 0 auto;
}

.bio-portraits {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}

.expo-main .bio-feature {
  padding-left: 0;
  padding-right: 0;
}

.expo-main .bio-portraits {
  max-width: none;
  margin: 0;
  padding: 0;
}

.bio-portraits figure {
  margin: 0;
  overflow: hidden;
  border-radius: 0.3rem;
  background: var(--ink);
}

.bio-portraits img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.55s var(--ease);
}

.bio-portraits figure:hover img {
  transform: scale(1.03);
}

.bio-portraits figcaption {
  padding: 0.65rem 0.75rem 0.85rem;
  font-size: 0.78rem;
  color: rgba(243, 239, 230, 0.85);
  background: var(--ink);
}

.prose .bio-inline {
  float: right;
  max-width: 14rem;
  margin: 0.25rem 0 1rem 1.25rem;
}

.prose .bio-inline img {
  width: 100%;
  border-radius: 0.3rem;
  box-shadow: var(--shadow);
}

.photo-card {
  aspect-ratio: 4 / 3;
}

@media (max-width: 720px) {
  .bio-portraits {
    grid-template-columns: 1fr;
  }

  .prose .bio-inline {
    float: none;
    max-width: 16rem;
    margin: 0 auto 1rem;
  }
}

.page-hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  letter-spacing: -0.02em;
}

.page-hero p {
  margin: 0.75rem 0 0;
  color: var(--ink-soft);
  text-align: justify;
  hyphens: auto;
}

.note {
  margin-top: 1.5rem;
  padding: 0.9rem 1rem;
  border-left: 3px solid var(--accent);
  background: rgba(139, 69, 24, 0.08);
  font-size: 0.88rem;
  color: var(--ink-soft);
  text-align: justify;
  hyphens: auto;
}

@media (max-width: 900px) {
  .decade-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .menu-toggle {
    display: grid;
    place-items: center;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.25rem 1.25rem;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    max-height: min(70vh, calc(100dvh - var(--header-h)));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav.open {
    display: flex;
  }

  .lang-switch {
    margin: 0.5rem 0 0;
    align-self: flex-start;
  }

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