/* Stefanie Grau — portfolio (faithful static rebuild of the Cargo site)
   Original fonts (Diatype / Diatype Semi-Mono / Marist) are commercial and
   substituted here with close free alternatives:
     Diatype / Diatype Semi-Mono -> Space Grotesk
     Marist                      -> Newsreader
*/

:root {
  --bg: #000000;
  --fg: rgba(255, 255, 255, 0.6);
  --fg-strong: rgba(255, 255, 255, 0.7);
  --fg-dim: rgba(255, 255, 255, 0.5);
  --font-sans: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Space Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --font-serif: "Newsreader", Georgia, "Times New Roman", serif;
  --gap: 1rem;
  --pad: 1.4rem;
  --ui-text: 0.7rem;   /* Navigation, Kundenliste, Index — eine Groesse */
  --fade: 700ms;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  overflow: hidden;
  /* verhindert blaue Textauswahl beim Durchklicken der Galerie */
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }

/* Hide native cursor (custom dot below), like the original */
@media (hover: hover) and (pointer: fine) {
  * { cursor: none !important; }
}

/* ---------- fullscreen background ---------- */
.backdrop {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 0;
}
.backdrop .slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  object-fit: cover;
  opacity: 0;
  /* Kein Uebergang: der Bildwechsel beim Klicken ist ein harter Schnitt.
     Die Overlays (Index, About) blenden weiterhin ueber --fade weich auf. */
}
.backdrop .slide.active { opacity: 1; }

/* ---------- LANDING (client list, first page) ---------- */
.landing {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: none;
  align-items: center;
  justify-content: center;
  background: transparent;
  /* clicks pass through to gallery; hover uses #list-hotspot underneath */
  pointer-events: none;
}
.landing.open { display: flex; }

/* Invisible hit area over former list — armed after 2 clicks (desktop hover reveal) */
.list-hotspot {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, calc(-50% + 3.5vh));
  width: min(36rem, calc(100% - 2rem));
  height: min(75vh, 27rem);   /* muss die Liste vollstaendig abdecken */
  z-index: 19;
  pointer-events: none;
}
.list-hotspot.is-armed {
  pointer-events: auto;
}

/* Peek-Zone = Bounding-Box der 8 Diagramm-Positionen (Buehnen-Wuerfel) */
.gestell-frame {
  position: fixed;
  left: 50%;
  top: 50%;
  width: min(54rem, 61vw);
  height: min(58vh, 34rem);
  transform: translate(-50%, calc(-50% + 1vh));
  pointer-events: none;
  z-index: 18;
}

.client-stage {
  position: relative;
  width: min(36rem, calc(100% - 2rem));
  margin: 0 auto;
  /* sit inside the stage “black cube” (between truss top and floor) */
  transform: translateY(3.5vh);
}
.client-cols {
  /* Equal columns → gutter sits on the same center axis as INDEX */
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 1.2rem;
  width: 100%;
  color: var(--fg); /* gleiche Farbe wie INDEX / Nav */
}
/* Hover-Bild: fester kleiner Rahmen unten links, ueber der Navigationszeile.
   Frueher klebte es unter dem Namen und wanderte mit — jetzt bleibt es ruhig
   an einer Stelle stehen, waehrend man die Liste durchfaehrt. */
/* Erscheint beim Hover ueber einen Kundennamen an einer zufaelligen Stelle
   rund um die Liste. left/top setzt main.js und meint den MITTELPUNKT —
   daher die Verschiebung um die halbe eigene Groesse.
   Ein- und Ausblenden ueber opacity, nicht ueber display — sonst laesst sich
   der Wechsel nicht weich gestalten. */
.client-peek {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 25;
  display: block;
  width: 9.5rem;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #111;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 200ms ease, visibility 200ms;
}
.client-peek.is-on {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 700px) {
  .client-peek {
    width: 8.5rem;
  }
}
.client-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  font-size: var(--ui-text);
  font-weight: 300;
  line-height: 1.55;
  color: inherit;
  min-width: 0; /* allow long names to wrap inside the half */
}
.client-left { text-align: right; }
.client-right { text-align: left; }
.client-list li {
  /* Hit-Area nur so breit wie der Text — nicht die ganze Spalte,
     sonst erscheint das Peek-Bild schon neben dem Namen. */
  width: fit-content;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
  pointer-events: auto;
  transition: color 120ms ease, opacity 120ms ease;
}
.client-left li {
  margin-left: auto; /* rechtsbuendig, trotz shrink-to-fit */
}
.client-list li:hover {
  opacity: 0.6; /* wie .nav-link:hover */
}

