/* ======================================================================
   BASE: DESIGN SYSTEM + RESET + TYPOGRAPHY

   High-End Museum-Grade Styling
====================================================================== */

/* ============================================================
   CSS CUSTOM PROPERTIES (Design Tokens)
============================================================ */

:root {
  /* Colors - Light Mode */
  --bg: #fff;
  --bg-soft: #fafafa;
  --bg-muted: #f5f5f5;
  --fg: #111;
  --fg-soft: #333;
  --muted: #666;  /* WCAG AA compliant (5.74:1 on white) */
  --accent: #111;
  --border: rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.12);

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.08);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.12);

  /* Layout */
  --max-width: 1100px;
  --header-height: 112px;
  --header-height-mobile: 80px;

  /* Safe area insets (for notched devices) */
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);

  /* Spacing - fluid where beneficial */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: clamp(12px, 3vw, 16px);
  --space-lg: clamp(18px, 4vw, 24px);
  --space-xl: clamp(24px, 5vw, 32px);
  --space-2xl: clamp(32px, 6vw, 48px);

  /* Typography - fluid sizing for better responsiveness */
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --font-size-xs: clamp(10px, 2.5vw, 11px);
  --font-size-sm: clamp(11px, 2.8vw, 12px);
  --font-size-base: clamp(14px, 3.2vw, 15px);
  --font-size-md: clamp(15px, 3.5vw, 16px);
  --font-size-lg: clamp(16px, 3.8vw, 18px);

  /* Animation */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --t-fast: 0.15s ease;
  --t: 0.25s ease;
  --t-slow: 0.4s var(--ease-out);

  /* Shared button sizing (lightbox + overlays) - WCAG 44px minimum */
  --lb-btn: 44px;
  --lb-btn-font: 20px;
  --btn: var(--lb-btn);
  --btn-font: var(--lb-btn-font);

  /* Border radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 999px;
}

/* ============================================================
   RESET
============================================================ */

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

* {
  margin: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================================
   LANGUAGE SWITCHING
============================================================ */

/* Default: hide English, show German */
.en { display: none; }
.de { display: inline; }

/* When html lang="en": hide German, show English */
html[lang="en"] .de { display: none; }
html[lang="en"] .en { display: inline; }

/* When html lang="de": hide English, show German (explicit) */
html[lang="de"] .en { display: none; }
html[lang="de"] .de { display: inline; }

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

input,
button,
textarea,
select {
  font: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
  word-break: break-word;
  -webkit-hyphens: auto;
  hyphens: auto;
}

/* Prevent horizontal overflow */
body {
  overflow-x: hidden;
}

/* Ensure all content respects container boundaries */
main,
.info-overlay__inner {
  overflow-wrap: break-word;
  word-break: break-word;
}

/* Tap highlight off for touch */
button,
a {
  -webkit-tap-highlight-color: transparent;
}

figure {
  margin: 0;
}

/* ============================================================
   LINKS
============================================================ */

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--t-fast);
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

/* ============================================================
   BUTTONS
============================================================ */

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

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

/* ============================================================
   FOCUS STYLES (Accessibility)
============================================================ */

:focus {
  outline: none;
}

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

/* ============================================================
   SELECTION
============================================================ */

::selection {
  background: var(--fg);
  color: var(--bg);
}

/* ============================================================
   SCROLLBAR (subtle)
============================================================ */

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--muted);
}

/* ============================================================
   UTILITY CLASSES
============================================================ */

/* Visually hidden (for screen readers) */
.visually-hidden,
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Skip link (accessibility) */
.skip-link {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100001;
  padding: 12px 24px;
  background: var(--fg);
  color: var(--bg);
  font-size: var(--font-size-sm);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: var(--radius-sm);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
  text-decoration: none;
}

/* ============================================================
   REDUCED MOTION
============================================================ */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
/* ======================================================================
   LAYOUT: HEADER + NAV + MAIN + FOOTER

   High-End Museum-Grade Styling
====================================================================== */

/* ============================================================
   HERO (Hidden H1 for SEO)
============================================================ */

.hero {
  margin: 0;
  padding: 0;
  height: 0;
  overflow: hidden;
}

.hero h1 {
  /* Visually hidden but accessible to screen readers */
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   MAIN CONTENT
============================================================ */

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-lg) calc(var(--space-md) + var(--safe-left)) var(--space-2xl) calc(var(--space-md) + var(--safe-right));
  min-height: 60vh;
}

@media (min-width: 768px) {
  main {
    padding: var(--space-xl) var(--space-md) var(--space-2xl);
  }
}

/* ============================================================
   HEADER - Glassmorphism
============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;

  /* Glassmorphism Effect */
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);

  /* Subtle border */
  border-bottom: 1px solid var(--border);

  /* Smooth transition for scroll state */
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

/* Header with shadow when scrolled */
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: calc(var(--space-sm) + var(--safe-top)) calc(var(--space-md) + var(--safe-right)) var(--space-sm) calc(var(--space-md) + var(--safe-left));
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
}

/* ============================================================
   LOGO
============================================================ */

.site-title {
  font-size: 0;
  line-height: 0;
  flex-shrink: 0;
}

.site-logo {
  height: 90px;
  width: auto;
  transition: opacity var(--t-fast), transform var(--t);
}

.site-logo:hover {
  opacity: 0.8;
}

@media (max-width: 768px) {
  .site-logo {
    height: 75px;
  }
}

@media (max-width: 600px) {
  .site-logo {
    height: 65px;
  }
}

@media (max-width: 480px) {
  .site-logo {
    height: 55px;
  }
}

@media (max-width: 400px) {
  .site-logo {
    height: 48px;
  }
}

/* ============================================================
   NAVIGATION
============================================================ */

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

@media (max-width: 768px) {
  .nav {
    gap: 12px;
    font-size: 11px;
    letter-spacing: 0.08em;
  }
}

@media (max-width: 600px) {
  .nav {
    gap: 10px;
    font-size: 10px;
    letter-spacing: 0.06em;
  }
}

@media (max-width: 480px) {
  .nav {
    gap: 6px;
    font-size: 10px;
    letter-spacing: 0.03em;
  }

  /* Language toggle compact on mobile */
  .nav .lang-toggle {
    margin-left: 8px;
    padding-left: 8px;
    gap: 3px;
  }

  .nav .lang-toggle button,
  .nav .lang-toggle span {
    font-size: 10px;
  }
}

/* Very small screens - ensure minimum touch targets */
@media (max-width: 380px) {
  .nav {
    gap: 3px;
    font-size: 11px;
    letter-spacing: 0;
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav button {
    padding: 6px 2px;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .nav .lang-toggle {
    margin-left: 4px;
    padding-left: 4px;
    border-left: 1px solid var(--border);
  }

  .nav .lang-toggle button,
  .nav .lang-toggle span {
    font-size: 11px;
    min-height: 44px;
    display: flex;
    align-items: center;
  }
}

.nav button {
  position: relative;
  color: var(--muted);
  padding: var(--space-xs) 0;
  transition: color var(--t-fast);
}

.nav button:hover,
.nav button.is-active {
  color: var(--fg);
}

/* Underline animation */
.nav button::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s var(--ease-out);
}

.nav button:hover::after,
.nav button.is-active::after {
  width: 100%;
}

/* Active state has thicker underline */
.nav button.is-active::after {
  height: 2px;
}

/* Page links in navigation (custom pages from Pages module) */
.nav .nav-page-link {
  position: relative;
  color: var(--muted);
  padding: var(--space-xs) 0;
  transition: color var(--t-fast);
  text-decoration: none;
  background: none;
  border: none;
  font: inherit;
  cursor: pointer;
}

.nav .nav-page-link:hover,
.nav .nav-page-link.is-active {
  color: var(--fg);
}

/* Underline animation for page links */
.nav .nav-page-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s var(--ease-out);
}

.nav .nav-page-link:hover::after,
.nav .nav-page-link.is-active::after {
  width: 100%;
}

/* Active state has thicker underline */
.nav .nav-page-link.is-active::after {
  height: 2px;
}

/* ============================================================
   CENTERED NAVIGATION STYLE
   Logo centered above, navigation centered below
============================================================ */

.site-header--centered {
  text-align: center;
}

.header-inner--centered {
  flex-direction: column;
  gap: var(--space-sm);
  padding-top: var(--space-md);
  padding-bottom: var(--space-md);
}

.site-title--centered {
  display: flex;
  justify-content: center;
}

.nav--centered {
  justify-content: center;
  width: 100%;
}

