/* ============================================================
   Theme accent — warm gold against the neutral grayscale base
============================================================ */
:root {
    --gold: #b8862c;
    --gold-dark: #93691f;
    --gold-tint: #f3e6c8;
    --gold-ink: #4a3510;
}

/* ============================================================
   Base
============================================================ */
html {
    scroll-behavior: smooth;
    box-sizing: border-box;
}

*, *::before, *::after {
    box-sizing: inherit;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    color: #333333;
    background-color: #fcfcfc;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

/* ============================================================
   Hero
============================================================ */
.hero {
    position: relative;
    background:
        linear-gradient(135deg, rgba(20, 16, 8, 0.94) 0%, rgba(10, 9, 7, 0.97) 100%),
        repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.02) 0px, rgba(255, 255, 255, 0.02) 2px, transparent 2px, transparent 14px);
    color: #ffffff;
    padding: 4rem 1.5rem;
    overflow: hidden;
}

.hero-inner {
    max-width: 1040px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
}

.hero-text {
    max-width: 520px;
}

.hero-eyebrow {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gold);
    margin: 0 0 0.75rem 0;
}

.hero-name {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: 2.75rem;
    line-height: 1.15;
    margin: 0 0 0.75rem 0;
    color: #ffffff;
}

.hero-dates {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.15rem;
    color: var(--gold);
    margin: 0 0 1.25rem 0;
}

.hero-intro {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.75);
    margin: 0 0 2rem 0;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero-btn {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.hero-btn--primary {
    background: var(--gold);
    color: #1a1408;
}

.hero-btn--primary:hover {
    background: var(--gold-tint);
    transform: translateY(-1px);
}

.hero-btn--outline {
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #ffffff;
}

.hero-btn--outline:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.hero-photo-frame {
    position: relative;
    flex-shrink: 0;
    width: 300px;
    height: 440px;
}

.hero-photo-frame::before {
    content: "";
    position: absolute;
    top: 16px;
    left: 16px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--gold);
    border-radius: 6px;
}

.hero-photo {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
}

.hero-share {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.hero-share:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.hero-share svg {
    width: 18px;
    height: 18px;
}

.profile-name {
    font-family: 'Playfair Display', serif;
    font-weight: 500;
    font-size: 2.1rem;
    margin: 0 0 0.6rem 0;
    color: #1a1a1a;
}

.share-btn {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #ffffff;
    border: 1px solid #e2e2e2;
    border-radius: 30px;
    padding: 0.55rem 1.2rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: #555555;
    cursor: pointer;
    white-space: nowrap;
    transition: border-color 0.25s ease, color 0.25s ease;
}

.share-btn svg {
    width: 16px;
    height: 16px;
}

.share-btn:hover {
    border-color: var(--gold);
    color: var(--gold-dark);
}

/* ============================================================
   Sticky Navigation
============================================================ */
.sticky-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid #eaeaea;
}

.mini-profile {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    padding: 0 1rem;
    transition: max-height 0.35s ease, opacity 0.3s ease, padding 0.35s ease;
}

.sticky-header.scrolled .mini-profile {
    max-height: 70px;
    opacity: 1;
    padding: 0.8rem 1rem 0.6rem;
    border-bottom: 1px solid #f0f0f0;
}

.mini-avatar-placeholder {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    object-fit: cover;
    background: #d4d4d4;
    flex-shrink: 0;
}

.mini-name {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    color: #1a1a1a;
    white-space: nowrap;
}

.sticky-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2.25rem;
    padding: 1.1rem 1.5rem;
}

.sticky-nav a {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
    color: #666666;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    transition: color 0.25s ease;
}

.sticky-nav a svg {
    width: 18px;
    height: 18px;
    stroke-width: 1.75;
    flex-shrink: 0;
}

.sticky-nav a:hover,
.sticky-nav a:focus-visible {
    color: var(--gold-dark);
}

/* ============================================================
   Layout Wrapper
============================================================ */
.content-wrapper {
    max-width: 1040px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.poster-banner {
    margin: 3rem 0 0 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.poster-banner img {
    display: block;
    width: 100%;
}

/* ============================================================
   Slideshow (home page banner, Order of Service page)
============================================================ */
.slideshow {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    margin-top: 2rem;
    border-radius: 8px;
    overflow: hidden;
    background: #111111;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.slideshow-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.slideshow-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease;
    cursor: zoom-in;
}

.slideshow-slide.is-active {
    opacity: 1;
    z-index: 1;
}

.slideshow-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    transform: scale(1);
    transition: transform 6s ease;
}

.slideshow-slide.is-active img {
    transform: scale(1.08);
}

.slideshow-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #ffffff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.slideshow-arrow:hover {
    background: rgba(0, 0, 0, 0.6);
    border-color: var(--gold);
}

