/* ----------------------------------------------------------
   site.css - SHIFT MODE: collapsed sider pushes content (no overlay)
   Full file - replace existing wwwroot/css/site.css
   ---------------------------------------------------------- */
:root {
    --topbar-base-height: 56px;
    --topbar-extra-mm: 5mm;
    --topbar-height: calc(var(--topbar-base-height) + var(--topbar-extra-mm));
    --sider-width: 220px;
    --sider-collapsed-width: 64px; /* icon-only visible width when collapsed */
    --brand-blue: #0b5c7a;
    --accent-blue: #0c6aa7;
}

/* Reset and base */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.app-bg {
    background: #d8e6f2;
    min-height: 100vh;
}

/* Topbar */
.topbar {
    height: var(--topbar-height);
    background: #2f3336;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    display: flex;
    align-items: center;
    padding: 0 12px;
    gap: 12px;
    z-index: 1100;
}

.brand-logo, .logo-big {
    background: var(--brand-blue);
    color: #fff;
}

.brand-title {
    font-size: 1rem;
    color: #ffffff;
}

/* App shell: sidebar + content */
#appShell {
    width: 100%;
    max-width: 100%;
    display: flex;
    min-height: calc(100vh - var(--topbar-height) - 48px);
    transition: all .25s ease;
    transform: none;
}

/* Sider */
.sider {
    width: var(--sider-width);
    flex: 0 0 var(--sider-width);
    transition: width .25s ease, transform .25s ease, left .25s ease;
    background: #2b2f31;
    color: #e9f6ff;
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - var(--topbar-height) - 48px);
    box-shadow: inset -1px 0 0 rgba(0,0,0,0.06);
    overflow: visible;
    transform: none;
    position: relative;
    left: 0;
}

/* Content */
.content {
    flex: 1 1 auto;
    min-width: 0;
    padding-bottom: 24px;
    padding-top: 12px;
    padding-left: 18px;
    padding-right: 18px;
    transition: margin-left .25s ease, width .25s ease, padding-left .25s ease;
    margin-left: 0;
    box-sizing: border-box;
}

/* Default collapsed rule (kept for compatibility, overridden below by shift mode) */
#appShell.nav-collapsed .sider {
    width: var(--sider-collapsed-width);
    flex: 0 0 var(--sider-collapsed-width);
    transform: none; /* do not translate in shift mode */
    left: 0;
    position: relative;
    z-index: 1000;
}

/* SHIFT MODE: when nav is collapsed, push content to the right by the collapsed width */
#appShell.nav-collapsed .content {
    margin-left: var(--sider-collapsed-width);
}

/* Ensure the expanded state remains usable */
#appShell:not(.nav-collapsed) .sider {
    width: var(--sider-width);
    flex: 0 0 var(--sider-width);
    position: relative;
    left: 0;
    transform: none;
}





/* Home Page*/

header.homehead {
    padding-top: 5.5rem;
    padding-bottom: 21rem;
    text-align: center;
    color: #fff;
    background-image: url("../libImages/img-5861.jpg");
    background-repeat: no-repeat;
    background-attachment: scroll;
    background-position: center center;
    background-size: cover;
}

    header.homehead .homehead-subheading {
        font-size: 3.5rem;
        font-weight: 800;
        color: black;
        font-style: normal;
        line-height: 4.5rem;
        margin-bottom: 25px;
        font-family: "Roboto Slab", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    }

    header.homehead .homehead-heading {
        font-size: 2.25rem;
        font-weight: 700;
        line-height: 2.25rem;
        margin-bottom: 2rem;
        font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    }

@media (min-width: 768px) {
    header.homehead {
        padding-top: 5rem;
        padding-bottom: 21.5rem;
    }

        header.homehead .homehead-subheading {
            font-size: 3.25rem;
            font-style: normal;
            line-height: 3.25rem;
            margin-bottom: 3rem;
        }

        header.homehead .homehead-heading {
            font-size: 2.88rem;
            font-weight: 700;
            line-height: 4.5rem;
            margin-bottom: 4rem;
        }
}



