/* Großbild: maximal 90 % des sichtbaren Fensters, proportional und unbeschnitten. */
.lightbox {
  position: fixed;
  inset: 0;
  margin: auto;
  box-sizing: border-box;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  overflow: hidden;
}
.lightbox::backdrop { background: rgba(0, 3, 15, .94); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox-frame {
  position: relative;
  display: grid;
  place-items: center;
  width: 90vw;
  height: 90vh;
  height: 90dvh;
}
.lightbox-image {
  display: block;
  width: auto;
  height: auto;
  max-width: 90vw;
  max-height: 90vh;
  max-height: 90dvh;
  object-fit: contain;
  box-shadow: 0 0 45px rgba(0,0,0,.5);
}
.lightbox-image[hidden] { display: none; }
.lightbox-close {
  position: absolute;
  top: max(10px, env(safe-area-inset-top));
  right: max(10px, env(safe-area-inset-right));
  z-index: 1;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid #aaffff;
  border-radius: 50%;
  background: #000c2f;
  color: #aaffff;
  font: 32px/1 Arial, sans-serif;
  cursor: pointer;
}
.lightbox-close:hover { background: #aaffff; color: #000c2f; }
.lightbox-close:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.lightbox-status { text-align: center; line-height: 1.6; padding: 20px; }
.lightbox-status:empty { display: none; }
