/* ==========================================================
   MLU · Lightbox und Foto-Kacheln (für alle drei Entwürfe gleich)
   Farben kommen aus den Variablen des jeweiligen Entwurfs.
   ========================================================== */
.photo-btn {
  all: unset;
  display: block;
  width: 100%;
  height: 100%;
  cursor: zoom-in;
}
.photo-btn:focus-visible { outline: 3px solid var(--gold, #D6B15C); outline-offset: -3px; }
.photo-btn img { width: 100%; height: 100%; object-fit: cover; display: block; }

body.lb-open { overflow: hidden; }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(8, 18, 12, .94);
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 56px;
  align-items: center;
  padding: max(16px, env(safe-area-inset-top)) 8px max(16px, env(safe-area-inset-bottom));
}
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; display: grid; justify-items: center; gap: 10px; min-width: 0; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 110px); max-height: calc(100dvh - 110px); object-fit: contain; border-radius: 4px; }
.lightbox figcaption { color: #E9E6D8; font: 500 .9375rem/1.4 system-ui, sans-serif; text-align: center; max-width: 60ch; }
.lightbox button {
  appearance: none;
  border: 0;
  background: rgba(255, 255, 255, .1);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  justify-self: center;
}
.lightbox button:hover { background: rgba(255, 255, 255, .2); }
.lightbox button:focus-visible { outline: 2px solid var(--gold, #D6B15C); outline-offset: 2px; }
.lb-close { position: absolute; top: max(14px, env(safe-area-inset-top)); right: 14px; }
@media (max-width: 600px) {
  .lightbox { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr auto; padding-top: 64px; }
  .lightbox figure { grid-column: 1 / -1; grid-row: 1; }
  .lb-prev { grid-column: 1; grid-row: 2; }
  .lb-next { grid-column: 2; grid-row: 2; }
}
