/* --- GLOBAL STYLES --- */
* { box-sizing: border-box; }

body {
    font-family: 'Courier New', Courier, monospace;
    margin: 0;
    background: #f4f4f2;
    color: #222;
    line-height: 1.5;
}

.container { 
    max-width: 800px; /* Slightly wider for story pages */
    margin: auto; 
    padding: 20px; 
}

/* --- NAVBAR CORE LAYOUT --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background: #2a5a8a; /* CVA Blue */
    border-bottom: 4px solid #6b8e23; /* Olive Green */
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 70px; 
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.brand-toggle-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-divider {
    color: rgba(255, 255, 255, 0.3);
    font-size: 1.4rem;
    font-weight: 300;
}

.nav-logo, .trc-logo-inactive, .cv-logo-inactive {
    height: 35px;
    width: auto;
    transition: all 0.3s ease;
}

.brand-active .nav-logo {
    border-bottom: 2px solid #D19A66; /* Gold active indicator */
    padding-bottom: 4px;
    opacity: 1;
}

.trc-logo-inactive, .cv-logo-inactive {
    opacity: 0.5;
}

.trc-logo-inactive:hover {
    opacity: 1;
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 20px;
}

.nav-links li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

/* Mobile Hamburger */
.menu-toggle {
    display: none; 
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: white;
    border-radius: 2px;
}

/* --- STORY PAGE COMPONENTS --- */
.section-title { 
    padding: 12px 10px; 
    margin: 10px 0 20px; 
    font-size: 1.1rem; 
    letter-spacing: 2px; 
    text-transform: uppercase; 
    border-left: 10px solid #2a5a8a; 
    background: #f4f4f2;
}

/* Sticky version for index page timeline */
.sticky-title {
    position: sticky;
    top: 70px;
    z-index: 10;
}

.story-photo, .featured-photo {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin: 20px 0 10px;
}

.photo-caption {
    font-size: 0.9rem;
    color: #555;
    font-style: italic;
    margin-bottom: 35px;
    display: block;
    text-align: center;
}

