﻿@import url('https://fonts.googleapis.com/css2?family=Noto+Serif:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400;1,500&display=swap');

/* =====================================================
   1. CSS VARIABLES
   ===================================================== */
:root {
    --card-height-x: 370px;
    --card-gap: 20px;
}

/* =====================================================
   2. CONTAINER - CSS COLUMNS LAYOUT (umrli.rs style)
   ===================================================== */
#obituaryReslts {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    column-count: 2;
    column-gap: var(--card-gap);
}

/* =====================================================
   3. BASE CARD STYLES
   ===================================================== */
.obituary-card {
    page-break-inside: avoid;
    break-inside: avoid;
    position: relative;
    box-sizing: border-box;
    z-index: 1;
}

    .obituary-card:hover {
        z-index: 10;
    }

/* Link preko cele kartice */
.obituary-link {
    display: block;
    height: 100%;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease;
}

    .obituary-link:hover {
        transform: translateY(-2px);
    }

        .obituary-link:hover .obituary-border {
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        }

/* Crni okvir i osnovni dizajn */
.obituary-border {
    border: 3px solid #000;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-family: 'Noto Serif', Georgia, serif;
    transition: box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}

/* =====================================================
   4. BASE ELEMENT STYLES
   ===================================================== */

/* Verski simbol na vrhu, centriran */
.obituary-religion-symbol {
    text-align: center;
    flex-shrink: 0;
}

    .obituary-religion-symbol img {
        object-fit: contain;
    }

/* TopText poravnat na levo */
.obituary-top-text {
    font-family: 'Noto Serif', Georgia, serif;
    text-align: left;
    font-weight: 400;
    color: #333;
    flex-shrink: 0;
}

/* Slika u sredini */
.obituary-photo {
    text-align: center;
    flex-shrink: 0;
}

    .obituary-photo img {
        height: auto;
    }

/* Datumi rođenja i smrti u sredini */
.obituary-dates {
    font-family: 'Noto Serif', Georgia, serif;
    text-align: center;
    font-weight: 600;
    color: #000;
    letter-spacing: 1px;
    flex-shrink: 0;
}

/* Ime, nadimak, prezime u sredini */
.obituary-name {
    font-family: 'Noto Serif', Georgia, serif;
    text-align: center;
    font-weight: 700;
    text-transform: uppercase;
    color: #000;
    line-height: 1.3;
    flex-shrink: 0;
}

/* Father name */
.obituary-father-name {
    text-transform: none;
}

.obituary-nickname {
    font-family: 'Noto Serif', Georgia, serif;
    font-weight: 400;
    font-style: italic;
    text-transform: none;
    letter-spacing: 0.5px;
}

/* Devojačko prezime sitnim slovima u sredini */
.obituary-maiden-name {
    font-family: 'Noto Serif', Georgia, serif;
    text-align: center;
    color: #666;
    font-weight: 300;
    font-style: italic;
    flex-shrink: 0;
}

/* Titula u sredini */
.obituary-title {
    font-family: 'Noto Serif', Georgia, serif;
    text-align: center;
    font-weight: 500;
    color: #333;
    font-style: italic;
    flex-shrink: 0;
}

/* Tekst poravnat na levo */
.obituary-text {
    font-family: 'Noto Serif', Georgia, serif;
    text-align: left;
    font-weight: 400;
    color: #000;
    flex-shrink: 1;
    overflow: hidden;
}

/* Linija razdvajanja */
.obituary-divider {
    border: none;
    border-top: 2px solid #000;
    flex-shrink: 0;
}

/* Ožalošćeni */
.obituary-mourners {
    text-align: left;
    flex-shrink: 0;
    overflow: hidden;
}

    .obituary-mourners strong {
        font-family: 'Noto Serif', Georgia, serif;
        display: block;
        font-weight: 700;
        color: #000;
        letter-spacing: 0.5px;
    }

.obituary-mourners-content {
    font-family: 'Noto Serif', Georgia, serif;
    font-weight: 400;
    color: #333;
}

/* =====================================================
   5. SHARE PANEL
   ===================================================== */
.obituary-share-panel {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 20;
    pointer-events: none;
}

