/* =========================
   Base / Bootstrap tweaks
   ========================= */

html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

/* =========================
   Family theme (beige/brown)
   ========================= */

:root {
    --family-bg: #e6dccf; /* medium warm tan */
    --family-card: #f3ede4; /* lighter card surface */
    --family-primary: #7a5f43; /* headings / links */
    --family-secondary: #a68a6a;
    --family-text: #3b2e22;
}

/* Page background */
body {
    background-color: var(--family-bg);
    color: var(--family-text);
}

/* Headings */
h1, h2, h3, h4, h5 {
    color: var(--family-primary);
}

/* =========================
   Navbar
   ========================= */

.navbar {
    background-color: var(--family-card) !important;
    border-bottom: 1px solid #e3d6c6;
}

.navbar-brand,
.nav-link {
    color: var(--family-primary) !important;
}

    .nav-link:hover {
        color: #5f4a34 !important;
    }

.navbar-nav .nav-link {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

/* Ensure navbar always clickable */
header {
    position: relative;
    z-index: 1050;
}

    header * {
        pointer-events: auto;
    }

/* Family-style navbar */
.family-navbar {
    background-color: var(--family-card);
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    border-bottom: none;
}

/* =========================
   Cards
   ========================= */

.card {
    background-color: var(--family-card);
    border: 1px solid #e3d6c6;
    border-radius: 12px;
}

.card-title a {
    color: var(--family-primary);
}

    .card-title a:hover {
        color: #5f4a34;
    }

/* =========================
   Links / tables / footer
   ========================= */

a {
    color: var(--family-primary);
}

    a:hover {
        color: #5f4a34;
    }

.table {
    background-color: var(--family-card);
}

    .table thead {
        background-color: #ede3d7;
    }

footer {
    color: #7a6652;
}

/* =========================
   OurKids – LIST page
   ========================= */

.ourkids-card {
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}

    .ourkids-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    }

    /* List thumbnails */
    .ourkids-card .kid-thumb {
        width: 100%;
        height: 260px;
        object-fit: cover;
        object-position: 50% 15%;
        display: block;
    }

/* =========================
   OurKids – DETAIL page
   ========================= */

/* OurKids – DETAIL page cover: left aligned, not centered */
.kid-cover-wrap {
    width: 100%;
    max-width: 1080px;
    margin-left: 0 !important;
    margin-right: auto !important;
    text-align: left;
}

.kid-cover {
    display: block;
    width: 100%;
    height: auto;
    max-height: 420px;
    object-fit: contain;
    object-position: left top;
    margin: 0 !important;
}

.kid-page {
    width: 100%;
    max-width: none;
}

.kid-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px;
}

.kid-thumb-btn {
    text-align: left;
}

.kid-thumb-img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
}

/* Force grid for grandchild galleries, even if .kid-gallery is flex elsewhere */
.kid-gallery-grid {
    display: grid !important;
    width: 100%;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.75rem;
}

    /* Each item behaves like a grid cell */
    .kid-gallery-grid .kid-thumb-wrap {
        margin: 0;
    }

    /* Make sure images scale inside the cell */
    .kid-gallery-grid .kid-thumb-img {
        width: 100%;
        height: auto;
        display: block;
    }

/* =========================
   Poetry
   ========================= */

.poetry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 14px;
}

.poetry-thumb {
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

    .poetry-thumb img {
        width: 100%;
        height: 300px;
        object-fit: cover;
        object-position: top center;
        border-radius: 10px;
        background: #f2efe8;
    }

    .poetry-thumb:hover img {
        transform: translateY(-2px);
        box-shadow: 0 10px 26px rgba(0,0,0,0.14);
    }

/* =========================
   Event page – cover + thumbs crop (keep heads)
   ========================= */



/* Event gallery thumbnails */
.event-thumb-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    object-position: 50% 15%;
    cursor: zoom-in;
}

/* =========================
   Privacy
   ========================= */

.privacy-quote {
    max-width: 700px;
    margin: 2rem auto;
    text-align: center;
    font-style: italic;
    line-height: 1.6;
}

/* =========================
   Index footer image (click + fade-in)
   ========================= */