.slideshow-prev { left: 1rem; }
.slideshow-next { right: 1rem; }

.slideshow-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    gap: 0.5rem;
}

.slideshow-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    padding: 0;
    cursor: pointer;
}

.slideshow-dot.is-active {
    background: var(--gold);
}

@media (max-width: 720px) {
    .slideshow {
        aspect-ratio: 4 / 3;
    }

    .slideshow-arrow {
        width: 36px;
        height: 36px;
        font-size: 1.25rem;
    }
}

/* ============================================================
   Horizontal video scroll (Order of Service page)
============================================================ */
.video-scroll-row {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 0.9rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.video-scroll-row .gallery-item {
    flex: 0 0 280px;
    height: 190px;
    margin-bottom: 0;
    scroll-snap-align: start;
}

.memorial-quote {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 400;
    font-size: 1.15rem;
    color: #555555;
    text-align: center;
    max-width: 560px;
    margin: 3.5rem auto;
    padding: 0;
}

.page-section {
    padding: 3.5rem 0;
    scroll-margin-top: 100px;
}

.upload-box {
    scroll-margin-top: 100px;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.7rem;
    font-weight: 500;
    margin-bottom: 2rem;
    color: #111111;
    position: relative;
    padding-bottom: 0.6rem;
}

.section-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 46px;
    height: 3px;
    border-radius: 2px;
    background: var(--gold);
}

.section-divider {
    border: 0;
    height: 1px;
    background: #eaeaea;
    margin: 0 auto;
    max-width: 1040px;
}

/* ============================================================
   Biography & Drop Cap
============================================================ */
.bio-text p {
    font-size: 1.05rem;
    color: #444444;
    margin: 0 0 1.5rem 0;
    text-align: justify;
}

.drop-cap {
    font-family: 'Playfair Display', serif;
    font-size: 3.6rem;
    font-weight: 500;
    float: left;
    line-height: 0.8;
    margin: 0.1rem 0.5rem 0 0;
    color: var(--gold-dark);
}

/* ============================================================
   Favorites
============================================================ */
.favorites-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.fav-card {
    background: #ffffff;
    border: 1px solid #eaeaea;
    border-left: 3px solid var(--gold);
    border-radius: 8px;
    padding: 1.5rem 1.75rem;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.fav-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(184, 134, 44, 0.15);
}

.fav-title {
    font-family: 'Playfair Display', serif;
    font-weight: 500;
    font-size: 1rem;
    margin: 0 0 0.5rem 0;
    color: var(--gold-ink);
}

.fav-desc {
    margin: 0;
    font-size: 0.92rem;
    color: #666666;
}

/* ============================================================
   Order of Service page
============================================================ */
.order-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.order-card {
    background: #ffffff;
    border: 1px solid #eaeaea;
    border-left: 3px solid var(--gold);
    border-radius: 8px;
    padding: 1.5rem 1.75rem;
}

.order-card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    margin: 0 0 1rem 0;
    color: var(--gold-ink);
}

.order-list {
    margin: 0;
    padding-left: 1.25rem;
    color: #444444;
    font-size: 0.95rem;
    line-height: 1.9;
}

.hymn-card {
    background: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    padding: 1.25rem 1.75rem;
    margin-bottom: 1rem;
}

.hymn-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    margin: 0 0 0.35rem 0;
    color: #1a1a1a;
}

.hymn-number {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gold-dark);
    margin-left: 0.4rem;
}

.hymn-reading {
    margin: 0 0 0.75rem 0;
    font-size: 0.85rem;
    color: #888888;
}

.hymn-card details summary {
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--gold-dark);
    font-weight: 500;
}

.hymn-lyrics {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
}

.hymn-lyrics p {
    font-size: 0.92rem;
    color: #444444;
    margin: 0 0 0.75rem 0;
}

.ministers-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem 1.5rem;
}

.ministers-list li {
    background: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 6px;
    padding: 0.65rem 1rem;
    font-size: 0.9rem;
    color: #333333;
}