/* Tablet: tighter spacing */
@media (max-width: 768px) {
  .header-inner--centered {
    gap: var(--space-xs);
    padding-top: var(--space-sm);
    padding-bottom: var(--space-sm);
  }
}

/* Mobile: stack vertically, smaller font */
@media (max-width: 600px) {
  .header-inner--centered {
    gap: 8px;
  }

  .nav--centered {
    flex-wrap: wrap;
    gap: 8px;
  }
}

/* Very small screens */
@media (max-width: 380px) {
  .nav--centered {
    gap: 4px;
  }
}

/* ============================================================
   FOOTER
============================================================ */

.site-footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-xl) var(--space-md) var(--space-2xl);
  font-size: var(--font-size-xs);
  color: var(--muted);
  text-align: center;
  border-top: 1px solid var(--border);
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--muted);
  transition: color var(--t-fast);
}

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

.footer-credit {
  margin-top: var(--space-xs);
  font-size: 11px;
  opacity: 0.5;
}

/* Footer Social Icons */
.footer-social {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.footer-social__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 50%;
  transition: all var(--t-fast);
}

.footer-social__link:hover {
  color: var(--fg);
  border-color: var(--fg);
  transform: translateY(-2px);
}

.footer-social__link svg {
  width: 16px;
  height: 16px;
}

/* ============================================================
   RESPONSIVE ADJUSTMENTS
============================================================ */

@media (max-width: 480px) {
  .header-inner {
    padding: calc(var(--space-xs) + var(--safe-top)) calc(var(--space-sm) + var(--safe-right)) var(--space-xs) calc(var(--space-sm) + var(--safe-left));
  }

  main {
    padding: var(--space-md) calc(var(--space-sm) + var(--safe-left)) var(--space-xl) calc(var(--space-sm) + var(--safe-right));
  }

  .site-footer {
    padding: var(--space-lg) calc(var(--space-sm) + var(--safe-left)) calc(var(--space-lg) + var(--safe-bottom)) calc(var(--space-sm) + var(--safe-right));
  }
}

/* Landscape orientation on mobile */
@media (max-width: 900px) and (orientation: landscape) {
  .header-inner {
    padding-top: var(--space-xs);
    padding-bottom: var(--space-xs);
  }

  .site-logo {
    height: 50px;
  }
}
/* ======================================================================
   COMPONENTS: ACCORDION + WORKS + EXHIBITIONS + GALLERIES

   High-End Museum-Grade Styling
====================================================================== */

/* ============================================================
   SECTIONS
============================================================ */

.section {
  margin-bottom: var(--space-2xl);
}

/* ============================================================
   ACCORDION
============================================================ */

.accordion__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md) 0;
  cursor: pointer;
  user-select: none;
}

.section__title {
  font-size: var(--font-size-sm);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  position: relative;
  margin: 0;
}

/* Active accordion title underline */
.accordion--open .section__title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  height: 2px;
  width: 100%;
  background: var(--accent);
}

.section__toggle {
  font-size: var(--font-size-lg);
  color: var(--muted);
  transition: transform 0.3s var(--ease-out);
  line-height: 1;
}

.accordion--open .section__toggle {
  transform: rotate(90deg);
}

/* Accordion content */
.accordion__content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-out);
}

.accordion--open .accordion__content {
  padding-top: var(--space-md);
}

/* Accordion responsive */
@media (max-width: 600px) {
  .accordion__header {
    padding: var(--space-sm) 0;
  }

  .section__title {
    font-size: var(--font-size-xs);
    letter-spacing: 0.1em;
  }
}

@media (max-width: 380px) {
  .section__title {
    font-size: 10px;
    letter-spacing: 0.08em;
  }

  .section__toggle {
    font-size: var(--font-size-base);
  }
}

/* ============================================================
   WORKS SECTION
============================================================ */

.works-years {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xl);
}

.works-year__title {
  font-size: var(--font-size-sm);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: var(--space-lg);
  color: var(--muted);
}

.works-grid {
  display: flex;
  flex-direction: column;
  gap: clamp(48px, 8vw, 72px);  /* Fluid vertical gap */
}

.works-row {
  display: flex;
  flex-wrap: nowrap;
  gap: clamp(20px, 4vw, 40px);  /* Fluid horizontal gap */
  overflow: hidden;
}

/* ============================================================
   WORK ITEM (Figure) — Museum Style
============================================================ */

.work {
  cursor: pointer;
  position: relative;
}

/* Image container */
.work img {
  opacity: 0;
  transition: opacity 0.6s ease;
  will-change: opacity;
}

/* Fade in when loaded */
.work img[src]:not([src=""]) {
  opacity: 1;
}

/* Caption — Museum label style */
.work figcaption {
  margin-top: var(--space-sm);
  padding-bottom: var(--space-lg);  /* Space below caption — prevents title being closer to image below */
  font-size: var(--font-size-xs);
  color: var(--muted);
  line-height: 1.6;
  text-align: left;
  letter-spacing: 0.01em;
  /* Handle long content */
  overflow-wrap: break-word;
  word-break: break-word;
}

/* Title in italic (museum convention) */
.work__title {
  font-style: italic;
  font-weight: 400;
  color: var(--fg-soft);
  /* Prevent very long titles from breaking layout */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.work__year {
  font-weight: 300;
}

/* Tablet: tighter spacing */
@media (max-width: 900px) {
  .works-year__title {
    font-size: var(--font-size-xs);
    margin-bottom: var(--space-md);
  }
}

/* Mobile: single column */
@media (max-width: 600px) {
  .works-years {
    gap: var(--space-xl);
  }

  .works-grid {
    gap: 40px;
  }

  .works-row {
    display: block;
  }

  .works-row .work:not(:last-child) {
    margin-bottom: 40px;
  }

  .work figcaption {
    margin-top: var(--space-sm);
    padding-bottom: var(--space-md);
  }
}

/* Very small screens */
@media (max-width: 380px) {
  .works-grid {
    gap: 32px;
  }

  .works-row .work:not(:last-child) {
    margin-bottom: 32px;
  }

  .work figcaption {
    font-size: 10px;
  }
}

/* ============================================================
   EXHIBITIONS SECTION - Clean Gallery Style
============================================================ */

.exhibitions-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xl);
  /* Gleiche Breite wie Works und Page (--max-width: 1100px) */
}

/* Category grouping (Solo/Group) */
.exhibitions-category {
  margin-bottom: var(--space-2xl);
}

.exhibitions-category__title {
  font-size: var(--font-size-base);
  font-weight: 500;
  margin: 0 0 var(--space-lg);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--border);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg);
}

.exhibitions-category__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xl);
}

.exhibitions-year__heading {
  font-size: var(--font-size-sm);
  font-weight: 500;
  margin: var(--space-lg) 0 var(--space-sm);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

/* Exhibition article - simple stack */
.exhibition {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

/* Exhibition meta (title line) */
.exhibition__meta {
  font-size: var(--font-size-sm);
  color: var(--muted);
  margin: 0 0 var(--space-xs) 0;
  letter-spacing: 0.02em;
}

/* Main exhibition image */
.exhibition__image {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
}

.exhibition__image img {
  width: 100%;
  height: auto;
}

/* Subtle shadow on main image */
.exhibition__image--main {
  box-shadow: var(--shadow-sm);
}

/* Thumbnail grid */
.exhibition__thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: var(--space-sm);
  margin-top: var(--space-sm);
}

.exhibition__thumb {
  cursor: zoom-in;
  overflow: hidden;
  border-radius: var(--radius-sm);
}

.exhibition__thumb img {
  width: 100%;
  height: auto;
}

/* Exhibition text */
.exhibition__text {
  margin-top: var(--space-md);
  font-size: var(--font-size-sm);
  line-height: 1.75;
  color: var(--fg);
}

.exhibition__text p {
  margin: 0 0 var(--space-sm);
}

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

/* Dates line */
.exhibition__dates {
  font-size: var(--font-size-sm);
  letter-spacing: 0.02em;
  margin-bottom: var(--space-md);
  color: var(--muted);
}

.exhibition__dates p {
  margin: 0;
}

.exhibition__dates a {
  color: var(--muted);
  text-decoration: none;
}

/* Teaser text */
.exhibition__teaser {
  font-size: var(--font-size-sm);
  font-weight: 400;
  line-height: 1.7;
  margin-bottom: var(--space-sm);
  color: var(--fg);
}

.exhibition__teaser p {
  margin: 0 0 var(--space-sm);
}

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

/* Expandable "more" section */
.exhibition__more {
  margin-top: var(--space-sm);
  position: relative;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s var(--ease-out), opacity 0.3s ease;
  opacity: 0;
}

.exhibition__more.is-collapsed {
  max-height: 0;
  opacity: 0;
}

.exhibition__more.is-expanded {
  /* Sehr großer Wert um sicherzustellen dass alles sichtbar ist */
  max-height: 50000px;
  opacity: 1;
  /* Nach Transition overflow erlauben */
  overflow: visible;
}

/* Body text in expanded section */
.exhibition__body {
  font-size: var(--font-size-sm);
  line-height: 1.75;
  color: var(--fg-soft);
}

.exhibition__body p {
  margin: 0 0 var(--space-md);
}

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

/* Read more button */
.exhibition__readmore {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
  cursor: pointer;
  font-size: var(--font-size-sm);
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--fg);
  padding: var(--space-xs) 0;
  transition: color var(--t-fast);
  border: none;
  background: none;
}

