@charset "utf-8";

/* =========================================================
   NADJASART – AUSSTELLUNGEN
   Ergänzung zu nadjasart.css
   Bereinigte Arbeitsversion – November 2026
   ========================================================= */

/* 1. Ausstellungsübersicht */

section.exhibitions {
  padding: 36px 0 48px;
}

.exhibition {
  margin-bottom: 25px;
  padding: 27px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--paper);
  box-shadow: 0 9px 27px rgba(23,52,59,.14);
  border-top: 4px solid var(--coral, #e78a7a);
}

.exhibition h2 {
  margin: 6px 0 12px;
  font-size: clamp(22px, 2.5vw, 28px);
}

.exhibition .date {
  color: var(--teal);
  font-weight: 750;
}

.exhibition p {
  margin: 8px 0;
}

.exhibition.featured {
  border-top-width: 6px;
}

/* 2. Ausstellungsbilder */

.exhibition .photos {
  display: grid;
  grid-template-columns:
    repeat(auto-fit, minmax(180px, 1fr));
  gap: 13px;
  margin-top: 20px;
}

.exhibition figure {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 6px 19px rgba(23,52,59,.19);
}

.exhibition figure img {
  display: block;
  width: 100%;
  height: 210px;
  border-radius: 10px;
  background: #f5f1e8;
  object-fit: cover;
}

.exhibition figure img:hover {
  opacity: .92;
}

.exhibition figure a {
  display: block;
}

.exhibition .more {
  color: var(--teal);
  font-weight: 700;
}

/* 3. Einzelbilder und Plakate */

.exhibition .photos.single {
  grid-template-columns: minmax(0, 440px);
}

.exhibition .photos.postergrid {
  grid-template-columns:
    repeat(auto-fit, minmax(230px, 1fr));
}

.exhibition figure.poster img {
  height: auto;
  max-height: 440px;
  object-fit: contain;
  object-position: left center;
}

/* 4. Jubiläumseinladungen */

.exhibition .photos.anniversary-photo {
  grid-template-columns: minmax(0, 650px);
}

.exhibition .photos.anniversary-photo
figure.poster img {
  width: 100%;
  height: auto;
  max-height: none;
  border-radius: 10px;
  object-fit: contain;
  object-position: center;
}

/* 5. Mehrbild-Galerien – einheitliche Vorschaubilder */
.exhibition .photos.gallery-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.gallery-hint {
  color: #526a69;
  font-size: 14px;
}

/* 6. Lightbox – Ausstellungsbilder */

.photos a[data-lightbox] {
  cursor: zoom-in;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 70px 65px 72px;
  background: rgba(12, 30, 34, .96);
  color: white;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100vh - 170px);
  object-fit: contain;
}

/* 7. Lightbox-Bedienelemente */

.lightbox button {
  position: absolute;
  padding: 10px 18px;
  border: 1px solid #ffffff77;
  border-radius: 100px;
  background: var(--ink);
  color: white;
  font: 700 15px system-ui, sans-serif;
  cursor: pointer;
}

.lightbox button:hover {
  background: var(--teal);
}

.lightbox .lb-back {
  top: 18px;
  left: 22px;
}

.lightbox .lb-prev,
.lightbox .lb-next {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  box-sizing: border-box;
}

.lightbox .lb-prev svg,
.lightbox .lb-next svg {
  display: block;
  width: 24px;
  height: 24px;
  flex: none;
}

.lightbox .lb-prev {
  top: 50%;
  left: 12px;
}

.lightbox .lb-next {
  top: 50%;
  right: 12px;
}

.lightbox .lb-caption {
  position: absolute;
  bottom: 20px;
  padding: 0 20px;
  font-size: 14px;
  text-align: center;
}

body.lightbox-open {
  overflow: hidden;
}

/* 8. Smartphone */

@media (max-width: 720px) {

  section.exhibitions {
    padding: 30px 0 42px;
  }

  /* Jubiläumsbilder */

  .exhibition .photos.anniversary-photo {
    grid-template-columns: minmax(0, 1fr);
  }

  /* Lightbox */

  .lightbox {
    padding: 65px 12px 80px;
  }

  .lightbox .lb-prev,
  .lightbox .lb-next {
    top: auto;
    bottom: 60px;
  }

  .lightbox .lb-caption {
    bottom: 15px;
  }
}

/* 9. Kleine Smartphones */

@media (max-width: 600px) {

  .exhibition {
    padding: 18px;
  }

  .exhibition .photos {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .exhibition figure img {
    height: 140px;
  }

  .exhibition .photos.single {
    grid-template-columns: 1fr;
  }

  .exhibition .photos.gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .exhibition figure.poster img {
    max-height: 420px;
  }
}

/* Erwin Oberhänsli: Bild füllt die Vorschau ohne freie Ränder */
.exhibition .photos.oberhaensli-photo figure.poster img {
  display: block;
  width: 100%;
  height: 320px;
  max-height: none;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 600px) {
  .exhibition .photos.oberhaensli-photo figure.poster img {
    height: 240px;
  }
}