@media (max-width: 720px) {
    .order-columns {
        grid-template-columns: 1fr;
    }

    .ministers-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .ministers-list {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   Vertical Timeline
============================================================ */
.timeline-container {
    position: relative;
    border-left: 1px solid #e4e4e4;
    margin-left: 6.5rem;
    padding-left: 2.25rem;
}

.timeline-item {
    position: relative;
    margin-bottom: 2.75rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: calc(-2.25rem - 5px);
    top: 0.35rem;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #fcfcfc;
    border: 2px solid var(--gold);
}

.timeline-date {
    position: absolute;
    left: -6.5rem;
    top: 0;
    width: 5rem;
    text-align: right;
    display: flex;
    flex-direction: column;
}

.timeline-date .year {
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    color: #222222;
}

.timeline-date .day {
    font-size: 0.75rem;
    color: #a0a0a0;
    letter-spacing: 0.5px;
}

.timeline-content h3 {
    margin: 0 0 0.4rem 0;
    font-size: 1.1rem;
    font-weight: 500;
    color: #1a1a1a;
}

.timeline-content p {
    margin: 0;
    color: #666666;
    font-size: 0.95rem;
}

/* ============================================================
   Fluid Masonry Gallery
============================================================ */
.gallery-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1.75rem;
}

.filter-btn {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    color: #777777;
    background: #ffffff;
    border: 1px solid #e2e2e2;
    border-radius: 30px;
    padding: 0.45rem 1.1rem;
    cursor: pointer;
    transition: all 0.25s ease;
}

.filter-btn:hover {
    color: #111111;
    border-color: #c9c9c9;
}

.filter-btn.active {
    background: var(--gold);
    border-color: var(--gold);
    color: #ffffff;
}

.fluid-gallery {
    column-count: 3;
    column-gap: 14px;
}

.gallery-item {
    width: 100%;
    margin-bottom: 14px;
    border-radius: 6px;
    background: linear-gradient(160deg, #eaeaea 0%, #dadada 100%);
    break-inside: avoid;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.015);
}

.gallery-item.is-hidden {
    display: none;
}

.ph-tall { height: 320px; }
.ph-medium { height: 240px; }
.ph-square { height: 190px; }
.ph-wide { height: 160px; }

/* ============================================================
   Memories gallery (photo + video items inside .fluid-gallery)
============================================================ */
.gallery-item.is-photo,
.gallery-item.is-video {
    position: relative;
    overflow: hidden;
    background: #111111;
}

.gallery-item.is-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: zoom-in;
}

.gallery-thumb-video {
    position: relative;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.gallery-thumb-video video,
.gallery-thumb-video img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-icon::before {
    content: "";
    border-style: solid;
    border-width: 9px 0 9px 15px;
    border-color: transparent transparent transparent #ffffff;
    margin-left: 3px;
}

.memory-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0.5rem 0.75rem;
    font-size: 0.78rem;
    color: #ffffff;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0));
}

