* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  background: #fff;
  color: #ababab;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
  overflow-y: auto;
}
body {
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* ── Header ── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 68px;
  background: #fff;
  display: flex;
  align-items: center;
  padding: 0 40px;
  z-index: 200;
  border-bottom: 1px solid #e8e8e8;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  margin-right: 30px;
}
.logo:hover { text-decoration: none; }
.logo img {
  display: block;
  width: auto;
  height: 40px;
  filter: brightness(0.72);
}

.site-nav {
  flex: 1;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0;
  min-width: 0;
}

.site-nav a,
.site-nav .nav-item {
  position: relative;
}
.site-nav a {
  font-size: 14px;
  color: #939393;
  text-decoration: none;
  padding: 0 10px;
  transition: color 0.15s;
  white-space: nowrap;
  letter-spacing: 0.1em;
}
/* Separators between all top-level items */
.site-nav a + a::before,
.site-nav .nav-item + a::before,
.site-nav a + .nav-item::before,
.site-nav .nav-item + .nav-item::before {
  content: '|';
  position: absolute;
  left: -1px;
  color: #ccc;
}
.site-nav a:hover { color: #333; text-decoration: none; }
.site-nav a.active { color: #333; }

/* Dropdown */
.nav-item { position: relative; }
.nav-item .dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 220px;
  z-index: 300;
  padding: 6px 0;
}
.site-nav .nav-item:last-child .dropdown {
  left: auto;
  right: 0;
  min-width: max-content;
  text-align: right;
}
.nav-item:hover .dropdown { display: block; }
.dropdown a {
  display: block;
  font-size: 14px;
  color: #939393;
  padding: 3px 16px;
  text-decoration: none;
}
.dropdown a:hover { color: #000; background: #f8f8f8; }
.dropdown a::before { display: none !important; }

/* Mobile toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: #939393;
  margin-left: auto;
}

/* ── Main content ── */
.site-main {
  margin-top: 68px;
  padding: 70px 150px 80px;
  max-width: 1100px;
  flex: 1;
}
/* Gallery pages: full viewport width, no max-width cap */
.site-main.main--gallery {
  max-width: none;
}
.site-main.main--detail {
  max-width: none;
}
.site-main.main--pair-detail {
  padding-top: 70px;
}
.site-main.main--aktion {
  max-width: none;
}
.site-main.main--gallery-overview {
  max-width: none;
}

.page-title {
  font-size: 15px;
  font-weight: 300;
  color: #ababab;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: -30px;
  margin-bottom: 35px;
}
.gallery-subtitle {
  font-size: 13px;
  color: #bbb;
  margin-bottom: 28px;
  letter-spacing: 0.04em;
}
.gallery-description {
  max-width: 700px;
  margin-bottom: 40px;
  font-size: 14px;
  color: #666;
  line-height: 1.7;
}
h1 { font-size: 42px; color: #ababab; font-weight: normal; }
h2 { font-size: 34px; color: #ababab; font-weight: normal; }
h3 { font-size: 28px; color: #ababab; font-weight: normal; }
h4 { font-size: 24px; color: #ababab; font-weight: normal; }
h5 { font-size: 18px; color: #ababab; font-weight: normal; }
h6 { font-size: 15px; color: #ababab; font-weight: normal; }

/* ── Gallery overview (thumbnail + text rows) ── */
.page-content img {
  max-width: 100%;
  height: auto;
}
.page-content a img {
  display: block;
}
/* Links */
a { color: #6e6e6e; text-decoration: underline; }
a:hover { color: #999999; text-decoration: underline; }

/* Float-left images */
.page-content .img-float-left {
  float: left;
  clear: left;
  margin: 0 24px 16px 0;
  vertical-align: top;
}
.page-content strong {
  display: block;
  font-size: 20px;
  font-weight: bold;
  color: #333;
  margin: 0 0 8px 0;
  line-height: 1.3;
}
.page-content p {
  color: #ababab;
  font-size: 16px;
  line-height: 1.75;
  margin-bottom: 10px;
}
/* Gallery overview: body text */
p.gallery-desc {
  color: #ababab;
  font-size: 16px;
  line-height: 1.75;
  margin: 0 0 0 0;
  padding: 0;
}
/* Gallery overview: // anschauen // on its own line */
p.gallery-link {
  margin-top: 10px;
  margin-bottom: 0;
  font-size: 16px;
}
p.gallery-link a {
  color: #6e6e6e;
  text-decoration: underline;
}
.page-content a {
  color: #6e6e6e;
  text-decoration: underline;
}
.page-content br.img-float-left { clear: left; }
/* Clearfix after each floated section */
.page-content::after {
  content: '';
  display: table;
  clear: both;
}

/* Gallery overview sections */
.gallery-item {
  margin-bottom: 48px;
  display: flex;
  align-items: flex-start;
  gap: 48px;
}
.gallery-item:last-child { margin-bottom: 0; }
/* Image column: fixed width, never shrinks */
.gallery-item > a,
.gallery-item > strong {
  flex: 0 0 170px;
  display: block;
}
/* Text column: takes remaining space, never bleeds under image */
.gallery-item-text {
  flex: 1 1 0;
  min-width: 0;
}
.gallery-thumb,
.gallery-item img {
  object-fit: cover;
  display: block;
  width: 170px !important;
  height: 170px !important;
}

/* ── Aktuell projects ── */
.aktuell-overview {
  max-width: 900px;
}
.aktuell-card {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 48px;
}
.aktuell-card:last-child {
  margin-bottom: 0;
}
.aktuell-thumb {
  flex: 0 0 170px;
  display: block;
}
.aktuell-thumb img {
  width: 170px !important;
  height: 230px !important;
  object-fit: cover;
  display: block;
}
.aktuell-placeholder {
  width: 170px;
  height: 230px;
  background: #f5f5f5;
  border: 1px solid #ddd;
  display: block;
}
.aktuell-card-title {
  display: block;
  font-size: 16px;
  font-weight: bold;
  color: #555;
  line-height: 1.35;
  margin-bottom: 8px;
}
.aktuell-project {
  width: 100%;
}
.aktuell-project-text {
  width: 100%;
  margin-bottom: 40px;
}
.aktuell-project-kicker,
.aktuell-project-subtitle {
  color: #777;
}
.aktuell-project-heading {
  font-size: 16px;
  font-weight: normal;
  color: #ababab;
  margin: 28px 0 8px;
}
.aktuell-project-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 40px;
}
.aktuell-project-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
  display: block;
}
.aktuell-project-gallery--contain img {
  width: auto;
  max-width: 100%;
  max-height: 620px;
  aspect-ratio: auto;
  object-fit: contain;
}
.aktuell-project-gallery--rubens {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 40px;
}
.aktuell-project-gallery--rubens img {
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  display: block;
}
.aktuell-project-text p strong {
  display: inline;
  font-size: inherit;
  color: inherit;
  font-weight: bold;
  margin: 0;
}
.aktuell-project-gallery--portrait {
  justify-items: center;
  align-items: start;
}
.aktuell-project-gallery--portrait img {
  width: auto;
  max-width: 100%;
  height: clamp(420px, 42vw, 650px);
  max-height: none;
  aspect-ratio: auto;
  object-fit: contain;
}
.aktuell-project .aktion-back {
  margin-top: 28px;
}

/* ── Responsive: phone (overridden below in unified breakpoints) ── */


/* ── Image-only gallery grid (individual gallery pages) ── */
.img-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  margin-top: 10px;
}
.img-grid a {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  text-decoration: none;
}
.img-grid a.img-grid-pair {
  display: flex;
  gap: 2px;
}
.img-grid a.img-grid-pair img {
  width: 50%;
  height: 100%;
  object-fit: cover;
  flex-shrink: 0;
}
.img-grid img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
  transition: opacity 0.2s;
}
.img-grid a:hover img,
.img-grid a:hover .img-placeholder {
  opacity: 0.75;
}
.misha-grid--no-lightbox a:hover img {
  opacity: 1;
}
.misha-grid--no-lightbox img {
  cursor: default;
}
/* Placeholder for missing images */
.img-placeholder {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #e8e8e8;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8px;
  box-sizing: border-box;
  font-size: 13px;
  color: #888;
  line-height: 1.3;
}

/* ── Single image pages ── */
.single-img {
  margin-top: 10px;
}
.single-img img {
  max-width: 100%;
  height: auto;
  display: block;
}
.single-img .img-caption {
  font-size: 14px;
  color: #555;
  margin-top: 8px;
}

/* ── Kontakt gallery block ── */
.kontakt-galerie {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 32px;
}
.galerie-logo {
  width: 160px;
}

/* ── Text pages (Impressum, Kontakt) ── */
.text-page p {
  color: #ababab;
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 12px;
}
.text-page a { color: #6e6e6e; }
.text-page a:hover { color: #999999; }
.text-page .section-title {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #ababab;
  margin: 24px 0 6px;
}

/* ── Video pages ── */
.video-block {
  display: flex;
  align-items: flex-end;
  gap: 40px;
}
.video-wrap {
  flex-shrink: 0;
  width: 400px;
  height: 300px;
  background: #e8e8e8;
}
.video-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
.video-wrap--mp4 {
  width: 400px;
  height: 225px;
  background: #000;
}
.video-wrap--mp4 video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #000;
}
.skulptur-img {
  display: block;
  width: 400px;
  height: auto;
  flex-shrink: 0;
}
.video-wrap--placeholder {
  background: #e8e8e8;
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-placeholder-text {
  color: #aaa;
  font-size: 14px;
}
.video-info {
  flex: 1;
  min-width: 0;
  padding-bottom: 4px;
}
.video-info p {
  margin: 0;
  line-height: 1.5;
}
@media (max-width: 640px) {
  .video-block { flex-direction: column; align-items: flex-start; }
  .video-wrap { width: 100%; }
}

/* ── Lightbox ── */
#lb {
  display: none;
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 1000;
  justify-content: center;
  align-items: center;
}
#lb.lb--light {
  background: #fff;
}
#lb.open { display: flex; }
#lb img {
  max-width: 92vw;
  max-height: 92vh;
  object-fit: contain;
  cursor: default;
}
#lb-close {
  position: fixed; top: 16px; right: 22px;
  background: none; border: none;
  color: #ccc; font-size: 28px; cursor: pointer; line-height: 1;
}
#lb-prev, #lb-next {
  position: fixed; top: 50%; transform: translateY(-50%);
  background: none; border: none;
  color: #aaa; font-size: 42px; cursor: pointer; line-height: 1;
}
#lb-prev { left: 16px; }
#lb-next { right: 16px; }
#lb-close:hover, #lb-prev:hover, #lb-next:hover { color: #fff; }
#lb.lb--light #lb-close,
#lb.lb--light #lb-prev,
#lb.lb--light #lb-next {
  color: #777;
}
#lb.lb--light #lb-close:hover,
#lb.lb--light #lb-prev:hover,
#lb.lb--light #lb-next:hover {
  color: #222;
}

/* Images missing from backup — show as placeholder */
img[data-missing] { opacity: 0.25; outline: 1px dashed #bbb; }

/* ── Artwork detail page ── */
.artwork-detail {
  max-width: 1100px;
  --artwork-media-height: max(460px, calc(100vh - 255px));
}
.main--detail .artwork-detail {
  max-width: none;
}
.main--pair-detail .artwork-detail {
  --artwork-media-height: clamp(460px, calc(64vw - 210px), calc(100vh - 255px));
}
.artwork-layout {
  display: grid;
  grid-template-columns: auto minmax(180px, 1fr);
  grid-template-rows: var(--artwork-media-height) auto;
  column-gap: 40px;
}
.artwork-detail--wide .artwork-layout {
  grid-template-columns: minmax(0, max-content);
  grid-template-rows: auto auto auto;
  row-gap: 8px;
  width: fit-content;
  max-width: 100%;
}
.artwork-img-col {
  grid-column: 1;
  grid-row: 1;
  align-self: start;
}
.artwork-detail--wide .artwork-img-col {
  grid-column: 1;
  grid-row: 1;
}
.artwork-img-col img {
  display: block;
  height: var(--artwork-media-height);
  max-width: calc(100vw - 340px);
  width: auto;
  object-fit: contain;
}
.artwork-detail--wide .artwork-img-col img {
  width: auto;
  height: auto;
  max-width: calc(100vw - 80px);
  max-height: calc(var(--artwork-media-height) - 72px);
}
.artwork-pair-detail {
  display: grid;
  grid-template-columns: auto minmax(180px, 1fr);
  grid-template-rows: var(--artwork-media-height) auto;
  column-gap: 40px;
}
.artwork-pair-images {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  gap: 24px;
  align-items: flex-end;
  height: var(--artwork-media-height);
}
.artwork-pair-images img {
  display: block;
  height: 100%;
  max-height: 100%;
  max-width: calc((100vw - 380px) / 2);
  width: auto;
  object-fit: contain;
}
.artwork-detail--kleine-zeichnungen .artwork-pair-detail {
  grid-template-rows: var(--artwork-media-height) auto;
}
.artwork-detail--kleine-zeichnungen .artwork-pair-images {
  align-items: center;
  height: var(--artwork-media-height);
}
.artwork-detail--kleine-zeichnungen .artwork-pair-images img {
  width: min(42vw, 440px);
  height: auto;
  max-height: var(--artwork-media-height);
  max-width: calc((100vw - 380px) / 2);
  object-fit: contain;
  object-position: center center;
}
.artwork-detail--kleine-zeichnungen .artwork-info-col {
  align-self: start;
  margin-top: var(--kleine-zeichnungen-info-top, 0px);
}
.artwork-no-img {
  width: var(--artwork-media-height);
  height: var(--artwork-media-height);
  background: #f5f5f5; border: 1px dashed #ccc;
  display: flex; align-items: center; justify-content: center;
  color: #aaa; font-size: 15px;
}
.artwork-info-col {
  grid-column: 2;
  grid-row: 1;
  align-self: end;
  min-width: 0;
}
.artwork-detail--wide .artwork-info-col {
  grid-column: 1;
  grid-row: 2;
  align-self: start;
}
.artwork-nav-row {
  grid-column: 1;
  grid-row: 2;
}
.artwork-detail--wide .artwork-nav-row {
  grid-column: 1;
  grid-row: 3;
}
.artwork-title {
  font-size: 15px;
  font-weight: bold;
  color: #666;
  margin: 0 0 8px 0;
}

/* Aktion-Installationen detail: image gallery — uniform cells */
.aktion-detail {
  width: 100%;
}
.aktion-text-block {
  width: 100%;
  margin-top: 8px;
  margin-bottom: 32px;
}
.aktion-single-image {
  margin: 20px 0 28px;
}
.aktion-single-image img {
  display: block;
  max-width: 100%;
  width: auto;
  height: auto;
  max-height: 70vh;
}
.aktion-gallery + .aktion-text-block {
  margin-top: 60px;
}
.aktion-gallery {
  display: grid;
  gap: 18px;
  margin-top: 32px;
  margin-bottom: 0;
}
.aktion-gallery-cell {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #f5f5f5;
}
.aktion-gallery-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  cursor: default;
}
.aktion-gallery--portrait-set .aktion-gallery-cell {
  aspect-ratio: 5 / 8;
}
.aktion-gallery--single .aktion-gallery-cell {
  aspect-ratio: auto;
  overflow: visible;
  background: transparent;
}
.aktion-gallery--single .aktion-gallery-cell img {
  height: auto;
  max-height: none;
  cursor: default;
}
.aktion-gallery--natural .aktion-gallery-cell {
  aspect-ratio: auto;
  overflow: visible;
  background: transparent;
}
.aktion-gallery--natural .aktion-gallery-cell img {
  width: 100%;
  height: auto;
  object-fit: unset;
  display: block;
}
.aktion-gallery--wide {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
}
.aktion-gallery--wide .aktion-gallery-cell img {
  width: 100%;
}
.aktion-gallery-cell--video {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #000;
  position: relative;
}
.aktion-gallery-cell--video .video-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.aktion-gallery-cell--video .video-wrap iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  /* 16:9 video in 3:2 container — scale to fill height, clip sides */
  width: 118.52%;
  height: 100%;
  transform: translate(-50%, -50%);
  border: 0;
}
.video-poster {
  position: absolute;
  inset: 0;
  cursor: pointer;
}
.video-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(0,0,0,0.55);
  border: 3px solid rgba(255,255,255,0.85);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
  padding: 0;
}
.video-play-btn svg {
  width: 26px;
  height: 26px;
}
.video-poster:hover .video-play-btn {
  background: rgba(0,0,0,0.78);
  border-color: #fff;
}
.aktion-gallery-cell--portrait img {
  object-fit: cover;
}
.aktion-title {
  display: block;
  font-size: 16px;
  font-weight: bold;
  color: #555;
  margin-bottom: 12px;
}
.page-content strong.aktion-title {
  font-size: 16px;
  color: #555;
}
.aktion-subtitle {
  font-size: 14px;
  color: #888;
  margin-top: -8px;
  margin-bottom: 20px;
}
.aktion-back {
  margin-top: 32px;
}
.aktion-back a {
  color: #939393;
  text-decoration: none;
  font-size: 15px;
  line-height: 1;
}
.aktion-back a:hover {
  color: #333;
  text-decoration: none;
}