.index-footer-link {
    display: inline-block;
}

.index-footer-image {
    max-width: 340px;
    width: 100%;
    height: auto;
    cursor: pointer;
    opacity: 0.85; /* visible even if animation fails */
}

    /* subtle fade + slight rise */
    .index-footer-image.fade-in {
        opacity: 0;
        transform: translateY(10px);
        animation: fadeInUp 1800ms cubic-bezier(0.22, 1, 0.36, 1) 500ms forwards;
    }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 0.85;
        transform: translateY(0);
    }
}

/* hover hint */
.index-footer-link:hover .index-footer-image {
    opacity: 1;
}
/* Index menu cards – thinner */
.index-menu-card {
    padding: 1.1rem 1rem;
}

    .index-menu-card h3 {
        font-size: 1.15rem;
    }
/* Home menu cards – slimmer height */
.home-menu-card .card-body {
    padding: 0.9rem 1.1rem;
}

.home-menu-card h5 {
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
}

.home-menu-card p {
    margin-bottom: 0;
    line-height: 1.05;
}
.family-navbar {
    position: sticky;
    top: 0;
    z-index: 1100;
}

.video-player {
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: 80vh;
    display: block;
    background: #000;
}
a.event-link {
    color: #000 !important; /* black */
    font-weight: 600; /* optional */
}
.table-narrow-wrapper {
    width: 100%;
    max-width: 900px; /* tweak: 850–1000px usually feels right */
}
/* Default: desktop / tablet */
.table-narrow-wrapper {
    width: 100%;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Slightly tighter cells */
#eventsAccordion table th,
#eventsAccordion table td {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

/* Mobile breakpoint */
@media (max-width: 768px) {
    .table-narrow-wrapper {
        max-width: none; /* go full width */
    }

    #eventsAccordion table th,
    #eventsAccordion table td {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

        /* Optional: keep dates compact */
        #eventsAccordion table td:first-child,
        #eventsAccordion table th:first-child {
            white-space: nowrap;
        }
}
/* Keep Date compact */
#eventsAccordion table th:first-child,
#eventsAccordion table td:first-child {
    white-space: nowrap;
    width: 1%;
}

/* Let Title take remaining space */
#eventsAccordion table th:nth-child(2),
#eventsAccordion table td:nth-child(2) {
    width: auto;
}

/* Make Link column compact (when present) */
#eventsAccordion table th:last-child,
#eventsAccordion table td:last-child {
    white-space: nowrap;
    width: 1%;
}
#eventsAccordion table td:nth-child(2) a {
    font-weight: 500;
}
/* Date stays compact */
#eventsAccordion table th:first-child,
#eventsAccordion table td:first-child {
    white-space: nowrap;
    width: 1%;
}

/* Title: dominant but capped */
#eventsAccordion table th:nth-child(2),
#eventsAccordion table td:nth-child(2) {
    max-width: 55ch; /* ← tweak: 45–65ch works well */
}

/* Allow title to wrap nicely */
#eventsAccordion table td:nth-child(2) {
    white-space: normal;
}

/* Link column gets breathing room */
#eventsAccordion table th:last-child,
#eventsAccordion table td:last-child {
    white-space: nowrap;
    width: 1%;
}


#prevPhoto,
#nextPhoto {
    font-size: 2.4rem;
    width: 3.5rem;
    height:3.5rem;
}

#prevPhoto,
#nextPhoto {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: white; /* arrow color */
    font-size: 3rem; /* arrow size */
    padding: 0;
    width: auto;
    height: auto;
}

    /* Remove Bootstrap focus / active styles */
    #prevPhoto:focus,
    #nextPhoto:focus,
    #prevPhoto:active,
    #nextPhoto:active {
        outline: none !important;
        box-shadow: none !important;
    }

/* Optional: contrast without a ring */
#prevPhoto,
#nextPhoto {
    text-shadow: 0 0 8px rgba(0,0,0,0.6);

}

.inline-img-caption {
    font-size: 0.85rem;
    text-align: left;
    display: block;
}
.inline-img-caption {
    font-size: 0.85rem;
    text-align: left;
    display: block;
}
.gallery-tile {
    width: 110px;
}