/* ---------- home navigation ---------- */
.home-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  padding: var(--pad);
  -webkit-user-select: none;
  user-select: none;
}
.nav-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: end;
}
.nav-link {
  font-family: var(--font-sans);
  font-size: calc(var(--ui-text) * 1.12);
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--fg);
  text-transform: uppercase;
  transition: opacity 150ms ease;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}
.nav-link:focus,
.nav-link:focus-visible {
  outline: none;
}
.nav-row .nav-link:nth-child(1) { text-align: left; }
.nav-row .nav-link:nth-child(2) { text-align: center; }
.nav-row .nav-link:nth-child(3) { text-align: right; }
.nav-link:hover { opacity: 0.6; }

/* About-Text darf weiterhin markiert werden */
.about-text,
.about-text * {
  -webkit-user-select: text;
  user-select: text;
}

/* ---------- overlays (INDEX / ABOUT) ---------- */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: #000;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--fade) ease-in-out, visibility 0s linear var(--fade);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.overlay.open {
  opacity: 1;
  visibility: visible;
  transition: opacity var(--fade) ease-in-out;
}
.overlay-inner {
  position: relative;
  min-height: 100%;
  padding: var(--pad);
}
.overlay-close {
  position: fixed;
  top: var(--pad);
  right: var(--pad);
  z-index: 70;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  color: var(--fg-strong);
  pointer-events: auto;
}
.overlay-close:hover { opacity: 0.6; }

/* ---------- INDEX grid ---------- */
/*
  Zweispaltig: links Label + Projektliste (bleibt beim Scrollen stehen),
  rechts das Raster. Kachelbreite haengt an --tile und wird per Zoom
  veraendert — nicht per transform, damit die Namen scharf bleiben.
*/
#overlay-index .overlay-close {
  left: 50%;
  right: auto;
  top: auto;
  bottom: var(--pad);
  transform: translateX(-50%);
  font-size: 1.1rem;
  color: #fff;
  mix-blend-mode: difference;
}
/* Rasterdichte umschalten — rechts am Rahmen, Abstand = --gutter */
.index-cols {
  position: fixed;
  top: var(--gutter, var(--index-pad, 1.6rem));
  right: var(--gutter, var(--index-pad, 1.6rem));
  z-index: 70;
  width: var(--index-icon);
  height: var(--index-icon);
  padding: 0;
  border: 0;
  background: none;
  display: block;
  opacity: 0.7;
  transition: opacity 150ms ease;
}
.index-cols:hover { opacity: 1; }
.index-cols svg { display: block; width: 100%; height: 100%; }
.index-cols rect { fill: #fff; }
.index-inner {
  /* Ein Rhythmus: Fensterrand = Icon-Luft = Kachel-Abstand */
  --gutter: 1.6rem;
  --index-pad: var(--gutter);
  --index-icon: 22px;
  --tile: 61px;
  --cap: var(--ui-text);
  padding: var(--gutter);
  /* rechts: gutter | icon | gutter  → Icon mittig in der Randspalte */
  padding-right: calc(var(--gutter) * 2 + var(--index-icon));
  padding-bottom: 5rem;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 12.5rem 1fr;
  column-gap: calc(var(--gutter) * 2);
  align-items: start;
}

/* linke Spalte */
/* Scrollt mit der Seite mit — kein eigener Scrollbereich mehr, damit
   alle Namen ohne Extra-Scrollen erreichbar sind. */
.index-side {
  position: static;
  align-self: start;
  display: block;
}
.index-label {
  font-family: var(--font-sans);
  font-size: var(--ui-text);
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 1.1rem;
  flex: none;
}
.index-list {
  list-style: none;
  margin: 0;
  padding: 0 0.6rem 0 0;
}
.index-list-item {
  font-family: var(--font-sans);
  font-size: var(--ui-text);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  transition: color 150ms ease;
  overflow-wrap: anywhere;
}
.index-list-item:hover { color: rgba(255, 255, 255, 0.8); }
.index-list-item.is-active { color: #ffffff; }
.index-list-item.is-active::before { content: "› "; }

/* Raster */
/* Raster: --tile ist das MINDESTmass, die Spalten dehnen sich auf die
   verfuegbare Breite. Dadurch passt sich die Zahl der Spalten von selbst
   ans Fenster an, statt fest auf 3/6/9 zu stehen. */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(var(--tile), 1fr));
  /* gleicher Abstand wie Fensterrand / Icon-Spalte */
  column-gap: var(--gutter);
  row-gap: var(--gutter);
  align-items: start;
  width: 100%;
  box-sizing: border-box;
}
.grid-item {
  position: relative;
  margin: 0;
  width: 100%;
  min-width: 0;
  display: block;
  box-sizing: border-box;
  transition: opacity 220ms ease;
}
.grid-media {
  width: 100% !important;
  height: auto !important;
  max-width: none !important;
  max-height: none !important;
  aspect-ratio: 16 / 9;
  object-fit: cover !important; /* auch Zara-Panorama: flächenfüllend, keine weissen Seiten */
  object-position: center center;
  display: block;
  background: #000;
  box-sizing: border-box;
}
/* Name erscheint erst beim Hover und liegt direkt UNTER der Kachel
   im schwarzen Zwischenraum (nicht auf dem Bild). Rasterabstand bleibt —
   Caption bleibt deshalb innerhalb von --gutter. */
