.apap-lightbox-target {
    cursor: zoom-in;
}

.apap-image-lightbox {
    position: fixed;
    inset: 0;
    z-index: 100020;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, 0.86);
}

.apap-image-lightbox.is-open {
    display: flex;
}

.apap-image-lightbox__figure {
    margin: 0;
    max-width: min(96vw, 1800px);
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.apap-image-lightbox__img {
    max-width: 100%;
    max-height: calc(92vh - 44px);
    object-fit: contain;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.apap-image-lightbox__caption {
    margin: 0;
    color: #f5f5f5;
    text-align: center;
    font-size: 14px;
    line-height: 1.5;
}

.apap-image-lightbox__close {
    position: absolute;
    top: 14px;
    right: 16px;
    appearance: none;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 38px;
    line-height: 1;
    cursor: pointer;
}

body.apap-lightbox-open {
    overflow: hidden;
}
