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

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    line-height: 1.8;
    color: #333;
    background: linear-gradient(to bottom, #f5f5f5 0%, #ffffff 100%);
    padding: 20px;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Navigation */
.site-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.site-nav a {
    text-decoration: none;
    color: #7f8c8d;
    font-size: 1.1em;
    padding: 8px 16px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.site-nav a:hover {
    color: #2c3e50;
    background: #f5f5f5;
}

.site-nav a.active {
    color: #2c3e50;
    font-weight: 600;
    background: #f5f5f5;
}

header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #e0e0e0;
}

h1 {
    font-size: 2.5em;
    font-weight: normal;
    color: #2c3e50;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.subtitle {
    font-size: 1.1em;
    color: #7f8c8d;
    font-style: italic;
}

.photo-gallery {
    margin: 40px 0;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.gallery-photo {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-photo:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.story {
    margin-top: 40px;
}

h2 {
    font-size: 2em;
    font-weight: normal;
    color: #2c3e50;
    margin-bottom: 30px;
    text-align: center;
    letter-spacing: 1px;
}

p {
    margin-bottom: 20px;
    font-size: 1.05em;
    text-align: justify;
    text-indent: 2em;
}

p:first-of-type {
    text-indent: 0;
}

em {
    font-style: italic;
}

.signature {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
    text-align: center;
}

.signature p {
    font-size: 1em;
    color: #7f8c8d;
    text-indent: 0;
    text-align: center;
}

/* Bio page styles */
.bio-content {
    margin-top: 30px;
}

.portrait-section {
    text-align: center;
    margin-bottom: 40px;
}

.portrait-photo {
    max-width: 400px;
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.obituary {
    margin-top: 30px;
}

.lead {
    font-size: 1.15em;
    font-weight: 500;
    color: #2c3e50;
}

.service-info {
    margin-top: 40px;
    padding: 25px;
    background: #f8f9fa;
    border-left: 4px solid #2c3e50;
    border-radius: 4px;
}

.service-info h3 {
    font-size: 1.3em;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: normal;
    text-align: left;
}

.service-info p {
    text-indent: 0;
    margin-bottom: 0;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 20px;
    }

    h1 {
        font-size: 2em;
    }

    h2 {
        font-size: 1.5em;
    }

    p {
        font-size: 1em;
    }

    .photo-grid {
        grid-template-columns: 1fr;
    }

    .site-nav {
        flex-direction: column;
        gap: 10px;
    }

    .site-nav a {
        text-align: center;
    }

    .portrait-photo {
        max-width: 100%;
    }
}

/* Print styles */
@media print {
    body {
        background: white;
    }

    .container {
        box-shadow: none;
        max-width: 100%;
    }

    .gallery-photo {
        page-break-inside: avoid;
    }
}
