 :root {
        --vlsat-primary: #0f766e;
        --vlsat-primary-hover: #115e59;
        --vlsat-bg-clean: #fdfdfd;
        --vlsat-text-title: #134e4a;
        --vlsat-text-body: #475569;
    }

    body {
        background-color: var(--vlsat-bg-clean);
        color: var(--vlsat-text-body);
        font-family: 'Inter', sans-serif;
    }

    .memorial-back-link {
        display: inline-flex;
        align-items: center;
        gap: .35rem;
        color: #64748b;
        font-weight: 800;
        text-decoration: none;
    }

    .btn-success {
        background: linear-gradient(135deg, #0f766e 0%, #14b8a6 100%);
        border: 0;
    }

    .memorial-back-link:hover {
        color: var(--vlsat-primary);
    }

    .memorial-hero {
        overflow: hidden;
        border-radius: 2rem;
        background: #fff;
        border: 1px solid #e2e8f0;
        box-shadow: 0 18px 50px rgba(15, 23, 42, 0.06);
    }

    .memorial-hero-top {
        min-height: 120px;
        background: linear-gradient(135deg, #0f766e 0%, #14b8a6 100%);
    }

    .memorial-hero-body {
        padding: 0 2rem 3rem;
    }

    .profile-photo-shell {
        margin-top: -70px;
        display: flex;
        justify-content: center;
    }

    .profile-photo,
    .profile-photo-placeholder {
        width: 160px;
        height: 160px;
        border-radius: 50%;
        border: 8px solid #fff;
        box-shadow: 0 12px 30px rgba(15, 23, 42, .14);
    }

    .profile-photo {
        object-fit: cover;
    }

    .profile-photo-placeholder {
        display: flex;
        align-items: center;
        justify-content: center;
        background: #ecfdf5;
        color: #0f766e;
        font-size: 3rem;
        font-weight: 900;
    }

    .profile-name,
    .section-title {
        color: var(--vlsat-text-title);
    }

    .profile-meta {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: .75rem;
    }

    .meta-chip {
        display: inline-flex;
        align-items: center;
        gap: .45rem;
        padding: .55rem 1rem;
        border-radius: 999px;
        font-weight: 800;
        font-size: .92rem;
        line-height: 1;
    }

    .meta-chip-birth {
        background: #dbeafe;
        border: 1px solid #2563eb;
        color: #0f172a;
    }

    .meta-chip-death {
        background: #fff7ed;
        border: 1px solid #fdba74;
        color: #9a3412;
    }

    .meta-chip-birth .meta-chip-icon {
        color: #0f172a;
    }

    .meta-chip-death .meta-chip-icon {
        color: #ea580c;
    }

    .meta-chip:not(.meta-chip-birth):not(.meta-chip-death) {
        background: #f8fafc;
        border: 1px solid #e2e8f0;
        color: #475569;
    }

    .lead-text {
        font-size: 1.15rem;
        line-height: 1.8;
        color: #475569;
    }

    .section-divider {
        width: 100%;
        max-width: 820px;
        margin: 0 auto;
        opacity: .1;
    }

    .audio-list,
    .video-list {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .audio-card,
    .video-card {
        background: #fff;
        border: 1px solid #e2e8f0;
        border-radius: 1.25rem;
        padding: 1rem;
        box-shadow: 0 12px 30px rgba(15, 23, 42, .05);
    }

    .memorial-video-card {
        padding: 1rem;
        overflow: hidden;
    }

    .video-card-heading {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        margin-bottom: .85rem;
    }

    .video-card-title {
        color: var(--vlsat-primary);
        font-weight: 800;
        margin: 0;
    }

    .memorial-video-frame {
        position: relative;
        width: 100%;
        aspect-ratio: 16 / 9;
        min-height: 420px;
        border-radius: 1rem;
        overflow: hidden;
        background: #000000;
        box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .08);
    }

    .memorial-video-frame .js-youtube-embed {
        position: absolute;
        inset: 0;
        display: block;
        width: 100%;
        height: 100%;
        border: 0;
        border-radius: 0;
        background: #000000;
    }

    .js-youtube-embed {
        border: 0;
        border-radius: 12px;
        overflow: hidden;
        background: #000000;
    }

    .memorial-audio-player {
        display: block;
        width: 100%;
        min-height: 54px;
    }

    .gallery-thumb-btn {
        width: 100%;
        padding: 0;
        border: 0;
        background: transparent;
        cursor: pointer;
    }

    .gallery-thumb {
        display: block;
        width: 100%;
        height: 180px;
        object-fit: cover;
        border-radius: 16px;
        box-shadow: 0 12px 24px rgba(15, 23, 42, .10);
        transition: transform .25s ease;
    }

    .gallery-thumb:hover {
        transform: scale(1.04);
    }

    .homenagens-list .accordion-item {
        border: 1px solid rgba(15, 23, 42, 0.12);
        border-radius: 10px;
        overflow: hidden;
        margin-bottom: 10px;
        background: #fff;
    }

    .homenagens-list .accordion-button {
        background: #fff;
        box-shadow: none;
        padding: 14px 16px;
    }

    .homenagens-list .accordion-button:not(.collapsed) {
        background: #fff;
        color: inherit;
        box-shadow: none;
    }

    .homenagens-list .accordion-body {
        padding: 0 16px 16px;
    }

    .homenagem-card {
        background: #fff;
        border: 1px solid #e2e8f0;
        border-radius: 1rem;
        padding: 1rem;
        margin-bottom: .85rem;
        box-shadow: 0 10px 24px rgba(15, 23, 42, .04);
    }

    .homenagem-card-header {
        display: flex;
        justify-content: space-between;
        gap: 1rem;
        flex-wrap: wrap;
        margin-bottom: .4rem;
    }

    .cerimonia-card {
        max-width: 1120px;
        overflow: hidden;
        border-radius: 1.5rem;
        background: #ffffff;
        border: 1px solid #e2e8f0;
        box-shadow: 0 18px 50px rgba(15, 23, 42, 0.07);
    }

    .cerimonia-info {
        background: #ffffff;
    }

    .cerimonia-badge {
        display: inline-flex;
        align-items: center;
        border-radius: 999px;
        background: #ecfdf5;
        color: #0f766e;
        font-weight: 900;
        font-size: .82rem;
        padding: .48rem .95rem;
        text-transform: uppercase;
        letter-spacing: .07em;
    }

    .cerimonia-line {
        display: flex;
        align-items: flex-start;
        gap: .85rem;
        color: #475569;
        line-height: 1.65;
    }

    .cerimonia-line i {
        color: var(--vlsat-primary);
        font-size: 1.05rem;
        margin-top: .22rem;
    }

    .cerimonia-line strong {
        color: #1e293b;
    }

    .cerimonia-reference {
        background: #f8fafc;
        border-left: 4px solid var(--vlsat-primary);
        border-radius: .75rem;
        padding: .85rem 1rem;
        color: #475569;
        font-size: .95rem;
    }

    .cerimonia-map-btn {
        border: 1px solid var(--vlsat-primary);
        color: var(--vlsat-primary);
        background: #ffffff;
        border-radius: 999px;
        padding: .55rem .95rem;
        font-weight: 800;
        font-size: .9rem;
    }

    .cerimonia-map-btn:hover {
        background: var(--vlsat-primary);
        color: #ffffff;
    }

    .cerimonia-map-wrap,
    .cerimonia-map-empty {
        min-height: 430px;
        background: #e2e8f0;
    }

    .cerimonia-map-wrap iframe {
        display: block;
        min-height: 430px;
    }

    .cerimonia-map-empty {
        color: #64748b;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: .75rem;
    }

    .cerimonia-map-empty i {
        font-size: 2rem;
        color: var(--vlsat-primary);
    }

    .memorial-lightbox {
        position: fixed;
        inset: 0;
        display: none;
        align-items: center;
        justify-content: center;
        padding: 24px;
        background: rgba(0, 0, 0, .88);
        z-index: 9999;
    }

    .memorial-lightbox.is-open {
        display: flex;
    }

    .memorial-lightbox-content {
        position: relative;
        max-width: 1100px;
        width: 100%;
        text-align: center;
    }

    .memorial-lightbox-image {
        max-width: 100%;
        max-height: 80vh;
        width: auto;
        height: auto;
        border-radius: 12px;
    }

    .memorial-lightbox-close,
    .memorial-lightbox-nav {
        border: 0;
        border-radius: 50%;
        background: rgba(255, 255, 255, .95);
        color: #111;
        cursor: pointer;
        z-index: 3;
        box-shadow: 0 6px 16px rgba(0, 0, 0, .25);
    }

    .memorial-lightbox-close {
        position: absolute;
        top: -14px;
        right: -14px;
        width: 46px;
        height: 46px;
        font-size: 1.8rem;
    }

    .memorial-lightbox-nav {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 52px;
        height: 52px;
        font-size: 2rem;
    }

    .memorial-lightbox-prev {
        left: 16px;
    }

    .memorial-lightbox-next {
        right: 16px;
    }

    @media (max-width: 991.98px) {

        .cerimonia-map-wrap,
        .cerimonia-map-wrap iframe,
        .cerimonia-map-empty {
            min-height: 320px;
        }
    }

    @media (max-width: 768px) {

        .profile-photo,
        .profile-photo-placeholder {
            width: 130px;
            height: 130px;
        }

        .profile-photo-shell {
            margin-top: -58px;
        }

        .gallery-thumb {
            height: 140px;
        }

        .memorial-lightbox-nav {
            width: 44px;
            height: 44px;
            font-size: 1.6rem;
        }

        .memorial-lightbox-prev {
            left: 8px;
        }

        .memorial-lightbox-next {
            right: 8px;
        }
    }
    
/*--------------------------------------------------------------
# Correção profissional - Foto principal circular do memorial
# Impede ovalamento e mantém qualquer foto dentro de círculo perfeito.
--------------------------------------------------------------*/
.memorial-hero .profile-photo-shell {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin-top: -72px !important;
    position: relative !important;
    z-index: 5 !important;
}

.memorial-hero .profile-photo,
.memorial-hero .profile-photo-placeholder {
    width: 164px !important;
    height: 164px !important;
    min-width: 164px !important;
    min-height: 164px !important;
    aspect-ratio: 1 / 1 !important;

    display: block !important;
    border-radius: 50% !important;
    overflow: hidden !important;

    border: 8px solid #ffffff !important;
    background: #ffffff !important;
    box-shadow:
        0 16px 36px rgba(15, 23, 42, 0.18),
        0 0 0 1px rgba(255, 255, 255, 0.96) !important;
}

.memorial-hero .profile-photo {
    object-fit: cover !important;
    object-position: center center !important;
}

.memorial-hero .profile-photo-placeholder {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    background: linear-gradient(135deg, #ccfbf1 0%, #99f6e4 100%) !important;
    color: #115e59 !important;

    font-size: 3.1rem !important;
    font-weight: 900 !important;
    line-height: 1 !important;
}

@media (max-width: 767.98px) {
    .memorial-hero .profile-photo-shell {
        margin-top: -60px !important;
    }

    .memorial-hero .profile-photo,
    .memorial-hero .profile-photo-placeholder {
        width: 136px !important;
        height: 136px !important;
        min-width: 136px !important;
        min-height: 136px !important;
        border-width: 7px !important;
    }
}


    @media (max-width: 991.98px) {
        .memorial-video-frame {
            min-height: 340px;
        }
    }

    @media (max-width: 767.98px) {
        .memorial-video-card {
            padding: .75rem;
            border-radius: 1rem;
        }

        .memorial-video-frame {
            min-height: 220px;
            border-radius: .85rem;
        }
    }

    @media (max-width: 575.98px) {
        .memorial-video-frame {
            min-height: 190px;
        }
    }
