/* ==========================================================================
   Lightbox - Finn Borch Gallery
   ========================================================================== */

.fb-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    cursor: zoom-out;
}

.fb-lightbox.is-active {
    opacity: 1;
    visibility: visible;
}

.fb-lightbox__image {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    transform: scale(0.95);
    transition: transform 0.4s ease;
}

.fb-lightbox.is-active .fb-lightbox__image {
    transform: scale(1);
}

.fb-lightbox__close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fb-lightbox__close:hover {
    border-color: #fff;
    color: #fff;
}

.fb-lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fb-lightbox__nav:hover {
    border-color: #fff;
    color: #fff;
}

.fb-lightbox__nav--prev {
    left: 2rem;
}

.fb-lightbox__nav--next {
    right: 2rem;
}

.fb-lightbox__counter {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
    letter-spacing: 0.15em;
}