/*Page Section*/


.page-section {
    padding: 6rem 0;
}

    .page-section h2.section-heading, .page-section .section-heading.h2 {
        font-size: 2.5rem;
        margin-top: 0;
        margin-bottom: 1rem;
    }

    .page-section h3.section-subheading, .page-section .section-subheading.h3 {
        font-size: 1rem;
        font-weight: 400;
        font-style: italic;
        font-family: "Roboto Slab", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
        margin-bottom: 4rem;
    }


section#contact {
    background-color: #212529;
    background-image: url("../libImages/globe-map.png");
    background-repeat: no-repeat;
    background-position: center;
}

    section#contact .section-heading {
        color: #fff;
    }

    section#contact form#contactForm .form-group {
        margin-bottom: 1.5rem;
    }

        section#contact form#contactForm .form-group input,
        section#contact form#contactForm .form-group textarea {
            padding: 1.25rem;
        }

            section#contact form#contactForm .form-group input.form-control {
                height: auto;
            }

    section#contact form#contactForm .form-group-textarea {
        height: 100%;
    }

        section#contact form#contactForm .form-group-textarea textarea {
            height: 100%;
            min-height: 10rem;
        }

    section#contact form#contactForm p.help-block {
        margin: 0;
    }

    section#contact form#contactForm .form-control:focus {
        border-color: #ffc800;
        box-shadow: none;
    }

    section#contact form#contactForm ::-webkit-input-placeholder {
        font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
        font-weight: 700;
        color: #ced4da;
    }

    section#contact form#contactForm :-moz-placeholder {
        font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
        font-weight: 700;
        color: #ced4da;
    }

    section#contact form#contactForm ::-moz-placeholder {
        font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
        font-weight: 700;
        color: #ced4da;
    }

    section#contact form#contactForm :-ms-input-placeholder {
        font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
        font-weight: 700;
        color: #ced4da;
    }


/* Quick Links */
.quick-links {
    display: flex;
    gap: 15px;
    margin: 20px;
}

.quick-link {
    background-color: #2980b9;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    text-align: center;
    transition: transform 0.3s ease;
}

    .quick-link:hover {
        transform: scale(1.1);
    }

/* Responsive Adjustments */
@media (max-width: 768px) {
    .sidebar {
        width: 50px;
    }

    .dashboard-stats {
        flex-direction: column;
    }
}

/* Utility Classes */
.text-muted {
    color: #6c757d;
}

.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,0.075);
}



/* Small-screen behavior: mobile uses overlay/drawer style */
@media (max-width: 991.98px) {
    .sider {
        position: fixed;
        top: var(--topbar-height);
        bottom: 0;
        z-index: 1040;
        transform: translateX(calc(-1 * var(--sider-width)));
        width: var(--sider-width);
    }

    #appShell:not(.nav-collapsed) .sider {
        transform: translateX(0);
    }

    #appShell.nav-collapsed .sider {
        transform: translateX(calc(-1 * var(--sider-width)));
    }

    .content {
        width: 100%;
        padding-left: 12px;
        padding-right: 12px;
        margin-left: 0;
    }

    /* On mobile, collapsed/closed state overlays content (no shift) */
    #appShell.nav-collapsed .content {
        margin-left: 0;
    }
}

/* Sider inner structure */
.sider-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding-top: 8px;
    position: relative;
}

