/* --- Base Styles & Colors --- */
:root {
    --color-bg: #000000;
    --color-text: #ffffff;
    --color-accent: #0f70e0;
    --font-stack-headers: 'Montserrat', sans-serif;
    --font-stack-body: 'Lexend', sans-serif; 
}

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

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

/* --- Reusable Classes --- */
.split-container, .footer-container {
    width: 92%;
    max-width: 1600px;
    margin: 0 auto;
}

/* Shared styles for header and footer navigation lists */
.site-navigation ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.site-navigation a {
    text-decoration: none;
    color: var(--color-text);
    text-transform: uppercase;
    font-family: var(--font-stack-headers);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.site-navigation a:hover {
    color: var(--color-accent);
}

/* Active Page State */
.site-navigation a.active-page {
    color: var(--color-accent);
}


/* --- Header --- */
header {
    padding: 20px 4%;
    background: #000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* Logo Link Wrapper */
.logo-link {
    display: block;
    text-decoration: none;
    border: none;
}

.site-logo {
    max-width: 250px;
    height: auto;
    display: block;
}


/* --- The Gapless Portfolio Grid (Main) --- */
main {
    width: 100%;
    padding: 0;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0;
}

.grid-item {
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    /* Ensures the container doesn't steal the click from the image */
    pointer-events: none; 
}

.thumb {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    cursor: pointer;
    transition: opacity 0.3s ease;
    /* Ensures the image re-enables clicks so JS can see it */
    pointer-events: auto;
}

.thumb:hover {
    opacity: 0.7;
}

/* --- Description Banner --- */
.grid-description-banner {
    width: 100%;
    padding: 30px 4%; 
    border-bottom: 2px dotted #444444;
    margin-top: 15px;
    margin-bottom: 80px;
}

.description-heading {
    font-family: var(--font-stack-headers);
    text-transform: uppercase;
    font-size: 0.9rem; 
    color: #999999; 
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.description-text {
    font-family: var(--font-stack-body);
    font-size: 14px;
    line-height: 1.6;
    color: #cccccc;
}


/* --- Text & Video Split Section --- */
.about-video-section {
    padding-bottom: 100px;
}

.about-video-section .split-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    align-items: start;
}

/* 33% Width Text Column */
.text-column {
    font-family: var(--font-stack-body);
    font-size: 12px;
    line-height: 1.8;
    color: #cccccc;
}

.text-column h3 {
    font-family: var(--font-stack-headers);
    text-transform: uppercase;
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #ffffff;
}

.text-column p {
    margin-bottom: 20px;
}

/* 66% Width Video Column */
.video-column {
    width: 100%;
}

/* Responsive Video Wrapper */
.video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #111;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}


/* --- FOOTER --- */
footer {
    padding: 50px 0;
    background-color: #050505;
    border-top: 1px solid #111;
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.copyright {
    font-size: 0.75rem;
    color: #666;
    margin-top: 20px;
}


/* --- Responsive Design --- */

/* Tablet/Laptop Breakpoint */
@media (max-width: 1024px) {
    .header-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .about-video-section .split-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Mobile Breakpoint */
@media (max-width: 600px) {
    .site-navigation ul {
        gap: 15px;
    }
    .site-navigation a {
        font-size: 0.8rem;
    }

    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-video-section {
        padding-bottom: 60px;
    }
}


/* --- Lightbox Overlay Styles (Unchanged) --- */
.lightbox-overlay {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.95);
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.lightbox-overlay.active {
    display: flex;
}

.lightbox-image {
    max-width: 95%;
    max-height: 90vh;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    object-fit: contain;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 1001;
}

.close-btn:hover { color: var(--color-accent); }

.nav-arrow {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 30px;
    transition: 0.3s ease;
    user-select: none;
    z-index: 1001;
    background-color: rgba(0,0,0,0.3);
}
.nav-arrow:hover { background-color: var(--color-accent); }
.left-arrow { left: 0; }
.right-arrow { right: 0; }

@media (max-width: 600px) {
   .nav-arrow {
       font-size: 24px;
       padding: 10px;
   }
}