
.gallery__credit {
  margin: 24px 0 0;
  color: #625b52;
  font-size: .8125rem;
}

.gallery__credit a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.gallery__credit a:hover {
  color: var(--blue);
}

/* Großansicht über das ganze Fenster auf Schwarz (8.11.2026, wie bei Varvara); Leiste oben, Knöpfe unten, das Foto füllt den Rest */
.lightbox {
  border: 0;
  margin: 0;
  padding: max(18px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  background: #0b0a09;
  color: var(--paper);
}

.lightbox[open] {
  display: flex;
  flex-direction: column;
}

.lightbox::backdrop {
  background: #0b0a09;
}

.lightbox.is-animated {
  opacity: 0;
  transition: opacity .85s ease;
}

.lightbox.is-animated::backdrop {
  opacity: 0;
  transition: opacity .85s ease;
}

.lightbox.is-animated.is-visible, .lightbox.is-animated.is-visible::backdrop {
  opacity: 1;
}

.lightbox.is-animated.is-closing, .lightbox.is-animated.is-closing::backdrop {
  transition-duration: .65s;
}

.lightbox__bar, .lightbox__controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.lightbox__bar p {
  margin: 0;
  font-size: .875rem;
}

.lightbox button {
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid #696053;
  background: transparent;
  cursor: pointer;
  font: 1rem 'DM Sans', Arial, sans-serif;
}

.lightbox__bar button:hover, .lightbox__controls button:hover {
  background: #3a3025;
}

.lightbox__figure {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  margin: 12px 0;
  overflow: hidden;
  touch-action: pan-y pinch-zoom;
  user-select: none;
}

/* Zwei Bilder in derselben Zelle (script.js: Nachbarfoto gleitet herein, Rollen tauschen); ein Bild, das noch lädt, bleibt unsichtbar */
.lightbox__stage {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template: minmax(0,1fr) / minmax(0,1fr);
  place-items: center;
}

.lightbox__image {
  grid-area: 1 / 1;
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  min-width: 0;
  min-height: 0;
  object-fit: contain;
  transition: opacity .25s ease;
}

.lightbox__image[hidden] {
  display: none;
}

.lightbox__image.is-loading {
  opacity: 0;
  transition: none;
}

.lightbox.is-dragging .lightbox__figure {
  cursor: grabbing;
}

.lightbox__image-nav {
  display: none;
}

.lightbox__figure figcaption {
  flex: none;
  text-align: center;
  margin-top: 14px;
  font: 1rem/1.4 'DM Sans', Arial, sans-serif;
}

.lightbox__controls > span {
  font-size: .8125rem;
  color: #cabba8;
}

@media (hover: hover) and (pointer: fine) {
  .lightbox .lightbox__image-nav {
    position: absolute;
    z-index: 2;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    width: 50%;
    min-height: 0;
    padding: 0 26px;
    border: 0;
    outline: 0;
    box-shadow: none;
    appearance: none;
    opacity: 0;
    transition: opacity .22s ease, background .22s ease;
  }

  .lightbox .lightbox__image-nav--previous {
    left: 0;
    justify-content: flex-start;
    background: linear-gradient(90deg,rgba(0,0,0,.28),transparent 72%);
  }

  .lightbox .lightbox__image-nav--next {
    right: 0;
    justify-content: flex-end;
    background: linear-gradient(270deg,rgba(0,0,0,.28),transparent 72%);
  }

  .lightbox__figure .lightbox__image-nav:hover, .lightbox__figure .lightbox__image-nav:focus-visible {
    opacity: 1;
  }

  .lightbox__image-nav span {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,.58);
    border-radius: 50%;
    background: rgba(17,16,14,.62);
    color: white;
    font: 22px/1 'DM Sans', Arial, sans-serif;
    backdrop-filter: blur(5px);
  }

  .lightbox__image-nav:focus-visible span {
    outline: 2px solid var(--lime);
    outline-offset: 4px;
  }

}

.lightbox {
  border-radius: 0;
  color: #faf7ef;
}

.lightbox__figure img {
  margin: auto;
}

.lightbox__bar {
  gap: 22px;
}


.gallery__item img {
  width: 100%;
}

.gallery__card--feature {
  grid-column: span 3;
}

.gallery__press a {
  color: var(--blue);
  font-weight: 700;
}

@media(max-width:720px) {
  .gallery__grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 18px 14px;
  }

  .gallery__item--portrait {
    grid-column: span 1;
  }

  .gallery__item--landscape, .gallery__card--feature {
    grid-column: 1 / -1;
  }

  .gallery__item--portrait:nth-child(3) {
    grid-column: 1 / -1;
    width: 72%;
    justify-self: center;
  }

  .gallery__item::after {
    opacity: 1;
  }

  .lightbox {
    padding: 14px;
  }

}

@media(prefers-reduced-motion:reduce) {
  .lightbox, .lightbox::backdrop, .lightbox__image, .lightbox__image-nav {
    transition: none !important;
  }

}

.gallery > .thumb { display: block; min-width: 0; aspect-ratio: 1; cursor: zoom-in; }
.gallery > .thumb img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 540px) {
  .lightbox__bar { flex-wrap: wrap; gap: 4px 12px; }
  .lightbox__bar a, .lightbox__bar button { font-size: .8rem; }
}
