@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;700&display=swap');

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

html, body {
    width: 100%;
    background: #fff;
    color: #111;
    font-family: 'IBM Plex Mono', 'Courier New', monospace;
}

a { color: inherit; }

/* ── Sidebar nav ── */
.gnav {
    position: fixed;
    left: 0;
    top: 0;
    width: 250px;
    height: 100vh;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    z-index: 100;
    overflow-y: auto;
}

.gnav-name {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-decoration: none;
    line-height: 1.4;
    margin-bottom: 40px;
    display: block;
    white-space: nowrap;
}

.gnav-links {
    display: flex;
    flex-direction: column;
    gap: 14px;
    list-style: none;
}

.gnav-links a {
    font-size: 14px;
    text-decoration: none;
    line-height: 1.4;
}

.gnav-links a:hover {
    text-decoration: underline;
}

.gnav-links a.active {
    text-decoration: underline;
    font-weight: 700;
}

.gnav-footer {
    margin-top: auto;
    padding-top: 40px;
    font-size: 11px;
    line-height: 1.6;
    color: #888;
}

/* ── Page shell ── */
.gpage {
    margin-left: 250px;
    min-height: 100vh;
    padding: 56px 56px 120px;
}

.gblurb {
    max-width: 640px;
    font-size: 14px;
    line-height: 1.75;
    margin-bottom: 48px;
}

.gblurb p + p {
    margin-top: 16px;
}

.gsection-heading {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin: 48px 0 20px;
}

.gsection-heading:first-of-type {
    margin-top: 0;
}

/* ── Gallery ── */
.ggallery {
    columns: 320px;
    column-gap: 16px;
}

.ggallery-item {
    break-inside: avoid;
    margin-bottom: 20px;
    position: relative;
    cursor: pointer;
}

.ggallery-item img {
    width: 100%;
    display: block;
    transition: opacity 0.2s;
}

.ggallery-item:hover img {
    opacity: 0.85;
}

.gplay-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    pointer-events: none;
}

/* ── Lightbox ── */
#glightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0,0,0,0.94);
    align-items: center;
    justify-content: center;
}
#glightbox.open { display: flex; }

#glightbox-img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    display: block;
}

#glightbox-frame {
    width: 90vw;
    max-width: 1200px;
    aspect-ratio: 16/9;
    border: none;
    display: block;
}

#glightbox-close {
    position: fixed;
    top: 20px;
    right: 28px;
    font-size: 32px;
    color: #fff;
    cursor: pointer;
    background: none;
    border: none;
    line-height: 1;
    opacity: 0.85;
    font-family: 'IBM Plex Mono', monospace;
}
#glightbox-close:hover { opacity: 1; }

.glightbox-arrow {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    font-size: 40px;
    color: #fff;
    cursor: pointer;
    background: none;
    border: none;
    opacity: 0.6;
    padding: 0 16px;
    font-family: 'IBM Plex Mono', monospace;
}
.glightbox-arrow:hover { opacity: 1; }
#glightbox-prev { left: 8px; }
#glightbox-next { right: 8px; }

/* ── Mobile ── */
@media (max-width: 768px) {
    .gnav {
        position: static;
        width: 100%;
        height: auto;
        padding: 28px 24px;
        flex-direction: row;
        align-items: baseline;
        flex-wrap: wrap;
        gap: 16px 20px;
    }
    .gnav-name { margin-bottom: 0; width: 100%; }
    .gnav-links { flex-direction: row; flex-wrap: wrap; gap: 12px 18px; }
    .gnav-footer { display: none; }

    .gpage {
        margin-left: 0;
        padding: 32px 20px 100px;
    }

    .ggallery {
        columns: 170px;
        column-gap: 10px;
    }
    .ggallery-item { margin-bottom: 12px; }
}
