/* Großansicht für Fotos — ein eigener Dialog über der Projektansicht. */
.image-viewer {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: #0b100d;
  color: #edf1e9;
}
.image-viewer::backdrop {
  background: #050805f5;
}
.image-viewer-shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  gap: 12px;
  width: 100%;
  height: 100%;
  padding: clamp(14px, 2vw, 24px);
}
.image-viewer-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.image-viewer-count {
  padding-left: 4px;
  color: #c3cebe;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 1px;
}
.image-viewer-close,
.image-viewer-prev,
.image-viewer-next {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #56624f;
  border-radius: 50%;
  background: #202922;
  color: #edf1e9;
  font-size: 24px;
  line-height: 1;
}
.image-viewer-close:hover,
.image-viewer-prev:hover,
.image-viewer-next:hover {
  background: var(--lime);
  color: var(--on-lime);
}
.image-viewer :focus-visible {
  outline-color: var(--lime);
}
.image-viewer-stage {
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}
.image-viewer-image {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  object-fit: contain;
}
.image-viewer-note {
  color: #b4c1ae;
  font-size: 10px;
  line-height: 1.6;
  text-align: center;
}
.image-viewer-navigation {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 15px;
  width: min(280px, 100%);
  margin-inline: auto;
}
.image-viewer-position {
  color: #c3cebe;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  text-align: center;
}
.image-viewer-navigation[hidden],
.image-viewer-note[hidden] {
  display: none;
}
.image-viewer-error {
  padding: 24px;
  color: #c3cebe;
  font-size: 13px;
  text-align: center;
}
.image-viewer-error a {
  display: inline-block;
  margin-top: 14px;
  color: var(--lime);
  text-decoration: underline;
  text-underline-offset: 4px;
}
@media (max-width: 480px) {
  .image-viewer-shell {
    gap: 9px;
  }
  .image-viewer-count,
  .image-viewer-position {
    font-size: 10px;
  }
}
