/* ═══════════════════════════════════════════
   K-SEVA IMAGE GALLERY
   --blue:  #29ABE2  (globe / -Seva text)
   --navy:  #1B2A4A  (K letter)
   --green: #3AAA35  (top hand)
   --gold:  #F7A800  (bottom hand)
═══════════════════════════════════════════ */
:root {
    --blue: #29ABE2;
    --blue2: #1a8fc0;
    --navy: #1B2A4A;
    --navy2: #0f1a2e;
    --green: #3AAA35;
    --green2: #2d8829;
    --gold: #F7A800;
    --gold2: #d48f00;
    --white: #ffffff;
    --bg: #f0f8fd;
    --shadow: 0 4px 24px rgba(26, 44, 74, 0.10);
}

/* ── HERO ── */
.gallery-hero {
    background: linear-gradient(135deg, var(--navy2) 0%, var(--navy) 40%, #1a3a5e 100%);
    padding: 65px 20px 50px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.gallery-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 10% 60%, rgba(41, 171, 226, 0.18) 0%, transparent 45%),
        radial-gradient(circle at 88% 20%, rgba(58, 170, 53, 0.12) 0%, transparent 38%),
        radial-gradient(circle at 55% 95%, rgba(247, 168, 0, 0.09) 0%, transparent 35%);
    pointer-events: none;
}

.gallery-hero::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    border: 55px solid rgba(41, 171, 226, 0.06);
    top: -180px;
    right: -130px;
    pointer-events: none;
}

.gallery-hero h1 {
    font-size: clamp(38px, 6vw, 70px);
    font-weight: 900;
    color: var(--white);
    margin-bottom: 12px;
    position: relative;
    letter-spacing: -1px;
}

.gallery-hero h1 span {
    color: var(--blue);
}

.gallery-hero>p {
    font-size: clamp(14px, 1.8vw, 17px);
    color: rgba(255, 255, 255, 0.65);
    max-width: 560px;
    margin: 0 auto 38px;
    position: relative;
}

/* ── FILTER PILLS ── */
.filter-wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    position: relative;
}

.filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 11px 24px;
    border-radius: 50px;
    border: 2px solid rgba(41, 171, 226, 0.45);
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all .25s;
    white-space: nowrap;
    backdrop-filter: blur(6px);
}

.filter-btn i {
    font-size: 12px;
}

.filter-btn:hover {
    background: rgba(41, 171, 226, 0.22);
    border-color: var(--blue);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(41, 171, 226, 0.28);
}

.filter-btn.active {
    background: var(--blue);
    border-color: var(--blue);
    color: #fff;
    box-shadow: 0 6px 22px rgba(41, 171, 226, 0.50);
    transform: translateY(-2px);
}

.filter-btn.active.v-green {
    background: var(--green);
    border-color: var(--green);
    box-shadow: 0 6px 22px rgba(58, 170, 53, 0.45);
}

.filter-btn.active.v-gold {
    background: var(--gold);
    border-color: var(--gold);
    box-shadow: 0 6px 22px rgba(247, 168, 0, 0.45);
}

.filter-btn.active.v-navy {
    background: #2a3f6e;
    border-color: #2a3f6e;
}

.f-count {
    background: rgba(255, 255, 255, 0.22);
    border-radius: 20px;
    padding: 1px 8px;
    font-size: 10px;
    font-weight: 800;
}

/* ── STATS BAR ── */
.gallery-stats {
    background: var(--navy);
    border-bottom: 3px solid var(--blue);
    padding: 14px 20px;
}

