:root {
    --bg: white;
    --fg: #666;
}

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

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--fg);
    background: var(--bg);
}

header {
    padding: 2rem;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

a {
    color: var(--fg);
    font-weight: 500;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.site-title a {
    font-size: 1.2rem;
}

.nav-links a {
    margin-left: 2rem;
    font-size: 1rem;
}

main {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    min-height: 60vh;
}

h1 {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

footer {
    text-align: center;
    padding: 2rem;
    font-size: 0.9rem;
    color: var(--fg);
}

.projects-intro {
    margin-bottom: 2rem;
}

.projects-grid {
    columns: 2;
}

.project-card {
    display: inline-block;
    width: 100%;
    margin-bottom: 1rem;
}

.projects-grid img {
    width: 100%;
    display: block;
}

.project-card-title {
    padding: 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
}

.image-grid {
    columns: 2;
    column-gap: 1rem;
}

.image-grid img {
    width: 100%;
    margin-bottom: 1rem;
    display: block;
}

.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 1000;
}

.lightbox-img {
    max-width: 90%;
    max-height: 80%;
    object-fit: contain;
    background: var(--bg);
}

.lightbox-caption {
    padding: 1rem;
    margin-top: 0;
    text-align: center;
    width: 90%;
    max-width: 800px;
    color: var(--fg);
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 2rem;
    color: var(--bg);
    font-size: 3rem;
    cursor: pointer;
}

.featured-image {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 2rem;
}

.slideshow {
    width: 100%;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.slideshow-inner {
    position: relative;
    width: 100%;
    height: 500px;
}

.slideshow-inner img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 1s ease;
}

.slideshow-inner img.active {
    opacity: 1;
}
