/* ===================================================================
   PHOTOGRAPHY PAGE — Full dark gallery aesthetic
   =================================================================== */
:root {
    --bg: #050505;
    --bg-card: #0c0c0c;
    --text: #ffffff;
    --text-muted: #7a8085;
    --accent: #0080ff;
    --border: rgba(255,255,255,0.08);
    --font-display: 'Mona Sans', sans-serif;
    --font-body: 'Inter', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    overflow-x: hidden;
}

/* ===== NAV ===== */
.pg-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 40px;
    background: rgba(5,5,5,0.8);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
}

.pg-back {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.25s ease;
    width: 100px;
}

.pg-back:hover { color: var(--text); }

.pg-nav-title {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    letter-spacing: 0.02em;
}

/* ===== HERO ===== */
.pg-hero {
    min-height: 75vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 140px 40px 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.pg-hero::before {
    content: '';
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(0,128,255,0.06) 0%, transparent 65%);
    pointer-events: none;
}

.pg-hero-inner {
    position: relative;
    max-width: 900px;
}

.pg-eyebrow {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 28px;
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 0.1s;
}

.pg-headline {
    font-family: var(--font-display);
    font-size: clamp(4rem, 10vw, 8rem);
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -0.03em;
    margin-bottom: 32px;
    opacity: 0;
    animation: fadeUp 0.9s ease forwards 0.25s;
}

.pg-headline-accent {
    background: linear-gradient(135deg, #0080ff 0%, #38bdf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pg-subtext {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    color: var(--text-muted);
    max-width: 620px;
    margin: 0 auto;
    line-height: 1.7;
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 0.4s;
}


/* ===== FILTER TABS ===== */
.pg-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 20px 40px 40px;
    position: sticky;
    top: 61px;
    z-index: 50;
    background: rgba(5,5,5,0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.pg-filter {
    padding: 9px 22px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: transparent;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
}

.pg-filter:hover {
    border-color: rgba(255,255,255,0.25);
    color: var(--text);
}

.pg-filter.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

/* ===== GALLERY MASONRY ===== */
.pg-gallery {
    columns: 3;
    column-gap: 14px;
    padding: 40px 40px 80px;
    max-width: 1400px;
    margin: 0 auto;
}

.pg-item {
    break-inside: avoid;
    margin-bottom: 14px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    background: var(--bg-card);
    transition: transform 0.4s cubic-bezier(0.34, 1.3, 0.64, 1);
}

.pg-item:hover {
    transform: translateY(-6px);
}

.pg-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s ease, filter 0.4s ease;
}

.pg-item:hover img {
    transform: scale(1.04);
    filter: brightness(0.6);
}

.pg-item-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.35s ease;
}

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

.pg-tag {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.85);
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.18);
    backdrop-filter: blur(6px);
    padding: 4px 12px;
    border-radius: 999px;
    margin-bottom: 8px;
    width: fit-content;
}

.pg-caption {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255,255,255,0.8);
    line-height: 1.4;
}

/* Hidden item */
.pg-item.hidden {
    display: none;
}

/* ===== LIGHTBOX ===== */
.pg-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.96);
    backdrop-filter: blur(20px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.pg-lightbox.open {
    opacity: 1;
    pointer-events: all;
}

.lightbox-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    max-width: 90vw;
    max-height: 90vh;
}

.lightbox-inner img {
    max-width: 90vw;
    max-height: 78vh;
    object-fit: contain;
    border-radius: 12px;
    display: block;
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.34, 1.3, 0.64, 1);
}

.pg-lightbox.open .lightbox-inner img { transform: scale(1); }

.lightbox-meta {
    display: flex;
    align-items: center;
    gap: 14px;
}

.lightbox-tag {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.6);
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    padding: 4px 12px;
    border-radius: 999px;
}

.lightbox-caption {
    font-size: 14px;
    color: rgba(255,255,255,0.55);
}

.lightbox-close {
    position: fixed;
    top: 24px;
    right: 24px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
}

.lightbox-close:hover { background: rgba(255,255,255,0.18); }

.lightbox-prev,
.lightbox-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
}

.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }

.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(255,255,255,0.18); }

/* ===== FOOTER ===== */
.pg-footer {
    text-align: center;
    padding: 40px 20px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 14px;
}

.pg-footer a {
    color: var(--accent);
    text-decoration: none;
}

.pg-footer a:hover { text-decoration: underline; }

/* ===== ANIMATION ===== */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .pg-gallery { columns: 2; }
    .pg-nav { padding: 16px 24px; }
    .pg-hero { padding: 120px 24px 80px; }
    .pg-filters { padding: 14px 24px 20px; }
}

@media (max-width: 600px) {
    .pg-gallery { columns: 1; padding: 24px 16px 60px; }
    .pg-headline { letter-spacing: -0.02em; }
    .lightbox-prev { left: 10px; }
    .lightbox-next { right: 10px; }
    .pg-nav-title { display: none; }
}
