/* Lightbox & Gallery System */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 5, 5, 0.98);
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: center;
    cursor: default;
    opacity: 0;
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content-container {
    position: relative;
    width: 90%;
    height: 80%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transform: scale(0.95);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

.lightbox.active .lightbox-image {
    transform: scale(1);
}

/* Gallery Controls */
.gallery-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 40px;
    transform: translateY(-50%);
    pointer-events: none;
}

.gallery-btn {
    background: none;
    border: none;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    font-family: var(--font-display);
    pointer-events: auto;
    opacity: 0.5;
    transition: var(--transition-premium);
}

.gallery-btn:hover {
    opacity: 1;
    transform: scale(1.1);
}

.lightbox-close {
    position: absolute;
    top: 40px;
    right: 40px;
    font-size: 3rem;
    color: white;
    cursor: pointer;
    line-height: 1;
}

.gallery-counter {
    position: absolute;
    bottom: 40px;
    font-family: var(--font-sans);
    letter-spacing: 0.2em;
    font-size: 0.8rem;
    opacity: 0.5;
}