.grid-caption {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin: 0.05rem 0 0;
  padding: 0;
  box-sizing: border-box;
  text-align: left;
  font-family: var(--font-sans);
  font-size: var(--cap);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.15;
  pointer-events: none;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  white-space: normal;
  word-break: break-word;
  opacity: 0;
  z-index: 2;
  max-height: calc(var(--gutter) - 0.1rem);
  background: #000;
  transition: opacity 140ms ease;
}
.grid-caption,
.grid-caption.is-dark,
.grid-caption.is-light { color: #ffffff; }
.grid-item:hover .grid-caption,
.grid-item.is-focus .grid-caption { opacity: 1; }

/* Ein Projekt ausgewaehlt: alle anderen treten zurueck */
.grid.has-focus .grid-item { opacity: 0.16; }
.grid.has-focus .grid-item.is-focus { opacity: 1; }
.grid-item.is-focus .grid-caption { color: #ffffff; }

/* ---------- ABOUT (right-half panel over the image) ---------- */
.overlay-about {
  background: transparent;      /* left half keeps showing the image */
  pointer-events: none;         /* clicks pass through to nav / backdrop */
}
.about-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 50%;
  background: #000;
  padding: 3.4rem 2rem 2rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  pointer-events: auto;         /* the panel itself is interactive */
}
.about-text {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 300;
  line-height: 1.5;
  color: var(--fg);
}
/* ONE size, NO bold — everywhere inside about */
.about-text,
.about-text *,
.about-text b,
.about-text strong,
.about-text span,
.about-text div {
  font-size: 0.85rem !important;
  font-weight: 300 !important;
}
.about-text .sg-body { display: block; }
.about-text a { color: inherit; text-decoration: none; }

@media (max-width: 700px) {
  .about-panel { width: 100%; }
}

/* ---------- MOBILE: 4 galleries on ONE iPhone screen (no scroll) ---------- */
.mobile { display: none; }

@media (max-width: 700px) {
  html, body {
    height: 100%;
    height: 100svh;
    height: 100dvh;
    overflow: hidden;
  }
  body { overflow: hidden; }

  .desktop { display: none !important; }

  .mobile {
    display: block;
    position: fixed;
    inset: 0;
    width: 100vw;
    max-width: 100%;
    height: 100%;
    height: 100svh;
    height: 100dvh;
    overflow: hidden;
    background: #000;
    z-index: 1;
  }

  .m-stack {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
  }

  .m-panel {
    position: relative;
    display: block;
    width: 100%;
    height: 25%;
    height: 25svh;
    height: 25dvh;
    overflow: hidden;
    background: #000;
    touch-action: manipulation;
  }

  .m-stage {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #000 !important;
  }
  /* Flächenfüllend in allen 4 Galerien — kein Letterboxing / keine weissen Raender */
  .m-stage .m-fill {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover !important;
    object-position: center center !important;
    display: block;
    border: 0;
    margin: 0;
    padding: 0;
    max-width: none !important;
    max-height: none !important;
    transform: scale(1.06);
    transform-origin: center center;
    pointer-events: none;
  }
  .m-stage video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover !important;
    transform: scale(1.06);
    transform-origin: center center;
  }

  /* client list ONCE — full stack, centered over the images */
  .m-list {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: none;
    align-items: center;
    justify-content: center;
    pointer-events: none !important;
  }
  .m-list.is-on { display: flex; }
  .m-list .client-stage {
    width: calc(100% - 1.2rem);
    max-width: 22rem;
    transform: translateY(-1.2rem);
  }
  .m-list .client-peek { display: none !important; }
  .m-list .client-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 0.7rem;
    width: 100%;
    margin: 0 auto;
    pointer-events: none !important;
  }
  .m-list .client-list,
  .m-list li {
    pointer-events: none !important;
  }
  .m-list .client-list {
    font-size: calc(var(--ui-text) * 1.12);   /* wie die Navigation unten */
    font-weight: 300;
    line-height: 1.55;
  }
  .m-list .client-left { text-align: right; }
  .m-list .client-right { text-align: left; }

  .m-stage,
  .m-stage video,
  .m-stage .m-fill {
    pointer-events: none;
  }
  .m-panel {
    pointer-events: auto;
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
  }

  /* Only the text links capture taps; empty nav padding must not block galleries */
  .home-nav {
    position: fixed;
    z-index: 40;
    padding-bottom: max(0.8rem, env(safe-area-inset-bottom));
    pointer-events: none;
  }
  .home-nav .nav-link {
    pointer-events: auto;
  }

  .about-panel {
    width: 100%;
    padding: 3rem 1.2rem 2rem;
  }
  .about-text,
  .about-text *,
  .about-text b,
  .about-text strong,
  .about-text span,
  .about-text div {
    font-size: 0.85rem !important;
  }
  /* iPhone index: nur Bilder, kein Verzeichnis, dichtes Raster (8 Spalten).
     Der Rahmen oben ist knapp, damit die Bilder dicht unter dem Icon beginnen. */
  /* Alle Kacheln passen auf einen Bildschirm — main.js rechnet --tile und
     --row-gap so aus, dass nichts gescrollt werden muss. */
  #overlay-index { overflow: hidden; }
  .index-inner {
    --tile: 60px;
    --gutter: 0.45rem;
    --cap: var(--ui-text);
    padding: 3.2rem 0.8rem 1rem;
    display: block;
    height: 100%;
    overflow: hidden;
  }
  .index-side { display: none; }
  /* Kein Hell-/Dunkelschalter und kein Dichteknopf — das Raster fuellt
     den Bildschirm von selbst. */
  .index-cols { display: none; }
  /* Bei allen Kacheln auf einem Bildschirm bleibt kein Platz fuer Namen. */
  .grid-caption { display: none; }
  /* Antippen: Name erscheint kurz an der Stelle des Bildes und bleibt
     vollstaendig INNERHALB der Kachel. Die Schriftgroesse haengt an der
     Kachelbreite, damit sie bei jeder Rasterdichte hineinpasst. */
  /* Antippen: Name erscheint kurz INNERHALB der Kachel (nicht groesser). */
  .grid-item.is-naming .grid-media { visibility: hidden; }
  .grid-item.is-naming .grid-caption {
    display: flex;
    position: absolute;
    inset: 0;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    width: auto;
    height: auto;
    max-height: none; /* Desktop-Gutter-Limit gilt hier nicht */
    transform: none;
    margin: 0;
    padding: 1px;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: calc(var(--tile) * 0.135);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: 0;
    color: #fff !important;
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    opacity: 1;
    z-index: 6;
    overflow: hidden;
    background: #000;
    border: none;
    -webkit-line-clamp: unset;
    -webkit-box-orient: unset;
  }
  .grid {
    column-gap: var(--gutter);
    row-gap: var(--row-gap, 1.2rem);
    justify-content: center !important;
    align-content: start;
  }
}

