/* project-gallery.css */
.gallery-filter-bar {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 22px;
    border: 1.5px solid #d1d5db;
    background: white;
    color: var(--navy);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border-radius: 50px;
    transition: all 0.25s ease;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--navy);
    color: white;
    border-color: var(--navy);
    box-shadow: 0 4px 12px rgba(13, 27, 42, 0.15);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 28px;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4/3;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
    background: #111827;
    cursor: pointer;
}

.gallery-item.hidden {
    display: none !important;
}

.gallery-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.gallery-item:hover img {
    transform: scale(1.06);
}

/* Video Play Overlay on Gallery Items */
.gallery-item .play-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(204, 0, 0, 0.9);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    z-index: 2;
    transition: transform 0.3s ease, background 0.3s ease;
}

.gallery-item:hover .play-badge {
    transform: translate(-50%, -50%) scale(1.15);
    background: var(--red);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(13, 27, 42, 0.92) 0%, rgba(13, 27, 42, 0.35) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 3;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay .cat {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--red);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.gallery-overlay .title {
    color: white;
    font-size: 1.15rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
}

/* ==========================================================================
   UNIFIED LIGHTBOX MODAL (CLEAN & MINIMALIST - NO HEADING)
   ========================================================================== */
.image-lightbox {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: opacity 0.3s cubic-bezier(0.2, 0, 0.2, 1);
}

.image-lightbox.active {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
}

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 18, 30, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    cursor: pointer;
}

.lightbox-container {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    pointer-events: none;
}

.lightbox-content-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 90vw;
    max-height: 90vh;
    pointer-events: auto;
}

.lightbox-media-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 88vw;
    max-height: 82vh;
}

.lightbox-main-img {
    max-width: 88vw;
    max-height: 82vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.65);
    user-select: none;
    -webkit-user-drag: none;
    transition: transform 0.25s cubic-bezier(0.2, 0, 0.2, 1), opacity 0.25s ease;
}

.lightbox-video-wrap {
    width: 85vw;
    max-width: 1080px;
    aspect-ratio: 16 / 9;
    max-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-video-wrap video,
.lightbox-video-wrap iframe {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.65);
    background: #000;
    border: none;
}

.lightbox-main-img.fade-out {
    opacity: 0;
    transform: scale(0.95);
}

.lightbox-main-img.fade-in {
    opacity: 1;
    transform: scale(1);
}

.lightbox-counter-badge {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.85rem;
    font-weight: 600;
    color: #cbd5e1;
    background: rgba(0, 0, 0, 0.5);
    padding: 4px 14px;
    border-radius: 20px;
    letter-spacing: 1px;
    pointer-events: none;
    z-index: 10;
}

.lightbox-nav-btn {
    position: absolute;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.2, 0, 0.2, 1);
    z-index: 10;
    pointer-events: auto;
}

.lightbox-nav-btn svg {
    width: 28px;
    height: 28px;
    stroke-width: 2.5;
}

.lightbox-nav-btn:hover {
    background: var(--red);
    border-color: var(--red);
    color: white;
    box-shadow: 0 8px 25px rgba(204, 0, 0, 0.45);
}

.lightbox-nav-btn.prev-btn {
    left: 32px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-nav-btn.prev-btn:hover {
    transform: translateY(-50%) scale(1.1);
}

.lightbox-nav-btn.next-btn {
    right: 32px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-nav-btn.next-btn:hover {
    transform: translateY(-50%) scale(1.1);
}

.lightbox-close-btn {
    position: absolute;
    top: 28px;
    right: 28px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    z-index: 10;
    pointer-events: auto;
}

.lightbox-close-btn svg {
    width: 24px;
    height: 24px;
}

.lightbox-close-btn:hover {
    background: var(--red);
    border-color: var(--red);
    transform: rotate(90deg) scale(1.1);
}

@media (max-width: 768px) {
    .lightbox-nav-btn {
        width: 44px;
        height: 44px;
    }
    .lightbox-nav-btn svg {
        width: 22px;
        height: 22px;
    }
    .lightbox-nav-btn.prev-btn {
        left: 12px;
    }
    .lightbox-nav-btn.next-btn {
        right: 12px;
    }
    .lightbox-close-btn {
        top: 16px;
        right: 16px;
        width: 40px;
        height: 40px;
    }
    .lightbox-main-img {
        max-width: 92vw;
        max-height: 70vh;
    }
    .lightbox-video-wrap {
        width: 92vw;
        max-height: 70vh;
    }
}
