/*
 * Foto in voller Größe.
 *
 * Struktur, keine Gestaltung: Farben und Rundungen gehören in app.css.
 * Hier steht nur, was das Bild groß macht und mittig hält – deshalb liegt
 * diese Datei vor app.css, damit dort jederzeit überschrieben werden kann.
 */

dialog.bild-gross {
    max-width: 100vw;
    max-height: 100vh;
    width: 100vw;
    height: 100vh;
    padding: 0;
    border: 0;
    background: transparent;
    overflow: hidden;
}

dialog.bild-gross::backdrop {
    background: rgba(0, 0, 0, .88);
}

/* Bild mittig, so groß wie es passt, nie über den Rand hinaus. */
dialog.bild-gross img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 96vw;
    max-height: 92vh;
    object-fit: contain;
}

dialog.bild-gross .bild-gross-text {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    padding: .7rem 1rem;
    text-align: center;
    color: #fff;
    background: rgba(0, 0, 0, .55);
}

/* Groß genug für einen Daumen, weit genug weg vom Bildrand. */
dialog.bild-gross .bild-gross-zu {
    position: absolute;
    top: .6rem;
    right: .6rem;
    z-index: 2;
    width: 2.6rem;
    height: 2.6rem;
    font-size: 1.6rem;
    line-height: 1;
    color: #fff;
    background: rgba(0, 0, 0, .5);
    border: 1px solid rgba(255, 255, 255, .5);
    border-radius: 50%;
    cursor: pointer;
}

/* Ein anklickbares Vorschaubild soll auch danach aussehen. */
.kontrolle-foto img[data-gross] {
    cursor: zoom-in;
}
