.agb-lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: rgba(0, 0, 0, 0.85);
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
}

@media (max-width: 768px) {
    .agb-lightbox-overlay {
        height: 100svh;
        height: 100dvh;
    }
}

.agb-lightbox-overlay.agb-active {
    opacity: 1;
}

.agb-lightbox-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    box-sizing: border-box;
}

.agb-lightbox-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    transition: opacity 0.15s ease-in-out;
    opacity: 1;
}

.agb-lightbox-close {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: transparent;
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000000;
    padding: 0;
    transition: opacity 0.2s ease;
}

.agb-lightbox-close:hover {
    opacity: 0.7;
}

.agb-lightbox-close:focus-visible,
.agb-lightbox-prev:focus-visible,
.agb-lightbox-next:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

.agb-lightbox-prev,
.agb-lightbox-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #000;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000000;
    padding: 0;
    transition: opacity 0.3s ease;
}

.agb-lightbox-prev { left: 20px; }
.agb-lightbox-next { right: 20px; }

.agb-lightbox-info {
    position: fixed;
    bottom: 20px;
    left: 20px;
    max-width: 300px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    padding: 10px 14px;
    border-radius: 6px;
    z-index: 1000000;
    pointer-events: none;
}

.agb-lightbox-title {
    margin: 0 0 4px;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.4;
}

.agb-lightbox-description {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    opacity: 0.85;
}

.agb-lightbox-title:empty,
.agb-lightbox-description:empty {
    display: none;
}

@media (max-width: 768px) {
    .agb-lightbox-close {
        top: 10px;
        right: 10px;
        width: 45px;
        height: 45px;
    }

    .agb-lightbox-container {
        flex-direction: column;
        padding: 60px 10px 80px 10px;
    }

    .agb-lightbox-prev,
    .agb-lightbox-next {
        position: fixed;
        bottom: 20px;
        top: auto;
        transform: none;
    }

    .agb-lightbox-prev { left: 20px; }
    .agb-lightbox-next { right: 20px; }

    .agb-lightbox-prev:active,
    .agb-lightbox-next:active {
        background: rgba(255, 255, 255, 0.9);
        transform: scale(0.95);
    }

    .agb-lightbox-info {
        left: 80px;
        right: 80px;
        max-width: none;
        text-align: center;
        display: flex;
        flex-direction: column;
        justify-content: center;
        min-height: 50px;
        padding: 6px 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .agb-lightbox-overlay,
    .agb-lightbox-image {
        transition: none !important;
    }
}
