.gallery-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(15,42,67,.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

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

.lightbox-link {
    display: block;
    cursor: zoom-in;
}

.lightbox-link img {
    display: block;
    width: 100%;
}

.gallery-lightbox-content {
    max-width: 90vw;
    max-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: .5rem;
}

.gallery-lightbox-close {
    position: absolute;
    top: 16px;
    right: 24px;
    background: none;
    border: none;
    color: rgba(255,255,255,.8);
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
    z-index: 10000;
}

.gallery-lightbox-close:hover {
    color: var(--white);
}

.gallery-lightbox-prev,
.gallery-lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, .15);
    border: none;
    color: rgba(255,255,255,.9);
    font-size: 2.5rem;
    padding: 8px 16px;
    cursor: pointer;
    border-radius: .5rem;
    z-index: 10000;
    transition: background .15s;
}

.gallery-lightbox-prev:hover,
.gallery-lightbox-next:hover {
    background: rgba(255, 255, 255, .3);
}

.gallery-lightbox-prev {
    left: 16px;
}

.gallery-lightbox-next {
    right: 16px;
}

.gallery-lightbox-counter {
    color: rgba(255,255,255,.7);
    font-size: .85rem;
    margin-top: 12px;
}
