.kb-lightbox[hidden] {
    display: none;
}

.kb-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
}

.kb-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(9, 12, 18, 0.82);
    backdrop-filter: blur(4px);
}

.kb-lightbox__dialog {
    position: relative;
    z-index: 1;
    width: min(94vw, 1280px);
    max-height: 92vh;
    margin: 4vh auto;
    padding: 16px;
    border-radius: 24px;
    background: rgba(20, 24, 31, 0.96);
    color: #f5f7fb;
    display: grid;
    gap: 12px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.kb-lightbox__close {
    justify-self: end;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    cursor: pointer;
    font-size: 28px;
    line-height: 1;
}

.kb-lightbox__image {
    display: block;
    max-width: 100%;
    max-height: 72vh;
    width: auto;
    height: auto;
    margin: 0 auto;
    object-fit: contain;
    border-radius: 16px;
}

.kb-lightbox__caption {
    margin: 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.lightbox-trigger {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
}

.lightbox-trigger img {
    display: block;
    width: 100%;
    height: auto;
}