/* Logo and toggle area styling (adjust as needed) */
.logo-big {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

/* Navigation */
.sider-nav {
    margin-top: 8px;
    padding: 0 8px;
    flex: 0 0 auto;
}

    .sider-nav .nav-item {
        margin-bottom: 4px;
    }

    .sider-nav .nav-link {
        display: flex;
        align-items: center;
        gap: 0;
        padding: .55rem .65rem;
        border-radius: .45rem;
        color: #dbeff7;
        text-decoration: none;
        cursor: pointer;
        width: 100%;
        box-sizing: border-box;
        position: relative;
    }

        .sider-nav .nav-link .icon-slot,
        .sider-nav .nav-link i {
            width: 48px;
            min-width: 48px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            color: #cfe8f6;
            flex: 0 0 48px;
        }

        .sider-nav .nav-link i {
            font-size: 20px;
            height: 28px;
            line-height: 1;
        }

        .sider-nav .nav-link .nav-text {
            flex: 1 1 auto;
            color: #dfeff9;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            padding-right: 8px;
            font-size: .96rem;
        }

    .sider-nav .collapse .nav-link.sub-link {
        padding: .4rem .6rem;
        color: #bfe6f6;
        font-size: .92rem;
    }

        .sider-nav .collapse .nav-link.sub-link:hover {
            background: rgba(255,255,255,0.02);
            color: #fff;
            border-radius: .35rem;
        }

    .sider-nav .nav-link:hover, .sider-nav .nav-link.open {
        background: rgba(255,255,255,0.04);
        color: #fff;
    }

/* When collapsed hide labels and center icons */
#appShell.nav-collapsed .sider .nav-text,
#appShell.nav-collapsed .sider .logo-text,
#appShell.nav-collapsed .sider .sub-link {
    display: none !important;
}

#appShell.nav-collapsed .sider .nav-link {
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
    height: 48px;
    box-sizing: border-box;
}

    #appShell.nav-collapsed .sider .nav-link .icon-slot,
    #appShell.nav-collapsed .sider .nav-link i {
        width: 100%;
        min-width: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

/* Icon sizing */
#appShell .sider .nav-link i {
    font-size: 20px;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Settings row */
.sider .settings-row {
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-top: 1px solid rgba(255,255,255,0.02);
    flex-shrink: 0;
}

    .sider .settings-row i,
    .sider .settings-row svg {
        font-size: 1.15rem;
        color: #e6f7ff;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

.sider .settings-text {
    color: #e6f7ff;
    font-size: .92rem;
}

#appShell.nav-collapsed .sider .settings-text {
    display: none !important;
}

#appShell.nav-collapsed .sider .settings-row {
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
}

/* Main content & containers */
.container-fluid.py-3 {
    padding-top: 18px;
    padding-left: 20px;
    padding-right: 20px;
    max-width: 100%;
}

/* KPI and action cards (kept from previous file) */
.kpi {
    background: linear-gradient(#8a8a8a, #6f6f6f);
    color: #fff;
    border-radius: 16px;
    padding: 18px 16px;
    text-align: center;
    border: 1px solid #5b5b5b;
}

.kpi-value {
    font-size: 44px;
    line-height: 1;
    font-weight: 700;
}

.kpi-label {
    font-size: 15px;
    opacity: .95;
    margin-top: 6px;
}

.d-grid.action-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.action-card {
    background: linear-gradient(180deg,#ffffff,#f1f7fb);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 10px;
    padding: 18px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    cursor: pointer;
    transition: transform .08s ease, box-shadow .08s ease;
    min-height: 96px;
}

    .action-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 18px rgba(0,0,0,0.08);
    }

.action-icon {
    font-size: 36px;
    color: var(--accent-blue);
    display: block;
}

.action-label {
    font-size: .95rem;
    color: #0b2b35;
    margin-top: 6px;
    text-align: center;
}

/* Helpers and responsive tweaks */
.h-scroll {
    overflow-x: auto;
}

.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Accessibility & focus */
.sider .nav-link:focus {
    box-shadow: 0 0 0 3px rgba(12,106,167,0.12);
    background: rgba(255,255,255,0.04);
    border-radius: 6px;
    outline: none;
}

/* Final safety: ensure no transforms remain that hide content */
#appShell {
    transform: none;
}