.obituary-card:hover .obituary-share-panel,
.obituary-card:focus-within .obituary-share-panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    border: 1.5px solid #333;
    background-color: #fff;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

    .share-btn:hover {
        background-color: #000;
        color: #fff;
        border-color: #000;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    }

    .share-btn svg {
        width: 20px;
        height: 20px;
        transition: transform 0.2s ease;
    }

    .share-btn:hover svg {
        transform: scale(1.1);
    }

    /* Tooltip za sve dugmiće */
    .share-btn::before {
        content: attr(title);
        position: absolute;
        right: 50px;
        background-color: #000;
        color: #fff;
        padding: 6px 12px;
        border-radius: 4px;
        font-size: 12px;
        white-space: nowrap;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s ease;
        font-family: 'Noto Serif', Georgia, serif;
    }

    .share-btn:hover::before {
        opacity: 1;
    }

    .share-btn::after {
        content: '';
        position: absolute;
        right: 42px;
        border: 5px solid transparent;
        border-left-color: #000;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s ease;
    }

    .share-btn:hover::after {
        opacity: 1;
    }

.share-copy.copied {
    background-color: #000;
    color: #fff;
    border-color: #000;
}

    .share-copy.copied::before {
        content: 'Kopirano!';
        opacity: 1;
        animation: fadeMessage 2s ease;
    }

@keyframes fadeMessage {
    0%, 100% {
        opacity: 0;
    }

    10%, 90% {
        opacity: 1;
    }
}

/* =====================================================
   6. UTILITIES
   ===================================================== */

/* Loading indicator */
#loadingIndicator {
    font-family: 'Noto Serif', Georgia, serif;
    text-align: center;
    padding: 20px;
    display: none;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #000;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Screen reader only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* =====================================================
   7. BIG SCREEN - CARD SIZES (default)
   ===================================================== */

/* -------------------------------------------------
   BIG SCREEN - QUARTER SIZE (1/4)
   ------------------------------------------------- */
.obituary-card[data-size="quarter"] {
    display: inline-block;
    width: 100%;
    height: var(--card-height-x);
    margin-bottom: var(--card-gap);
}

    .obituary-card[data-size="quarter"] .obituary-border {
        height: 100%;
        overflow: hidden;
        padding: 9px;
    }

    .obituary-card[data-size="quarter"] .obituary-religion-symbol {
        margin-bottom: 1px;
        min-height: 32px;
    }

        .obituary-card[data-size="quarter"] .obituary-religion-symbol img {
            width: 30px;
            height: 30px;
        }

    .obituary-card[data-size="quarter"] .obituary-top-text {
        font-size: 14px;
        margin-bottom: 2px;
        line-height: 1.2;
    }

    .obituary-card[data-size="quarter"] .obituary-photo img {
        max-width: 80px;
        max-height: 80px;
    }

    .obituary-card[data-size="quarter"] .obituary-photo {
        margin-bottom: 1px;
        min-height: 82px;
    }

    .obituary-card[data-size="quarter"] .obituary-dates {
        font-size: 12px;
        margin-bottom: -4px;
    }

    .obituary-card[data-size="quarter"] .obituary-name {
        font-size: 20px;
        letter-spacing: 0.5px;
        margin-bottom: 2px;
    }

    .obituary-card[data-size="quarter"] .obituary-nickname {
        font-size: 14px;
    }

    .obituary-card[data-size="quarter"] .obituary-maiden-name {
        font-size: 9px;
        margin-bottom: 4px;
    }

    .obituary-card[data-size="quarter"] .obituary-title {
        font-size: 14px;
        margin-bottom: 2px;
    }

    .obituary-card[data-size="quarter"] .obituary-text {
        font-size: 14px;
        line-height: 1.3;
        margin: 8px 0;
    }

    .obituary-card[data-size="quarter"] .obituary-divider {
        margin: 4px 0;
    }

    .obituary-card[data-size="quarter"] .obituary-mourners strong {
        font-size: 11px;
        margin-bottom: 2px;
    }

    .obituary-card[data-size="quarter"] .obituary-mourners-content {
        font-size: 14px;
        line-height: 1.4;
        text-align: end;
    }

/* -------------------------------------------------
   BIG SCREEN - HALF SIZE (1/2)
   ------------------------------------------------- */
.obituary-card[data-size="half"] {
    display: inline-block;
    width: 100%;
    height: calc(var(--card-height-x) * 2);
    margin-bottom: var(--card-gap);
}

    .obituary-card[data-size="half"] .obituary-border {
        height: 100%;
        overflow: hidden;
        padding: 18px;
    }

    .obituary-card[data-size="half"] .obituary-religion-symbol {
        margin-bottom: 10px;
        min-height: 50px;
    }

        .obituary-card[data-size="half"] .obituary-religion-symbol img {
            width: 40px;
            height: 40px;
        }

    .obituary-card[data-size="half"] .obituary-top-text {
        font-size: 16px;
        margin-bottom: 10px;
        line-height: 1.5;
    }

    .obituary-card[data-size="half"] .obituary-photo img {
        max-width: 140px;
        max-height: 140px;
    }

    .obituary-card[data-size="half"] .obituary-photo {
        margin-bottom: 10px;
        min-height: 150px;
    }

    .obituary-card[data-size="half"] .obituary-dates {
        font-size: 15px;
        margin-bottom: 8px;
    }

    .obituary-card[data-size="half"] .obituary-name {
        font-size: 24px;
        letter-spacing: 1.2px;
        margin-bottom: 5px;
    }

    .obituary-card[data-size="half"] .obituary-nickname {
        font-size: 19px;
    }

    .obituary-card[data-size="half"] .obituary-maiden-name {
        font-size: 12px;
        margin-bottom: 5px;
    }

    .obituary-card[data-size="half"] .obituary-title {
        font-size: 12px;
        margin-bottom: 10px;
    }

    .obituary-card[data-size="half"] .obituary-text {
        font-size: 16px;
        line-height: 1.6;
        margin: 10px 0;
    }

    .obituary-card[data-size="half"] .obituary-divider {
        margin: 12px 0;
    }

    .obituary-card[data-size="half"] .obituary-mourners {
        margin-top: 10px;
    }

        .obituary-card[data-size="half"] .obituary-mourners strong {
            font-size: 16px;
            margin-bottom: 6px;
            text-align: end;
        }

    .obituary-card[data-size="half"] .obituary-mourners-content {
        font-size: 16px;
        line-height: 1.5;
        text-align: end;
    }

/* -------------------------------------------------
   BIG SCREEN - FULL SIZE (1/1) - Spans entire width
   ------------------------------------------------- */
.obituary-card[data-size="full"] {
    display: block;
    width: 100%;
    height: calc(var(--card-height-x) * 2);
    margin-bottom: var(--card-gap);
    -webkit-column-span: all;
    column-span: all;
}

    .obituary-card[data-size="full"] .obituary-border {
        height: 100%;
        overflow: hidden;
        padding: 20px;
    }

    .obituary-card[data-size="full"] .obituary-religion-symbol {
        margin-bottom: 6px;
        min-height: 52px;
    }

        .obituary-card[data-size="full"] .obituary-religion-symbol img {
            width: 50px;
            height: 50px;
        }

    .obituary-card[data-size="full"] .obituary-top-text {
        font-size: 18px;
        margin-bottom: 10px;
        line-height: 1.6;
    }

    .obituary-card[data-size="full"] .obituary-photo img {
        max-width: 180px;
        max-height: 180px;
    }

    .obituary-card[data-size="full"] .obituary-photo {
        margin-bottom: 12px;
        min-height: 182px;
    }

    .obituary-card[data-size="full"] .obituary-dates {
        font-size: 17px;
        margin-bottom: 10px;
    }

    .obituary-card[data-size="full"] .obituary-name {
        font-size: 28px;
        letter-spacing: 1.8px;
        margin-bottom: 4px;
    }

    .obituary-card[data-size="full"] .obituary-nickname {
        font-size: 23px;
    }

    .obituary-card[data-size="full"] .obituary-father-name {
        font-size: 22px;
    }

    .obituary-card[data-size="full"] .obituary-maiden-name {
        font-size: 13px;
        margin-bottom: 4px;
    }

    .obituary-card[data-size="full"] .obituary-title {
        font-size: 13px;
        margin-bottom: 6px;
    }

    .obituary-card[data-size="full"] .obituary-text {
        font-size: 18px;
        line-height: 1.4;
        margin: 12px 0;
    }

    .obituary-card[data-size="full"] .obituary-divider {
        margin: 13px 0;
    }

    .obituary-card[data-size="full"] .obituary-mourners {
        margin-top: 8px;
    }

        .obituary-card[data-size="full"] .obituary-mourners strong {
            font-size: 18px;
            margin-bottom: 8px;
            text-align: end;
        }

    .obituary-card[data-size="full"] .obituary-mourners-content {
        font-size: 18px;
        line-height: 1.4;
        text-align: end;
    }

/* =====================================================
   8. LARGE TABLET / SMALL DESKTOP - max-width: 1200px
   ===================================================== */
@media (max-width: 1200px) {
    :root {
        --card-height-x: 340px;
    }

    /* -------------------------------------------------
       LARGE TABLET - QUARTER SIZE (1/4)
       ------------------------------------------------- */
    .obituary-card[data-size="quarter"] .obituary-border {
        padding: 10px;
    }

    .obituary-card[data-size="quarter"] .obituary-religion-symbol {
        margin-bottom: 2px;
        min-height: 28px;
    }

        .obituary-card[data-size="quarter"] .obituary-religion-symbol img {
            width: 26px;
            height: 26px;
        }

    .obituary-card[data-size="quarter"] .obituary-top-text {
        font-size: 12px;
        margin-bottom: 2px;
        line-height: 1.2;
    }

    .obituary-card[data-size="quarter"] .obituary-photo img {
        max-width: 70px;
        max-height: 70px;
    }

    .obituary-card[data-size="quarter"] .obituary-photo {
        margin-bottom: 2px;
        min-height: 72px;
    }

    .obituary-card[data-size="quarter"] .obituary-dates {
        font-size: 11px;
        margin-bottom: 2px;
    }

    .obituary-card[data-size="quarter"] .obituary-name {
        font-size: 17px;
        letter-spacing: 0.4px;
        margin-bottom: 2px;
    }

    .obituary-card[data-size="quarter"] .obituary-nickname {
        font-size: 13px;
    }

    .obituary-card[data-size="quarter"] .obituary-maiden-name {
        font-size: 8px;
        margin-bottom: 3px;
    }

    .obituary-card[data-size="quarter"] .obituary-title {
        font-size: 12px;
        margin-bottom: 2px;
    }

    .obituary-card[data-size="quarter"] .obituary-text {
        font-size: 12px;
        line-height: 1.3;
        margin: 6px 0;
    }

    .obituary-card[data-size="quarter"] .obituary-divider {
        margin: 4px 0;
    }

    .obituary-card[data-size="quarter"] .obituary-mourners strong {
        font-size: 10px;
        margin-bottom: 2px;
    }

    .obituary-card[data-size="quarter"] .obituary-mourners-content {
        font-size: 12px;
        line-height: 1.3;
    }

    /* -------------------------------------------------
       LARGE TABLET - HALF SIZE (1/2)
       ------------------------------------------------- */
    .obituary-card[data-size="half"] .obituary-border {
        padding: 15px;
    }

    .obituary-card[data-size="half"] .obituary-religion-symbol {
        margin-bottom: 8px;
        min-height: 45px;
    }

        .obituary-card[data-size="half"] .obituary-religion-symbol img {
            width: 36px;
            height: 36px;
        }

    .obituary-card[data-size="half"] .obituary-top-text {
        font-size: 15px;
        margin-bottom: 8px;
        line-height: 1.4;
    }

    .obituary-card[data-size="half"] .obituary-photo img {
        max-width: 120px;
        max-height: 120px;
    }

    .obituary-card[data-size="half"] .obituary-photo {
        margin-bottom: 8px;
        min-height: 130px;
    }

    .obituary-card[data-size="half"] .obituary-dates {
        font-size: 14px;
        margin-bottom: 6px;
    }

    .obituary-card[data-size="half"] .obituary-name {
        font-size: 21px;
        letter-spacing: 1px;
        margin-bottom: 4px;
    }

    .obituary-card[data-size="half"] .obituary-nickname {
        font-size: 17px;
    }

    .obituary-card[data-size="half"] .obituary-father-name {
        font-size: 21px;
    }

    .obituary-card[data-size="half"] .obituary-maiden-name {
        font-size: 9px;
        margin-bottom: 4px;
    }

    .obituary-card[data-size="half"] .obituary-title {
        font-size: 11px;
        margin-bottom: 8px;
    }

    .obituary-card[data-size="half"] .obituary-text {
        font-size: 15px;
        line-height: 1.5;
        margin: 8px 0;
    }

    .obituary-card[data-size="half"] .obituary-divider {
        margin: 10px 0;
    }

    .obituary-card[data-size="half"] .obituary-mourners {
        margin-top: 8px;
    }

        .obituary-card[data-size="half"] .obituary-mourners strong {
            font-size: 14px;
            margin-bottom: 5px;
        }

    .obituary-card[data-size="half"] .obituary-mourners-content {
        font-size: 15px;
        line-height: 1.4;
    }

    /* -------------------------------------------------
       LARGE TABLET - FULL SIZE (1/1) - Spans entire width
       ------------------------------------------------- */
    .obituary-card[data-size="full"] .obituary-border {
        padding: 18px;
    }

    .obituary-card[data-size="full"] .obituary-religion-symbol {
        margin-bottom: 8px;
        min-height: 47px;
    }

        .obituary-card[data-size="full"] .obituary-religion-symbol img {
            width: 45px;
            height: 45px;
        }

    .obituary-card[data-size="full"] .obituary-top-text {
        font-size: 16px;
        margin-bottom: 8px;
        line-height: 1.5;
    }

    .obituary-card[data-size="full"] .obituary-photo img {
        max-width: 160px;
        max-height: 160px;
    }

    .obituary-card[data-size="full"] .obituary-photo {
        margin-bottom: 0px;
        min-height: 162px;
    }

    .obituary-card[data-size="full"] .obituary-dates {
        font-size: 16px;
        margin-bottom: 8px;
    }

    .obituary-card[data-size="full"] .obituary-name {
        font-size: 25px;
        letter-spacing: 1.5px;
        margin-bottom: 5px;
    }

    .obituary-card[data-size="full"] .obituary-nickname {
        font-size: 20px;
    }

    .obituary-card[data-size="full"] .obituary-father-name {
        font-size: 20px;
    }

    .obituary-card[data-size="full"] .obituary-maiden-name {
        font-size: 12px;
        margin-bottom: 5px;
    }

    .obituary-card[data-size="full"] .obituary-title {
        font-size: 12px;
        margin-bottom: 10px;
    }

    .obituary-card[data-size="full"] .obituary-text {
        font-size: 16px;
        line-height: 1.5;
        margin: 10px 0;
    }

    .obituary-card[data-size="full"] .obituary-divider {
        margin: 12px 0;
    }

    .obituary-card[data-size="full"] .obituary-mourners {
        margin-top: 10px;
    }

        .obituary-card[data-size="full"] .obituary-mourners strong {
            font-size: 14px;
            margin-bottom: 6px;
        }

    .obituary-card[data-size="full"] .obituary-mourners-content {
        font-size: 16px;
        line-height: 1.4;
    }
}

/* =====================================================
   9. MEDIUM SCREEN (tablet) - max-width: 992px
   ===================================================== */
@media (max-width: 992px) {
    :root {
        --card-height-x: 330px;
    }

    #obituaryReslts {
        column-count: 1;
    }

    /* -------------------------------------------------
       MEDIUM - QUARTER SIZE (1/4)
       ------------------------------------------------- */
    .obituary-card[data-size="quarter"] {
        height: var(--card-height-x);
    }

        .obituary-card[data-size="quarter"] .obituary-border {
            padding: 12px;
        }

        .obituary-card[data-size="quarter"] .obituary-religion-symbol {
            margin-bottom: 2px;
            min-height: 32px;
        }

            .obituary-card[data-size="quarter"] .obituary-religion-symbol img {
                width: 30px;
                height: 30px;
            }

        .obituary-card[data-size="quarter"] .obituary-top-text {
            font-size: 12px;
            margin-bottom: 2px;
            line-height: 1.2;
        }

        .obituary-card[data-size="quarter"] .obituary-photo img {
            max-width: 70px;
            max-height: 70px;
        }

        .obituary-card[data-size="quarter"] .obituary-photo {
            margin-bottom: 2px;
            min-height: 72px;
        }

        .obituary-card[data-size="quarter"] .obituary-dates {
            font-size: 12px;
            margin-bottom: 0px;
        }

        .obituary-card[data-size="quarter"] .obituary-name {
            font-size: 16px;
            letter-spacing: 0.5px;
            margin-bottom: 0px;
        }

        .obituary-card[data-size="quarter"] .obituary-nickname {
            font-size: 14px;
        }

        .obituary-card[data-size="quarter"] .obituary-maiden-name {
            font-size: 8px;
            margin-bottom: 4px;
        }

        .obituary-card[data-size="quarter"] .obituary-title {
            font-size: 14px;
            margin-bottom: 8px;
        }

        .obituary-card[data-size="quarter"] .obituary-text {
            font-size: 12px;
            line-height: 1.4;
            margin: 8px 0;
        }

        .obituary-card[data-size="quarter"] .obituary-divider {
            margin: 2px 0;
        }

        .obituary-card[data-size="quarter"] .obituary-mourners strong {
            font-size: 11px;
            margin-bottom: 4px;
        }

        .obituary-card[data-size="quarter"] .obituary-mourners-content {
            font-size: 12px;
            line-height: 1.4;
        }

    /* -------------------------------------------------
       MEDIUM - HALF SIZE (1/2)
       ------------------------------------------------- */
    .obituary-card[data-size="half"] {
        height: calc(var(--card-height-x) * 2);
    }

        .obituary-card[data-size="half"] .obituary-border {
            padding: 15px;
        }

        .obituary-card[data-size="half"] .obituary-religion-symbol {
            margin-bottom: 8px;
            min-height: 48px;
        }

            .obituary-card[data-size="half"] .obituary-religion-symbol img {
                width: 40px;
                height: 40px;
            }

        .obituary-card[data-size="half"] .obituary-top-text {
            font-size: 14px;
            margin-bottom: 15px;
            line-height: 1.5;
        }

        .obituary-card[data-size="half"] .obituary-photo img {
            max-width: 140px;
            max-height: 140px;
        }

        .obituary-card[data-size="half"] .obituary-photo {
            margin-bottom: 8px;
            min-height: 148px;
        }

        .obituary-card[data-size="half"] .obituary-dates {
            font-size: 15px;
            margin-bottom: 6px;
        }

        .obituary-card[data-size="half"] .obituary-name {
            font-size: 24px;
            letter-spacing: 1.2px;
            margin-bottom: 15px;
        }

        .obituary-card[data-size="half"] .obituary-nickname {
            font-size: 19px;
        }

        .obituary-card[data-size="half"] .obituary-father-name {
            font-size: 18px;
        }

        .obituary-card[data-size="half"] .obituary-maiden-name {
            font-size: 10px;
            margin-bottom: 5px;
        }

        .obituary-card[data-size="half"] .obituary-title {
            font-size: 12px;
            margin-bottom: 10px;
        }

        .obituary-card[data-size="half"] .obituary-text {
            font-size: 14px;
            line-height: 1.6;
            margin: 8px 0;
        }

        .obituary-card[data-size="half"] .obituary-divider {
            margin: 10px 0;
        }

        .obituary-card[data-size="half"] .obituary-mourners {
            margin-top: 8px;
        }

            .obituary-card[data-size="half"] .obituary-mourners strong {
                font-size: 14px;
                margin-bottom: 6px;
            }

        .obituary-card[data-size="half"] .obituary-mourners-content {
            font-size: 14px;
            line-height: 1.5;
        }

    /* -------------------------------------------------
       MEDIUM - FULL SIZE (1/1) - Spans entire width
       ------------------------------------------------- */
    .obituary-card[data-size="full"] {
        display: block;
        height: calc(var(--card-height-x) * 2.75);
        -webkit-column-span: all;
        column-span: all;
    }

        .obituary-card[data-size="full"] .obituary-border {
            padding: 18px;
        }

        .obituary-card[data-size="full"] .obituary-religion-symbol {
            margin-bottom: 10px;
            min-height: 62px;
        }

            .obituary-card[data-size="full"] .obituary-religion-symbol img {
                width: 60px;
                height: 60px;
            }

        .obituary-card[data-size="full"] .obituary-top-text {
            font-size: 14px;
            margin-bottom: 17px;
            line-height: 1.6;
        }

        .obituary-card[data-size="full"] .obituary-photo img {
            max-width: 220px;
            max-height: 220px;
        }

        .obituary-card[data-size="full"] .obituary-photo {
            margin-bottom: 25px;
            min-height: 222px;
        }

        .obituary-card[data-size="full"] .obituary-dates {
            font-size: 17px;
            margin-bottom: 8px;
        }

        .obituary-card[data-size="full"] .obituary-name {
            font-size: 26px;
            letter-spacing: 1.8px;
            margin-bottom: 15px;
        }

        .obituary-card[data-size="full"] .obituary-nickname {
            font-size: 23px;
        }

        .obituary-card[data-size="full"] .obituary-maiden-name {
            font-size: 11px;
            margin-bottom: 6px;
        }

        .obituary-card[data-size="full"] .obituary-title {
            font-size: 13px;
            margin-bottom: 12px;
        }

        .obituary-card[data-size="full"] .obituary-text {
            font-size: 14px;
            line-height: 1.7;
            margin: 10px 0;
        }

        .obituary-card[data-size="full"] .obituary-divider {
            margin: 12px 0;
        }

        .obituary-card[data-size="full"] .obituary-mourners {
            margin-top: 10px;
        }

            .obituary-card[data-size="full"] .obituary-mourners strong {
                font-size: 14px;
                margin-bottom: 8px;
            }

        .obituary-card[data-size="full"] .obituary-mourners-content {
            font-size: 14px;
            line-height: 1.6;
        }

    /* -------------------------------------------------
       MEDIUM - SHARE PANEL
       ------------------------------------------------- */
    .obituary-share-panel {
        right: 5px;
        flex-direction: column;
        gap: 6px;
    }

    .share-btn {
        width: 36px;
        height: 36px;
    }

        .share-btn svg {
            width: 18px;
            height: 18px;
        }

        .share-btn::before,
        .share-btn::after {
            display: none;
        }
}

