/* ============================================================
   Onesown Blazor Components – ImageLightbox
   ============================================================ */

.oo-lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: var(--oo-z-modal);
    background: color-mix(in srgb, var(--oo-gray-950) 92%, transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: oo-lightbox-einblenden var(--oo-transition) ease-out;
    outline: none;
}

@keyframes oo-lightbox-einblenden {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.oo-lightbox-bild {
    max-width: 92vw;
    max-height: 92vh;
    width: auto;
    height: auto;
    object-fit: contain;
    user-select: none;
}

.oo-lightbox-schliessen {
    position: fixed;
    top: var(--oo-space-3);
    right: var(--oo-space-3);
    background: none;
    border: none;
    color: color-mix(in srgb, var(--oo-gray-50) 70%, transparent);
    cursor: pointer;
    user-select: none;
    transition: color var(--oo-transition);
    z-index: calc(var(--oo-z-modal) + 1);
    padding: var(--oo-space-1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.oo-lightbox-schliessen:hover {
    color: var(--oo-gray-50);
}

.oo-lightbox-pfeil {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: color-mix(in srgb, var(--oo-gray-50) 70%, transparent);
    line-height: 1;
    padding: var(--oo-space-2) var(--oo-space-3);
    cursor: pointer;
    user-select: none;
    transition: color var(--oo-transition);
    z-index: calc(var(--oo-z-modal) + 1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}


.oo-lightbox-pfeil:hover {
    color: var(--oo-gray-50);
}

.oo-lightbox-pfeil-links {
    left: var(--oo-space-2);
}

.oo-lightbox-pfeil-rechts {
    right: var(--oo-space-2);
}

.oo-lightbox-zaehler {
    position: fixed;
    bottom: var(--oo-space-6);
    left: 50%;
    transform: translateX(-50%);
    color: color-mix(in srgb, var(--oo-gray-50) 60%, transparent);
    font-size: var(--oo-font-size-sm);
    user-select: none;
    z-index: calc(var(--oo-z-modal) + 1);
}
