/* ─── Photo Lightbox ─────────────────────────────── */

#fb-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.fb-lightbox-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
}

.fb-lightbox-close {
    position: absolute;
    top: 12px;
    right: 16px;
    z-index: 10;
    background: none;
    border: none;
    color: #fff;
    font-size: 36px;
    cursor: pointer;
    padding: 4px 12px;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.15s;
}

.fb-lightbox-close:hover {
    opacity: 1;
}

.fb-lightbox-prev,
.fb-lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255, 255, 255, 0.12);
    border: none;
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    transition: opacity 0.15s, background 0.15s;
}

.fb-lightbox-prev:hover,
.fb-lightbox-next:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.25);
}

.fb-lightbox-prev {
    left: 16px;
}

.fb-lightbox-next {
    right: 16px;
}

.fb-lightbox-content {
    position: relative;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fb-lightbox-media {
    border-radius: 4px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.fb-lightbox-counter {
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-weight: 500;
}

.fb-lightbox-caption {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    max-width: 60vw;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 768px) {
    .fb-lightbox-prev,
    .fb-lightbox-next {
        width: 36px;
        height: 36px;
    }

    .fb-lightbox-prev {
        left: 8px;
    }

    .fb-lightbox-next {
        right: 8px;
    }
}
