/* Container Layout */
.nq-portfolio-container {
    width: 100%;
    font-family: inherit;
}

/* Tabs Navigation - Smooth horizontal sliding for long tab bars on small phones */
.nq-tabs-nav {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
}
.nq-tabs-nav::-webkit-scrollbar {
    display: none; /* Hides ugly scrollbar on mobile layout */
}

/* Individual Tab Buttons */
.nq-tab-btn {
    background: transparent;
    border: 1px solid #000;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}
.nq-tab-btn.active {
    background: #000;
    color: #fff;
}

/* Visibility of Content Panes */
.nq-tab-pane {
    display: none;
}
.nq-tab-pane.active {
    display: block;
}

/* THE CAROUSEL ENGINE: Pure CSS Native Swipe */
.nq-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory; /* Forces slide to "snap" tightly into frame */
    -webkit-overflow-scrolling: touch;
    gap: 15px;
    border-radius: 4px;
}
.nq-carousel::-webkit-scrollbar {
    height: 6px;
}
.nq-carousel::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

/* Individual Slide Sheets */
.nq-carousel-slide {
    flex: 0 0 85%; /* Shows full image + peeking hint of the next slide on mobile */
    scroll-snap-align: start;
}
.nq-carousel-slide img {
    width: 100%;
    height: auto;
    display: block;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.nq-carousel-hint {
    text-align: center;
    font-size: 12px;
    color: #666;
    margin-top: 10px;
}

/* Desktop optimization to scale the sheets cleanly */
@media (min-width: 768px) {
    .nq-carousel-slide {
        flex: 0 0 60%; /* Scales nicer on desktop monitors */
    }
}

/* --- FULL SCREEN LIGHTBOX STYLES --- */

/* The Modal Container Box */
#nq-lightbox {
    border: none;
    background: transparent;
    max-width: 100vw;
    max-height: 100vh;
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    justify-content: center;
    align-items: center;
    display: none; /* Handled by native JS showModal() */
}

/* Standard behavior override when browser triggers the dialog open state */
#nq-lightbox[open] {
    display: flex;
}

/* Semi-transparent Dark Background Layer */
#nq-lightbox::backdrop {
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(4px); /* Subtle premium blur effect */
}

/* Image containment rules so it fits phone displays beautifully */
.nq-lightbox-content {
    max-width: 90%;
    max-height: 85%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nq-lightbox-content img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.5);
    border-radius: 4px;
}

/* Premium Floating Close Button Box */
.nq-lightbox-close {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    font-size: 32px;
    line-height: 1;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.2s ease;
    z-index: 10001;
}

.nq-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.4);
}

/* Make images look obviously clickable via cursor feedback */
.nq-carousel-slide img {
    cursor: pointer;
}
