/* =====================================================================
   Fotos zu Vorfällen (Drohnen-Menü und Fenster „Vorfall eintragen“)
   eigenständiges CSS, kein Build nötig
   ===================================================================== */

.incident-photos {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.incident-photos:empty { display: none; }

.incident-photo {
    position: relative;
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 0.5rem;
    overflow: hidden;
    background: #e2e8f0; /* slate-200, solange das Bild lädt */
    border: 1px solid #cbd5e1; /* slate-300 */
    flex: 0 0 auto;
}

.incident-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.incident-photo-open {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: none;
    cursor: zoom-in;
}

.incident-photo-open:focus-visible {
    outline: 2px solid #2563eb; /* blue-600 */
    outline-offset: 2px;
}

/* Foto nicht (mehr) vorhanden */
.incident-photo.is-missing::after {
    content: "\f03e"; /* fa-image */
    font-family: "Font Awesome 6 Free";
    font-weight: 400;
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    pointer-events: none;
}

.incident-photo-remove {
    position: absolute;
    top: 0.2rem;
    right: 0.2rem;
    width: 1.35rem;
    height: 1.35rem;
    border: 0;
    border-radius: 9999px;
    background: rgba(15, 23, 42, 0.75); /* slate-900 */
    color: #fff;
    font-size: 0.7rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.incident-photo-remove:hover { background: #dc2626; } /* red-600 */