.sider {
    transform: none;
}

/* Mobile-specific ensures */
@media (max-width: 767px) {
    .d-grid.action-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .action-icon {
        font-size: 32px;
    }
}

/* Swap logo and toggle visual order helper (if you can't change HTML).
   Adjust selector if your toggle id or logo class differs. */
.sider-inner {
    display: flex;
    align-items: center;
    gap: 8px;
}

    .sider-inner #navToggle {
        order: 2;
    }

    .sider-inner .logo-big {
        order: 1;
        margin-right: 6px;
    }

/*override gap*/
main.content.flex-grow-1 {
    margin-left: 0 !important;
}

/* ===== Calendar controls: pin prev/next buttons + title top-right as one row ===== */
/* NOTE: This block  targets the prevWeekBtn, nextWeekBtn and calendarTitle (via their
   container .controls) and positions them as a single horizontal row at the
   top-right corner of the .card-body. No other existing rules were changed. */

.card-body {
    position: relative; /* create positioning context for absolute placement */
}

    /* target the controls container (use existing .controls) and force horizontal layout */
    .card-body .controls {
        display: flex;
        align-items: center;
        gap: 0.5rem; /* space between buttons and title */
        position: absolute;
        top: 0.5rem; /* adjust vertical offset from the top of card-body */
        right: 0.5rem; /* adjust horizontal offset from the right edge */
        white-space: nowrap; /* keep elements on one line */
        z-index: 10; /* ensure it sits above other card content */
    }

        /* make sure the small title doesn't add extra vertical margins */
        .card-body .controls #calendarTitle,
        .card-body .controls .small,
        .card-body .controls .title {
            margin: 0;
            line-height: 1;
            font-size: 0.9rem; /* adjust to taste */
        }

        /* tighten button sizing/vertical alignment */
        .card-body .controls .btn,
        .card-body .controls button {
            padding: 0.25rem 0.5rem;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            height: auto;
        }

/* responsive: if card gets narrow, move controls into normal flow and wrap */
@media (max-width: 480px) {
    .card-body .controls {
        position: static;
        margin-bottom: 0.5rem;
        flex-wrap: wrap;
        justify-content: flex-end;
    }
}