/* Gallery overview item titles: same size as body text */
.gallery-item-text strong {
  font-size: 16px;
  color: #555;
}
.artwork-meta {
  font-size: 15px;
  color: #ababab;
  margin: 0 0 2px 0;
  line-height: 1.35;
}
.artwork-info-col .artwork-meta:last-child {
  margin-bottom: 0;
}
.artwork-nav-row {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 18px;
  margin-top: 14px;
}
.artwork-detail--wide .artwork-nav-row {
  margin-top: 2px;
}
.artwork-nav {
  font-size: 22px;
  color: #939393;
  text-decoration: none;
  line-height: 1;
  transition: color 0.15s;
}
.artwork-nav:hover { color: #333; text-decoration: none; }
.artwork-nav-back {
  font-size: 22px;
  color: #939393;
  text-decoration: none;
  transition: color 0.15s;
}
.artwork-nav-back:hover { color: #333; text-decoration: none; }
.artwork-meta--dark {
  color: #ababab;
}
.artwork-desc-sep {
  height: 14px;
}
/* ════════════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
   Nav→hamburger  ≤ 1150 px  (nav would overflow below this)
   Mobile         ≤ 640 px  →  stacking, tight spacing
   Phone          ≤ 480 px  →  smallest grid cells
   ════════════════════════════════════════════════════ */

/* ── Hamburger nav (≤ 980 px) — consistent with hero page ── */
@media (max-width: 1150px) {
  .site-main { padding: 60px 40px 70px; }  /* matches header padding: 0 40px */
  /* Gallery grid: three columns on tablet */
  .img-grid { grid-template-columns: repeat(3, 1fr); }
  .aktuell-project-gallery--rubens {
    grid-template-columns: repeat(2, 1fr);
  }
  /* Artwork detail: switch to single column so image never distorts */
  .artwork-layout { grid-template-columns: 1fr; grid-template-rows: auto auto auto; row-gap: 24px; }
  .artwork-img-col { grid-column: 1; grid-row: 1; }
  .artwork-info-col { grid-column: 1; grid-row: 2; align-self: start; }
  .artwork-nav-row { grid-column: 1; grid-row: 3; }
  .artwork-img-col img { width: auto; height: auto; max-width: 100%; max-height: max(420px, calc(100vh - 255px)); }
  /* Pair detail: stack vertically on narrow screens; nav always right after images */
  .artwork-pair-detail { grid-template-columns: 1fr; grid-template-rows: auto auto auto; row-gap: 24px; }
  .artwork-pair-images { grid-column: 1; grid-row: 1; }
  .artwork-pair-detail .artwork-nav-row { grid-column: 1; grid-row: 2; }
  .artwork-pair-detail .artwork-info-col { grid-column: 1; grid-row: 3; align-self: start; }
  .artwork-pair-images img { height: min(60vh, 65vw); width: auto; max-width: calc(50% - 12px); }
  .artwork-detail--kleine-zeichnungen .artwork-pair-images {
    align-items: center;
    height: min(60vh, 65vw);
  }
  .artwork-detail--kleine-zeichnungen .artwork-pair-images img {
    width: calc(50% - 12px);
    height: 100%;
    max-width: calc(50% - 12px);
    object-fit: contain;
    object-position: center center;
  }
  /* Hide horizontal nav, show hamburger */
  .site-nav { display: none; }
  .site-nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid #ddd;
    padding: 12px 0;
    z-index: 200;
    align-items: flex-start;
  }
  .site-nav.open a { padding: 8px 20px; }
  .site-nav.open .dropdown a { padding: 4px 20px; }
  .site-nav.open a + a::before { display: none; }
  .nav-item .dropdown { position: static; border: none; padding: 0 0 4px 20px; display: block; }
  .site-nav .nav-item:last-child .dropdown { text-align: left; right: auto; }
  .nav-item:hover .dropdown { display: block; }
  .nav-toggle { display: block; }
}


/* ── Mobile (≤ 640 px) ── */
@media (max-width: 640px) {
  .site-header { padding: 0 20px; }        /* reduce header padding on phones */
  .logo { margin-right: 18px; }
  .logo img { height: 34px; max-width: 230px; }
  .site-main { padding: 30px 20px 50px; }  /* matches header padding: 0 20px */
  .aktion-gallery--wide { grid-template-columns: 1fr; }
  /* Gallery grid: two columns on mobile */
  .img-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  /* Gallery overview: image above text */
  .gallery-item {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .gallery-item > a { flex: 0 0 auto; }
  .gallery-thumb {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1;
    object-fit: cover;
  }
  .aktuell-card {
    flex-direction: column;
    gap: 14px;
  }
  .aktuell-thumb {
    flex: 0 0 auto;
  }
  .aktuell-thumb img {
    width: 170px !important;
    height: 230px !important;
  }
  .aktuell-project-gallery {
    grid-template-columns: 1fr;
  }
  .aktuell-project-gallery--rubens {
    grid-template-columns: repeat(2, 1fr);
  }
  /* Artwork detail: image full-width, text below with gap */
  .artwork-layout { grid-template-columns: 1fr; grid-template-rows: auto auto auto; row-gap: 32px; }
  .artwork-img-col { grid-column: 1; grid-row: 1; }
  .artwork-info-col { grid-column: 1; grid-row: 2; align-self: start; }
  .artwork-nav-row { grid-column: 1; grid-row: 3; }
  .artwork-img-col img { width: auto; height: auto; max-width: 100%; max-height: max(360px, calc(100vh - 245px)); }
  /* Pair detail: same stacking; nav always right after images */
  .artwork-pair-detail { grid-template-columns: 1fr; grid-template-rows: auto auto auto; row-gap: 32px; }
  .artwork-pair-images { grid-column: 1; grid-row: 1; flex-wrap: wrap; }
  .artwork-pair-images img { height: min(55vh, 60vw); width: auto; max-width: calc(50% - 12px); }
  .artwork-detail--kleine-zeichnungen .artwork-pair-images {
    align-items: center;
    height: min(55vh, 60vw);
  }
  .artwork-detail--kleine-zeichnungen .artwork-pair-images img {
    width: calc(50% - 12px);
    height: 100%;
    max-width: calc(50% - 12px);
    object-fit: contain;
    object-position: center center;
  }
  .artwork-pair-detail .artwork-nav-row { grid-column: 1; grid-row: 2; }
  .artwork-pair-detail .artwork-info-col { grid-column: 1; grid-row: 3; align-self: start; }
  .artwork-no-img { width: 100%; height: 260px; }
}

/* ── Footer ── */
.site-footer {
  border-top: 1px solid #ddd;
  padding: 24px 60px;
  margin-top: 60px;
  display: flex;
  gap: 32px;
  align-items: center;
  font-size: 14px;
  font-weight: normal;
  color: #888;
  letter-spacing: 0.1em;
}
.site-footer a {
  color: #939393;
  text-decoration: none;
  letter-spacing: 0.1em;
  font-weight: normal;
  white-space: nowrap;
}
.site-footer a:hover { color: #333; }
@media (max-width: 640px) {
  .site-footer { padding: 20px; gap: 20px; flex-wrap: wrap; }
}

/* ── Schreibmaschine intro block (Tagebuch gallery) ── */
.schreibmaschine-block {
  display: flex;
  gap: 18px;
  width: 100%;
  margin-bottom: 18px;
}
.schreibmaschine-item {
  flex: 1 1 0;
  min-width: 0;
  position: relative;
}
.schreibmaschine-item::before {
  content: '';
  display: block;
  padding-bottom: 150%;
}
.schreibmaschine-item img {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  cursor: default;
}
.schreibmaschine-item img:hover { opacity: 1; }

/* ── Misha combined page ── */
.misha-page { max-width: 960px; }
.misha-photo-page {
  width: 100%;
  max-width: none;
}
.misha-vita { margin-bottom: 60px; }
.misha-vita-page {
  max-width: 1100px;
}
.misha-vita-layout {
  display: grid;
  grid-template-columns: minmax(0, 600px) minmax(260px, 360px);
  gap: 72px;
  align-items: start;
}
.misha-vita-image img {
  display: block;
  width: 100%;
  height: auto;
}

.vita { max-width: 600px; }
.vita-subtitle {
  color: #ababab;
  margin: 0 0 20px 0;
}
.vita-section {
  font-size: inherit;
  font-weight: bold;
  color: #333;
  margin: 24px 0 6px;
}
.vita-entries {
  list-style: none;
  padding: 0;
  margin: 0;
}
.vita-entries li {
  color: #ababab;
  line-height: 1.7;
  padding: 1px 0;
}
.vita-year {
  color: #555;
  margin-right: 12px;
}
.misha-section-label {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #ababab;
  margin: 48px 0 16px;
  font-weight: normal;
}
.misha-grid {
  width: 100%;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.misha-grid--atelier {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}
.misha-grid--atelier img {
  object-fit: cover;
  background: #fff;
}
@media (max-width: 1150px) {
  .misha-grid { grid-template-columns: repeat(3, 1fr); }
  .misha-grid--atelier { grid-template-columns: repeat(3, 1fr); }
  .misha-vita-layout {
    grid-template-columns: minmax(0, 600px) minmax(220px, 300px);
    gap: 44px;
  }
}
@media (max-width: 640px) {
  .misha-grid { grid-template-columns: repeat(2, 1fr); }
  .misha-grid--atelier { grid-template-columns: repeat(2, 1fr); }
  .misha-vita-layout {
    display: block;
  }
  .misha-vita-image {
    margin-top: 34px;
    max-width: 320px;
  }
}

/* ── Cookie Banner ── */
#cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #fff;
  border-top: 1px solid #ddd;
  padding: 16px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  z-index: 9999;
  font-size: 13px;
  color: #888;
  flex-wrap: wrap;
}
#cookie-banner p { margin: 0; flex: 1; }
#cookie-banner a { color: #6e6e6e; }
.cookie-btns { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-btn {
  padding: 7px 18px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid #ccc;
  background: #fff;
  color: #555;
}
.cookie-btn:hover { border-color: #999; color: #222; }
.cookie-btn--accept { background: #555; color: #fff; border-color: #555; }
.cookie-btn--accept:hover { background: #222; border-color: #222; }
@media (max-width: 640px) {
  #cookie-banner { padding: 16px 20px; }
}
