body.has-fixed-header {
    padding-top: var(--header-height, 72px);
}

.site-header {
    backdrop-filter: blur(6px);
    background-color: rgba(var(--deep-green-red), var(--deep-green-green), var(--deep-green-blue), 0.95);
}

.site-header .container {
    align-items: center;
}

body.non-individual-page .hero {
    padding-top: 5rem !important;
    padding-bottom: 5rem !important;
}

body.non-individual-page .hero h2 {
    font-size: clamp(2rem, 5vw, 3rem);
}

@media (max-width: 768px) {
    body.non-individual-page .hero {
        padding-top: 3.5rem !important;
        padding-bottom: 3.5rem !important;
    }
}

@media (max-width: 640px) {
    body.non-individual-page .hero {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }
    body.non-individual-page .hero h2 {
        font-size: 1.75rem;
    }
    body.non-individual-page .hero p {
        font-size: 1rem;
    }
}
/* Custom Fijian-Inspired Colors */
:root {
    --brown: RGB(107, 66, 38);
        --brown-red: 107;
        --brown-green: 66;
        --brown-blue: 38;
    --cream: RGB(245, 245, 220);
        --cream-red: 245;
        --cream-green: 245;
        --cream-blue: 220;
    --burnt-orange: RGB(204, 85, 0);
        --burnt-orange-red: 204;
        --burnt-orange-green: 85;
        --burnt-orange-blue: 0;
    --deep-green: RGB(47, 79, 79);
        --deep-green-red: 47;
        --deep-green-green: 79;
        --deep-green-blue: 79; 
    --fiji-green: RGB(0, 128, 0);
        --fiji-green-red: 0;
        --fiji-green-green: 128;
        --fiji-green-blue: 0;
    --fiji-red: RGB(220, 20, 60);
        --fiji-red-red: 220;
        --fiji-red-green: 20;
        --fiji-red-blue: 60;
    --ocean-blue: RGB(0, 119, 182);
        --ocean-blue-red: 0;
        --ocean-blue-green: 119;
        --ocean-blue-blue: 182;
    --warm-red: RGB(178, 34, 34);
        --warm-red-red: 178;
        --warm-red-green: 34;
        --warm-red-blue: 34;
    --white: RGB(255, 255, 255);
        --white-red: 255;
        --white-green: 255;
        --white-blue: 255;
    --individual-item-height: 120px;
}

section.content a {
    background-color: rgba(var(--link-rgb), 0.1) !important;
    padding-left: 3px;
    padding-right: 3px;
    border-radius: 5px;
}

section.content a:hover {
    background-color: rgba(var(--link-rgb), 0.2) !important;
}

/* Define --link-rgb dynamically badsed on current text color */
section.content a {
    --link-rgb: 107, 66, 38; /* Default to brown(Change this dynamically using JavaScript if needed) */
    color: rgb(var(--link-rgb));
}


.discussion-item-content a {
    text-decoration: underline !important;
    text-decoration-style: dashed !important;
    text-decoration-color: rgba(currentColor, 0.3) !important; /* Inherit text color with reduced opacity */
}

/* Background Colors */
.bg-brown {
    background-color: var(--brown);
}

.bg-cream {
    background-color: var(--cream);
}

.nv-bg-opacity-10, .hover\:nv-bg-opacity-10:hover {
    --nv-bg-opacity: 0.1 !important;
}

.nv-bg-opacity-20, .hover\:nv-bg-opacity-20:hover {
    --nv-bg-opacity: 0.2 !important;
}

.nv-bg-opacity-30, .hover\:nv-bg-opacity-30:hover {
    --nv-bg-opacity: 0.3 !important;
}

.nv-bg-opacity-50, .hover\:nv-bg-opacity-50:hover {
    --nv-bg-opacity: 0.5 !important;
}

.nv-bg-opacity-70, .hover\:nv-bg-opacity-70:hover {
    --nv-bg-opacity:0.7 !important;
}

.nv-bg-opacity-90, .hover\:nv-bg-opacity-90:hover {
    --nv-bg-opacity: 0.9 !important;
}

.bg-white-800, .hover\:bg-white-800:hover {
    --nv-bg-opacity: 1;
    background-color: rgba(var(--white-red), var(--white-green), var(--white-blue), var(--nv-bg-opacity));
}

.bg-white {
    background-color: var(--white);
}

.bg-brown-800, .hover\:bg-brown-800:hover {
    --nv-bg-opacity: 1;
    background-color: rgba(var(--brown-red), var(--brown-green), var(--brown-blue), var(--nv-bg-opacity));
}

.bg-brown {
    background-color: var(--brown);
}

.bg-cream-800, .hover\:bg-cream-800:hover {
    --nv-bg-opacity: 1;
    background-color: rgba(var(--cream-red), var(--cream-green), var(--cream-blue), var(--nv-bg-opacity));
}

.bg-cream {
    background-color: var(--cream);
}