.gs-inner {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.gstat {
    text-align: center;
    padding: 8px 30px;
    border-right: 1px solid rgba(255, 255, 255, 0.10);
}

.gstat:last-child {
    border-right: none;
}

.gstat-num {
    font-size: 26px;
    font-weight: 900;
    line-height: 1;
}

.gstat-num.c-blue {
    color: var(--blue);
}

.gstat-num.c-green {
    color: var(--green);
}

.gstat-num.c-gold {
    color: var(--gold);
}

.gstat-num.c-white {
    color: #fff;
}

.gstat-lbl {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.45);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

/* ── GALLERY SECTION ── */
.gallery-section {
    background: var(--bg);
    padding: 40px 0 60px;
}

.gallery-section .container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

/* section heading */
.section-heading {
    margin-bottom: 26px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.section-heading h2 {
    font-size: 22px;
    font-weight: 800;
    color: var(--navy);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.section-heading h2 i {
    color: var(--blue);
}

.sh-line {
    flex: 1;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--blue), var(--green), transparent);
}

/* ── FEATURED GRID ── */
.featured-grid {
    display: grid;
    grid-template-columns: 1.65fr 1fr;
    gap: 18px;
    margin-bottom: 18px;
}

.feat-card {
    border-radius: 18px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    box-shadow: var(--shadow);
    background: #cde8f5;
}

.feat-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .45s;
}

.feat-card:hover img {
    transform: scale(1.06);
}

.feat-card .fc-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(27, 42, 74, 0.82) 0%, transparent 55%);
    opacity: 0;
    transition: opacity .3s;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 22px;
}

.feat-card:hover .fc-overlay {
    opacity: 1;
}

.fc-tag {
    display: inline-block;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 3px 12px;
    border-radius: 20px;
    margin-bottom: 7px;
    width: fit-content;
    color: #fff;
}

.fc-overlay h3 {
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    margin: 0;
}

.fc-zoom {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--navy);
    font-size: 14px;
    opacity: 0;
    transition: all .3s;
    transform: scale(.75);
}

.feat-card:hover .fc-zoom {
    opacity: 1;
    transform: scale(1);
}

.feat-card.tall {
    min-height: 430px;
}

.feat-card.short {
    min-height: 205px;
}

.feat-right {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.cat-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .6px;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 20px;
    color: #fff;
    backdrop-filter: blur(6px);
    z-index: 2;
}

/* ── CAT DIVIDER ── */
.cat-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 32px 0 20px;
}

.cd-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #fff;
    flex-shrink: 0;
}

.cat-divider h3 {
    font-size: 17px;
    font-weight: 800;
    margin: 0;
    white-space: nowrap;
}

.cd-line {
    flex: 1;
    height: 2px;
    border-radius: 2px;
}

/* ── MASONRY GRID ── */
.masonry-grid {
    columns: 4;
    column-gap: 16px;
    margin-bottom: 32px;
}

@media(max-width:1100px) {
    .masonry-grid {
        columns: 3;
    }
}

@media(max-width:750px) {
    .masonry-grid {
        columns: 2;
    }

    .featured-grid {
        grid-template-columns: 1fr;
    }
}

@media(max-width:460px) {
    .masonry-grid {
        columns: 1;
    }
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 16px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    box-shadow: var(--shadow);
    background: #cde8f5;
    transition: transform .3s, box-shadow .3s;
}

.masonry-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(27, 42, 74, 0.16);
}

.masonry-item img {
    width: 100%;
    display: block;
    transition: transform .45s;
}

.masonry-item:hover img {
    transform: scale(1.07);
}

.mi-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(27, 42, 74, 0.80) 0%, transparent 52%);
    opacity: 0;
    transition: opacity .3s;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 14px;
}

.masonry-item:hover .mi-overlay {
    opacity: 1;
}

.mi-tag {
    display: inline-block;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .8px;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 5px;
    width: fit-content;
    color: #fff;
}

.mi-overlay p {
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    margin: 0;
}

.mi-zoom {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--navy);
    font-size: 12px;
    opacity: 0;
    transition: all .3s;
    transform: scale(.7);
}

.masonry-item:hover .mi-zoom {
    opacity: 1;
    transform: scale(1);
}

/* ── LOAD MORE ── */
.load-more-wrap {
    text-align: center;
    margin-top: 10px;
}

.btn-load-more {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 14px 40px;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--blue), var(--blue2));
    border: none;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all .25s;
    box-shadow: 0 6px 24px rgba(41, 171, 226, 0.40);
}

