/* ==========================================================================
   Bildansicht fuer die Desktop-Ansicht von KIEZ to go (nur Einzelbild-Seiten)
   Das ganze Bild steht zentriert auf schwarzem Grund und wird nie beschnitten.
   Die mobile Ansicht steht in mobil.css und bleibt davon unberuehrt.
   ========================================================================== */

@media (min-width: 900px) and (min-height: 601px) {

  body.seite-bild {
    overflow: hidden;
    background: #000;
  }

  .seite-bild #flinks { display: none; }

  /* --- Bild ------------------------------------------------------------ */
  .seite-bild #background-img {
    position: fixed;
    top: 56px;
    right: 16px;
    bottom: 16px;
    left: 16px;
    width: calc(100% - 32px);
    height: calc(100% - 72px);
    /* Die Bilder sind 1500 px breit: hoechstens um ein Drittel vergroessern */
    max-width: 2000px;
    max-height: 1340px;
    margin: auto;
    object-fit: contain;
  }

  /* --- Obere Leiste: links Informationen, rechts der Zaehler ------------- */
  .seite-bild #diashowlinks {
    position: fixed;
    top: 0;
    right: auto;
    left: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    height: 56px;
    padding: 0 24px;
  }

  .seite-bild #diashowlinks a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 18px;
    line-height: 1;
    text-decoration: none;
  }

  .seite-bild #diashowlinks a:hover { text-decoration: underline; }
  .seite-bild #diashowlinks img { display: block; width: auto; height: 20px; }

  .seite-bild #diashowrechts {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    pointer-events: none;
  }

  .seite-bild #diashowrechts font {
    position: absolute;
    top: 0;
    right: 24px;
    color: #fff;
    font-size: 18px;
    line-height: 56px;
  }

  /* --- Klickflaechen: linkes und rechtes Viertel des Bildbereichs -------- */
  .seite-bild #diashowrechts a {
    position: absolute;
    top: 56px;
    bottom: 0;
    display: flex;
    align-items: center;
    width: 25%;
    padding: 0 24px;
    box-sizing: border-box;
    pointer-events: auto;
    outline: none;
  }

  .seite-bild #diashowrechts a:first-of-type { left: 0; justify-content: flex-start; }
  .seite-bild #diashowrechts a:last-of-type { right: 0; justify-content: flex-end; }

  .seite-bild #diashowrechts img {
    display: block;
    box-sizing: content-box;
    width: auto;
    height: 26px;
    padding: 15px;
    border-radius: 50%;
    background: rgba(0, 0, 0, .45);
    opacity: .7;
    transition: opacity .15s, background-color .15s;
  }

  .seite-bild #diashowrechts a:hover img,
  .seite-bild #diashowrechts a:focus-visible img {
    background: rgba(0, 0, 0, .75);
    opacity: 1;
  }

  .seite-bild #diashowrechts a:focus-visible img { outline: 2px solid #fff; }
}

/* Weiche Ueberblendung zwischen den Bildern (wo der Browser es kann) */
@media (min-width: 900px) and (min-height: 601px) and (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-group(root) { animation-duration: .25s; }
}