.album-button {
    display: inline-block;
    background: #2a5a8a;
    color: white;
    padding: 20px 40px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 8px;
    font-size: 1.2rem;
    margin: 20px 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.album-button:hover { background: #1e4165; }

.back-link-container { 
    text-align: center; 
    margin: 40px 0; 
    padding-top: 20px; 
    border-top: 1px solid #ddd; 
}

.back-link { 
    display: inline-block;
    color: #2a5a8a; 
    text-decoration: underline; 
    font-weight: bold; 
}

/* --- COLLAGE HERO SECTION (Index Only) --- */
.hero-collage {
    position: relative;
    width: 100%;
    height: 50vh;
    min-height: 400px;
    background: #d1d1cf;
    overflow: hidden;
    border-bottom: 5px solid #6b8e23;
    display: flex;
    align-items: center;
    justify-content: center;
}

.collage-photo {
    position: absolute;
    box-shadow: 2px 4px 15px rgba(0,0,0,0.4);
    border: 5px solid #fff;
    transition: transform 0.3s ease, z-index 0.3s;
    object-fit: cover;
}

.collage-photo:hover {
    transform: scale(1.1) rotate(0deg) !important;
    z-index: 200;
    box-shadow: 5px 10px 25px rgba(0,0,0,0.5);
}

/* Desktop Photo Placements */
.img-aniak { width: 300px; height: 210px; top: -10px; left: -30px; transform: rotate(-5deg); z-index: 10; }
.img-dinner { width: 260px; height: 180px; bottom: 15px; left: 5%; transform: rotate(3deg); z-index: 15; }
.img-kings { width: 220px; height: 290px; top: 15%; left: 18%; transform: rotate(-2deg); z-index: 8; }
.img-peacelove { width: 320px; height: 220px; top: -20px; right: -20px; transform: rotate(4deg); z-index: 12; }
.img-soccer { width: 280px; height: 190px; bottom: 20px; right: 2%; transform: rotate(-4deg); z-index: 14; }
.img-summer06 { width: 240px; height: 320px; top: 10%; right: 20%; transform: rotate(-3deg); z-index: 7; object-fit: contain; background: #fff; }
.img-lisadavid { width: 340px; height: 240px; bottom: -30px; left: 35%; transform: rotate(1deg); z-index: 9; }
.img-outhouse { width: 200px; height: 270px; top: 5%; right: 40%; transform: rotate(6deg); z-index: 5; }

.logo-overlay {
    position: relative;
    z-index: 100; 
    max-width: 600px;
    width: 85%;
    pointer-events: none; 
    filter: drop-shadow(0 0 15px rgba(0,0,0,0.8));
}

/* --- TIMELINE STYLES (Index Only) --- */
.timeline { position: relative; padding-left: 28px; }
.timeline::before { content: ""; position: absolute; left: 10px; top: 0; bottom: 0; width: 2px; background: #c9c9c9; }
.timeline-item { position: relative; margin-bottom: 12px; }
.timeline-item::before { content: ""; position: absolute; left: -22px; top: 20px; width: 12px; height: 12px; background: #2a5a8a; border-radius: 50%; }
.timeline a { display: block; background: white; text-decoration: none; color: #2a5a8a; padding: 16px 18px; font-weight: bold; border: 1px solid #ddd; border-radius: 8px; box-shadow: 0 2px 4px rgba(0,0,0,0.05); transition: all 0.2s ease; }
.timeline a:hover { background: #eef2f6; color: #d9534f; transform: translateX(5px); }

/* --- RESPONSIVE / MEDIA QUERIES --- */
@media (max-width: 768px) {
    .menu-toggle { display: flex; }
    .nav-links {
        display: none; 
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: #2a5a8a;
        flex-direction: column;
        padding: 20px;
        text-align: center;
        border-bottom: 4px solid #6b8e23;
    }
    .nav-links.active { display: flex; }
}

/* MOBILE ADJUSTMENTS (Optimized for Pixel 10 Pro) */
@media(max-width: 600px) {
    .hero-collage { 
        min-height: 420px; 
    }

    /* CRITICAL: Explicitly hide the 3 images you want to remove */
    .img-kings, 
    .img-lisadavid, 
    .img-dinner { 
        display: none !important; 
    } 

    .logo-overlay { 
        width: 90%; 
        z-index: 101; 
    }

    /* Reset positions for the remaining 5 images */
    .img-aniak { 
        width: 180px; 
        height: auto; 
        top: 2%; 
        left: -20px; 
    }

    .img-peacelove { 
        width: 180px; 
        height: auto; 
        top: 2%; 
        right: -20px; 
    }

    .img-summer06 { 
        display: block !important;
        width: 200px; 
        height: 260px; 
        top: 20%; 
        left: 50%; 
        transform: translateX(-50%) rotate(-2deg); 
        z-index: 5;
    }

    .section-title.sticky-title { 
        top: 60px; 
    }
}
/* Background placeholder while images load */
.gallery-item {
    background-color: #222; /* Dark grey placeholder */
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 4px;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.gallery-item:hover {
    transform: scale(1.03);
    filter: brightness(1.1);
}

/* Lightbox Close Button - Positioned for easy clicking on mobile */
.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: white;
    font-size: 60px; /* Make it nice and big for retirement-friendly clicking! */
    font-weight: bold;
    cursor: pointer;
    z-index: 100001; /* Must be HIGHER than the .modal and .modal-content */
    user-select: none;
}
/* 1. The Background Layer */
.modal {
    display: none; /* JS will change this to 'block' */
    position: fixed;
    z-index: 99999; /* Higher than EVERYTHING else on the page */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9); /* Solid dark background */
}

/* 2. The Actual Image */
.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Centers the image perfectly */
    max-width: 90%;
    max-height: 85vh;
    border: 3px solid white; /* Helpful for debugging to see if it's there */
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

/* 3. The Close Button */
.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: white;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    z-index: 100000;
}
/* Next & previous buttons */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 40px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    z-index: 100002; /* Sit above the image */
    text-decoration: none;
}

/* Position the "next button" to the right */
.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev {
    left: 0;
}

/* On hover, add a black background color with a little bit see-through */
.prev:hover, .next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}