/* ============================================================
   Tribute Wall & Form
============================================================ */
.tributes-intro {
    color: #777777;
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.tribute-card {
    background: #ffffff;
    border: 1px solid #eaeaea;
    padding: 1.5rem 1.75rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
}

.tribute-card--full {
    margin-bottom: 2rem;
}

/* Flowing masonry cards — tribute preview grid on the Tributes page and the
   home page teaser. Mirrors the .fluid-gallery column layout used for photos. */
.tribute-flow {
    column-count: 3;
    column-gap: 14px;
    margin-bottom: 1.5rem;
}

.tribute-flow-card {
    display: block;
    break-inside: avoid;
    margin-bottom: 14px;
    background: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tribute-flow-card:hover {
    transform: scale(1.015);
    border-color: var(--gold);
    box-shadow: 0 10px 24px rgba(184, 134, 44, 0.18);
}

.tribute-flow-media {
    position: relative;
    background: linear-gradient(160deg, #eaeaea 0%, #dadada 100%);
}

.tribute-flow-media img,
.tribute-flow-media video {
    display: block;
    width: 100%;
    max-height: 260px;
    object-fit: cover;
}

.tribute-flow-more {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.65);
    color: #ffffff;
    font-size: 0.75rem;
    padding: 0.2rem 0.55rem;
    border-radius: 12px;
}

.tribute-flow-body {
    padding: 1rem 1.25rem;
}

.tribute-flow-excerpt {
    margin: 0 0 0.6rem 0;
    color: #3a3a3a;
    font-size: 0.95rem;
    line-height: 1.55;
}

.tribute-flow-excerpt--media {
    color: #888888;
    font-style: italic;
}

.tribute-flow-meta {
    margin: 0;
    font-size: 0.8rem;
    color: #999999;
}

.tribute-flow-card.is-hidden {
    display: none;
}

.tribute-flow-name {
    display: inline-block;
    background: #2a2a2a;
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
    margin-right: 0.35rem;
}

.tribute-flow-relationship {
    display: inline-block;
    background: var(--gold-tint);
    color: var(--gold-ink);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
    margin-right: 0.35rem;
}

.tribute-search-bar {
    margin-bottom: 1.25rem;
}

.tribute-search-bar input {
    width: 100%;
    max-width: 340px;
    padding: 0.65rem 1rem;
    border: 1px solid #dcdcdc;
    border-radius: 30px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: #333333;
}

.tribute-search-bar input:focus {
    outline: none;
    border-color: var(--gold);
}

@media (max-width: 720px) {
    .tribute-flow {
        column-count: 2;
    }
}

@media (max-width: 480px) {
    .tribute-flow {
        column-count: 1;
    }
}

.tribute-body {
    margin: 0 0 0.6rem 0;
    color: #3a3a3a;
    font-size: 0.98rem;
}

.tribute-meta {
    margin: 0;
    font-size: 0.8rem;
    color: #a0a0a0;
}

.upload-box {
    background: #ffffff;
    border: 1px solid #eaeaea;
    padding: 2.25rem;
    border-radius: 8px;
}

.upload-box h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 500;
    margin: 0 0 1.5rem 0;
    color: #1a1a1a;
}

.field-label {
    display: block;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    color: #888888;
    margin-bottom: 0.4rem;
}

.tribute-form input[type="text"],
.tribute-form select,
.tribute-form textarea {
    width: 100%;
    padding: 0.75rem 0.9rem;
    margin-bottom: 1.25rem;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    font-family: inherit;
    font-size: 0.95rem;
    color: #333333;
    resize: vertical;
    background: #ffffff;
}

.tribute-form input[type="text"]:focus,
.tribute-form select:focus,
.tribute-form textarea:focus {
    outline: none;
    border-color: var(--gold);
}

.honeypot {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    margin: 0;
    padding: 0;
    border: 0;
}

.media-type-toggle {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
    color: #555555;
}

.media-type-toggle label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
}

.file-input-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.custom-file-btn {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background: #f2f2f2;
    border-radius: 30px;
    font-size: 0.82rem;
    color: #444444;
    cursor: pointer;
    transition: background 0.25s ease;
}

.custom-file-btn:hover {
    background: #e6e6e6;
}

#media-upload {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

.file-name {
    font-size: 0.82rem;
    color: #a0a0a0;
}

.submit-btn {
    background: var(--gold);
    color: #ffffff;
    border: none;
    padding: 0.75rem 2.1rem;
    border-radius: 30px;
    font-size: 0.9rem;
    letter-spacing: 0.4px;
    cursor: pointer;
    transition: background 0.25s ease;
}

.submit-btn:hover {
    background: var(--gold-dark);
}

/* ============================================================
   Family Tree
============================================================ */
.family-tree {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tree-row {
    display: inline-flex;
    gap: 2.5rem;
    position: relative;
}

.tree-row:not(:first-child) {
    margin-top: 2.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid #e4e4e4;
}

.tree-row:not(:first-child)::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -2.5rem;
    width: 1px;
    height: 2.5rem;
    background: #e4e4e4;
}

.tree-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
}

.tree-avatar-placeholder {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: #d9d9d9;
}

.tree-node--self .tree-avatar-placeholder {
    width: 92px;
    height: 92px;
    border: 3px solid #1f1f1f;
}

.tree-name {
    font-size: 0.82rem;
    color: #555555;
    letter-spacing: 0.3px;
    text-align: center;
}

.tree-node--self .tree-name {
    font-weight: 600;
    color: #1a1a1a;
}

/* ============================================================
   Footer / Service Details
============================================================ */
.service-footer {
    background: #f7f7f7;
    padding: 3.5rem 0 2.5rem 0;
    margin-top: 1rem;
}

.service-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2rem;
    align-items: stretch;
}

.map-embed {
    width: 100%;
    min-height: 260px;
    border: 0;
    border-radius: 8px;
}

.service-details {
    background: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    padding: 1.75rem 2rem;
    display: flex;
    flex-direction: column;
}

.service-details p {
    margin: 0 0 1.25rem 0;
    color: #444444;
    font-size: 0.95rem;
}

