/* ── GALLERY PAGE STYLES ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: #060d1a;
    color: rgba(255,255,255,0.85);
    line-height: 1.6;
}

/* ── NAV ─────────────────────────────────────────────────────────────────────── */
.g-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(6,13,26,0.92);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.g-nav__inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.g-nav__logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    flex-shrink: 0;
}

.g-nav__photo {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(234,88,12,0.4);
}

.g-nav__name {
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    color: #fff;
}

.g-nav__links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex: 1;
    justify-content: center;
}

.g-nav__links a {
    padding: 0.4rem 0.85rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    transition: color 0.2s, background 0.2s;
}

.g-nav__links a:hover,
.g-nav__links a.active {
    color: #f97316;
    background: rgba(234,88,12,0.08);
}

.g-nav__back {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.12);
    transition: color 0.2s, border-color 0.2s, background 0.2s;
    flex-shrink: 0;
    white-space: nowrap;
}

.g-nav__back:hover {
    color: #f97316;
    border-color: rgba(234,88,12,0.4);
    background: rgba(234,88,12,0.08);
}

/* ── HERO ────────────────────────────────────────────────────────────────────── */
.g-hero {
    background: linear-gradient(135deg, #060d1a 0%, #0a1628 60%, #0e1f38 100%);
    padding: 72px 2rem 52px;
    position: relative;
    overflow: hidden;
}

.g-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(600px circle at 20% 50%, rgba(234,88,12,0.07), transparent 55%);
    pointer-events: none;
}

.g-hero__inner {
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.g-hero__label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.85rem;
    border-radius: 999px;
    background: rgba(234,88,12,0.12);
    border: 1px solid rgba(234,88,12,0.3);
    color: #fb923c;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 1rem;
}

.g-hero__title {
    font-family: 'Sora', sans-serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 0.75rem;
}

.g-hero__sub {
    font-size: 1rem;
    color: rgba(255,255,255,0.6);
    max-width: 52ch;
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.g-hero__stats {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
    flex-wrap: wrap;
}

.g-hero__stats strong { color: #f97316; }

.g-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255,255,255,0.25);
    flex-shrink: 0;
}

/* ── MAIN ────────────────────────────────────────────────────────────────────── */
.g-main {
    padding: 3.5rem 2rem 5rem;
}

.g-container {
    max-width: 1100px;
    margin: 0 auto;
}

/* ── FILTERS ─────────────────────────────────────────────────────────────────── */
.g-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
}

.g-filter {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 1.1rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.04);
    color: rgba(255,255,255,0.6);
    font-size: 0.82rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
}

.g-filter:hover {
    border-color: rgba(234,88,12,0.35);
    color: #f97316;
    background: rgba(234,88,12,0.06);
}

.g-filter.active {
    background: linear-gradient(135deg, #ea580c, #f97316);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 16px rgba(234,88,12,0.3);
}

.g-filter__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 999px;
    background: rgba(255,255,255,0.15);
    font-size: 0.7rem;
    font-weight: 700;
}

.g-filter.active .g-filter__count {
    background: rgba(255,255,255,0.25);
}

/* ── GRID ────────────────────────────────────────────────────────────────────── */
.g-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

/* ── ITEM ────────────────────────────────────────────────────────────────────── */
.g-item {
    background: #0f1e35;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    cursor: pointer;
}

.g-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.45);
    border-color: rgba(234,88,12,0.3);
}

.g-item__img-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.g-item__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.g-item:hover .g-item__img-wrap img {
    transform: scale(1.05);
}

.g-item__overlay {
    position: absolute;
    inset: 0;
    background: rgba(6,13,26,0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.g-item:hover .g-item__overlay {
    opacity: 1;
}

.g-item__zoom {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(234,88,12,0.9);
    border: none;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, background 0.2s;
}

.g-item__zoom:hover {
    transform: scale(1.1);
    background: #f97316;
}

.g-item__info {
    padding: 0.9rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.g-item__tag {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    flex-shrink: 0;
}

.g-item__tag--design    { background: rgba(234,88,12,0.15); color: #fb923c; border: 1px solid rgba(234,88,12,0.25); }
.g-item__tag--leadership { background: rgba(59,130,246,0.15); color: #93c5fd; border: 1px solid rgba(59,130,246,0.25); }
.g-item__tag--personal  { background: rgba(34,197,94,0.12); color: #86efac; border: 1px solid rgba(34,197,94,0.2); }
.g-item__tag--logos     { background: rgba(168,85,247,0.15); color: #d8b4fe; border: 1px solid rgba(168,85,247,0.25); }

.g-item__title {
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(255,255,255,0.8);
    line-height: 1.3;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

/* ── EMPTY STATE ─────────────────────────────────────────────────────────────── */
.g-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 4rem 2rem;
    color: rgba(255,255,255,0.3);
}

.g-empty i { font-size: 2.5rem; }
.g-empty p { font-size: 0.9rem; }

/* ── LIGHTBOX ────────────────────────────────────────────────────────────────── */
.g-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(4,9,18,0.96);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    padding: 1.5rem;
}

.g-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.g-lightbox__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    max-width: 860px;
    width: 100%;
}

.g-lightbox__img {
    max-height: 72vh;
    max-width: 100%;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 24px 80px rgba(0,0,0,0.7);
    display: block;
}

.g-lightbox__info {
    text-align: center;
}

.g-lightbox__title {
    font-family: 'Sora', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.3rem;
}

.g-lightbox__desc {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.5);
    max-width: 52ch;
    line-height: 1.6;
}

.g-lightbox__close {
    position: fixed;
    top: 1.25rem;
    right: 1.25rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.7);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
    z-index: 1;
}

.g-lightbox__close:hover { background: rgba(234,88,12,0.2); color: #f97316; }

.g-lightbox__prev,
.g-lightbox__next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.7);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
    z-index: 1;
}

.g-lightbox__prev { left: 1.25rem; }
.g-lightbox__next { right: 1.25rem; }
.g-lightbox__prev:hover,
.g-lightbox__next:hover { background: rgba(234,88,12,0.2); color: #f97316; }

.g-lightbox__counter {
    position: fixed;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.78rem;
    color: rgba(255,255,255,0.4);
    background: rgba(255,255,255,0.06);
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.08);
}

/* ── FOOTER ──────────────────────────────────────────────────────────────────── */
.g-footer {
    background: #0a1628;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 1.75rem 2rem;
}

.g-footer__inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.g-footer__inner p { font-size: 0.82rem; color: rgba(255,255,255,0.4); }

.g-footer__link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: color 0.2s;
}

.g-footer__link:hover { color: #f97316; }

/* ── RESPONSIVE ──────────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .g-grid { grid-template-columns: repeat(2, 1fr); }
    .g-nav__links { display: none; }
}

@media (max-width: 580px) {
    .g-hero { padding: 56px 1.25rem 36px; }
    .g-main { padding: 2.5rem 1.25rem 4rem; }
    .g-grid { grid-template-columns: 1fr; }
    .g-nav__inner { padding: 0 1.25rem; }
    .g-footer__inner { flex-direction: column; text-align: center; }
    .g-lightbox__prev { left: 0.5rem; }
    .g-lightbox__next { right: 0.5rem; }
}