.gallery-caption {
    font-size: 0.8rem;
    line-height: 1.1;
    margin-top: 4px;
    text-align: left;
    word-break: break-word;
}

.markdown-content {
    max-width: 720px; /* adjust: 650–800px works well */
    margin-left: auto;
    margin-right: auto;
}
.modal img {
    max-width: 100%;
    max-height: 80vh;
    width: auto;
    height: auto;
    object-fit: contain;
}
/* Event page cover image */

.event-cover-img {
    width: 100%;
    height: auto;
    display: block; /* important: removes inline-gap / weird sizing */
}
.video-card {
    overflow: hidden;
}

.video-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 16; /* reels style; change to 16/9 if you prefer */
    overflow: hidden;
    background: #000;
}

    .video-thumb img,
    .video-thumb video {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.video-play {
    position: absolute;
    left: 12px;
    bottom: 12px;
    background: rgba(0,0,0,.55);
    color: #fff;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 14px;
    line-height: 1;
}
.video-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 9/16;
    overflow: hidden;
    background: #000;
}

    .video-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .video-thumb.no-thumb::before {
        content: "No thumbnail yet";
        position: absolute;
        inset: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        opacity: .65;
        font-size: 14px;
    }

.video-play {
    position: absolute;
    left: 12px;
    bottom: 12px;
    background: rgba(0,0,0,.55);
    color: #fff;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 14px;
    line-height: 1;
}
.video-card {
    max-width: 200px;
    margin: 0 auto;
}

.video-thumb {
    aspect-ratio: 9 / 16;
    max-height: 280px;
}
.kid-thumb {
    display: inline-block;
}

.kid-thumb-caption {
    text-align: center;
    max-width: 160px;
    word-break: break-word;
}
.kid-markdown {
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.6;
}

    .kid-markdown p {
        margin-bottom: 0.9rem;
    }

    .kid-markdown h2,
    .kid-markdown h3 {
        margin-top: 1.6rem;
    }

    .kid-markdown img {
        max-width: 100%;
        height: auto;
    }
.kid-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent; /* ← remove black circle */
    border: none;
    color: white;
    font-size: 3rem; /* make arrows nice & clear */
    padding: 0;
    line-height: 1;
    cursor: pointer;
    z-index: 50;
}

.kid-prev {
    left: 10px;
}

.kid-next {
    right: 10px;
}

.kid-nav:hover {
    color: #ddd; /* subtle hover, optional */
}




    .ourkids-card .kid-card-new-badge {
        display: inline-block ;
        position: absolute;
        top: .6rem;
        right: .6rem;
        z-index: 9999;
        padding: .28rem .55rem;
        border-radius: 999px;
        font-size: .75rem;
        font-weight: 700;
        letter-spacing: .04em;
        background: rgba(255, 255, 255, 0.92);
        color: #2b1d12;
        border: 1px solid rgba(0, 0, 0, 0.15);
        box-shadow: 0 2px 8px rgba(0,0,0,0.25);
    }
.kid-new-badge {
    z-index: 9999; /* force it above the image */
}

/* OurKids list card NEW badge */
.ourkids-card {
    position: relative;
}

    .ourkids-card .kid-card-new-badge {
        display: inline-block !important;
        position: absolute;
        top: .5rem;
        right: .5rem;
        z-index: 50;
    }
/* Force-hide NEW badges (beats everything) */
.kid-badge-hidden {
    display: none !important;
}
.event-cover-wrapper {
    width: 100%;
    max-width: 800px;
}

.event-cover-btn,
.event-cover-img {
    display: block;
    width: 100%;
    height: auto;
}
}
.event-cover-img {
    width: 100%;
    max-width: 800px; /* previously 1000px */
    height: auto;
}
.current-cover-img {
    max-height: 500px;
    width: auto;
    max-width: 100%;
    cursor: pointer;
    display: block;
}
.current-list-thumb {
    width: 90px;
    height: 90px;
    object-fit: cover;
    object-position: 50% 15%;
    border-radius: 8px;
    display: block;
    flex-shrink: 0;
}