/* === Lightbox Overlay === */
.nexus-lightbox-overlay {
    background-color: rgba(0, 0, 0, var(--overlay-opacity, 0.9));
    display: none;
    position: fixed;
    bottom: -100vh;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    opacity: 0;
    justify-content: center;
    align-items: center;
    animation-fill-mode: forwards;
    transition: background-color 0.3s ease;
}

.nexus-lightbox-overlay.active {
    display: flex;
    animation: slideInOverlay var(--nexus-animation-duration, 600ms) ease forwards;
    opacity: 1;
}

@keyframes slideInOverlay {
    from {
        bottom: -100vh;
        opacity: 0;
    }
    to {
        bottom: 0;
        opacity: 1;
    }
}

/* === Lightbox Content === */
.nexus-lightbox-content {
    background: #fff;
    padding: 30px;
    max-width: 800px;
    width: 90%;
    border-radius: 10px;
    position: relative;
    animation-duration: var(--nexus-animation-duration);
    animation-fill-mode: both;
}

/* === Directional Slide Animations === */
.nexus-lightbox-slide-top .nexus-lightbox-content {
    animation-name: slideTop;
}

.nexus-lightbox-slide-bottom .nexus-lightbox-content {
    animation-name: slideBottom;
}

.nexus-lightbox-slide-left .nexus-lightbox-content {
    animation-name: slideLeft;
}

.nexus-lightbox-slide-right .nexus-lightbox-content {
    animation-name: slideRight;
}

@keyframes slideTop {
    from { transform: translateY(-100px); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}

@keyframes slideBottom {
    from { transform: translateY(100px); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}

@keyframes slideLeft {
    from { transform: translateX(-100px); opacity: 0; }
    to   { transform: translateX(0); opacity: 1; }
}

@keyframes slideRight {
    from { transform: translateX(100px); opacity: 0; }
    to   { transform: translateX(0); opacity: 1; }
}

/* === Close Button === */
.nexus-lightbox-close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    color: #000;
    cursor: pointer;
}

/* === Nav Content === */
.nexus-nav-module {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.navcell, .navbox {
    padding: 20px;
    background: #eee;
    border: 1px solid #ccc;
    border-radius: 8px;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
}

.nexus-btn-read {
    background-color: #6A1B9A;
    color: #FFFFFF;
}

.nexus-btn-watch {
    background-color: #F8BB32;
    color: #6A1B9A;
}