.bg-burnt-orange-800, .hover\:bg-burnt-orange-800:hover {
    --nv-bg-opacity: 1;
    background-color: rgba(var(--burnt-orange-red), var(--burnt-orange-green), var(--burnt-orange-blue), var(--nv-bg-opacity));
}

.bg-burnt-orange {
    background-color: var(--burnt-orange);
}

.bg-deep-green-800, .hover\:bg-deep-green-800:hover {
    --nv-bg-opacity: 1;
    background-color: rgba(var(--deep-green-red), var(--deep-green-green), var(--deep-green-blue), var(--nv-bg-opacity));
}

.bg-deep-green {
    --nv-bg-opacity: 1;
    /* background-color: var(--deep-green); */
    background-color: rgba(var(--deep-green-red), var(--deep-green-green), var(--deep-green-blue), var(--nv-bg-opacity));
}

.bg-ocean-blue-800, .hover\:bg-ocean-blue-800:hover {
    --nv-bg-opacity: 1;
    background-color: rgba(var(--ocean-blue-red), var(--ocean-blue-green), var(--ocean-blue-blue), var(--nv-bg-opacity));
}

.bg-ocean-blue {
    background-color: var(--ocean-blue);
}

.bg-warm-red-800, .hover\:bg-warm-red-800:hover {
    --nv-bg-opacity: 1;
    background-color: rgba(var(--warm-red-red), var(--warm-red-green), var(--warm-red-blue), var(--nv-bg-opacity));
}

.bg-warm-red, .hover\:bg-warm-red:hover {
    background-color: var(--warm-red);
}

.bg-fiji-green {
    background-color: var(--fiji-green);
}

.bg-warm-fiji-green, .hover\:bg-warm-fiji-green:hover {
    --nv-bg-opacity: 1;
    background-color: rgba(var(--fiji-green-red), var(--fiji-green-green), var(--fiji-green-blue), var(--nv-bg-opacity));
}

/* Text Colors */
.nv-text-opacity-10 {
    --nv-text-opacity: 0.1 !important;
}

.nv-text-opacity-20 {
    --nv-text-opacity: 0.2 !important;
}

.nv-text-opacity-50 {
    --nv-text-opacity: 0.5 !important;
}

.text-deep-green {
    --nv-text-opacity: 1;
    color: rgba(var(--deep-green-red), var(--deep-green-green), var(--deep-green-blue), var(--nv-text-opacity));
}

.text-deep-green-disabled {
    color: #2f4f4f94;
}

.text-brown {
    --nv-text-opacity: 1;
    color: rgba(var(--brown-red), var(--brown-green), var(--brown-blue), var(--nv-text-opacity));
}

.text-brown-500 {
    color: #6b422694;
}

.text-brown-700 {
    color: #4b2c20;
}

.text-cream {
    color: var(--cream);
}

.text-white {
    color: var(--white);
}

.text-burnt-orange, .hover\:text-burnt-orange:hover{
    --nv-text-opacity: 1;
    color: rgba(var(--burnt-orange-red), var(--burnt-orange-green), var(--burnt-orange-blue), var(--nv-text-opacity));
}


.text-ocean-blue {
    color: var(--ocean-blue);
}

.text-warm-red {
    color: var(--warm-red);
}

.nowrap {
    white-space: nowrap; /* Prevent text from wrapping */
}

/* Border Colours */
.nv-border-opacity-10 {
    --nv-border-opacity: 0.1 !important;
}
.nv-border-opacity-20 {
    --nv-border-opacity: 0.2 !important;
}
.nv-border-opacity-50 {
    --nv-border-opacity: 0.5 !important;
}

.border-deep-green {
    --nv-border-opacity: 1;
    border-color: rgba(var(--deep-green-red), var(--deep-green-green), var(--deep-green-blue), var(--nv-border-opacity));
}

.border-ocean-blue {
    --nv-border-opacity: 1;
    border-color: rgba(var(--ocean-blue-red), var(--ocean-blue-green), var(--ocean-blue-blue), var(--nv-border-opacity));
}

.border-burnt-orange-800 {
    --nv-border-opacity: 1;
    border-color: rgba(var(--burnt-orange-red), var(--burnt-orange-green), var(--burnt-orange-blue), var(--nv-border-opacity));
}

.border-burnt-orange {
    border-color: var(--burnt-orange);
}