.btn-load-more:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 34px rgba(41, 171, 226, 0.50);
    background: linear-gradient(135deg, var(--navy), #2a3f6e);
}

/* ── EMPTY STATE ── */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    display: none;
}

.empty-state i {
    font-size: 60px;
    color: #c8e6f5;
    margin-bottom: 16px;
    display: block;
}

.empty-state p {
    color: #aaa;
    font-size: 16px;
}

/* ── LIGHTBOX ── */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(10, 20, 38, 0.96);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: lbFadeIn .2s ease;
}

.lightbox-overlay.open {
    display: flex;
}

@keyframes lbFadeIn {
    from {
        opacity: 0
    }

    to {
        opacity: 1
    }
}

.lightbox-inner {
    position: relative;
    max-width: 1000px;
    width: 100%;
    animation: lbSlide .25s ease;
}

@keyframes lbSlide {
    from {
        transform: scale(.92);
        opacity: 0
    }

    to {
        transform: scale(1);
        opacity: 1
    }
}

.lightbox-inner img {
    width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
    border: 2px solid rgba(41, 171, 226, 0.20);
}

.lb-caption {
    text-align: center;
    margin-top: 14px;
}

.lb-tag {
    display: inline-block;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 7px;
    color: #fff;
}

.lb-caption h3 {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    margin: 0;
}

.lb-close {
    position: absolute;
    top: -14px;
    right: -14px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--blue);
    border: none;
    color: #fff;
    font-size: 17px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
}

.lb-close:hover {
    background: var(--navy);
}

.lb-prev,
.lb-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(41, 171, 226, 0.15);
    border: 2px solid rgba(41, 171, 226, 0.30);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s;
    z-index: 10000;
}

.lb-prev {
    left: 14px;
}

.lb-next {
    right: 14px;
}

.lb-prev:hover,
.lb-next:hover {
    background: var(--blue);
    border-color: var(--blue);
}

.lb-counter {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.50);
    font-size: 12px;
    font-weight: 700;
    background: rgba(27, 42, 74, 0.70);
    padding: 5px 18px;
    border-radius: 20px;
    z-index: 10000;
    border: 1px solid rgba(41, 171, 226, 0.20);
}

.masonry-item.hidden,
.feat-card.hidden {
    display: none;
}

@media(max-width:768px) {
    .gallery-hero {
        padding: 40px 16px 32px;
    }

    .featured-grid {
        grid-template-columns: 1fr;
    }

    .feat-card.tall {
        min-height: 260px;
    }

    .filter-btn {
        padding: 9px 14px;
        font-size: 12px;
    }

    .gstat {
        padding: 6px 18px;
    }

    .lb-prev {
        left: 6px;
    }

    .lb-next {
        right: 6px;
    }
}

/* Gallery Section Styles */
.gallery-section {
    padding: 20px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-top: 30px;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: white;
    height: 300px;
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.gallery-image {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-item:hover .gallery-image img {
    transform: scale(1.15);
}

/* Category Badge - Top Right */
.category-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 8px 16px;
    border-radius: 50px;
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 2;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.2);
    animation: slideInRight 0.5s ease;
}