.exhibition__readmore::after {
  content: "→";
  font-size: 0.9em;
}

/* Tablet exhibitions */
@media (max-width: 900px) {
  .exhibitions-list {
    gap: var(--space-xl);
  }

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

/* Mobile exhibitions */
@media (max-width: 700px) {
  .exhibition__thumbs {
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: var(--space-xs);
  }

  .exhibition__dates {
    font-size: var(--font-size-xs);
  }

  .exhibition__readmore {
    font-size: var(--font-size-xs);
    min-height: 44px;
  }
}

/* Very small screens */
@media (max-width: 380px) {
  .exhibitions-list {
    gap: var(--space-lg);
  }

  .exhibition__thumbs {
    grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
    gap: 4px;
  }

  .exhibition__meta {
    font-size: var(--font-size-xs);
  }
}

/* ============================================================
   GALLERIES SECTION
   Museum-Grade Professional Layout
============================================================ */

.galleries-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ----------------------------------------
   Section Headers - Elegant Dividers
---------------------------------------- */
.gallery__section-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--muted);
  margin: 0 0 var(--space-lg);
  padding: var(--space-xl) 0 var(--space-sm);
  font-weight: 400;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

/* First section header has no top border */
.galleries-section:first-child .gallery__section-title,
.galleries-section--current-wrapper .gallery__section-title {
  border-top: none;
  padding-top: 0;
}

.gallery__section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border) 0%, transparent 100%);
}

/* Current galleries wrapper */
.galleries-section--current-wrapper {
  margin-bottom: var(--space-lg);
}

/* ----------------------------------------
   Current Galleries - Premium Cards
---------------------------------------- */
.galleries-section--current {
  padding: var(--space-xl) 0 var(--space-2xl);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-2xl);
  align-items: start;
}

.gallery-block {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.gallery-block--current {
  padding: var(--space-lg);
  background: var(--bg-soft);
  border-radius: var(--radius-md);
  gap: var(--space-sm);
}

.gallery__title,
.gallery-meta {
  margin: 0;
}

.galleries-section--current .gallery__title {
  font-size: var(--font-size-base);
  line-height: 1.35;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  color: var(--fg);
}

.galleries-section--current .gallery__title a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.galleries-section--current .gallery__title a:hover {
  border-bottom-color: var(--accent);
}

.galleries-section--current .gallery-meta {
  font-size: var(--font-size-sm);
  color: var(--muted);
  letter-spacing: 0.02em;
}

.gallery-description {
  font-size: var(--font-size-sm);
  color: var(--fg-soft);
  line-height: 1.7;
  margin-top: var(--space-sm);
}

.gallery__info {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

/* Tablet */
@media (max-width: 900px) {
  .galleries-section--current {
    gap: var(--space-xl);
  }

  .gallery-block--current {
    padding: var(--space-md);
  }
}

/* Tablet/Mobile */
@media (max-width: 768px) {
  .galleries-section--current {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    padding: var(--space-lg) 0;
  }
}

/* Very small screens */
@media (max-width: 380px) {
  .galleries-section--current {
    gap: var(--space-md);
  }

  .gallery-block--current {
    padding: var(--space-sm);
  }

  .galleries-section--current .gallery__title {
    font-size: var(--font-size-sm);
    letter-spacing: 0.06em;
  }

  .gallery__section-title {
    font-size: 10px;
    letter-spacing: 0.15em;
  }
}

/* ----------------------------------------
   Art Fairs - Gallery Exhibition Style
---------------------------------------- */
.galleries-section--fairs {
  margin-top: var(--space-lg);
  padding-top: 0;
}

.fair-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-2xl);
  padding-bottom: var(--space-2xl);
  border-bottom: 1px solid var(--border);
}

.fair-block:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.fair__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.fair__image {
  margin: 0;
}

.fair__image--main {
  overflow: hidden;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.fair__image--main img {
  width: 100%;
  height: auto;
  cursor: zoom-in;
  display: block;
}

.fair__thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: var(--space-xs);
}

.fair__thumb {
  margin: 0;
  cursor: zoom-in;
  overflow: hidden;
  border-radius: 3px;
  width: 64px;
  height: 48px;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.fair__thumb:hover {
  opacity: 1;
}

.fair__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.fair__info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: var(--space-lg);
}

.fair__title {
  font-size: var(--font-size-lg);
  font-weight: 500;
  letter-spacing: 0.02em;
  margin: 0 0 var(--space-xs);
  line-height: 1.3;
  color: var(--fg);
}

.fair__gallery {
  font-size: var(--font-size-sm);
  color: var(--fg-soft);
  margin: 0 0 var(--space-sm);
  font-style: italic;
}

.fair__year {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* Tablet fairs */
@media (max-width: 900px) {
  .fair-block {
    gap: var(--space-lg);
  }

  .fair__info {
    padding-left: var(--space-md);
  }

  .fair__title {
    font-size: var(--font-size-base);
  }
}

/* Tablet/Mobile fairs */
@media (max-width: 768px) {
  .fair-block {
    grid-template-columns: 1fr;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-xl);
  }

  .fair__info {
    order: -1;
    padding-left: 0;
    padding-bottom: var(--space-sm);
  }

  .fair__title {
    font-size: var(--font-size-base);
  }

  .fair__thumb {
    width: 56px;
    height: 42px;
  }
}

/* Very small screens */
@media (max-width: 380px) {
  .fair-block {
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-lg);
  }

  .fair__title {
    font-size: var(--font-size-sm);
  }

  .fair__year {
    font-size: 10px;
  }

  .fair__thumb {
    width: 48px;
    height: 36px;
  }
}

/* ----------------------------------------
   Former Galleries - Clean List
---------------------------------------- */
.galleries-section--former {
  margin-top: var(--space-lg);
}

.galleries-section--former .gallery-block {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: var(--space-md);
  padding: var(--space-sm) 0;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 50%, transparent);
}

.galleries-section--former .gallery-block:last-child {
  border-bottom: none;
}

.galleries-section--former .gallery__title {
  font-size: var(--font-size-sm);
  letter-spacing: 0.02em;
  font-weight: 400;
  color: var(--fg-soft);
}

.galleries-section--former .gallery__title a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.galleries-section--former .gallery__title a:hover {
  border-bottom-color: var(--muted);
}

.galleries-section--former .gallery-meta {
  font-size: var(--font-size-xs);
  color: var(--muted);
  text-align: right;
  white-space: nowrap;
}

@media (max-width: 600px) {
  .galleries-section--former .gallery-block {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .galleries-section--former .gallery-meta {
    text-align: left;
  }
}

/* Very small screens */
@media (max-width: 380px) {
  .galleries-section--former .gallery__title {
    font-size: var(--font-size-xs);
  }

  .galleries-section--former .gallery-meta {
    font-size: 10px;
  }
}

/* ============================================================
   EMPTY STATES
============================================================ */

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-2xl) var(--space-md);
  text-align: center;
  color: var(--muted);
  min-height: 200px;
}

.empty-state__icon {
  font-size: 48px;
  margin-bottom: var(--space-md);
  opacity: 0.4;
}

.empty-state__title {
  font-size: var(--font-size-base);
  font-weight: 500;
  margin-bottom: var(--space-xs);
  color: var(--fg-soft);
}

.empty-state__message {
  font-size: var(--font-size-sm);
  line-height: 1.6;
  max-width: 300px;
}

/* ============================================================
   IMAGE ERROR STATES
============================================================ */

.work--error img,
.exhibition__image--error img,
.exhibition__thumb--error img {
  opacity: 0.3;
  filter: grayscale(1);
}

.work--error::after,
.exhibition__image--error::after {
  content: "⚠";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 24px;
  color: var(--muted);
  opacity: 0.5;
  pointer-events: none;
}

/* ============================================================
   LOADING STATES
============================================================ */

