/* ==========================================================================
   PHASE 1: GLOBAL RESETS & FONTS
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #333333;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ==========================================================================
   PHASE 2: MASTER LAYOUT WRAPPERS
   ========================================================================== */
.content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 20px;
}

.year-log-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* --- JOURNAL IMMERSIVE LAYOUT ENGINE (NEW) --- */



/* ==========================================================================
   PHASE 3: GLOBAL ELEMENTS (HEADER, NAV, FOOTER)
   ========================================================================== */
.header {
    background-color: #f5f5f5; /* Your favorite light grey header */
    padding: 30px 20px;
    text-align: center;
    border-bottom: 1px solid #eaeaea;
}

.header h1 {
    font-size: 30px;
    color: #222222;
    letter-spacing: 1px;
}

/* Navigation Bar */
.navbar {
    background-color: #ffffff;
    border-bottom: 1px solid #eaeaea;
    padding: 10px 0;
}

.nav-links {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: #555555;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-links a:hover, 
.nav-links a.active {
    color: #000000;
}

/* Dropdown Content Setup */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #ffffff;
    min-width: 180px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.1);
    z-index: 1;
    list-style: none;
    padding: 10px 0;
    border: 1px solid #eaeaea;
    margin-top: 0px;
    padding-top: 10px;
    padding-bottom: 10px;
}

.dropdown-content li a {
    color: #666666;
    padding: 8px 20px;
    display: block;
}

.dropdown-content li a:hover {
    background-color: #f9f9f9;
    color: #000000;
}

.dropdown:hover .dropdown-content {
    display: block; /* Shows menu on hover! */
}

/* Universal Site Footer */
.site-footer {
    background-color: #f5f5f5; /* Matches your light grey header color exactly */
    padding: 20px 10px;
    text-align: center;
    border-top: 1px solid #eaeaea;
    font-size: 14px;
    color: #777777;
    width: 100%;
    margin-top: auto; /* 📐 Magic Flexbox command that pushes footer to the absolute bottom */
}

.site-footer p {
    margin: 5px 0;
}

/* ==========================================================================
   PHASE 4: COMPONENT GRID LAYOUTS (REUSABLE CARDS)
   ========================================================================== */

/* Page Component: Text Content & Bio Layout */
.about-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
    text-align: center;
}

   .log-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    width: 100%;
    margin-top: 30px;
}

.grid-item {
    background: #fdfdfd;
    border: 1px solid #eaeaea;
    padding: 20px;
    border-radius: 4px;
    text-align: center; 
}

/* Featured Homepage Image Styling */
.featured-image-container {
    width: 100%;
    max-width: 800px; /* Limits the max size so it doesn't blow up too big on giant screens */
    margin: 15px auto; /* Centers the container box and adds breathing room top and bottom */
    padding: 0 10px;
}

/* 📱 DEFAULT MOBILE VIEW (Safe, fluid size for smaller phone screens) */
.homepage-feature-img {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 55vh; 
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    display: block;
    margin: 0 auto;
}

/* 💻 LARGE DESKTOP SENSOR (Triggers ONLY when screens are wider than a tablet) */
@media (min-width: 1024px) {
    .homepage-feature-img {
        max-width: 1000px;  /* 👈 Expands the photo's max-width for big screens */
        max-height: 85vh;   /* 👈 Lets the height grow up to 85% of your screen height */
        object-fit: contain;  /* 👈 Keeps your crop beautifully crisp at large scales */
        margin-top: 20px;
    }
}

/* Thumbnail Images Inside Grid Cards */
.grid-card-img {
    width: 100%;
    height: 180px;       /* Sets a uniform height for all your thumbnails so cards align evenly */
    object-fit: cover;    /* ✂️ Crops the thumbnail perfectly to fill the width without stretching */
    border-radius: 4px;   /* Matches the clean modern edge theme */
    margin-bottom: 15px;  /* Pushes the title text down slightly to give the photo breathing room */
    display: block;
}

/* ==========================================================================
   PARK LIST STYLING (Compact Alphabetical Index Layout)
   ========================================================================== */
.park-list-split {
    display: flex;
    flex-direction: column; /* Stacks to a single column on mobile devices */
    gap: 0px 50px;          /* Adds a clean 50px horizontal gap between the left and right column */
    width: 100%;
    margin-top: 30px;
}