/* ---------- custom cursor (dot + side arrows) ---------- */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 7px;
  height: 7px;
  margin: -3.5px 0 0 -3.5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  mix-blend-mode: difference;
  pointer-events: none;
  z-index: 9999;
  transform: translate3d(-100px, -100px, 0);
  transition: width 40ms, height 40ms, margin 40ms, border-radius 40ms;
}
/* left / right gallery arrows — gleiche Farbe wie INDEX / Nav (--fg) */
.cursor.is-left,
.cursor.is-right {
  width: 50px;
  height: 12px;
  margin: -6px 0 0 -25px;
  border-radius: 0;
  background-color: transparent;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  mix-blend-mode: normal; /* sonst wirkt das Grau nicht wie der Text */
}
/* Dreieck an der Aussenkante, dahinter eine feine Linie — Linie greift
   leicht ins Dreieck, damit kein sichtbarer Spalt entsteht.
   Farbe = rgba(255,255,255,0.6) ≈ #999 (wie --fg / INDEX) */
.cursor.is-left {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='50' height='12' viewBox='0 0 50 12'%3E%3Cpath d='M10 6H49' stroke='%23999' stroke-width='0.8' fill='none'/%3E%3Cpath d='M11.5 6L2.5 3V9L11.5 6Z' fill='%23999'/%3E%3C/svg%3E");
}
.cursor.is-right {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='50' height='12' viewBox='0 0 50 12'%3E%3Cpath d='M1 6H40' stroke='%23999' stroke-width='0.8' fill='none'/%3E%3Cpath d='M38.5 6L47.5 3V9L38.5 6Z' fill='%23999'/%3E%3C/svg%3E");
}
@media (hover: none), (pointer: coarse) {
  .cursor { display: none; }
}

