/* Lightbox Overlay and Modal Styles for Aligent Spring */
.custom-lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 15, 0.88);
    backdrop-filter: blur(4px);
    z-index: 999999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease-in-out;
    padding: 20px;
    box-sizing: border-box;
}

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

.custom-lightbox-container {
    position: relative;
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.custom-lightbox-img {
    max-width: 90vw;
    max-height: 75vh;
    border-radius: 4px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7);
    object-fit: contain;
    background: #fff;
    padding: 6px;
    transition: transform 0.2s ease;
}

.custom-lightbox-caption {
    margin-top: 12px;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    text-align: center;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.custom-lightbox-caption .group-title {
    font-size: 16px;
    font-weight: 600;
    color: #f77c1e;
}

.custom-lightbox-caption .counter {
    font-size: 13px;
    color: #bbb;
}

.custom-lightbox-close {
    position: absolute;
    top: -45px;
    right: 0;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s;
    padding: 5px 10px;
}

.custom-lightbox-close:hover {
    color: #f77c1e;
}

.custom-lightbox-btn {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 28px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
    z-index: 1000000;
}

.custom-lightbox-btn:hover {
    background: #f77c1e;
    border-color: #f77c1e;
    color: #fff;
}

.custom-lightbox-prev {
    left: 20px;
}

.custom-lightbox-next {
    right: 20px;
}

@media (max-width: 768px) {
    .custom-lightbox-btn {
        width: 38px;
        height: 38px;
        font-size: 20px;
    }
    .custom-lightbox-prev {
        left: 10px;
    }
    .custom-lightbox-next {
        right: 10px;
    }
    .custom-lightbox-close {
        top: -40px;
        right: 5px;
    }
}
