/* === Lightbox за decals.php === */

#decal-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 9999;
    padding: 1rem;
}

.decal-lightbox-hidden {
    display: none !important;
}

#decal-lightbox-image {
    max-width: 90vw;
    max-height: 80vh;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.3);
    border-radius: 6px;
}

#decal-lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
    z-index: 10000;
}

#decal-lightbox-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transform: translateY(-50%);
    padding: 0 1rem;
    pointer-events: none; /* за да не блокира клика извън стрелките */
    z-index: 10000;
}

#decal-lightbox-prev,
#decal-lightbox-next {
    font-size: 2.5rem;
    color: #fff;
    background-color: rgba(0, 0, 0, 0.3);
    padding: 0.5rem;
    border-radius: 50%;
    cursor: pointer;
    pointer-events: auto;
    user-select: none;
    transition: background-color 0.2s ease;
}

#decal-lightbox-prev:hover,
#decal-lightbox-next:hover {
    background-color: rgba(0, 0, 0, 0.6);
}


/* Респонсив корекции */
@media (max-width: 768px) {
    #decal-lightbox-image {
        max-width: 95vw;
        max-height: 70vh;
    }

    #decal-lightbox-close {
        top: 10px;
        right: 15px;
        font-size: 1.5rem;
    }

    #decal-lightbox-nav {
        font-size: 1.5rem;
        gap: 2rem;
    }
}



#decal-lightbox-meta {
    width: 100%;
    max-width: 90vw;
    margin-top: 1rem;
    text-align: center;
    pointer-events: none;
    font-family: sans-serif;
}

.decal-meta-category {
    font-size: 1.2rem;
    font-weight: bold;
    color: #00cad7;
    margin-bottom: 0.3rem;
}

.decal-meta-description {
    font-size: 1rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

.decal-meta-details {
    font-size: 0.95rem;
    color: #fff;
    opacity: 0.85;
}

/* Черен фон зад текстовете */
#decal-lightbox-meta div {
    background-color: rgba(0, 0, 0, 0.6);
    padding: 0.4rem 1rem;
    margin: 0.2rem auto;
    border-radius: 6px;
    display: inline-block;
}


.decal-lightbox-inner {
    position: relative;
    z-index: 1;
}