/* Skeleton placeholder for images */
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.work img:not([src]),
.work img[src=""] {
  background: linear-gradient(
    90deg,
    var(--bg-muted) 25%,
    var(--bg-soft) 50%,
    var(--bg-muted) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  min-height: 200px;
}

/* ============================================================
   PRESS & PUBLICATIONS
============================================================ */

.press-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.press-year {
  margin-bottom: var(--space-xl);
}

.press-year__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--border);
}

.press-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--border);
}

.press-item:last-child {
  border-bottom: none;
}

.press-item__content {
  flex: 1;
}

.press-item__title {
  display: block;
  font-size: var(--font-size-base);
  color: var(--fg);
  margin-bottom: 4px;
}

a.press-item__title:hover {
  text-decoration: underline;
}

.press-item__source {
  display: block;
  font-size: var(--font-size-sm);
  color: var(--muted);
}

.press-item__type {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  background: var(--hover);
  padding: 4px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

/* ============================================================
   CV / LEBENSLAUF
============================================================ */

.cv-sections {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xl);
}

.cv-section__title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--border);
  font-weight: 500;
}

.cv-section__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.cv-section__list li {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-xs) 0;
  font-size: var(--font-size-sm);
  line-height: 1.5;
}

.cv-year {
  flex-shrink: 0;
  width: 80px;
  font-weight: 500;
  color: var(--fg);
}

@media (max-width: 600px) {
  .cv-section__list li {
    flex-direction: column;
    gap: 2px;
  }

  .cv-year {
    width: auto;
    font-size: 12px;
    color: var(--muted);
  }
}

/* ============================================================
   AWARDS & GRANTS
============================================================ */

.awards-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.award-item {
  display: flex;
  gap: var(--space-lg);
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--border);
}

.award-item:last-child {
  border-bottom: none;
}

.award-item__year {
  flex-shrink: 0;
  width: 60px;
  font-weight: 600;
  font-size: var(--font-size-sm);
  color: var(--fg);
}

.award-item__content {
  flex: 1;
}

.award-item__title {
  display: block;
  font-size: var(--font-size-base);
  color: var(--fg);
  margin-bottom: 2px;
}

.award-item__institution {
  display: block;
  font-size: var(--font-size-sm);
  color: var(--muted);
}

@media (max-width: 480px) {
  .award-item {
    flex-direction: column;
    gap: var(--space-xs);
  }

  .award-item__year {
    width: auto;
    font-size: 12px;
    color: var(--muted);
  }
}

/* ============================================================
   CONTACT SECTION
============================================================ */

.contact-section {
  max-width: 600px;
}

.contact-email {
  font-size: var(--font-size-base);
  margin-bottom: var(--space-xl);
}

.contact-email a {
  color: var(--fg);
  margin-left: var(--space-sm);
}

.contact-email a:hover {
  text-decoration: underline;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

@media (max-width: 480px) {
  .contact-form__row {
    grid-template-columns: 1fr;
  }
}

.contact-form__field {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.contact-form__field label {
  font-size: var(--font-size-sm);
  color: var(--muted);
}

.contact-form__field input,
.contact-form__field textarea {
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: var(--font-size-base);
  background: var(--bg);
  color: var(--fg);
  transition: border-color 0.2s;
}

.contact-form__field input:focus,
.contact-form__field textarea:focus {
  outline: none;
  border-color: var(--fg);
}

.contact-form__field textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form__submit {
  align-self: flex-start;
  padding: var(--space-sm) var(--space-xl);
  background: var(--fg);
  color: var(--bg);
  border: none;
  border-radius: 4px;
  font-size: var(--font-size-base);
  cursor: pointer;
  transition: opacity 0.2s;
}

.contact-form__submit:hover {
  opacity: 0.85;
}

@media (max-width: 380px) {
  .contact-form__field input,
  .contact-form__field textarea {
    padding: var(--space-xs) var(--space-sm);
    font-size: var(--font-size-sm);
  }

  .contact-form__submit {
    padding: var(--space-sm) var(--space-lg);
    font-size: var(--font-size-sm);
  }
}

/* ============================================================
   SOCIAL LINKS
============================================================ */

.social-links {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--muted);
  transition: all 0.2s;
}

.social-links a:hover {
  color: var(--fg);
  border-color: var(--fg);
}

.social-links svg {
  width: 18px;
  height: 18px;
}

/* ============================================================
   CUSTOM SECTIONS
============================================================ */

.custom-section-content {
  padding: var(--space-md) 0;
  line-height: 1.7;
}

.custom-section-content p {
  margin-bottom: var(--space-sm);
}

.custom-section-content ul,
.custom-section-content ol {
  margin: var(--space-sm) 0;
  padding-left: var(--space-lg);
}

.custom-section-content li {
  margin-bottom: var(--space-xs);
}

.custom-section-content h3,
.custom-section-content h4 {
  margin: var(--space-md) 0 var(--space-sm);
  font-weight: 600;
}

.custom-section-content a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.custom-section-content a:hover {
  text-decoration-style: dotted;
}

/* ============================================================
   COOKIE BANNER
============================================================ */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--fg);
  color: var(--bg);
  padding: var(--space-md) var(--space-xl);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-lg);
  z-index: 9998;
  font-size: var(--font-size-sm);
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.cookie-banner[aria-hidden="true"] {
  pointer-events: none;
}

.cookie-banner.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.cookie-banner.is-hiding {
  transform: translateY(100%);
  opacity: 0;
}

.cookie-banner__text {
  flex: 1;
}

.cookie-banner__text a {
  color: inherit;
  text-decoration: underline;
}

.cookie-banner__buttons {
  display: flex;
  gap: var(--space-sm);
}

.cookie-banner__btn {
  padding: var(--space-xs) var(--space-md);
  border: 1px solid var(--bg);
  border-radius: 4px;
  font-size: var(--font-size-sm);
  cursor: pointer;
  background: transparent;
  color: var(--bg);
  transition: all 0.2s;
}

.cookie-banner__btn--accept {
  background: var(--bg);
  color: var(--fg);
}

.cookie-banner__btn:hover {
  opacity: 0.85;
}

@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    text-align: center;
  }
}

/* ============================================================
   NAVIGATION STYLES
============================================================ */

/* --- Sidebar Navigation --- */
.nav-sidebar {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 220px;
  background: var(--bg);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 100;
  transform: translateX(0);
  transition: transform 0.3s ease;
}

.nav-sidebar__header {
  padding: var(--space-lg);
  border-bottom: 1px solid var(--border);
}

.nav-sidebar__header .site-title {
  font-size: var(--font-size-base);
  font-weight: 600;
}

/* Tagline */
.site-tagline {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.05em;
  font-weight: 400;
  line-height: 1.4;
}

.site-title--centered + .site-tagline {
  text-align: center;
}

.nav-sidebar__nav {
  flex: 1;
  padding: var(--space-md) 0;
  overflow-y: auto;
}

.nav-sidebar__link {
  display: block;
  padding: var(--space-sm) var(--space-lg);
  color: var(--muted);
  text-decoration: none;
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: all 0.2s;
}

.nav-sidebar__link:hover,
.nav-sidebar__link.is-active {
  color: var(--fg);
  background: var(--hover);
}

.nav-sidebar__footer {
  padding: var(--space-lg);
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

/* Social Icons in Navigation */
.nav-social {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
}

.nav-social__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 50%;
  transition: all var(--t-fast);
}

.nav-social__link:hover {
  color: var(--fg);
  border-color: var(--fg);
  transform: translateY(-2px);
}

/* When link has colored background (inline style), remove border */
.nav-social__link[style*="background"] {
  border: none;
}

.nav-social__link svg {
  width: 16px;
  height: 16px;
}

/* Large version for fullscreen nav */
.nav-social--large {
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.nav-social--large .nav-social__link {
  width: 44px;
  height: 44px;
}

.nav-social--large .nav-social__link svg {
  width: 22px;
  height: 22px;
}

/* Inline version for horizontal navs */
.nav-social--inline {
  margin-left: var(--space-md);
  padding-left: var(--space-md);
  border-left: 1px solid var(--border);
}

.nav-social--inline .nav-social__link {
  width: 28px;
  height: 28px;
  border: none;
}

.nav-social--inline .nav-social__link svg {
  width: 14px;
  height: 14px;
}

/* Footer Social Icons */
.footer-social {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  margin-bottom: var(--space-md);
}

.footer-social__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 50%;
  transition: all var(--t-fast);
}

.footer-social__link:hover {
  color: var(--fg);
  border-color: var(--fg);
  transform: translateY(-2px);
}