/* Notice Board card + actions (append to end of site.css) */
.notice-card {
    background: linear-gradient(180deg,#ffffff,#f7fbff);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 10px;
    padding: 12px;
    box-sizing: border-box;
    margin-top: 12px;
}

    /* Header: title left, post button right */
    .notice-card .notice-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        margin-bottom: 8px;
    }

    /* Header title */
    .notice-card .notice-title {
        font-weight: 600;
        font-size: 1rem;
        color: #073440;
        margin: 0;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    /* Post button (icon-only) */
    .notice-card .btn-post {
        background: transparent;
        border: none;
        color: var(--accent-blue);
        padding: 6px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 6px;
        cursor: pointer;
    }

        .notice-card .btn-post:hover {
            background: rgba(12,106,167,0.06);
        }

    /* Body list of posts */
    .notice-card .notice-body {
        max-height: 360px;
        overflow-y: auto;
        padding-top: 6px;
        padding-bottom: 6px;
    }

    /* Empty placeholder */
    .notice-card .empty-placeholder {
        color: #667783;
        padding: 8px 6px;
    }

    /* Post item */
    .notice-card .post {
        display: flex;
        gap: 12px;
        padding: 10px;
        border-radius: 8px;
        align-items: flex-start;
        background: #fff;
        border: 1px solid rgba(0,0,0,0.03);
        margin-bottom: 8px;
        box-shadow: 0 1px 0 rgba(0,0,0,0.02);
    }

        /* archived look */
        .notice-card .post.archived {
            opacity: 0.6;
            background: linear-gradient(180deg,#fafafa,#f3f6f8);
            text-decoration: line-through;
        }

    /* Post body (title, text, meta) */
    .notice-card .post-body {
        flex: 1 1 auto;
        min-width: 0;
    }

    .notice-card .post-title {
        margin-bottom: 4px;
        font-size: .95rem;
        color: #02343a;
    }

    .notice-card .post-text {
        margin-bottom: 6px;
        color: #4a5a63;
        font-size: .92rem;
    }

    /* meta line */
    .notice-card .post-meta {
        color: #8a99a6;
        font-size: .8rem;
    }

    /* Actions: icon buttons, stacked vertically */
    .notice-card .post-actions {
        display: flex;
        flex-direction: column;
        gap: 6px;
        align-items: center;
        margin-left: 6px;
    }

        /* Icon-only action buttons */
        .notice-card .post-actions .icon-btn {
            background: transparent;
            border: none;
            padding: 6px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border-radius: 6px;
            cursor: pointer;
            color: #6b7780;
        }

            .notice-card .post-actions .icon-btn:hover {
                background: rgba(0,0,0,0.04);
            }

        /* semantic coloring */
        .notice-card .post-actions .icon-archive {
            color: #0c6aa7;
        }

        .notice-card .post-actions .icon-remove {
            color: #c72a2a;
        }

.calendar-card {
    max-width: 100%; /* Prevents it from exceeding its parent's width */
    overflow: hidden; /* Hides overflow content */
    padding: 1rem; /* Adding padding inside the card */

}

.calendar-grid {
    display: grid; /* Change this to flex if needed */
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); /* Adjust as needed */
    gap: 10px; /* Space between grid items */
}

.calendar-header {
    white-space: nowrap; /* Prevents text wrapping */
    overflow: hidden; /* Hides overflow */
    text-overflow: ellipsis; /* Adds ellipsis (...) for overflowing text */
}


/* Calendar container - prevent overflow */
#miniCalendar {
    overflow: hidden;
}