.service-details dl {
    margin: 0 0 1.5rem 0;
}

.service-details dt {
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    color: #a0a0a0;
    text-transform: uppercase;
    margin-top: 0.9rem;
}

.service-details dt:first-child {
    margin-top: 0;
}

.service-details dd {
    margin: 0.15rem 0 0 0;
    color: #222222;
    font-size: 0.95rem;
}

.service-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: auto;
}

.service-actions .submit-btn {
    text-decoration: none;
    display: inline-block;
}

.submit-btn--outline {
    background: transparent;
    border: 2px solid var(--gold);
    color: var(--gold-dark);
    padding: calc(0.75rem - 2px) calc(2.1rem - 2px);
}

.submit-btn--outline:hover {
    background: var(--gold-tint);
}

.footer-credit {
    text-align: center;
    font-size: 0.8rem;
    color: #a8a8a8;
    letter-spacing: 0.5px;
    margin-top: 3rem;
}

/* ============================================================
   Scroll Reveal Animations
============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.in-view {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        transition: none;
        opacity: 1;
        transform: none;
    }

    .mini-profile {
        transition: none;
    }
}

/* ============================================================
   Responsive
============================================================ */
@media (max-width: 720px) {
    .hero-inner {
        flex-direction: column-reverse;
        text-align: center;
        gap: 2rem;
    }

    .hero-text {
        max-width: none;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-photo-frame {
        width: 220px;
        height: 320px;
    }

    .timeline-container {
        margin-left: 1rem;
        padding-left: 1.75rem;
    }

    .timeline-date {
        position: static;
        width: auto;
        text-align: left;
        flex-direction: row;
        gap: 0.5rem;
        align-items: baseline;
        margin-bottom: 0.4rem;
    }

    .timeline-item::before {
        left: calc(-1.75rem - 5px);
    }

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

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

    .tree-row {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.5rem;
    }
}

@media (max-width: 600px) {
    .fluid-gallery {
        column-count: 2;
    }

    .sticky-nav {
        gap: 1rem;
        padding: 0.9rem 1rem;
    }

    .sticky-nav a span:last-child {
        display: none;
    }

    .sticky-nav a svg {
        width: 20px;
        height: 20px;
    }

    .hero {
        padding: 3rem 1.25rem;
    }

    .hero-name {
        font-size: 2.1rem;
    }
}

/* ============================================================
   Lightbox (full-size photo viewer)
============================================================ */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 10, 10, 0.92);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}

.lightbox.is-open {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0s linear 0s;
}

.lightbox-image,
.lightbox-video,
.lightbox-iframe {
    display: none;
    max-width: 88vw;
    max-height: 86vh;
    border-radius: 4px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: scale(0.96);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.lightbox-video {
    background: #000000;
}

.lightbox-iframe {
    width: min(88vw, 960px);
    height: min(86vh, 540px);
    border: 0;
}

.lightbox.is-open .lightbox-image.is-visible,
.lightbox.is-open .lightbox-video.is-visible,
.lightbox.is-open .lightbox-iframe.is-visible {
    opacity: 1;
    transform: scale(1);
}

.lightbox-close,
.lightbox-nav {
    position: absolute;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
}

.lightbox-close:hover,
.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.18);
}

.lightbox-close {
    top: 1.25rem;
    right: 1.25rem;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 1.6rem;
    line-height: 1;
}

.lightbox-nav {
    top: 50%;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 1.9rem;
    line-height: 1;
    transform: translateY(-50%);
}

.lightbox-nav:hover {
    transform: translateY(-50%) scale(1.06);
}

.lightbox-prev { left: 1.25rem; }
.lightbox-next { right: 1.25rem; }

.lightbox-nav.is-hidden-nav {
    display: none;
}

@media (max-width: 600px) {
    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }

    .lightbox-close {
        width: 36px;
        height: 36px;
        top: 0.75rem;
        right: 0.75rem;
    }

    .lightbox-prev { left: 0.5rem; }
    .lightbox-next { right: 0.5rem; }
}

/* ============================================================
   Home page teasers ("view all" links)
============================================================ */
.view-all-link {
    display: inline-block;
    margin-top: 1.25rem;
    font-size: 0.9rem;
    color: #555555;
    text-decoration: none;
    border-bottom: 1px solid #d5d5d5;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.view-all-link:hover {
    color: var(--gold-dark);
    border-color: var(--gold);
}