/* When link has colored background, remove border */
.footer-social__link[style*="background"] {
  border: none;
}

.footer-social__link svg {
  width: 18px;
  height: 18px;
}

/* Info Overlay Social Icons */
.info-social {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.info-social__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--fg);
  border: 1px solid var(--border);
  border-radius: 50%;
  transition: all var(--t-fast);
}

.info-social__link:hover {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}

.info-social__link svg {
  width: 20px;
  height: 20px;
}

/* Mobile: Social icons in nav-inline should wrap or hide */
@media (max-width: 768px) {
  .nav-social--inline {
    display: none; /* Hide inline social on mobile - shown in burger menu instead */
  }

  .footer-social {
    gap: var(--space-sm);
  }

  .footer-social__link {
    width: 32px;
    height: 32px;
  }

  .footer-social__link svg {
    width: 16px;
    height: 16px;
  }
}

.site-header--sidebar {
  display: none;
}

body:has(.nav-sidebar) main {
  margin-left: 220px;
}

body:has(.nav-sidebar) .site-footer {
  margin-left: 220px;
}

@media (max-width: 900px) {
  .nav-sidebar {
    transform: translateX(-100%);
  }

  .nav-sidebar.is-open {
    transform: translateX(0);
    box-shadow: 4px 0 20px rgba(0,0,0,0.1);
  }

  .site-header--sidebar {
    display: block;
  }

  body:has(.nav-sidebar) main,
  body:has(.nav-sidebar) .site-footer {
    margin-left: 0;
  }
}

/* --- Burger / Fullscreen Navigation --- */
.nav-burger {
  width: 32px;
  height: 24px;
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  padding: 0;
}

.nav-burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--fg);
  position: absolute;
  left: 0;
  transition: all 0.3s ease;
}

.nav-burger span:nth-child(1) { top: 0; }
.nav-burger span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.nav-burger span:nth-child(3) { bottom: 0; }

.nav-burger.is-active span:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

.nav-burger.is-active span:nth-child(2) {
  opacity: 0;
}

.nav-burger.is-active span:nth-child(3) {
  bottom: 50%;
  transform: translateY(50%) rotate(-45deg);
}

.site-header--burger .nav {
  display: none;
}

.nav-fullscreen {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 99;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.nav-fullscreen.is-open {
  opacity: 1;
  visibility: visible;
}

.nav-fullscreen__nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  /* Leave space for footer with social icons */
  padding-bottom: 120px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
}

.nav-fullscreen__link {
  font-size: clamp(24px, 5vw, 48px);
  color: var(--fg);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 300;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.nav-fullscreen__link:hover,
.nav-fullscreen__link.is-active {
  opacity: 1;
}

.nav-fullscreen__footer {
  position: absolute;
  bottom: var(--space-xl);
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  padding: 0 var(--space-lg);
  background: linear-gradient(transparent, var(--bg) 20%);
  padding-top: var(--space-xl);
}

.lang-toggle--large button {
  font-size: var(--font-size-base);
  padding: var(--space-sm) var(--space-md);
}

/* --- Minimal Navigation (Desktop inline, Mobile dropdown) --- */
.site-header--minimal .nav--minimal {
  display: flex;
  gap: var(--space-sm);
}

.nav-burger--minimal {
  display: none;
}

.nav-dropdown {
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: var(--space-md);
  z-index: 98;
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.nav-dropdown.is-open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.nav-dropdown nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.nav-dropdown a {
  display: block;
  padding: var(--space-sm);
  color: var(--fg);
  text-decoration: none;
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 4px;
}

.nav-dropdown a:hover {
  background: var(--hover);
}

.nav-dropdown .lang-toggle {
  margin-top: var(--space-sm);
  padding-top: var(--space-sm);
  border-top: 1px solid var(--border);
}

/* Social icons in dropdown menus */
.nav-social--dropdown {
  display: flex;
  gap: var(--space-sm);
  padding-top: var(--space-sm);
  margin-top: var(--space-sm);
  border-top: 1px solid var(--border);
  justify-content: center;
}

.nav-social--dropdown .nav-social__link {
  width: 36px;
  height: 36px;
}

.nav-social--dropdown .nav-social__link svg {
  width: 18px;
  height: 18px;
}

/* --- Default Navigation: Burger on mobile --- */
.nav-burger--default {
  display: none;
}

@media (max-width: 768px) {
  .site-header .nav--default {
    display: none;
  }

  .nav-burger--default {
    display: block;
  }
}

/* --- Centered Navigation: Burger on mobile --- */
.nav-burger--centered {
  display: none;
}

@media (max-width: 768px) {
  .site-header--centered .nav--centered {
    display: none;
  }

  .nav-burger--centered {
    display: block;
  }

  /* On mobile, centered header should be horizontal like default */
  .header-inner--centered {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left;
  }

  .site-title--centered {
    text-align: left;
  }

  .site-title--centered + .site-tagline {
    text-align: left;
    display: none;
  }
}

@media (max-width: 768px) {
  .site-header--minimal .nav--minimal {
    display: none;
  }

  .nav-burger--minimal {
    display: block;
  }
}

/* --- Toggle Button (for sidebar mobile) --- */
.nav-toggle {
  width: 32px;
  height: 24px;
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  padding: 0;
  display: none;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--fg);
  position: absolute;
  left: 0;
  transition: all 0.3s ease;
}

.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.nav-toggle span:nth-child(3) { bottom: 0; }

@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }
}

/* ============================================================
   PAGES LAYOUT MODE
   Alternative to Accordion - shows one section at a time
============================================================ */

/* Hide all pages by default in pages mode */
body.layout-pages .page {
  display: none;
}

/* Show only active page */
body.layout-pages .page.active {
  display: block;
}

/* Page content styling */
body.layout-pages .page__content {
  padding-top: var(--space-md);
}

/* Page title (shown above content in pages mode) */
body.layout-pages .page__title {
  font-size: var(--font-size-sm);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin: 0 0 var(--space-lg);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}

/* Navigation is more prominent in pages mode */
body.layout-pages .nav button.is-active {
  font-weight: 600;
}

/* Ensure sections have minimum height in pages mode */
body.layout-pages .page {
  min-height: 50vh;
}

/* Animation for page transitions */
body.layout-pages .page {
  opacity: 0;
  transition: opacity 0.25s ease;
}

body.layout-pages .page.active {
  opacity: 1;
}

/* Remove section margin-bottom in pages mode (no stacking) */
body.layout-pages .section.page {
  margin-bottom: 0;
}

/* Hide accordion-specific elements when not in accordion mode */
body.layout-pages .accordion__header {
  display: none;
}

/* Responsive: Mobile pages mode */
@media (max-width: 600px) {
  body.layout-pages .page__content {
    padding-top: var(--space-sm);
  }

  body.layout-pages .page__title {
    font-size: var(--font-size-xs);
    letter-spacing: 0.1em;
  }
}

/* ============================================================
   PRINT STYLES
============================================================ */

@media print {
  .accordion__content {
    max-height: none !important;
    overflow: visible !important;
  }

  .section__toggle {
    display: none;
  }

  .cookie-banner {
    display: none !important;
  }

  /* Pages mode print: show all pages */
  body.layout-pages .page {
    display: block !important;
    opacity: 1 !important;
    page-break-inside: avoid;
    margin-bottom: var(--space-2xl);
  }
}
/* ======================================================================
   OVERLAYS: INFO / IMPRESSUM

   High-End Museum-Grade Styling
====================================================================== */

/* ============================================================
   BASE OVERLAY
============================================================ */

.info-overlay {
  position: fixed;
  inset: 0;
  z-index: 4000;

  background: var(--bg);

  display: flex;
  justify-content: center;
  align-items: flex-start;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition: opacity 0.3s ease, visibility 0.3s ease;

  overflow-y: auto;
  overscroll-behavior: contain;
}

.info-overlay.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* ============================================================
   INNER CONTAINER
============================================================ */

.info-overlay__inner {
  width: 100%;
  max-width: var(--max-width);
  min-height: 100%;
  padding: calc(var(--space-xl) + var(--safe-top)) calc(var(--space-md) + var(--safe-right)) calc(var(--space-xl) + var(--safe-bottom)) calc(var(--space-md) + var(--safe-left));
  position: relative;

  /* Fade in content slightly delayed */
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease 0.1s, transform 0.3s ease 0.1s;
}