/* Button Styling */
.custom-button {
    background-color: var(--warm-red);
    color: var(--white);
    padding: 12px 24px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.custom-button:hover {
    background-color: var(--burnt-orange);
}

/* Utility Classes */
.p-4 {
    padding: 1rem;
}

.px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.pb-6 {
    padding-bottom: 1.54rem;
}

.py-20 {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.py-12 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}
.py-0 {
    padding-top: 0;
}

.text-center {
    text-align: center;
}

.text-xxxxs {
    font-size: 0.4rem;
}

.text-xxxs {
    font-size: 0.5rem;
}

.text-xxs {
    font-size: 0.6rem;
}

.text-normal {
    font-size: 1rem;
    font-weight: 400;
}

.text-xl {
    font-size: 1.25rem;
}

.text-2xl {
    font-size: 1.5rem;
}

.text-4xl {
    font-size: 2.25rem;
}

.no-indent {
    padding-left: 0 !important;
    text-indent: 0 !important;
}

.text-indent-1 {
    padding-left: 1rem;
    text-indent: -1rem;
}

.text-indent-2 {
    padding-left: 2rem;
    text-indent: -2rem;
}

.font-bold {
    font-weight: 700;
}

.max-h-2xs {
    max-height: 10rem;
}

.max-h-3xs {
    max-height: 7.5rem;
}

.max-h-xs {
    max-height: 20rem;
}

.max-h-sm {
    max-height: 30rem;
}

.max-h-md {
    max-height: 45rem;
}

.max-h-lg {
    max-height: 60rem;
}

.max-h-xl {
    max-height: 75rem;
}

.max-h-10 {
    max-height: 10rem;
}

.max-h-20 {
    max-height: 20rem;
}

.max-h-25 {
    max-height: 25rem;
}

.max-h-30 {
    max-height: 30rem;
}

.max-w-2xs {
    max-width: 15rem;
}

.max-w-3xs {
    max-width: 10rem !important;
}

.max-w-4xs {
    max-width: 7.5rem;
}

.max-w-5xs {
    max-width: 5rem;
}

.max-w-10 {
    max-width: 30rem;
}

.max-w-15 {
    max-width: 45rem;
}

.max-w-20 {
    max-width: 60rem;
}

.min-w-10 {
    min-width: 10rem;
}

.min-w-15 {
    min-width: 15rem;
}

.min-w-20 {
    min-width: 20rem;
}

.mt-0 {
    margin-top: -0.5rem;
}
.mt-2 {
    margin-top: 0.5rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-8 {
    margin-top: 2rem;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.shadow-lg {
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.rounded-lg {
    border-radius: 0.5rem;
}


.grid-scrollable-3 {
    max-height: calc(var(--individual-item-height) *3.6);
    overflow: hidden;
    overflow-y: auto;
    
}

.gap-8 {
    gap: 2rem;
}

/* Footer */
.footer {
    background-color: var(--deep-green);
    color: var(--white);
    padding: 2rem 0;
    text-align: center;
}

/* Hero Section Background */
.hero {
    background-image: url('../images/nataleira_banner.jpg');
    background-size: cover;  /* Make sure the image covers the entire section */
    background-position: center;  /* Center the image */
    background-repeat: no-repeat;
    position: relative;  /* For positioning the overlay */
}

/* Optional: Add a translucent overlay to improve text legibility */
.hero-overlay {
    background-color: rgba(0, 0, 0, 0.4);  /* Black with 40% transparency */
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

/* Ensure content inside the hero remains above the background/overlay */
.hero-content {
    position: relative;
    z-index: 10;
    color: white;
    text-align: center;
    padding: 5rem 2rem;
    background-color: rgba(0, 0, 0, 0.5);  /* Black with 50% transparency */
    border-radius: 8px;  /* Rounded corners for a cleaner look */
    max-width: 80%;  /* Restrict content width */
    margin: 0 auto;  /* Center the content */
}

.feed-sentinel {
    height: 1px;
    width: 100%;
}

.hero-image {
    position: absolute;
    top: -4rem;
    left: 50%;
    width: 9rem;
    transform: translateX(-50%);
}

.hero-image img {
    width: 100%;
    max-width: 200px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 50%;
}

.hero-image button {
    position: absolute;
    top: 0;
    right: 0;
}





/**********************************************
*  Family Tree "Add" and "Edit" form Modal Styles
***********************************************/

/* Modal container */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Black background with opacity */
}

.modal-header {
    cursor: pointer;
    background-color: var(--deep-green);
    color: white;
    padding: 10px;
    border-radius: 8px 8px 0 0;
}

/* Modal content box */
.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    padding: 0;
    border-radius: 8px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.2);
    max-height: 95vh;
    min-width: 400px;
}

.modal-content.modal-top {
    top: 17% !important;
}

.modal-body {
    padding: 20px;
    overflow-y: hidden;
    overflow-y: scroll;
}

/* Close button */
.close-btn, .edit-close-btn, .close-story-btn, .close-event-btn, .close-story-btn {
    float: right;
    font-size: 24px;
    cursor: pointer;
    margin-top: -10px;
}

/**********************************************
*  Individual View Styles
***********************************************/
.individual-item {
    height: var(--individual-item-height);
    width: 250px;
    position: relative;
}

.keyimage-float-left {
    float: left;
    margin-right: 15px;
}
.keyimage-img-xs {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    margin-right: 10px;
}
.keyimage-img-sm {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-right: 10px;
}
.keyimage-img-md {
    width: 80px;
    height: 80px;
    border-radius: 30%;
    margin-right: 10px;
}
.keyimage-img-lg {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin-right: 10px;
}
.keyimage-img-xl {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    margin-right: 10px;
}
.keyimage-washed-out {
    /* filter: brightness(1.2) contrast(0.4); */
    display: block;
   
}

/**********************************************
*  Family Tree Container
***********************************************/
.familytree {
    padding: 5px;
}

/* Dropdown menu, initially hidden */
#dropdownMenu {
    display: none;
    position: absolute; /* Position absolutely relative to the page */
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    z-index: 9999;
    white-space: nowrap;
}

/* Dropdown button styles */
#dropdownMenu button {
    background-color: white;
    color: #333;
    padding: 10px;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-size: 14px;
    display: block; 
}

