/* News image lightbox */
.news-lightbox-trigger {
    cursor: zoom-in;
    transition: opacity 0.2s ease, filter 0.2s ease;
}

.news-lightbox-trigger:hover {
    opacity: 0.92;
    filter: brightness(1.03);
}

.news-featured-image {
    cursor: zoom-in;
}

.news-image-lightbox {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
    background: rgba(5, 22, 40, 0.94);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

.news-image-lightbox.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

body.news-lightbox-open {
    overflow: hidden;
}

.news-image-lightbox__inner {
    position: relative;
    width: min(1200px, 100%);
    max-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.news-image-lightbox__toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 12px;
    flex-shrink: 0;
}

.news-image-lightbox__counter {
    margin-right: auto;
    color: #e2e8f0;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.news-image-lightbox__nav,
.news-image-lightbox__close {
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s ease, background 0.15s ease;
}

.news-image-lightbox__nav {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 1.75rem;
    line-height: 1;
    font-weight: 700;
}

.news-image-lightbox__nav:hover {
    background: rgba(212, 175, 55, 0.35);
    transform: scale(1.06);
}

.news-image-lightbox__close {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--cyber-gold, #d4af37);
    color: #051628;
    font-size: 1.75rem;
    line-height: 1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.news-image-lightbox__close:hover {
    transform: scale(1.08);
    background: #e8c547;
}

.news-image-lightbox__stage {
    flex: 1;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-image-lightbox__img {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 140px);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5);
    transition: opacity 0.2s ease;
}

.news-image-lightbox__img.is-loading {
    opacity: 0.35;
}

.news-image-lightbox__caption {
    margin: 12px 0 0;
    max-width: 100%;
    color: #e2e8f0;
    font-size: 0.95rem;
    text-align: center;
    line-height: 1.45;
    flex-shrink: 0;
}

.news-image-lightbox__caption[hidden] {
    display: none;
}

@media (max-width: 768px) {
    .news-image-lightbox {
        padding: 10px;
    }

    .news-image-lightbox__img {
        max-height: calc(100vh - 120px);
    }

    .news-image-lightbox__nav,
    .news-image-lightbox__close {
        width: 40px;
        height: 40px;
    }
}