/* Different background colors for each category */
.category-badge.events {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.category-badge.success_story {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.category-badge.our_team {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.category-badge.clients {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.category-badge.awards {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

/* Gallery Overlay */
.gallery-overlay {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    padding: 25px 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.95), rgba(0,0,0,0.7), transparent);
    color: white;
    transition: bottom 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 3;
}

.gallery-item:hover .gallery-overlay {
    bottom: 0;
}

.gallery-overlay h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    font-weight: 700;
    color: white;
    text-transform: capitalize;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease 0.1s;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.gallery-item:hover .gallery-overlay h3 {
    transform: translateY(0);
    opacity: 1;
}

.gallery-overlay .category {
    font-size: 0.95rem;
    margin-bottom: 8px;
    padding: 5px 12px;
    border-radius: 50px;
    display: inline-block;
    font-weight: 500;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease 0.2s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Same background colors for overlay category */
.gallery-overlay .category.events {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.gallery-overlay .category.success_story {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.gallery-overlay .category.our_team {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.gallery-overlay .category.clients {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.gallery-overlay .category.awards {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.gallery-item:hover .gallery-overlay .category {
    transform: translateY(0);
    opacity: 1;
}

.gallery-overlay .date {
    font-size: 0.85rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease 0.3s;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

.gallery-overlay .date i {
    font-size: 0.8rem;
}

.gallery-item:hover .gallery-overlay .date {
    transform: translateY(0);
    opacity: 0.9;
}

/* Animations */
@keyframes slideInRight {
    from {
        transform: translateX(50px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Stats Bar Enhanced Styling */
.gallery-stats {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    padding: 5px 0;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.gallery-stats::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.gs-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.gstat {
    padding: 5px;
    position: relative;
    transition: all 0.3s ease;
}

.gstat:hover {
    transform: translateY(-5px);
}

.gstat::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #ffd700, #ff6b6b);
    transition: width 0.3s ease;
}

.gstat:hover::after {
    width: 50px;
}

.gstat-num {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #fff 0%, #f0f0f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    animation: countUp 2s ease;
}

@keyframes countUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.gstat-lbl {
    font-size: 1.1rem;
    opacity: 0.9;
    letter-spacing: 1px;
    font-weight: 500;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
}

.gstat-lbl::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #ffd700, #ff6b6b);
    transition: width 0.3s ease;
}

.gstat:hover .gstat-lbl::before {
    width: 30px;
}

/* Different colors for each stat */
.c-blue {
    color: #4facfe;
    -webkit-text-fill-color: #4facfe;
}

.c-green {
    color: #43e97b;
    -webkit-text-fill-color: #43e97b;
}

.c-gold {
    color: #ffd700;
    -webkit-text-fill-color: #ffd700;
}

.c-white {
    color: #fff;
    -webkit-text-fill-color: #fff;
}

/* Responsive Design */
@media (max-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .gallery-item {
        height: 250px;
    }
    
    .gs-inner {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .gstat-num {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-item {
        height: 220px;
    }
    
    .gs-inner {
        grid-template-columns: 1fr;
    }
}

/* No Images Found Styling */
.no-images {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px;
    background: white;
    border-radius: 15px;
    color: #666;
    font-size: 1.3rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    animation: fadeInUp 0.5s ease;
}

:root {
    --gy-navy:  #0d1b35;
    --gy-blue:  #29ABE2;
    --gy-green: #3AAA35;
    --gy-gold:  #F7A800;
    --cat-events:        #29ABE2;
    --cat-success_story: #3AAA35;
    --cat-our_team:      #1B2A4A;
    --cat-clients:       #8b5cf6;
    --cat-awards:        #F7A800;
}

/* HERO */
.gallery-hero {
    background: linear-gradient(135deg, #0d1b35 0%, #1B2A4A 50%, #0a1525 100%);
    padding: 68px 20px 54px;
    text-align: center;
    position: relative; overflow: hidden;
}
.gallery-hero::before {
    content: '';
    position: absolute; inset: 0;
    background-image:
        radial-gradient(circle at 12% 60%, rgba(41,171,226,0.18) 0%, transparent 44%),
        radial-gradient(circle at 88% 18%, rgba(247,168,0,0.10)   0%, transparent 40%);
    pointer-events: none;
}
.gh-ring1 {
    position: absolute; width: 480px; height: 480px; border-radius: 50%;
    border: 55px solid rgba(41,171,226,0.07);
    top: -190px; right: -130px; pointer-events: none;
}
.gh-ring2 {
    position: absolute; width: 240px; height: 240px; border-radius: 50%;
    border: 30px solid rgba(247,168,0,0.06);
    bottom: -95px; left: -45px; pointer-events: none;
}
.gh-dots {
    position: absolute; inset: 0;
    background-image:
        radial-gradient(circle, rgba(41,171,226,0.12) 1px, transparent 1px),
        radial-gradient(circle, rgba(247,168,0,0.07)  1px, transparent 1px);
    background-size: 52px 52px, 36px 36px;
    background-position: 0 0, 26px 26px;
    pointer-events: none;
}
.hero-cam-bg {
    position: absolute; right: 5%; top: 50%; transform: translateY(-50%);
    font-size: 200px; color: rgba(41,171,226,0.05); pointer-events: none;
}
.gallery-hero h1 {
    font-size: clamp(30px, 4.8vw, 58px); font-weight: 900; color: #fff;
    margin: 0 0 14px; line-height: 1.10;
    font-family: 'Nunito','Barlow',sans-serif; position: relative;
}
.gallery-hero h1 span { color: #38bdf8; }
.gallery-hero > p {
    color: rgba(255,255,255,0.48); font-size: 16px;
    max-width: 560px; margin: 0 auto 34px; line-height: 1.80; position: relative;
}

/* Filter pills */
.filter-wrap { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; position: relative; }
.filter-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 22px; border-radius: 50px;
    background: rgba(255,255,255,0.06);
    border: 1.5px solid rgba(255,255,255,0.14);
    color: rgba(255,255,255,0.65); font-size: 13px; font-weight: 700;
    cursor: pointer; transition: all .25s; font-family: inherit;
}
.filter-btn:hover { background: rgba(41,171,226,0.18); border-color: rgba(41,171,226,0.60); color: #fff; }
.filter-btn.active { color: #fff; border-color: transparent; }
.filter-btn.active[data-filter="all"]          { background: #29ABE2; }
.filter-btn.active[data-filter="events"]       { background: #29ABE2; }
.filter-btn.active[data-filter="success_story"]{ background: #3AAA35; }
.filter-btn.active[data-filter="our_team"]     { background: #1B2A4A; border: 2px solid rgba(255,255,255,0.30); }
.filter-btn.active[data-filter="clients"]      { background: #8b5cf6; }
.filter-btn.active[data-filter="awards"]       { background: #F7A800; color: #1B2A4A; }
.f-count { background: rgba(255,255,255,0.20); border-radius: 50px; padding: 1px 9px; font-size: 11px; font-weight: 800; }

/* Stats bar */
.gallery-stats { background: #fff; border-bottom: 3px solid #f0f4f8; box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.gs-inner { max-width: 900px; margin: 0 auto; display: flex; justify-content: space-around; flex-wrap: wrap; }
.gstat { padding: 18px 22px; text-align: center; flex: 1; min-width: 100px; border-right: 1px solid #f0f4f8; transition: background .2s; }
.gstat:last-child { border-right: none; }
.gstat:hover { background: #f8faff; }
.gstat-num { font-size: 28px; font-weight: 900; line-height: 1; margin-bottom: 4px; font-family: 'Nunito',sans-serif; transition: transform .2s; }
.gstat:hover .gstat-num { transform: scale(1.10); }
.gstat-lbl { font-size: 11px; color: #9ca3af; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; }
.c-blue  { color: #29ABE2; } .c-green { color: #3AAA35; } .c-gold  { color: #F7A800; } .c-white { color: #1B2A4A; }

/* Gallery section */
.gallery-section { background: linear-gradient(180deg, #f7f9fc 0%, #eef2f8 100%); padding: 44px 20px 64px; }

/* Section heading */
.sec-head { text-align: center; margin-bottom: 32px; }
.sec-head h2 { font-size: clamp(20px,2.5vw,30px); font-weight: 900; color: #0d1b35; margin: 0 0 12px; font-family: 'Nunito',sans-serif; }
.sec-divider { display: flex; align-items: center; justify-content: center; gap: 12px; }
.sec-divider span { height: 3px; width: 60px; border-radius: 2px; }
.sec-divider span:first-child { background: linear-gradient(90deg, transparent, #29ABE2); }
.sec-divider span:last-child  { background: linear-gradient(90deg, #29ABE2, transparent); }
.sec-divider i { color: #29ABE2; font-size: 18px; }

/* Category strip */
.cat-strip { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
.cat-strip-item {
    display: flex; align-items: center; gap: 10px;
    background: #fff; border-radius: 14px; padding: 12px 18px;
    flex: 1; min-width: 140px;
    border: 2px solid #f0f4f8;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform .25s, box-shadow .25s;
}
.cat-strip-item:hover { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(0,0,0,0.12); }
.csi-icon { width: 38px; height: 38px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 16px; color: #fff; flex-shrink: 0; }
.csi-text small { font-size: 10px; color: #9ca3af; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; display: block; }
.csi-text strong { font-size: 18px; font-weight: 900; }

/* Masonry grid */
.gallery-grid { columns: 4 220px; column-gap: 16px; }

/* Gallery item */
.gallery-item {
    break-inside: avoid; margin-bottom: 16px;
    position: relative; border-radius: 18px; overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 18px rgba(0,0,0,0.10); background: #e5e7eb;
    transition: transform .32s cubic-bezier(.34,1.56,.64,1), box-shadow .32s;
    animation: giReveal .50s ease both;
}
.gallery-item:hover { transform: translateY(-7px) scale(1.015); box-shadow: 0 16px 40px rgba(0,0,0,0.20); }
.gallery-item.hidden { display: none; }
@keyframes giReveal { from { opacity:0; transform:translateY(22px); } to { opacity:1; transform:translateY(0); } }
.gallery-item:nth-child(2){animation-delay:.04s} .gallery-item:nth-child(3){animation-delay:.08s}
.gallery-item:nth-child(4){animation-delay:.12s} .gallery-item:nth-child(5){animation-delay:.16s}
.gallery-item:nth-child(6){animation-delay:.20s} .gallery-item:nth-child(7){animation-delay:.24s}
.gallery-item:nth-child(8){animation-delay:.28s} .gallery-item:nth-child(n+9){animation-delay:.32s}

.gallery-image { position: relative; overflow: hidden; display: block; }
.gallery-image img { width: 100%; display: block; min-height: 160px; object-fit: cover; transition: transform .42s ease; }
.gallery-item:hover .gallery-image img { transform: scale(1.08); }

/* Category badge */
.category-badge {
    position: absolute; top: 12px; left: 12px;
    font-size: 10px; font-weight: 800; padding: 4px 12px; border-radius: 50px;
    color: #fff; text-transform: uppercase; letter-spacing: .6px;
    pointer-events: none; backdrop-filter: blur(4px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.18); z-index: 2;
}
.category-badge.events        { background: rgba(41,171,226,0.90);  }
.category-badge.success_story { background: rgba(58,170,53,0.90);   }
.category-badge.our_team      { background: rgba(27,42,74,0.90);    }
.category-badge.clients       { background: rgba(139,92,246,0.90);  }
.category-badge.awards        { background: rgba(247,168,0,0.95); color: #1B2A4A; }

/* Zoom icon */
.zoom-icon {
    position: absolute; top: 12px; right: 12px;
    width: 34px; height: 34px; border-radius: 50%;
    background: rgba(255,255,255,0.92);
    display: flex; align-items: center; justify-content: center;
    color: #1B2A4A; font-size: 13px;
    opacity: 0; transform: scale(0.6);
    transition: opacity .28s, transform .28s;
    pointer-events: none; z-index: 2;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
.gallery-item:hover .zoom-icon { opacity: 1; transform: scale(1); }

/* Overlay */
.gallery-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(13,27,53,0.88) 0%, rgba(13,27,53,0.30) 55%, transparent 100%);
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 14px 14px 12px; opacity: 0; transition: opacity .30s;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay h3 { color: #fff; font-size: 13px; font-weight: 800; margin: 0 0 6px; line-height: 1.35; }
.gallery-overlay .category {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 10px; font-weight: 800; padding: 3px 10px; border-radius: 50px;
    color: #fff; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 5px; width: fit-content;
}
.gallery-overlay .category.events        { background: var(--cat-events); }
.gallery-overlay .category.success_story { background: var(--cat-success_story); }
.gallery-overlay .category.our_team      { background: var(--cat-our_team); }
.gallery-overlay .category.clients       { background: var(--cat-clients); }
.gallery-overlay .category.awards        { background: var(--cat-awards); color: #1B2A4A; }
.gallery-overlay .date { color: rgba(255,255,255,0.60); font-size: 11px; font-weight: 600; margin: 0; display: flex; align-items: center; gap: 5px; }

/* No images */
.no-images { text-align: center; padding: 60px 20px; color: #9ca3af; font-size: 16px; font-weight: 600; background: #fff; border-radius: 18px; border: 2px dashed #e5e7eb; }
.no-images i { font-size: 3rem; display: block; margin-bottom: 14px; color: #d1d5db; }

/* Empty state */
.empty-filter-state { text-align: center; padding: 60px 20px; display: none; background: #fff; border-radius: 18px; border: 2px dashed #e5e7eb; margin-top: 10px; }
.empty-filter-state i { font-size: 3rem; color: #d1d5db; display: block; margin-bottom: 14px; }
.empty-filter-state p { color: #9ca3af; font-size: 16px; margin: 0; font-weight: 600; }

/* LIGHTBOX */
.lb-overlay {
    position: fixed; inset: 0;
    background: rgba(5,12,25,0.95);
    z-index: 99999; display: none;
    align-items: center; justify-content: center;
    backdrop-filter: blur(4px);
}
.lb-overlay.open { display: flex; animation: lbFadeIn .20s ease; }
@keyframes lbFadeIn { from{opacity:0} to{opacity:1} }

.lb-close, .lb-prev, .lb-next {
    position: fixed; background: rgba(255,255,255,0.10);
    border: 1.5px solid rgba(255,255,255,0.20);
    color: #fff; cursor: pointer; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: background .2s, transform .2s; z-index: 100001;
}
.lb-close { top: 18px; right: 18px; width: 46px; height: 46px; font-size: 20px; }
.lb-prev  { left: 16px; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; font-size: 20px; }
.lb-next  { right: 16px; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; font-size: 20px; }
.lb-close:hover { background: rgba(225,29,72,0.70); transform: rotate(90deg); }
.lb-prev:hover  { background: rgba(41,171,226,0.40); transform: translateY(-50%) scale(1.10); }
.lb-next:hover  { background: rgba(41,171,226,0.40); transform: translateY(-50%) scale(1.10); }
.lb-counter {
    position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
    background: rgba(255,255,255,0.10); border: 1px solid rgba(255,255,255,0.20);
    color: rgba(255,255,255,0.70); font-size: 13px; font-weight: 700;
    padding: 5px 18px; border-radius: 50px; z-index: 100001;
}
.lb-kb-hint { position: fixed; bottom: 52px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,0.28); font-size: 11px; z-index: 100001; }
.lb-inner { max-width: 92vw; max-height: 92vh; display: flex; flex-direction: column; align-items: center; }
#lb-img { max-width: 90vw; max-height: 76vh; object-fit: contain; border-radius: 14px; box-shadow: 0 24px 70px rgba(0,0,0,0.70); display: block; transition: opacity .18s; }
#lb-img.fading { opacity: 0; }
.lb-caption { margin-top: 16px; text-align: center; }
.lb-cat-tag { display: inline-block; color: #fff; font-size: 11px; font-weight: 800; padding: 4px 14px; border-radius: 50px; text-transform: uppercase; margin-bottom: 7px; }
.lb-caption h3 { color: #fff; font-size: 16px; font-weight: 800; margin: 0 0 4px; }
.lb-caption small { color: rgba(255,255,255,0.45); font-size: 12px; }

/* Responsive */
@media(max-width:900px) { .gallery-grid{columns:3 180px;} }
@media(max-width:640px) {
    .gallery-grid{columns:2 140px;column-gap:10px;}
    .cat-strip{flex-wrap:wrap;} .cat-strip-item{min-width:calc(50% - 6px);}
    .lb-prev{left:8px;} .lb-next{right:8px;}
}
@media(max-width:380px) { .gallery-grid{columns:1;} .cat-strip-item{min-width:100%;} }