/* Hover effect for dropdown buttons */
#dropdownMenu button:hover {
    background-color: #e0e0e0;
}

.gender_female {
    /* Earthy green with gradient */
    background: linear-gradient(to bottom, #a8d5ba, #7bb38d);
}

.text-shadow-female {
    text-shadow: -2px -2px 4px #a8d5ba;
}

.gender_male {
    /* Warm amber with gradient */
    background: linear-gradient(to bottom, #f7d1a1, #e9b379);
}

.text-shadow-male {
    text-shadow: -2px -2px 4px #f7d1a1;
}

.gender_other {
    /* Muted purple gradient */
    background: linear-gradient(to bottom, #c8c0e7, #a59bc6);
}

.text-shadow-other {
    text-shadow: -2px -2px 4px #c8c0e7;
}

/**********************************************
*  Generation Line background Styles
*  Twenty styles in the format "genline_1" to "genline_20"
*  with strong, diverse and distinct background colors to indicate generational lines
*  of descendants.
***********************************************/
.genline_1 {
    background: linear-gradient(to bottom, #f5f5dc, #eeeebe);
}
.text-shadow-genline_1 {
    text-shadow: -2px -2px 4px #f5f5dc;
}

.genline_2 {
    background: linear-gradient(to bottom, #ffcccb, #ffb6b6);
}
.text-shadow-genline_2 {
    text-shadow: -2px -2px 4px #ffcccb;
}

.genline_3 {
    background: linear-gradient(to bottom, #add8e6, #87ceeb);
}
.text-shadow-genline_3 {
    text-shadow: -2px -2px 4px #add8e6;
}

.genline_4 {
    background: linear-gradient(to bottom, #90ee90, #7ccd7c);
}
.text-shadow-genline_4 {
    text-shadow: -2px -2px 4px #90ee90;
}

.genline_5 {
    background: linear-gradient(to bottom, #ffb6c1, #ff91a4);
}
.text-shadow-genline_5 {
    text-shadow: -2px -2px 4px #ffb6c1;
}

.genline_6 {
    background: linear-gradient(to bottom, #ffa07a, #ff7f50);
}
.text-shadow-genline_6 {
    text-shadow: -2px -2px 4px #ffa07a;
}

.genline_7 {
    background: linear-gradient(to bottom, #20b2aa, #3cb371);
}
.text-shadow-genline_7 {
    text-shadow: -2px -2px 4px #20b2aa;
}

.genline_8 {
    background: linear-gradient(to bottom, #87cefa, #00bfff);
}
.text-shadow-genline_8 {
    text-shadow: -2px -2px 4px #87cefa;
}

.genline_9 {
    background: linear-gradient(to bottom, #778899, #708090);
}
.text-shadow-genline_9 {
    text-shadow: -2px -2px 4px #778899;
}

.genline_10 {
    background: linear-gradient(to bottom, #b0c4de, #a2b5cd);
}
.text-shadow-genline_10 {
    text-shadow: -2px -2px 4px #b0c4de;
}

.genline_11 {
    background: linear-gradient(to bottom, #ffdead, #ffdab9);
}
.text-shadow-genline_11 {
    text-shadow: -2px -2px 4px #ffdead;
}

.genline_12 {
    background: linear-gradient(to bottom, #e9967a, #cd5c5c);
}
.text-shadow-genline_12 {
    text-shadow: -2px -2px 4px #e9967a;
}

.genline_13 {
    background: linear-gradient(to bottom, #f08080, #fa8072);
}
.text-shadow-genline_13 {
    text-shadow: -2px -2px 4px #f08080;
}

.genline_14 {
    background: linear-gradient(to bottom, #fafad2, #ffffe0);
}
.text-shadow-genline_14 {
    text-shadow: -2px -2px 4px #fafad2;
}

.genline_15 {
    background: linear-gradient(to bottom, #d3ffce, #c1ffc1);
}
.text-shadow-genline_15 {
    text-shadow: -2px -2px 4px #d3ffce;
}

.genline_16 {
    background: linear-gradient(to bottom, #ffefd5, #ffe4b5);
}
.text-shadow-genline_16 {
    text-shadow: -2px -2px 4px #ffefd5;
}

.genline_17 {
    background: linear-gradient(to bottom, #ffe4e1, #ffb6c1);
}
.text-shadow-genline_17 {
    text-shadow: -2px -2px 4px #ffe4e1;
}

.genline_18 {
    background: linear-gradient(to bottom, #f0e68c, #eee8aa);
}
.text-shadow-genline_18 {
    text-shadow: -2px -2px 4px #f0e68c;
}

.genline_19 {
    background: linear-gradient(to bottom, #dda0dd, #ee82ee);
}
.text-shadow-genline_19 {
    text-shadow: -2px -2px 4px #dda0dd;
}

.genline_20 {
    background: linear-gradient(to bottom, #ffdab9, #ffdead);
}
.text-shadow-genline_20 {
    text-shadow: -2px -2px 4px #ffdab9;
}




/**********************************************
*  Communications Section Styles
***********************************************/
.avatar-float-left {
    float: left;
}
.avatar-img-0 {
    border-radius: 50%;
}

.avatar-img-xs, .sm\:.avatar-img-xs {
    width: 15px;
    height: 15px;
    border-radius: 50%;
}
.avatar-img-18, sm\:.avatar-img-18 {
    width: 25px;
    height: 25px;
    border-radius: 50%;
}
.avatar-img-sm, .sm\:.avatar-img-sm {
    width: 30px;
    height: 30px;
    border-radius: 50%;
}
.avatar-img-md, .sm\:.avatar-img-md {
    width: 60px;
    height: 60px;
    border-radius: 50%;
}
.avatar-img-lg, .sm\:avatar-img-lg {
    width: 120px;
    height: 120px;
    border-radius: 50%;
}
.avatar-img-xl {
    width: 200px;
    height: 200px;
    border-radius: 50%;
}

.avatar-img.userpresent, .avatar-float-left.userpresent {
    border: 0.2rem solid rgba(var(--fiji-green-red), var(--fiji-green-green), var(--fiji-green-blue), 0.3);
    position: relative;
}

.avatar-img.userabsent, .avatar-float-left.userabsent {
    border: 0.1rem solid rgba(var(--fiji-red-red), var(--fiji-red-green), var(--fiji-red-blue), 0.3);
    position: relative;
}



.comments {
    position: relative;
    margin-left: 1rem;
    font-size: 0.9rem;
}

.discussion-content, .comment-content {
    overflow: hidden;
}

.discussion-reactions, .comment-reactions, .item-reactions {
    display: flex;
    align-items: center;
    position: relative;
}

.like-image {
    margin-right: 10px; /* Adjust as needed */
}

.reaction-buttons {
    display: none;
    position: absolute;
    background: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.remove-reaction-image {
    margin-right: 10px; /* Adjust as needed */
    cursor: pointer;
}

.remove-reaction-image:hover + .reaction-buttons,
.reaction-buttons:hover {
    display: block;
}

.feed-item-interactions .like-image {
    border: none;
    background: #f1f5f9;
    cursor: pointer;
}

.feed-comment-avatar-img {
    width: 32px;
    height: 32px;
    border-radius: 9999px;
    object-fit: cover;
}

.feed-comment-avatar-placeholder {
    width: 32px;
    height: 32px;
    border-radius: 9999px;
    background: #cbd5f5;
    color: #1f2937;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.75rem;
}
.feed-comment--recent {
    background-color: rgba(255, 239, 150, 0.45);
    border-radius: 0.75rem;
    padding: 0.5rem 0.75rem;
}
.feed-comment--recent .feed-comment-meta .font-semibold {
    color: rgba(var(--burnt-orange-red), var(--burnt-orange-green), var(--burnt-orange-blue), 1);
}


.like-image:hover + .reaction-buttons,
.reaction-buttons:hover {
    display: block;
}

.reaction-summary-container {
    display: flex;
    align-items: center;
    margin-left: 10px; /* Adjust as needed */
}

.reaction-summary {
    margin-right: 10px; /* Adjust as needed */
}

.reaction-item {
    display: inline-flex;
    align-items: center;
    margin-right: 5px; /* Adjust as needed */
}

.reaction-count {
    font-size: 0.8em; /* Smaller font size */
    margin-left: 2px; /* Adjust as needed */
}

.reaction-float-right {
    position: absolute;
    right: 0;
    top: 0;
}

.submit-button {
    position: absolute;
    right: 2px;
    top: -5px;
}

/**********************************************
*  Database Layouts
***********************************************/
.schema-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
}

.schema-table-container {
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 16px;
    background-color: #f9f9f9;
}

.schema-table-header {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 10px;
    text-align: center;
    color: #333;
}

.schema-columns-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.schema-column {
    display: flex;
    justify-content: space-between;
    padding: 8px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.schema-column-name {
    font-weight: bold;
    color: #555;
}

.schema-column-type {
    color: #888;
}

#customPrompt {
    display: none;
}

#customPrompt.show {
    display: flex;
    z-index: 500;
}

.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
}
.tabs {
    display: flex;
    cursor: pointer;
    margin-top: 0.75rem;
    margin-left: 0.25rem;
}
.tabs div {
    border-top: rgba(107, 66, 38, 1);
    border-right: rgba(107, 66, 38, 1);
    border-left: rgba(107, 66, 38, 1);
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    background-color: rgba(107, 66, 38, 0.7);
    color: white;
}
.tabs .active {
    background-color: #f5f5dc;
    color: var(--burnt-orange);    
}

#recentchanges .tabs .active {
    background-color: white !important;
    color: var(--burnt-orange);
}


/**********************************************
* AutoComplete Styles
***********************************************/
.autocomplete-suggestions {
    border: 1px solid #ccc;
    background-color: #fff;
    max-height: 150px;
    overflow-y: auto;
    position: absolute;
    z-index: 1000;
}
.autocomplete-suggestion {
    padding: 8px;
    cursor: pointer;
}

.autocomplete-suggestion:hover {
    background-color: #f0f0f0;
}





/**********************************************
* FAMILY TREE EDIT BUTTON
***********************************************/
/* Style the "Edit" button */
#family-tree .ft-edit-btn {
    cursor: pointer;
    color: rgb(230, 227, 227);
    z-index: 100;
}

/* Style the "+" button */
#family-tree .ft-dropdown-btn {
    cursor: pointer;
    z-index: 100;
}

/* Syle the "view" button */
#family-tree .ft-view-btn {
    color: rgb(230, 227, 227);
    cursor: pointer;
    z-index: 100;
}

/**********************************************
* Online or offline classes
***********************************************/
.useronline {
    background-color: rgba(var(--fiji-green-red), var(--fiji-green-green), var(--fiji-green-blue), 0.4)

}

.useroffline {
    background-color: rgba(var(--fiji-red-red), var(--fiji-red-green), var(--fiji-red-blue), 0.2);
}

.stamp {
    transform: rotate(25deg);
    text-align: center;
    display: inline-block;
    position: absolute;
    width: 65%;
    margin-left: -35%;
    margin-top: 15%;
    padding: auto;
    text-transform: uppercase;
    border-radius: 1rem;
    font-family: 'Courier';
    -webkit-mask-image: url('../images/grunge.png');
    mask-image: url('../images/grunge.png');
    -webkit-mask-size: 944px 604px;
    mask-size: 944px 604px;        
    mix-blend-mode: multiply;
    z-index: 100; 
}

.stamp-red-double {
    color: rgba(var(--fiji-red-red), var(--fiji-red-green), var(--fiji-red-blue), 0.3);
    border: 0.5rem double rgba(var(--fiji-red-red), var(--fiji-red-green), var(--fiji-red-blue), 0.3);
    transform: rotate(-15deg);
    -webkit-mask-position: 2re 3rem;
    mask-position: 2re 3rem;
    white-space: nowrap;
}

.gallery {
    display: flex;
    overflow-x: scroll;
}
.gallery-item {
    margin-right: 10px;
}
.gallery-item img, .gallery-item video {
    max-width: 200px;
    max-height: 200px;
}
.tox-statusbar {
    display: none !important;
}
/* Dashboard toolbar & dropdowns */
.dashboard-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: flex-end;
}

.dashboard-toolbar-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.9rem;
    border-radius: 9999px;
    background-color: rgba(var(--ocean-blue-red), var(--ocean-blue-green), var(--ocean-blue-blue), 0.08);
    color: rgba(var(--ocean-blue-red), var(--ocean-blue-green), var(--ocean-blue-blue), 1);
    border: 1px solid rgba(var(--ocean-blue-red), var(--ocean-blue-green), var(--ocean-blue-blue), 0.2);
    font-weight: 600;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    cursor: pointer;
}

.dashboard-toolbar-button i {
    font-size: 1rem;
}

.dashboard-toolbar-button:hover,
.dashboard-toolbar-button.active {
    background-color: rgba(var(--burnt-orange-red), var(--burnt-orange-green), var(--burnt-orange-blue), 0.15);
    color: rgba(var(--burnt-orange-red), var(--burnt-orange-green), var(--burnt-orange-blue), 1);
    border-color: rgba(var(--burnt-orange-red), var(--burnt-orange-green), var(--burnt-orange-blue), 0.4);
    transform: translateY(-1px);
}

.dashboard-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.5rem;
    height: 1.5rem;
    padding: 0 0.4rem;
    border-radius: 9999px;
    background-color: rgba(var(--warm-red-red), var(--warm-red-green), var(--warm-red-blue), 0.9);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
}

.dashboard-toolbar-label {
    white-space: nowrap;
}

.dashboard-dropdown-panels {
    position: relative;
    height: 0;
    width: 100%;
    overflow: visible;
}

.dashboard-dropdown-panel {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: min(100%, 32rem);
    z-index: 40;
}

.dashboard-dropdown-panel.active {
    display: block;
}

.dashboard-dropdown-card {
    background-color: #fff;
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    max-height: 28rem;
    overflow-y: auto;
    width: min(100%, 32rem);
}

.dashboard-dropdown-panel.active .dashboard-dropdown-card {
    animation: dashboardDropdownFade 0.18s ease-out;
}

@keyframes dashboardDropdownFade {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Feed layout */
.feed-summary-section {
    position: sticky;
    top: var(--nv-header-height, var(--header-height, 72px));
    z-index: 60;
    margin: 0;
    width: 100%;
    padding: 0 0.5rem 0.75rem 0.5rem;
}

.feed-summary-section .feed-summary-surface {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.97);
    border-radius: 0 0 1rem 1rem;
    border: 1px solid rgba(148, 121, 88, 0.18);
    padding: 0.75rem 1rem;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

.summary-filter {
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex: 1 1 12rem;
    min-height: 3.5rem;
    position: relative;
}

.summary-filter.summary-filter-active {
    background-color: rgba(var(--ocean-blue-red), var(--ocean-blue-green), var(--ocean-blue-blue), 0.12);
    border-color: rgba(var(--ocean-blue-red), var(--ocean-blue-green), var(--ocean-blue-blue), 0.5);
    box-shadow: 0 0 0 2px rgba(var(--ocean-blue-red), var(--ocean-blue-green), var(--ocean-blue-blue), 0.15);
}

.summary-filter.summary-filter-active .summary-filter-icon,
.summary-filter.summary-filter-active .summary-filter-label {
    color: rgba(var(--ocean-blue-red), var(--ocean-blue-green), var(--ocean-blue-blue), 1);
}

.summary-filter-main {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.summary-filter-copy {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    text-align: left;
}

.summary-filter-text {
    line-height: 1.2;
}

.summary-filter-badge {
    min-width: 1.75rem;
    height: 1.75rem;
    border-radius: 999px;
    padding: 0 0.5rem;
}

.feed-item {
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.feed-item.feed-item-hidden {
    display: none !important;
}

.feed-stream {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feed-item:hover {
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.feed-item-icon {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.9rem;
    background-color: rgba(var(--ocean-blue-red), var(--ocean-blue-green), var(--ocean-blue-blue), 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
}

.feed-item-avatar {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 9999px !important;
    object-fit: cover;
    border: 2px solid rgba(var(--ocean-blue-red), var(--ocean-blue-green), var(--ocean-blue-blue), 0.35);
}

.feed-item-avatar-placeholder {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 9999px;
    background-color: rgba(var(--ocean-blue-red), var(--ocean-blue-green), var(--ocean-blue-blue), 0.1);
    color: rgba(var(--ocean-blue-red), var(--ocean-blue-green), var(--ocean-blue-blue), 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.feed-item-heading {
    align-items: flex-start;
}

.feed-item-heading-main {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    justify-content: center;
    flex: 1 1 auto;
}

.feed-item-hero {
    display: flex;
    gap: 0.65rem;
    align-items: stretch;
    background-color: rgba(var(--ocean-blue-red), var(--ocean-blue-green), var(--ocean-blue-blue), 0.06);
    border-radius: 1rem;
    padding: 0.65rem;
    border: 1px solid rgba(var(--ocean-blue-red), var(--ocean-blue-green), var(--ocean-blue-blue), 0.08);
}

.feed-item-subject-image {
    width: 5rem;
    flex-shrink: 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.feed-item-subject-image .subject-key-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    border-radius: 0.9rem;
    object-fit: cover;
    border: 2px solid rgba(var(--ocean-blue-red), var(--ocean-blue-green), var(--ocean-blue-blue), 0.25);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}

.feed-item-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.15rem 0.55rem;
    border-radius: 9999px;
    text-transform: uppercase;
    font-size: 0.625rem;
    letter-spacing: 0.06em;
    font-weight: 600;
    background: rgba(148, 163, 184, 0.18);
    color: #475569;
}

.feed-item-badge + .feed-item-badge {
    margin-left: 0.5rem;
}

.feed-item-badge--historical {
    background: rgba(99, 102, 241, 0.16);
    color: #4338ca;
}

.feed-item-badge--family {
    background: rgba(16, 185, 129, 0.16);
    color: #047857;
}

.feed-item-summary {
    line-height: 1.6;
}

.feed-discussion-headline {
    font-size: 1.05rem;
    font-weight: 700;
    color: rgba(var(--brown-red), var(--brown-green), var(--brown-blue), 1);
    margin: 0 0 0.5rem;
}

.feed-item-summary-full {
    margin-top: 0.75rem;
}

.feed-summary-collapse {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.75rem;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(var(--ocean-blue-red), var(--ocean-blue-green), var(--ocean-blue-blue), 1);
    transition: color 0.2s ease, text-decoration 0.2s ease;
}

.feed-summary-collapse:hover,
.feed-summary-collapse:focus-visible {
    color: rgba(var(--burnt-orange-red), var(--burnt-orange-green), var(--burnt-orange-blue), 1);
    text-decoration: underline;
    outline: none;
}

.feed-item-thumb {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.feed-item .feed-item-thumb,
.feed-item .feed-item-media-image {
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    transform-origin: center center;
}

.feed-item .feed-item-thumb:hover,
.feed-item .feed-item-media-image:hover {
    transform: scale(1.65);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
    z-index: 5;
}

.feed-item-timestamp {
    font-size: 0.85rem;
    color: rgba(55, 65, 81, 0.85);
}

.feed-date-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.feed-item-media-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.feed-item-media-image {
    width: 7rem;
    height: 7rem;
    object-fit: cover;
    border-radius: 0.75rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.12);
}

.feed-item-details {
    list-style: none;
    margin: 0;
    padding: 0;
}


.feed-item-detail-row--recent {
    background-color: rgba(255, 239, 150, 0.45);
    border-radius: 0.75rem;
    padding: 0.35rem 0.6rem;
    margin: 0.2rem 0;
}

.feed-item-detail-row--recent .feed-item-detail-label {
    color: rgba(var(--burnt-orange-red), var(--burnt-orange-green), var(--burnt-orange-blue), 1);
}

.feed-item-detail-row + .feed-item-detail-row {
    margin-top: 0.35rem;
}

.feed-item-detail-label {
    font-weight: 600;
    color: rgba(var(--brown-red), var(--brown-green), var(--brown-blue), 1);
    margin-right: 0.5rem;
}

.feed-item-detail-text {
    color: rgba(55, 65, 81, 0.95);
}

.feed-item-detail-link {
    color: rgba(var(--ocean-blue-red), var(--ocean-blue-green), var(--ocean-blue-blue), 1);
}

.feed-item-location-link {
    margin-left: 0.35rem;
    font-size: 1.15em;
    color: rgba(var(--ocean-blue-red), var(--ocean-blue-green), var(--ocean-blue-blue), 1);
    display: inline-flex;
    align-items: center;
}

.feed-item-location-link:hover {
    color: rgba(var(--burnt-orange-red), var(--burnt-orange-green), var(--burnt-orange-blue), 1);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.feed-item-files {
    list-style: disc;
    padding-left: 1.25rem;
    margin: 0;
}

.feed-item-files li + li {
    margin-top: 0.25rem;
}

@media (max-width: 640px) {
    .feed-summary-section {
        padding: 0 0.25rem 0.5rem 0.25rem;
    }
    .feed-summary-section .feed-summary-surface {
        padding: 0.5rem;
        border-radius: 0 0 0.75rem 0.75rem;
        gap: 0.4rem;
        justify-content: space-between;
    }
    .summary-filter {
        flex: 1 1 calc(20% - 0.4rem);
        min-width: 3.25rem;
        padding: 0.75rem 0.5rem;
        justify-content: center;
    }
    .summary-filter .summary-filter-copy,
    .summary-filter-text,
    .summary-filter-label {
        display: none;
    }
    .summary-filter-badge {
        min-width: 1.25rem;
        height: 1.25rem;
        font-size: 0.65rem;
        position: absolute;
        top: 0.35rem;
        right: 0.35rem;
    }
    .summary-filter-main {
        justify-content: center;
    }
    .summary-filter-icon {
        font-size: 1.35rem;
    }
    .feed-item-subject-image {
        width: 25%;
        max-width: 5rem;
        justify-content: flex-start;
    }
    .feed-item-subject-image .subject-key-image {
        border-radius: 0.75rem;
    }
    .feed-item-hero {
        flex-wrap: wrap;
    }
    .feed-item-heading-main {
        flex: 1 1 70%;
        min-width: 70%;
    }
}
/* Timeline media thumbnails */
.nv-timeline-media {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 96px;
    flex-shrink: 0;
}

.nv-timeline-media--photo {
    width: clamp(200px, 40%, 320px);
    max-width: 60%;
    justify-content: center;
}

.nv-timeline-media-thumb {
    width: 90px;
    height: 90px;
    border-radius: 0.75rem;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 10px 20px rgba(0,0,0,0.12);
    background-color: #fff;
}

.nv-timeline-media-trigger {
    display: block;
    width: 100%;
    height: 100%;
    border: none;
    padding: 0;
    background: transparent;
    cursor: pointer;
}

.nv-timeline-media-trigger:focus-visible {
    outline: 2px solid rgba(37, 99, 235, 0.6);
    outline-offset: 2px;
}

.nv-timeline-media-thumb--photo {
    width: 100%;
    min-width: 0;
    aspect-ratio: 2 / 3;
    min-height: 220px;
    height: auto;
    border-radius: 0.9rem;
}

.nv-timeline-media-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nv-timeline-media-thumb--photo img {
    border-radius: inherit;
}

.nv-timeline-text h4 {
    margin-top: 0;
}
