/* Lightbox Navigation */
.nav-btn {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 15vw;
    /* Wider hit area but moved inwards */
    background: transparent;
    border: none;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    z-index: 10002;
    transition: background 0.3s ease, transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    /* Move bars closer to image, leaving a gap at the screen edges for "click to close" */
}

.nav-btn.prev {
    left: 8vw;
    /* Gap of 8vw on the far left */
}

.nav-btn.next {
    right: 8vw;
    /* Gap of 8vw on the far right */
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.04);
}

.nav-btn::after {
    /* The actual visual arrow button */
    content: attr(data-arrow);
    background: rgba(0, 0, 0, 0.4);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

/* We'll set the arrow char via CSS or JS. CSS content: '❮' is easier. */
.nav-btn.prev::after {
    content: '❮';
}

.nav-btn.next::after {
    content: '❯';
}

.nav-btn:hover::after {
    background: rgba(255, 107, 0, 0.2);
    color: var(--accent-color);
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .nav-btn {
        width: 25vw;
        font-size: 1.5rem;
    }

    .nav-btn.prev {
        left: 0;
    }

    .nav-btn.next {
        right: 0;
    }

    .nav-btn::after {
        width: 50px;
        height: 50px;
    }
}