/* Calendar grid improvements */
.cal-cell {
    min-height: 80px;
    max-height: 120px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Day header stays at top */
.day-header {
    flex-shrink: 0;
    margin-bottom: 0.5rem;
}

/* Badge container - prevent overflow */
.cal-cell .badge,
.cal-cell .d-flex.gap-1 {
    font-size: 0.65rem !important;
    padding: 0.15rem 0.35rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* Stack badges vertically on small cells */
.cal-cell .d-flex.gap-1 {
    flex-direction: column;
    gap: 0.25rem !important;
    align-items: flex-start;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .cal-cell {
        min-height: 60px;
        padding: 0.5rem !important;
    }

        .cal-cell .badge {
            font-size: 0.6rem !important;
            padding: 0.1rem 0.25rem;
        }

    .day-number {
        font-size: 0.9rem !important;
    }

    .day-name {
        font-size: 0.7rem !important;
    }
}

/* Ensure badges don't cause horizontal overflow */
.cal-cell > * {
    max-width: 100%;
}


.nav-icon {
    aspect-ratio: 1;
    padding: 8px;
    font-size: 1.1rem;
}

.nav-btn-extra-compact {
    height: 35px;
    padding: 4px 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-size: 0.95rem;
}

.nav-btn-compact {
    height: 45px; /* Reduced from 60px */
    padding: 8px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s ease;
    text-decoration: none;
    font-size: 1.1rem;
}

    .nav-btn-compact:hover {
        transform: translateY(-1px);
        box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    }

    .nav-btn-compact i {
        font-size: 1.2rem;
        line-height: 1;
    }




/* responsive: compress actions into a row on narrow screens */
@media (max-width: 520px) {
    .notice-card .post {
        flex-direction: column;
        align-items: stretch;
    }

    .notice-card .post-actions {
        flex-direction: row;
        justify-content: flex-end;
    }
}

/* Mobile specific adjustments */
@media (max-width: 576px) {
    .nav-btn-compact {
        height: 40px; /* Even more compact on mobile */
        padding: 6px 10px;
    }

        .nav-btn-compact i {
            font-size: 1.1rem;
        }
}



/* Print styles */
@media print {
    .card-header,
    .card-footer,
    .btn,
    .alert {
        display: none !important;
    }

    .card {
        border: none !important;
        box-shadow: none !important;
    }

    .section-title {
        border-bottom: 2px solid #000 !important;
        color: #000 !important;
    }

    .badge {
        border: 1px solid #000 !important;
        color: #000 !important;
        background-color: transparent !important;
    }


}

.time-toggle-btn.active {
    /*  background-color: #0d6efd !important;*/
    background-color: transparent !important;
    border-color: #0d6efd !important;
    color: white !important;
}

.time-toggle-btn.btn-outline-secondary {
    background-color: transparent !important;
    color: #6c757d !important;
    border-color: #6c757d !important;
}

    .time-toggle-btn.btn-outline-secondary i {
        color: #6c757d !important;
    }

.time-toggle-btn.active i {
    color: white !important;
}

/* ============================================
   PHOTO GALLERY - Main Grid (Task View)
   ============================================ */

/* Photo gallery grid container - CHANGED TO FLEX */
div[id^="photoGalleryGrid-"],
.photo-gallery-grid {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 12px;
    padding: 16px 0;
}

/* Individual photo thumbnail container */
.photo-thumbnail-container {
    width: 100px;
    height: 100px;
    flex-shrink: 0; /* Prevent shrinking */
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    border: 2px solid #dee2e6;
    cursor: pointer;
    transition: all 0.2s ease;
    background-color: #f8f9fa;
}

    .photo-thumbnail-container:hover {
        border-color: #0d6efd;
        transform: scale(1.05);
        box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    }

/* Photo thumbnail image */
.photo-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Delete button on thumbnails */
.photo-thumbnail-container .btn-danger {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    padding: 0;
    font-size: 12px;
    line-height: 1;
    border-radius: 50%;
    z-index: 10;
}

/* ============================================
   PHOTO GALLERY MODAL
   ============================================ */

/* Modal carousel container */
.carousel-item {
    text-align: center;
    background-color: #000;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Main carousel images */
.carousel-inner img {
    max-height: 70vh;
    max-width: 100%;
    width: auto;
    margin: 0 auto;
    object-fit: contain;
}

/* Modal thumbnail strip container */
#photoThumbnailStrip {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 8px;
    padding: 8px 0;
    scrollbar-width: thin;
    scrollbar-color: #6c757d #f8f9fa;
}

    /* Webkit scrollbar styling for thumbnail strip */
    #photoThumbnailStrip::-webkit-scrollbar {
        height: 8px;
    }

    #photoThumbnailStrip::-webkit-scrollbar-track {
        background: #f8f9fa;
        border-radius: 4px;
    }

    #photoThumbnailStrip::-webkit-scrollbar-thumb {
        background: #6c757d;
        border-radius: 4px;
    }

        #photoThumbnailStrip::-webkit-scrollbar-thumb:hover {
            background: #495057;
        }

/* Individual modal thumbnail container */
.modal-thumbnail-container {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    border: 2px solid #dee2e6;
    cursor: pointer;
    transition: all 0.2s ease;
    background-color: #f8f9fa;
}

    /* Active modal thumbnail */
    .modal-thumbnail-container.active {
        border-color: #0d6efd;
        box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.25);
    }

    /* Modal thumbnail hover effect */
    .modal-thumbnail-container:hover {
        border-color: #0d6efd;
        transform: scale(1.05);
    }

/* Modal thumbnail image */
.modal-thumbnail-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */

/* Smaller screens */
@media (max-width: 576px) {
    .photo-thumbnail-container {
        width: 80px;
        height: 80px;
    }

    .modal-thumbnail-container {
        width: 60px;
        height: 60px;
    }
}