.info-overlay.is-visible .info-overlay__inner {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   CLOSE BUTTON
============================================================ */

.info-overlay__close {
  position: absolute;
  right: calc(var(--space-md) + var(--safe-right));
  top: calc(var(--space-md) + var(--safe-top));
  width: var(--btn);
  height: var(--btn);
  cursor: pointer;
  display: grid;
  place-items: center;
  opacity: 0.6;
  border-radius: var(--radius-sm);
  transition: opacity 0.15s ease, transform 0.15s ease, background 0.15s ease;
}

.info-overlay__close:hover {
  opacity: 1;
  transform: scale(1.1);
}

.info-overlay__close svg {
  width: 22px;
  height: 22px;
  stroke: var(--fg);
  stroke-width: 2;
  fill: none;
}

/* ============================================================
   TITLE
============================================================ */

.info-title,
.info-overlay h2 {
  font-size: var(--font-size-sm);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin: 0 0 var(--space-lg);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--border);
}

/* ============================================================
   LAYOUT (Photo + Content)
============================================================ */

.info-layout {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

@media (min-width: 800px) {
  .info-layout {
    flex-direction: row;
    align-items: flex-start;
    gap: var(--space-2xl);
  }
}

/* ============================================================
   PHOTO COLUMN (Photo + Contact on desktop)
============================================================ */

.info-photo-column {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

@media (min-width: 800px) {
  .info-photo-column {
    flex: 0 0 320px;
    max-width: 320px;
    position: sticky;
    top: var(--space-xl);
  }
}

/* ============================================================
   PHOTO
============================================================ */

.info-photo {
  margin: 0;
  width: 100%;
  overflow: hidden;
}

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

/* ============================================================
   CONTACT BLOCK (under photo)
============================================================ */

.info-contact-block {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding-top: var(--space-md);
}

.info-address {
  font-style: normal;
  font-size: var(--font-size-sm);
  line-height: 1.7;
  color: var(--muted);
}

.info-contact-block .info-email {
  margin: 0;
}

/* Hide contact block under photo (now in content area) */
.info-contact-block {
  display: none;
}

/* Contact bottom (in content area) */
.info-contact-bottom {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  margin-top: var(--space-lg);
}

/* ============================================================
   CONTENT
============================================================ */

.info-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  flex: 1;
}

/* ============================================================
   SECTIONS
============================================================ */

.info-section {
  font-size: var(--font-size-base);
  line-height: 1.8;
}

.info-section p {
  margin: 0 0 var(--space-sm);
}

.info-section p:last-child {
  margin-bottom: 0;
}

/* Bio Section */
.info-section--bio {
  color: var(--fg);
}

/* Hide h3 in info overlay (not needed) */
#infoOverlay .info-section h3 {
  display: none;
}

/* Section headings in imprint */
#imprintOverlay .info-section h3 {
  font-size: var(--font-size-sm);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 var(--space-sm);
  color: var(--fg);
}

#imprintOverlay .info-section {
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--border);
}

#imprintOverlay .info-section:last-of-type {
  border-bottom: none;
}

/* ============================================================
   CONTACT SECTION (Email)
============================================================ */

.info-section--contact {
  font-size: var(--font-size-base);
}

.info-section--contact .js-email {
  cursor: pointer;
  color: var(--muted);
  transition: color var(--t-fast);
  border-bottom: 1px dotted var(--border-strong);
}

.info-section--contact .js-email:hover {
  color: var(--fg);
}

/* CV Link */
.info-section--cv a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  color: var(--fg);
  font-weight: 500;
  transition: opacity var(--t-fast);
}

.info-section--cv a:hover {
  opacity: 0.7;
  text-decoration: none;
}

/* Links Section */
.info-section--links {
  margin-top: var(--space-sm);
}

.info-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs) var(--space-md);
  list-style: none;
  margin: 0;
  padding: 0;
}

.info-links li {
  margin: 0;
  padding: 0;
}

.info-links a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  color: var(--muted);
  font-size: var(--font-size-sm);
  font-weight: 500;
  transition: color var(--t-fast);
  text-decoration: none;
}

.info-links a::before {
  content: '→';
  font-size: 0.85em;
  opacity: 0.6;
}

.info-links a:hover {
  color: var(--fg);
}

/* Email Link */
.info-email {
  margin: 0;
}

.info-email__link {
  color: var(--muted);
  text-decoration: none;
  transition: color var(--t-fast);
}

.info-email__link:hover {
  color: var(--fg);
}

/* CV Link */
.info-cv-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  color: var(--muted);
  font-size: var(--font-size-sm);
  text-decoration: none;
  transition: color var(--t-fast);
}

.info-cv-link:hover {
  color: var(--fg);
}

.info-cv-link svg {
  opacity: 0.6;
  width: 16px;
  height: 16px;
}

/* Section Titles in Info */
.info-section__title {
  font-size: var(--font-size-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin: 0 0 var(--space-xs);
}

/* ============================================================
   ACTIONS ROW (CV + Links)
============================================================ */

.info-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm) var(--space-md);
  margin-top: var(--space-md);
}

.info-links-inline {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs) var(--space-md);
}

.info-links-inline a {
  color: var(--muted);
  font-size: var(--font-size-sm);
  text-decoration: none;
  transition: color var(--t-fast);
}

.info-links-inline a:hover {
  color: var(--fg);
}

/* Press & Publications */
.info-section--press h3 {
  font-size: var(--font-size-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  margin: 0 0 var(--space-sm);
}

.info-press-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.info-press-list li {
  font-size: var(--font-size-sm);
  line-height: 1.5;
  color: var(--fg);
}

.info-press-year {
  color: var(--muted);
  margin-right: 6px;
}

.info-press-list a {
  color: var(--fg);
  text-decoration: underline;
  text-decoration-color: var(--border);
  text-underline-offset: 2px;
  transition: text-decoration-color var(--t-fast);
}

.info-press-list a:hover {
  text-decoration-color: var(--fg);
}

.info-press-source {
  color: var(--muted);
  font-style: italic;
}

.info-press-source::before {
  content: ' — ';
}

/* ============================================================
   PRESS & ARCHIVE OVERLAY
============================================================ */

.press-archive {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 680px;
}

/* --- Category sections --- */

.press-archive__section {
  padding: 32px 0 24px;
  border-bottom: 1px solid var(--border);
}

.press-archive__section:first-child {
  padding-top: 0;
}

.press-archive__section:last-child {
  border-bottom: none;
}

.press-archive__heading {
  font-size: 11px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin: 0 0 20px;
  padding: 0;
  border: none;
}

/* --- Item list --- */

.press-archive__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.press-archive__item {
  display: flex;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--border-light, rgba(0,0,0,0.05));
}

.press-archive__item:first-child {
  border-top: none;
  padding-top: 0;
}

/* --- Year column --- */

.press-archive__year {
  flex-shrink: 0;
  width: 44px;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  font-weight: 400;
  padding-top: 0;
  line-height: 1.5;
}

/* --- Content column --- */

.press-archive__body {
  flex: 1;
  min-width: 0;
}

.press-archive__title {
  font-size: 14px;
  line-height: 1.5;
  font-weight: 400;
}

.press-archive__title a {
  color: var(--fg);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.press-archive__title a:hover {
  border-bottom-color: var(--fg);
}

.press-archive__source {
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
  line-height: 1.4;
  font-style: italic;
}

.press-archive__desc {
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
  line-height: 1.6;
  opacity: 0.75;
  max-width: 560px;
}

/* --- Responsive --- */

@media (max-width: 600px) {
  .press-archive__section {
    padding: 24px 0 18px;
  }

  .press-archive__item {
    gap: 12px;
    padding: 12px 0;
  }

  .press-archive__year {
    width: 38px;
    font-size: 12px;
  }

  .press-archive__title {
    font-size: 13px;
  }

  .press-archive__desc {
    font-size: 11px;
  }
}

/* Social Media Links */
.info-social {
  display: flex;
  gap: var(--space-sm);
  align-items: center;
}

.info-social__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 50%;
  transition: all var(--t-fast);
}

.info-social__link:hover {
  color: var(--fg);
  border-color: var(--fg);
  transform: translateY(-2px);
}

.info-social__link svg {
  width: 18px;
  height: 18px;
}

/* ============================================================
   CREDITS FOOTER
============================================================ */

.info-credits {
  margin-top: var(--space-xl);
  font-size: var(--font-size-xs);
  color: var(--muted);
  line-height: 1.6;
}

/* Compact Lists (Awards, Press) */
.info-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.info-list--compact li {
  display: flex;
  gap: var(--space-sm);
  padding: var(--space-xs) 0;
  border-bottom: 1px solid var(--border);
  font-size: var(--font-size-sm);
  line-height: 1.4;
}

.info-list--compact li:last-child {
  border-bottom: none;
}

