/* GENERAL */
body {
    font-family: "Verdana", Arial, sans-serif; /* clearer font */
    font-size: 1.25rem;        /* larger base font */
    line-height: 1.9;          /* extra spacing for readability */
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #fcefcf, #f4e1d2); /* soft autumn gradient */
    color: #333;
}

/* GENERAL CONTENT CONTAINERS */
section {
    width: 80%;   /* narrower columns for easier reading */
    max-width: 2400px;
    min-width: 300px;
    margin: 1rem auto;
    padding: 1.5rem;
    background: rgba(255,255,255,0.95);
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

/* HEADER / NAV */
header {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
    text-align: center;
    padding: 1.5rem 1rem;
}

header h1 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    color: #5a2e00;
}

header nav a {
    margin: 0 1rem;
    font-weight: bold;
    font-size: 1.3rem;
    color: #7a3e00;
    text-decoration: underline;
}

header nav a:hover {
    color: #cc6600;
}

/* OBITUARY SECTION */
.obituary {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
}

.obituary img {
    width: 200px;
    height: auto;
    margin-right: 2rem;
    border-radius: 10px;
    flex-shrink: 0;
}

.obit-text {
    flex: 1;
}

/* VIDEO SECTION */
.video-container {
    display: inline-flex;
    flex-direction: column; /* stack video and button */
    align-items: flex-start; /* button left-aligned to video */
    gap: 0.5rem;
}

.video-player {
    max-width: 90%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.download-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: #cc6600;
    color: white;
    border-radius: 8px;
    font-size: 1.2rem;
    text-decoration: none;
}

.download-btn:hover {
    background: #e6801a;
}

/* LINKS SECTION */
.links-section {
    text-align: center;
}

.links-section .external-link {
    display: inline-block;
    margin: 0.5rem 1rem;
    font-size: 1.3rem;
    font-weight: bold;
    background: #ffd8a8;
    color: #5a2e00;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    text-decoration: none;
}

.links-section .external-link:hover {
    background: #ffc070;
}

/* GALLERY */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    justify-items: center;
}

.gallery-grid img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
    cursor: pointer;
    transition: transform 0.2s;
}

.gallery-grid img:hover {
    transform: scale(1.05);
}

/* LIGHTBOX */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.85);
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80%;
    border-radius: 10px;
}

.close-lightbox {
    position: absolute;
    top: 30px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

/* RESPONSIVE */
@media(max-width: 600px) {
    .obituary {
        flex-direction: column;
        align-items: center;
    }

    .obituary img {
        margin: 0 0 1rem 0;
        width: 150px;
    }

    header h1 {
        font-size: 1.8rem;
    }

    header nav a {
        font-size: 1.1rem;
    }

    .links-section .external-link,
    .download-btn {
        font-size: 1.1rem;
        padding: 0.6rem 1.2rem;
    }
}

.video-heading {
    text-align: center;
    font-size: 1.8rem;
    color: #5a2e00;
    margin-top: 0;
    margin-bottom: 1rem;
}

