:root {
    --bg-color: #030303;
    --text-color: #dcdcdc;
    --accent-color: #ffffff;
    --border-color: #333333;
    --sigil-color: #666666;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    cursor: crosshair; /* Goth/Cyber vibe */
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Space Mono', monospace;
    font-size: 14px;
    line-height: 1.5;
    overflow-x: hidden;
    /* Lightened overlay to see the background image better */
    background: linear-gradient(rgba(5, 5, 5, 0.75), rgba(5, 5, 5, 0.75)), url('images/IMG_3606.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* Header */
header {
    text-align: center;
    padding: 3rem 1rem 2rem;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
/* ... (rest of header styles) ... */

/* Gallery - Masonry Layout */
.gallery-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 2rem;
    columns: 3 300px;
    column-gap: 2rem;
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 2.5rem;
    position: relative;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    padding: 8px; /* Space for the sigil corners */
}

/* Default Style: Inverted / Cyber-X-Ray */
.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    filter: grayscale(1) invert(1) contrast(1.2) brightness(1.2); 
    transition: filter 0.6s ease;
    border: none; 
    mix-blend-mode: screen; 
}

/* Override: Normal (Positive) Images */
.gallery-item.no-invert img {
    filter: grayscale(1) contrast(1.1) brightness(0.8);
    mix-blend-mode: normal;
    border: 1px solid #333;
}

/* Override: Hover/Active State for Inverted */
.gallery-item:hover img,
.gallery-item.in-view img {
    filter: invert(1) contrast(1.1) brightness(1.2) hue-rotate(180deg);
    mix-blend-mode: normal;
}

/* Override: Hover/Active State for Normal (Positive) */
.gallery-item.no-invert:hover img,
.gallery-item.no-invert.in-view img {
    filter: grayscale(0) contrast(1.1) brightness(1.0);
    border-color: var(--accent-color);
}

/* Future-proofing for Clipped PNGs */
.gallery-item.clip-ready img {
    /* When you replace these with PNGs, they might not need special blends */
}

.gallery-item:hover::before,
.gallery-item:hover::after,
.gallery-item.in-view::before,
.gallery-item.in-view::after {
    width: 100%;
    height: 100%;
    opacity: 1;
    border-color: var(--accent-color);
    top: 0;
    left: 0;
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s steps(5); /* Glitchy step transition */
}

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

.lightbox-img {
    max-width: 85%;
    max-height: 85vh;
    border: 1px solid var(--accent-color);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
}

.close-btn {
    position: absolute;
    top: 30px;
    right: 40px;
    font-family: 'Space Mono', monospace;
    font-size: 2rem;
    color: var(--sigil-color);
    cursor: crosshair;
    transition: color 0.2s;
}

.close-btn:hover {
    color: var(--accent-color);
    text-shadow: 0 0 10px #fff;
}

/* Footer */
footer {
    text-align: center;
    padding: 4rem 1rem;
    font-size: 0.7rem;
    color: #444;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    border-top: 1px solid var(--border-color);
    background: #000;
}

/* Responsive */
@media (max-width: 768px) {
    h1 { font-size: 3.5rem; }
    .gallery-container { padding: 1rem; columns: 2 180px; }
}

@media (max-width: 480px) {
    .gallery-container { columns: 1; }
}