/* =====================================================
   10. MOBILE SCREEN - max-width: 768px
   ===================================================== */
@media (max-width: 768px) {
    :root {
        --card-height-x: 350px;
    }

    #obituaryReslts {
        padding: 15px;
        column-count: 1; /* Single column on mobile */
        column-gap: 15px;
    }

    /* -------------------------------------------------
       MOBILE - QUARTER SIZE (1/4)
       ------------------------------------------------- */
    .obituary-card[data-size="quarter"] {
        height: var(--card-height-x);
        margin-bottom: 15px;
    }

        .obituary-card[data-size="quarter"] .obituary-border {
            padding-top: 3px;
            padding-bottom: 3px;
            padding-left: 12px;
            padding-right: 12px;
        }

        .obituary-card[data-size="quarter"] .obituary-religion-symbol {
            margin-bottom: 2px;
            min-height: 22px;
        }

            .obituary-card[data-size="quarter"] .obituary-religion-symbol img {
                width: 20px;
                height: 20px;
            }

        .obituary-card[data-size="quarter"] .obituary-top-text {
            font-size: 11px;
            margin-bottom: 3px;
            line-height: 1;
        }

        .obituary-card[data-size="quarter"] .obituary-photo img {
            max-width: 70px;
            max-height: 70px;
        }

        .obituary-card[data-size="quarter"] .obituary-photo {
            margin-bottom: -2px;
            min-height: 72px;
        }

        .obituary-card[data-size="quarter"] .obituary-dates {
            font-size: 11px;
            margin-bottom: -5px;
        }

        .obituary-card[data-size="quarter"] .obituary-name {
            font-size: 16px;
            letter-spacing: 0.5px;
        }

        .obituary-card[data-size="quarter"] .obituary-nickname {
            font-size: 14px;
        }

        .obituary-card[data-size="quarter"] .obituary-maiden-name {
            font-size: 9px;
            margin-bottom: 4px;
        }

        .obituary-card[data-size="quarter"] .obituary-title {
            font-size: 14px;
            margin-bottom: 8px;
        }

        .obituary-card[data-size="quarter"] .obituary-text {
            font-size: 11px;
            line-height: 1.4;
            margin: 5px 0;
        }

        .obituary-card[data-size="quarter"] .obituary-divider {
            margin: 4px 0;
        }

        .obituary-card[data-size="quarter"] .obituary-mourners strong {
            font-size: 11px;
            margin-bottom: 4px;
        }

        .obituary-card[data-size="quarter"] .obituary-mourners-content {
            font-size: 11px;
            line-height: 1.4;
        }

    /* -------------------------------------------------
       MOBILE - HALF SIZE (1/2)
       ------------------------------------------------- */
    .obituary-card[data-size="half"] {
        height: calc(var(--card-height-x) * 1.75);
        margin-bottom: 15px;
    }

        .obituary-card[data-size="half"] .obituary-border {
            padding: 15px;
        }

        .obituary-card[data-size="half"] .obituary-religion-symbol {
            margin-bottom: 5px;
            min-height: 32px;
        }

            .obituary-card[data-size="half"] .obituary-religion-symbol img {
                width: 30px;
                height: 30px;
            }

        .obituary-card[data-size="half"] .obituary-top-text {
            font-size: 12px;
            margin-bottom: 5px;
            line-height: 1.5;
        }

        .obituary-card[data-size="half"] .obituary-photo img {
            max-width: 100px;
            max-height: 100px;
        }

        .obituary-card[data-size="half"] .obituary-photo {
            margin-bottom: 2px;
            min-height: 102px;
        }

        .obituary-card[data-size="half"] .obituary-dates {
            font-size: 15px;
            margin-bottom: 4px;
        }

        .obituary-card[data-size="half"] .obituary-name {
            font-size: 18px;
            letter-spacing: 1px;
            margin-bottom: 5px;
        }

        .obituary-card[data-size="half"] .obituary-nickname {
            font-size: 18px;
        }

        .obituary-card[data-size="half"] .obituary-father-name {
            font-size: 17px;
        }

        .obituary-card[data-size="half"] .obituary-maiden-name {
            font-size: 10px;
            margin-bottom: -4px;
        }

        .obituary-card[data-size="half"] .obituary-title {
            font-size: 12px;
            margin-bottom: 10px;
        }

        .obituary-card[data-size="half"] .obituary-text {
            font-size: 12px;
            line-height: 1.5;
            margin: 10px 0;
        }

        .obituary-card[data-size="half"] .obituary-divider {
            margin: 6px 0;
        }

        .obituary-card[data-size="half"] .obituary-mourners {
            margin-top: 10px;
        }

            .obituary-card[data-size="half"] .obituary-mourners strong {
                font-size: 12px;
                margin-bottom: 6px;
            }

        .obituary-card[data-size="half"] .obituary-mourners-content {
            font-size: 12px;
            line-height: 1.5;
        }

    /* -------------------------------------------------
       MOBILE - FULL SIZE (1/1)
       ------------------------------------------------- */
    .obituary-card[data-size="full"] {
        height: calc(var(--card-height-x) * 2.5);
        margin-bottom: 15px;
    }

        .obituary-card[data-size="full"] .obituary-border {
            padding: 10px;
        }

        .obituary-card[data-size="full"] .obituary-religion-symbol {
            margin-bottom: 8px;
            min-height: 52px;
        }

            .obituary-card[data-size="full"] .obituary-religion-symbol img {
                width: 50px;
                height: 50px;
            }

        .obituary-card[data-size="full"] .obituary-top-text {
            font-size: 13px;
            margin-bottom: 12px;
            line-height: 1.5;
        }

        .obituary-card[data-size="full"] .obituary-photo img {
            max-width: 140px;
            max-height: 140px;
        }

        .obituary-card[data-size="full"] .obituary-photo {
            margin-bottom: 0px;
            min-height: 142px;
        }

        .obituary-card[data-size="full"] .obituary-dates {
            font-size: 17px;
            margin-bottom: 2px;
        }

        .obituary-card[data-size="full"] .obituary-name {
            font-size: 21px;
            letter-spacing: 1.8px;
            margin-bottom: 2px;
        }

        .obituary-card[data-size="full"] .obituary-nickname {
            font-size: 23px;
        }

        .obituary-card[data-size="full"] .obituary-maiden-name {
            font-size: 11px;
            margin-bottom: 6px;
        }

        .obituary-card[data-size="full"] .obituary-title {
            font-size: 13px;
            margin-bottom: 0px;
        }

        .obituary-card[data-size="full"] .obituary-text {
            font-size: 13px;
            line-height: 1.5;
            margin: 12px 0;
        }

        .obituary-card[data-size="full"] .obituary-divider {
            margin: 4px 0;
        }

        .obituary-card[data-size="full"] .obituary-mourners {
            margin-top: 8px;
        }

            .obituary-card[data-size="full"] .obituary-mourners strong {
                font-size: 13px;
                margin-bottom: 1px;
            }

        .obituary-card[data-size="full"] .obituary-mourners-content {
            font-size: 13px;
            line-height: 1.6;
        }

    /* -------------------------------------------------
       MOBILE - SHARE PANEL
       ------------------------------------------------- */
    .obituary-share-panel {
        right: 5px;
        flex-direction: column;
        gap: 6px;
    }
}

/* =====================================================
   11. PRINT STYLES
   ===================================================== */
@media print {
    .obituary-card {
        page-break-inside: avoid;
    }

    .obituary-share-panel {
        display: none !important;
    }
}

/* =====================================================
   DEBUG: Screen Size Indicator (remove in production)
   ===================================================== */
body::before {
    content: "🖥️ BIG SCREEN (>1200px)";
    position: fixed;
    top: 10px;
    left: 10px;
    background: #2196F3;
    color: white;
    padding: 8px 16px;
    font-size: 14px;
    font-family: monospace;
    z-index: 99999;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

@media (max-width: 1200px) {
    body::before {
        content: "💻 LARGE TABLET (992-1200px)";
        background: #4CAF50;
    }
}

@media (max-width: 992px) {
    body::before {
        content: "📱 MEDIUM (768-992px)";
        background: #FF9800;
    }
}

@media (max-width: 768px) {
    body::before {
        content: "📱 MOBILE (<768px)";
        background: #f44336;
    }
}