/* ── Lightbox ── */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(8px);
}

.lightbox__close {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 3;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s, transform 0.2s;
    padding: 8px;
}

.lightbox__close:hover {
    opacity: 1;
    transform: scale(1.1);
}

.lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.lightbox__nav:hover {
    background: rgba(255, 215, 0, 0.15);
    border-color: rgba(255, 215, 0, 0.3);
}

.lightbox__nav--prev {
    left: 24px;
}

.lightbox__nav--next {
    right: 24px;
}

.lightbox__content {
    position: relative;
    z-index: 2;
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox__image {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    animation: lbFadeIn 0.3s ease;
}

.lightbox__video {
    width: 80vw;
    max-width: 1100px;
    aspect-ratio: 16/9;
    border-radius: 12px;
    overflow: hidden;
    animation: lbFadeIn 0.3s ease;
}

.lightbox__video iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.lightbox__counter {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    font-family: var(--font-display, sans-serif);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 2px;
}

@keyframes lbFadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* Video play overlay on thumbnails */
.cs-videos__item {
    position: relative;
}

.cs-videos__item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    border-radius: 12px;
}

.cs-videos__item:hover::after {
    opacity: 1;
}

.cs-videos__item::before {
    content: '▶';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    font-size: 2rem;
    color: #fff;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.cs-videos__item:hover::before {
    opacity: 1;
}

/* Gallery hover zoom icon */
.cs-gallery__item {
    position: relative;
}

.cs-gallery__item::after {
    content: '⛶';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #fff;
    background: rgba(0,0,0,0.4);
    opacity: 0;
    transition: opacity 0.3s;
    border-radius: 8px;
}

.cs-gallery__item:hover::after {
    opacity: 1;
}

/* Mobile */
@media (max-width: 768px) {
    .lightbox__nav {
        width: 44px;
        height: 44px;
    }
    .lightbox__nav--prev { left: 10px; }
    .lightbox__nav--next { right: 10px; }
    .lightbox__video {
        width: 95vw;
    }
}