/* no fluid column-count breakpoints — desktop keeps fixed 210px + wrap */

/* Reset oben rechts auf der Startseite: erstes Bild, Namen wieder da,
   Rasterdichte zurueck auf Standard. */
.home-reset {
  position: fixed;
  top: var(--pad);
  right: var(--pad);
  z-index: 35;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  background: none;
  display: block;
  opacity: 0.55;
  mix-blend-mode: difference;
  transition: opacity 150ms ease;
}
.home-reset:hover { opacity: 1; }
.home-reset svg { display: block; width: 100%; height: 100%; }
.home-reset path { fill: none; stroke: #fff; stroke-width: 1.3; }
body.overlay-open .home-reset { display: none; }

/* ============================================================
   GROSSANSICHT (Klick auf eine Index-Kachel)
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.95);
  padding: 3.2rem 1.4rem 4rem;
  box-sizing: border-box;
}
.lightbox.is-on { display: flex; }
.lightbox-frame {
  margin: 0;
  max-width: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
}
.lightbox-frame img {
  max-width: min(92vw, 1600px);
  max-height: 78vh;
  width: auto;
  height: auto;
  object-fit: contain;
  background: #111;
}
.lightbox-frame figcaption {
  font-family: var(--font-sans);
  font-size: calc(var(--ui-text) * 1.12);
  font-weight: 400;
  letter-spacing: 0.02em;
  color: #ffffff;
  text-align: center;
  max-width: 40rem;
}
.lightbox-close {
  position: fixed;
  left: 50%;
  bottom: var(--pad);
  transform: translateX(-50%);
  z-index: 95;
  padding: 0;
  border: 0;
  background: none;
  font-family: var(--font-sans);
  font-size: 1.1rem;
  color: #ffffff;
}
.lightbox-close:hover { opacity: 0.6; }

@media (max-width: 700px) {
  .lightbox { padding: 2.4rem 0.8rem 3.4rem; }
  .lightbox-frame img { max-width: 96vw; max-height: 70vh; }
}

/* Die Grossansicht gibt es nur am Desktop — auf dem Handy oeffnet ein Tipp
   auf eine Kachel nichts, der Projektname steht dort ohnehin darunter. */
@media (max-width: 700px) {
  .lightbox { display: none !important; }
}
