/* Obituaries page */

/* Background image for the page */
body {
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.60), rgba(255, 255, 255, 0.60)),
        url("../obituaries/tfb.jpg");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

#article12-o {
    background-color: transparent !important;
    padding-top: 120px !important;
}

/* Obituaries page */
#obituaries-container {
    width: 100%;
    margin-top: 30px;
}

/* One obituary per row */

.obituary-entry {
    display: flex;
    width: 100%;
    padding: 25px 0;
    border-bottom: 1px solid #dddddd;
    gap: 30px;
}

/* Left side: photo + story */

.obituary-left {
    width: 220px;
    flex-shrink: 0;
}

/* Obituary photo */

.obituary-photo {
    display: block;
    width: 200px;
    height: auto;
    object-fit: contain;
}

/* Story below the photo */

.obituary-story {
    margin-top: 15px;
    font-size: 16px;
    line-height: 1.6;
    text-align: left;
}

/* Right side */

.obituary-information {
    flex: 1;
    padding-top: 5px;
}

/* Name */

.obituary-name {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 10px;
}

/* Born / Died */

.obituary-detail {
    font-size: 16px;
    line-height: 1.6;
}

/* Entries without photos */

.obituary-name-only {
    width: 100%;
    font-size: 22px;
    font-weight: 600;
    padding: 10px 0;
}

/* Mobile */

@media (max-width: 767px) {

    .obituary-entry {
        gap: 15px;
        padding: 20px 0;
    }

    .obituary-left {
        width: 130px;
    }

    .obituary-photo {
        width: 120px;
    }

    .obituary-name {
        font-size: 18px;
    }

    .obituary-detail {
        font-size: 14px;
    }

    .obituary-story {
        font-size: 14px;
    }

    .obituary-name-only {
        font-size: 18px;
    }
}
.obituary-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 20px;
    box-sizing: border-box;
}

.obituary-full-image {
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
}

.obituary-close {
    position: absolute;
    top: 20px;
    right: 25px;
    padding: 8px 16px;
    font-size: 16px;
    cursor: pointer;
    border: none;
    border-radius: 5px;
}