.lightbox-backdrop {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.92);
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox-backdrop.is-visible {
    opacity: 1;
}

.lightbox,
.lightbox.lightbox--service {
    position: relative;
    max-width: min(90vw, 1200px);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    padding: clamp(1rem, 2vw, 2rem);
    background: rgba(18, 24, 30, 0.9);
    border-radius: 16px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(14px);
}

.lightbox__content {
    display: flex;
    gap: clamp(1.5rem, 3vw, 3rem);
    align-items: center;
    justify-content: center;
}

.lightbox__image {
    max-width: min(70vw, 860px);
    max-height: 80vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.lightbox__info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 320px;
    color: rgba(255, 255, 255, 0.9);
}

.lightbox__info h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #ffffff;
}

.lightbox__info p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
}

.lightbox__close,
.lightbox__nav {
    position: absolute;
    top: clamp(1.5rem, 3vh, 2rem);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(12, 18, 24, 0.6);
    color: #ffffff;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.lightbox__close {
    right: clamp(1.2rem, 2vw, 2rem);
}

.lightbox__nav--prev {
    left: clamp(1rem, 5vw, 3rem);
    top: 50%;
    transform: translate(-50%, -50%);
}

.lightbox__nav--next {
    right: clamp(1rem, 5vw, 3rem);
    top: 50%;
    transform: translate(50%, -50%);
}

.lightbox__close:hover,
.lightbox__nav:hover {
    background: rgba(192, 57, 43, 0.85);
    border-color: rgba(231, 76, 60, 0.6);
    transform: translate(-50%, -50%) scale(1.05);
}

.lightbox__close:hover {
    transform: scale(1.05);
}

@media (max-width: 1100px) {
    .lightbox,
    .lightbox.lightbox--service {
        max-width: 95vw;
        padding: 1.25rem;
    }

    .lightbox__content {
        flex-direction: column;
    }

    .lightbox__image {
        max-width: 100%;
        max-height: 65vh;
    }

    .lightbox__info {
        max-width: 520px;
        text-align: center;
    }

    .lightbox__nav--prev,
    .lightbox__nav--next {
        top: auto;
        bottom: clamp(1rem, 4vh, 2rem);
        transform: translateY(0);
    }

    .lightbox__nav--prev {
        left: clamp(1rem, 5vw, 3rem);
    }

    .lightbox__nav--next {
        right: clamp(1rem, 5vw, 3rem);
    }
}

@media (max-width: 640px) {
    .lightbox,
    .lightbox.lightbox--service {
        padding: 1rem;
        border-radius: 12px;
    }

    .lightbox__content {
        gap: 1.2rem;
    }

    .lightbox__image {
        max-height: 60vh;
    }

    .lightbox__info {
        display: none;
    }

    .lightbox__close,
    .lightbox__nav {
        width: 40px;
        height: 40px;
    }
}