.park-column {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Single Line Treatment with No Extra Spacing */
.park-list-item {
    padding: 2px 0;         /* Microscopic cushion to prevent text from overlapping vertically */
    line-height: 1.4;       /* Tightens the block line spacing */
}

.park-list-item a {
    color: #333333;
    text-decoration: none;
    font-weight: 500;
    display: block;         /* Ensures the whole text block behaves predictably */
}

.park-list-item a:hover {
    color: #000000;
    text-decoration: underline;
}

/* 💻 LARGE DESKTOP SENSOR: Triggers the 2-column snap on screens */
@media (min-width: 768px) {
    .park-list-split {
        flex-direction: row; 
    }
}

/* 💻 LARGE DESKTOP SENSOR: Snaps rows side-by-side into 2 columns on screens */
@media (min-width: 768px) {
    .park-list-split {
        flex-direction: row; /* Triggers the 2-column layout on tablets and laptops */
    }
}

/* Regional Page Hero Banner Custom Styles */
.regional-hero-container {
    width: 100%;
    max-width: 800px;
    margin: 15px auto 30px auto; /* Tights up to the text above, adds breathing room to the list below */
    padding: 0;
}

.regional-hero-img {
    width: 100%;
    height: auto;
    max-height: 45vh;    /* Caps the vertical height perfectly so it never overwhelms your laptop monitor */
    object-fit: contain;  /* 🎯 Guarantees your fine-art camera framing is never cropped */
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    display: block;
    margin: 0 auto;
}

/* ==========================================================================
   INDIVIDUAL PARK JOURNAL STYLES
   ========================================================================== */
.journal-entry {
    width: 100%;
    max-width: 700px; /* Restricts reading length so lines of text remain highly legible */
    margin: 0 auto;
}

.journal-meta {
    font-size: 14px;
    color: #888888;
    margin-bottom: 30px;
    letter-spacing: 0.5px;
}

.journal-text {
    font-size: 16px;
    line-height: 1.7;
    color: #333333;
    margin-bottom: 25px; /* Adds breathing space before the next photo or block */
    text-align: justify; /* Aligns text cleanly like a print essay or magazine page */
}

/* Inline Photo Display Containers */
.journal-photo-container {
    width: 100%;
    margin: 35px 0; /* Pushes text away above and below the image block */
    text-align: center;
}

.journal-inline-img {
    width: 100%;
    height: auto;
    max-height: 75vh;   /* Automatically prevents vertical images from bleeding off desktop monitors */
    object-fit: contain; /* Guarantees no cropping occurs on your camera frames */
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

.photo-caption {
    display: block;
    font-size: 13px;
    color: #777777;
    font-style: italic;
    margin-top: 10px; /* Pins the caption neatly right under the photo edge */
}

.italic-text {
    font-style: italic;
}

/* ==========================================================================
   JOURNAL MINI GALLERY GRIDS (Multi-Column Thumbnail Layout)
   ========================================================================== */
.journal-gallery-grid {
    display: grid;
    /* 📐 MAGIC LINE: Automatically fits as many 150px thumbnails as possible in a row */
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px; /* Adds a tight, neat 15-pixel gallery gutter space between edges */
    width: 100%;
    margin: 25px 0 40px 0; /* Clear boundary room top and bottom */
}

.gallery-thumb-item {
    background: #fcfcfc;
    border: 1px solid #eaeaea;
    padding: 4px; /* Creates a clean, classic Polaroid-style camera frame look */
    border-radius: 4px;
}

.gallery-img {
    width: 100%;
    height: 120px;       /* Forces thumbnails to clip evenly regardless of original dimensions */
    object-fit: cover;    /* ✂️ Crops previews uniformly so your row entries stay balanced */
    border-radius: 2px;
    display: block;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Elegant Hover Feedback */
.gallery-img:hover {
    opacity: 0.85;
    transform: scale(1.02); /* Softly lifts the photo forward under the mouse cursor */
}

/* ==========================================================================
   PHASE 5: TARGETED HELPERS & OVERRIDES
   ========================================================================== */
.center-text {
    text-align: center !important;
}
/* Tightens the whitespace gap below the navigation bar strictly on the homepage */
.content-wrapper .featured-image-container {
    margin-top: 0 !important; /* Forces the container to slide up closer to the nav */
    padding-top: 0 !important;     /* Eliminates any interior top cushions */
}