.info-list__year {
  flex-shrink: 0;
  width: 50px;
  color: var(--muted);
  font-weight: 500;
}

.info-list--compact a {
  color: var(--fg);
  text-decoration: none;
  transition: opacity var(--t-fast);
}

.info-list--compact a:hover {
  opacity: 0.7;
}

/* Awards & Press Sections */
.info-section--awards,
.info-section--press {
  padding-top: var(--space-sm);
  border-top: 1px solid var(--border);
}

/* ============================================================
   FOOTER
============================================================ */

.info-footer {
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  font-size: var(--font-size-xs);
  color: var(--muted);
  border-top: 1px solid var(--border);
}

/* ============================================================
   MOBILE OPTIMIZATIONS
============================================================ */

@media (max-width: 600px) {
  .info-overlay__inner {
    padding: calc(var(--space-lg) + var(--safe-top)) calc(var(--space-sm) + var(--safe-right)) calc(var(--space-lg) + var(--safe-bottom)) calc(var(--space-sm) + var(--safe-left));
  }

  .info-overlay__close {
    right: calc(var(--space-sm) + var(--safe-right));
    top: calc(var(--space-sm) + var(--safe-top));
  }

  .info-title,
  .info-overlay h2 {
    font-size: var(--font-size-xs);
    letter-spacing: 0.12em;
    padding-right: 50px;  /* Space for close button */
  }

  .info-section {
    font-size: var(--font-size-sm);
  }

  .info-photo-column {
    align-items: center;
  }

  .info-photo {
    max-width: 200px;
  }
}

@media (max-width: 380px) {
  .info-title,
  .info-overlay h2 {
    font-size: 11px;
    letter-spacing: 0.08em;
  }

  .info-section {
    font-size: var(--font-size-xs);
    line-height: 1.6;
  }

  .info-photo {
    max-width: 160px;
  }

  #imprintOverlay .info-section h3 {
    font-size: var(--font-size-xs);
  }
}

/* ============================================================
   REDUCED MOTION
============================================================ */

@media (prefers-reduced-motion: reduce) {
  .info-overlay,
  .info-overlay__inner,
  .info-overlay__close,
  .info-photo img {
    transition: none;
  }
}

/* ============================================================
   PRINT (hide overlays)
============================================================ */

@media print {
  .info-overlay {
    display: none !important;
  }
}
/* ======================================================================
   LIGHTBOX LEVEL 1 - High-End Museum-Grade

   Features:
   - Smooth 3-slide carousel
   - Elegant transitions
   - SVG-ready icons
   - Mobile swipe support
   - Clean minimal design
====================================================================== */

/* ============================================================
   BASE
============================================================ */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: var(--bg);

  display: none;
  align-items: center;
  justify-content: center;

  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox.is-visible {
  display: flex;
  opacity: 1;
}

/* ============================================================
   BACKDROP
============================================================ */

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  cursor: pointer;
}

/* ============================================================
   INNER CONTAINER
============================================================ */

.lightbox__inner {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

/* ============================================================
   IMAGE WRAP (Contains the 3-slide track)
============================================================ */

.lightbox__image-wrap {
  position: relative;
  max-width: 90vw;
  max-height: 75vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-in;
  touch-action: pan-y;
}

/* ============================================================
   TRACK (3-slide carousel)
============================================================ */

.lightbox__track {
  display: flex;
  width: 300%;
  will-change: transform;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============================================================
   SLIDES
============================================================ */

.lightbox__slide {
  flex: 0 0 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
}

.lightbox__slide-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  max-width: 100%;
}

/* ============================================================
   MEDIA CONTAINER (Image + Loupe)
============================================================ */

.lightbox__media {
  position: relative;
  display: inline-block;
}

/* ============================================================
   IMAGE
============================================================ */

.lightbox__img {
  width: 100%;
  height: auto;
  max-height: 70vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  transition: opacity 0.3s ease;
}

@media (max-width: 700px) {
  .lightbox__img {
    max-height: 60vh;
  }
}

/* ============================================================
   LOUPE BUTTON (hidden - image click opens viewer directly)
============================================================ */

.lightbox__loupe {
  display: none;
}

/* ============================================================
   CAPTION
============================================================ */

.lightbox__caption {
  font-size: var(--font-size-sm);
  line-height: 1.5;
  color: var(--muted);
  max-width: 100%;
  text-align: left;
  margin: 0;
  overflow: visible;
  white-space: normal;
  word-break: break-word;
}

/* Caption position variants */
.lightbox__slide--bottom .lightbox__slide-inner {
  flex-direction: column;
}

.lightbox__slide--bottom .lightbox__media {
  order: 1;
}

.lightbox__slide--bottom .lightbox__caption {
  order: 2;
  margin-top: var(--space-sm);
  font-weight: 300;
}

.lightbox__slide--top .lightbox__slide-inner {
  flex-direction: column;
}

.lightbox__slide--top .lightbox__caption {
  order: 1;
  margin-bottom: var(--space-sm);
  font-weight: 400;
}

.lightbox__slide--top .lightbox__media {
  order: 2;
}

/* ============================================================
   CONTROL BUTTONS (Close, Action)
============================================================ */

.lightbox__close,
.lightbox__action {
  position: absolute;
  top: var(--space-md);
  width: var(--lb-btn);
  height: var(--lb-btn);
  border: none;
  background: transparent;
  cursor: pointer;
  z-index: 10;
  display: grid;
  place-items: center;
  opacity: 0.6;
  transition: opacity 0.15s ease, transform 0.15s ease;
  border-radius: var(--radius-sm);
}

.lightbox__close {
  right: calc(var(--space-md) + var(--safe-right, 0px));
  top: calc(var(--space-md) + var(--safe-top, 0px));
}

.lightbox__action {
  right: calc(var(--space-md) + var(--lb-btn) + var(--space-sm) + var(--safe-right, 0px));
  top: calc(var(--space-md) + var(--safe-top, 0px));
  opacity: 0.5;
}

.lightbox__close:hover,
.lightbox__action:hover {
  opacity: 1;
  transform: scale(1.1);
}

.lightbox__close svg,
.lightbox__action svg {
  width: 22px;
  height: 22px;
  stroke: var(--fg);
  stroke-width: 2;
  fill: none;
}

/* ============================================================
   NAVIGATION ARROWS
============================================================ */

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  height: 60vh;
  max-height: 75vh;
  width: 64px;
  border: none;
  background: transparent;
  cursor: pointer;
  opacity: 0.3;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  transition: opacity 0.2s ease;
}

.lightbox__nav:hover {
  opacity: 0.8;
}

.lightbox__nav--prev {
  left: 0;
  padding-left: var(--space-sm);
}

.lightbox__nav--next {
  right: 0;
  padding-right: var(--space-sm);
}

.lightbox__nav svg {
  width: 28px;
  height: 28px;
  stroke: var(--fg);
  stroke-width: 2;
  fill: none;
}

/* Hide nav on mobile (swipe instead) */
@media (max-width: 700px) {
  .lightbox__nav {
    display: none;
  }
}

/* ============================================================
   SWIPE HINT (Mobile)
============================================================ */

