/* --- HEADER FONTS --- */
h1, h2, h3, h4, h5, h6 {
    /* A clean, modern sans-serif stack */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-weight: 600; /* Makes it bold, but not overwhelmingly thick */
    color: #222; /* A slightly softer black that is easier on the eyes */
    line-height: 1.2;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}


body {
    color: #222; 
    background-color: white; 
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
}

nav {
    font-family: -apple-system, sans-serif; /* Clean, modern menu */
    margin-bottom: 50px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

nav a {
    margin-right: 20px;
    text-decoration: none;
    color: #666;
    font-weight: bold;
}

nav a:hover { color: #000; }

img.profile-pic {
    width: 300px;
}

/* The Grid Container */
.post-grid {
    display: grid;
    /* This creates a responsive grid automatically */
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px; /* Space between the cards */
    margin-top: 20px;
}

/* Individual Cards */
.post-card {
    border: 1px solid #eee;
    border-radius: 0px;
    overflow: hidden; /* Keeps the image corners rounded */
    transition: transform 0.2s; /* Subtle lift on hover */
}

.post-card:hover {
    transform: translateY(-5px);
}

.post-card a {
    text-decoration: none;
    color: inherit; /* Keeps text the same color as the body */
}

/* The Thumbnail */
.thumb {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover; /* Crops image to fit perfectly without stretching */
    display: block;
}

.post-info {
    padding: 15px;
}

.post-info h3 {
    margin: 5px 0;
    font-size: 1.2em;
}

/* Post Content Styling */
.post-content {
    max-width: 700px; /* Narrower for better reading */
    margin: 0 auto;
}

.post-content h1 {
    font-size: 2.5em;
    margin-bottom: 0.2em;
}

.post-content .description {
    font-style: italic;
    color: #666;
    margin-bottom: 2em;
}

.post-content figure {
    margin: 2em 0;
}

.post-content img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.post-content figcaption {
    font-size: 0.9em;
    color: #777;
    text-align: center;
    margin-top: 10px;
}

blockquote {
    border-left: 3px solid #ccc;
    margin: 2em 0;
    padding-left: 20px;
    font-style: italic;
    color: #444;
}

/* --- LIGHTBOX STYLES --- */

/* Make all blog post images look clickable */
.post-content img {
    cursor: zoom-in;
    transition: opacity 0.2s;
}

.post-content img:hover {
    opacity: 0.9;
}

/* The dark background overlay */
#lightbox {
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85); /* Semi-transparent black */
    display: flex;
    justify-content: center;
    align-items: center;
    
    /* Hidden by default */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    cursor: zoom-out;
}

/* When the lightbox is active, fade it in */
#lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

/* The enlarged image itself */
#lightbox img {
    max-width: 90%;
    max-height: 90vh; /* 90% of the viewport height */
    border-radius: 4px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    object-fit: contain; /* Prevents stretching */
}

.item { margin-bottom: 30px; }
.item h3 { margin-bottom: 5px; }
.date { font-size: 0.8em; color: #999; }


