/* =========================================
   1. CONFIGURATION (VARIABLES)
   Change fonts, colors, and sizes here.
   ========================================= */
:root {
    /* --- COLORS --- */
    --bg-color: #121212;       /* Deep Black Background */
    --text-color: #C4C4C4;     /* White Text */
    --menu-bg: #121212;        /* Mobile menu background */
    --lightbox-bg: rgba(0, 0, 0, 0.95);

    /* --- FONTS --- */
    --font-main: 'futura-100', sans-serif;
    --font-header: 'futura-100', sans-serif;
    
    /* Weights */
    --fw-light: 400;
    --fw-med: 500;
    --fw-bold: 700;

    /* --- DIMENSIONS --- */
    --menu-width: max-content;       /* Increased to fit name on one line */
    --text-column-width: 500px;
    --gap-std: 28px;
}

/* =========================================
   2. RESET & GLOBAL STYLES
   ========================================= */
* {
    box-sizing: border-box; 
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-main);
    font-weight: var(--fw-light);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden; 
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: var(--font-header);
    font-weight: var(--fw-med);
    margin-top: 50px;
    margin-bottom: 20px;
    line-height: 1.2;
}

a {
    color: var(--text-color);
    text-decoration: none;
    transition: text-decoration 0.2s ease;
}

a:hover {
    /* REMOVED: color change */
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* =========================================
   3. LAYOUT WRAPPER & MENU
   ========================================= */
.wrapper {
    display: flex;
    min-height: 100vh;
}

/* The Sidebar Container */
.menu-container {
    width: var(--menu-width);
    flex-shrink: 0; 
    padding: 20px;
    background-color: var(--bg-color);
}

.site-title {
    font-size: 30px;
    font-weight: var(--fw-light);
    font-family: var(--font-header);
    display: block;
    margin-bottom: 20px;
    margin-top: 0;
    white-space: nowrap; /* Forces name to stay on one line */
}
.site-title:hover {
    text-decoration: none;
}
/* The List (Controlled by JS) */
#dynamic-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

#dynamic-menu li {
    margin-bottom: 10px;
}

#dynamic-menu a {
    font-size: 18px;
    font-weight: var(--fw-light);
    display: block;
    padding: 5px 0;
}

/* Hamburger Button (Hidden on Desktop) */
.hamburger-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 30px;
    cursor: pointer;
    padding: 10px 0;
    margin-bottom: 10px;
}

/* =========================================
   4. MAIN CONTENT AREA
   ========================================= */
.main-content {
    flex-grow: 1;
    padding: 50px 40px 40px 0; 
    max-width: 1200px;
}

/* --- TEXT COLUMNS (Web Style) --- */
/* Keeps text tight (500px) and justified */
.text-column {
    max-width: var(--text-column-width);
    text-align: justify;
    margin-bottom: var(--gap-std);
}

.text-column img {
    width: 100%;
    margin-bottom: 10px;
}

/* Updated Paragraphs: No Indent + Spacing */
.text-column p {
    text-indent: 0;        /* Removed the 1.5em indent */
    margin-top: 0;
    margin-bottom: 1.2em;  /* Added space between paragraphs */
}


/* =========================================
   5. GRID SYSTEM (Manual Desktop / Auto Mobile)
   ========================================= */
.grid-container {
    display: grid;
    gap: 20px;
    margin-top: 50px;
}

/* DESKTOP MANUAL CONTROLS */
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* The Individual Card */
.grid-card {
    text-align: center;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.grid-card img {
    width: 100%;
    height: auto;
    object-fit: cover;
    margin-bottom: 10px;
}

.grid-card p {
    font-size: 18px;
    font-weight: var(--fw-light);
    margin: 0;
}

/* Non-Clickable Card (Static) */
.grid-card-static {
    text-align: center;
    cursor: default;       /* Forces the normal arrow cursor */
    display: flex;
    flex-direction: column;
    align-items: center;
}


.grid-card-static img {
    /* 1. Keep the square/consistent shape */
    aspect-ratio: 1 / 1; 
    
    /* 2. SHRINK the width (Try 60% or 70%) */
    width: 60%; 
    
    /* 3. Center the image horizontally */
    margin: 0 auto 15px auto; 
    
    /* 4. Formatting */
    object-fit: contain; 
    object-position: center;
    display: block; /* Ensures margin: auto works */
}

.grid-card-static p {
    font-size: 18px;
    font-weight: var(--fw-light);
    margin: 0;
}

/* =========================================
   6. VIDEO CONTAINER (Fixed)
   ========================================= */
.video-wrapper {
    position: relative;
    width: 100%;
    max-width: var(--text-column-width); /* Matches 500px exactly */
    aspect-ratio: 16 / 9; /* Modern CSS: Calculates height based on the width */
    margin-bottom: 20px;
    background: #000;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* =========================================
   7. LIGHTBOX / GALLERY (Zoom)
   ========================================= */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: var(--lightbox-bg);
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.lightbox.active {
    display: flex;
}

.lightbox-img {
    max-height: 85vh;
    max-width: 90vw;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.lightbox-img.zoomed {
    transform: scale(1.75);
    cursor: grab;
}

/* Controls (Next/Prev) */
.lightbox-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 40px;
    transform: translateY(-50%);
    pointer-events: none; 
}

.lb-btn {
    pointer-events: auto;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 50px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.lb-btn:hover {
    opacity: 1;
}

.lb-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: var(--text-color);
    font-size: 40px;
    cursor: pointer;
    z-index: 10001;
}

/* =========================================
   8. MOBILE RESPONSIVE
   ========================================= */
@media screen and (max-width: 768px) {
    
    .wrapper {
        flex-direction: column;
    }

    .menu-container {
        width: 100%;
        padding: 10px 20px;
        border-bottom: 1px solid #222;
        position: relative;
    }

    .hamburger-btn {
        display: block; 
    }

    #dynamic-menu {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-in-out;
    }

    #dynamic-menu.expanded {
        max-height: 800px;
        padding-bottom: 20px;
    }

    .main-content {
        padding: 20px;
    }

    .text-column {
        max-width: 100%;
        padding-right: 0;
    }

    /* GRID OVERRIDE: Force 1 column on mobile */
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }

    .video-wrapper {
        max-width: 100%;
    }

    .lb-btn {
        font-size: 30px;
        padding: 20px;
    }
    .lightbox-controls {
        padding: 0 10px;
    }
}