.lightbox__swipe-hint {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: var(--font-size-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 10;
}

.lightbox__swipe-hint.is-visible {
  opacity: 1;
}

@media (min-width: 801px) {
  .lightbox__swipe-hint {
    display: none;
  }
}

/* ============================================================
   RESPONSIVE ADJUSTMENTS
============================================================ */

@media (max-width: 600px) {
  .lightbox__close,
  .lightbox__action {
    top: var(--space-sm);
  }

  .lightbox__close {
    right: calc(var(--space-sm) + var(--safe-right));
  }

  .lightbox__action {
    right: calc(var(--space-sm) + var(--lb-btn) + var(--space-xs) + var(--safe-right));
  }

  .lightbox__slide {
    padding: var(--space-sm);
  }

  .lightbox__loupe {
    width: 44px;
    height: 44px;
    opacity: 0.8;
    transform: scale(1);
  }

  .lightbox__caption {
    font-size: var(--font-size-xs);
    padding: 0 var(--safe-left) 0 var(--safe-right);
  }
}

/* Landscape on mobile */
@media (max-width: 900px) and (orientation: landscape) {
  .lightbox__img {
    max-height: 80vh;
  }

  .lightbox__image-wrap {
    max-height: 85vh;
  }

  .lightbox__caption {
    font-size: var(--font-size-xs);
  }
}

/* Very small screens */
@media (max-width: 380px) {
  .lightbox__inner {
    max-width: 95vw;
  }

  .lightbox__caption {
    font-size: 10px;
  }
}

/* ============================================================
   REDUCED MOTION
============================================================ */

@media (prefers-reduced-motion: reduce) {
  .lightbox__track {
    transition: none;
  }

  .lightbox__loupe,
  .lightbox__close,
  .lightbox__action,
  .lightbox__nav {
    transition: none;
  }
}

/* ============================================================
   PRINT (hide lightbox)
============================================================ */

@media print {
  .lightbox {
    display: none !important;
  }
}
/* ======================================================================
   MUSEUM-GRADE IMAGE VIEWER

   Design principles:
   - Dark background for optimal art viewing
   - Minimal, elegant UI that doesn't distract
   - Smooth animations
   - Auto-hiding controls
   - Responsive (Desktop + Mobile)
====================================================================== */

/* ============================================================
   BASE
============================================================ */

.viewer {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: #0a0a0a;

  display: flex;
  flex-direction: column;

  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.viewer.is-visible {
  opacity: 1;
  visibility: visible;
}

/* ============================================================
   BACKDROP (click to close)
============================================================ */

.viewer__backdrop {
  position: absolute;
  inset: 0;
  z-index: 1;
  cursor: pointer;
}

/* ============================================================
   VIEWPORT (contains the image)
============================================================ */

.viewer__viewport {
  position: absolute;
  inset: 0;
  top: 56px;      /* space for topbar */
  bottom: 52px;   /* space for caption */
  z-index: 2;
  overflow: hidden;
  cursor: grab;
  touch-action: none;
}

.viewer.is-panning .viewer__viewport {
  cursor: grabbing;
}

/* ============================================================
   IMAGE
============================================================ */

.viewer__img {
  position: absolute;
  left: 50%;
  top: 50%;
  transform-origin: center center;
  will-change: transform;
  max-width: none;
  max-height: none;
  user-select: none;
  -webkit-user-drag: none;

  /* Smooth rendering */
  image-rendering: auto;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* ============================================================
   TOP BAR
============================================================ */

.viewer__topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  height: 56px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  gap: 16px;

  background: linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%);

  transition: opacity 0.3s ease, transform 0.3s ease;
}

.viewer.ui-hidden .viewer__topbar {
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
}

/* Control groups */
.viewer__controls-left,
.viewer__controls-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ============================================================
   BUTTONS
============================================================ */

.viewer__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;

  height: 36px;
  padding: 0 12px;

  background: rgba(255,255,255,0.1);
  border: none;
  border-radius: 4px;

  color: rgba(255,255,255,0.8);
  font-size: 12px;
  font-family: inherit;
  letter-spacing: 0.05em;
  text-transform: uppercase;

  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.viewer__btn:hover {
  background: rgba(255,255,255,0.2);
  color: #fff;
}

.viewer__btn.is-active {
  background: rgba(255,255,255,0.25);
  color: #fff;
}

.viewer__btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Zoom buttons (icon only) */
.viewer__btn--zoom {
  width: 36px;
  padding: 0;
}

/* Close button */
.viewer__btn--close {
  width: 36px;
  padding: 0;
  background: rgba(255,255,255,0.05);
}

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

/* Mode buttons: hide text on mobile */
@media (max-width: 600px) {
  .viewer__btn--mode span {
    display: none;
  }
  .viewer__btn--mode {
    width: 36px;
    padding: 0;
  }
}

/* ============================================================
   ZOOM CONTROLS (center group)
============================================================ */

.viewer__zoom-controls {
  display: flex;
  align-items: center;
  gap: 10px;

  padding: 6px 12px;
  background: rgba(0,0,0,0.4);
  border-radius: 20px;
}

/* Zoom track (slider) */
.viewer__zoom-track {
  position: relative;
  width: 120px;
  height: 4px;
  background: rgba(255,255,255,0.2);
  border-radius: 2px;
  cursor: pointer;
}

@media (max-width: 600px) {
  .viewer__zoom-track {
    width: 80px;
  }
}

/* Zoom thumb */
.viewer__zoom-thumb {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  width: 14px;
  height: 14px;
  background: #fff;
  border-radius: 50%;

  box-shadow: 0 1px 4px rgba(0,0,0,0.4);
  transition: transform 0.1s ease;
}

.viewer__zoom-track:hover .viewer__zoom-thumb {
  transform: translate(-50%, -50%) scale(1.15);
}

/* Zoom percentage */
.viewer__zoom-pct {
  min-width: 48px;
  text-align: right;

  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.02em;
}

/* ============================================================
   CAPTION
============================================================ */

.viewer__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;

  padding: 14px 20px;
  min-height: 52px;

  background: rgba(255,255,255,0.95);
  color: #111;

  font-size: 13px;
  line-height: 1.5;

  transition: opacity 0.3s ease, transform 0.3s ease;
}

.viewer.ui-hidden .viewer__caption {
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
}

/* Caption inner styling (from lightbox captions) */
.viewer__caption .work__title {
  font-weight: 500;
}

/* Empty caption */
.viewer__caption:empty {
  display: none;
}

/* ============================================================
   LOADER
============================================================ */

.viewer__loader {
  position: absolute;
  inset: 0;
  z-index: 5;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(10,10,10,0.8);

  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.viewer.is-loading .viewer__loader {
  opacity: 1;
  visibility: visible;
}

.viewer__spinner {
  width: 40px;
  height: 40px;
  border: 2px solid rgba(255,255,255,0.1);
  border-top-color: rgba(255,255,255,0.8);
  border-radius: 50%;
  animation: viewer-spin 0.8s linear infinite;
}

@keyframes viewer-spin {
  to { transform: rotate(360deg); }
}

/* ============================================================
   MOBILE OPTIMIZATIONS
============================================================ */

@media (max-width: 600px) {
  .viewer__topbar {
    padding: var(--safe-top) calc(10px + var(--safe-right)) 0 calc(10px + var(--safe-left));
    gap: 8px;
  }

  .viewer__viewport {
    top: calc(50px + var(--safe-top));
    bottom: calc(46px + var(--safe-bottom));
  }

  .viewer__caption {
    padding: 12px calc(14px + var(--safe-right)) calc(12px + var(--safe-bottom)) calc(14px + var(--safe-left));
    font-size: 12px;
    min-height: calc(46px + var(--safe-bottom));
  }

  .viewer__zoom-controls {
    padding: 4px 8px;
    gap: 6px;
  }

  .viewer__zoom-pct {
    min-width: 40px;
    font-size: 11px;
  }

  .viewer__btn {
    height: 32px;
    font-size: 11px;
  }

  .viewer__btn--zoom,
  .viewer__btn--close {
    width: 32px;
  }

  .viewer__btn svg {
    width: 16px;
    height: 16px;
  }
}

/* Landscape on mobile - maximize image space */
@media (max-width: 900px) and (orientation: landscape) {
  .viewer__topbar {
    height: 44px;
    padding-top: var(--safe-top);
  }

  .viewer__viewport {
    top: calc(44px + var(--safe-top));
    bottom: calc(40px + var(--safe-bottom));
  }

  .viewer__caption {
    min-height: calc(40px + var(--safe-bottom));
    font-size: 11px;
  }

  .viewer__btn {
    height: 28px;
    font-size: 10px;
  }

  .viewer__btn--zoom,
  .viewer__btn--close {
    width: 28px;
  }

  .viewer__zoom-track {
    width: 60px;
  }
}

/* ============================================================
   TABLET / MEDIUM SCREENS
============================================================ */

@media (min-width: 601px) and (max-width: 1024px) {
  .viewer__zoom-track {
    width: 100px;
  }
}

/* ============================================================
   LARGE SCREENS
============================================================ */

@media (min-width: 1400px) {
  .viewer__topbar {
    padding: 0 24px;
  }

  .viewer__zoom-track {
    width: 160px;
  }

  .viewer__caption {
    padding: 16px 24px;
    font-size: 14px;
  }
}

/* ============================================================
   PRINT (hide viewer)
============================================================ */

@media print {
  .viewer {
    display: none !important;
  }
}

/* ============================================================
   REDUCED MOTION
============================================================ */

@media (prefers-reduced-motion: reduce) {
  .viewer,
  .viewer__topbar,
  .viewer__caption,
  .viewer__loader,
  .viewer__btn,
  .viewer__zoom-thumb {
    transition: none;
  }

  .viewer__spinner {
    animation: none;
  }
}

/* ============================================================
   HIGH CONTRAST MODE SUPPORT
============================================================ */

@media (prefers-contrast: high) {
  .viewer__btn {
    border: 1px solid rgba(255,255,255,0.5);
  }

  .viewer__zoom-track {
    border: 1px solid rgba(255,255,255,0.3);
  }
}
