@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;600;800&display=swap');

:root {
    --primary: #1a4d2e; /* Deep Forest Green */
    --primary-light: #4f6f52;
    --secondary: #e8dfca; /* Warm Cream */
    --accent: #f5f5f5;
    --text-dark: #1a1a1a;
    --text-muted: #666;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(0,0,0,0.08);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --header-height: 120px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--accent);
    overflow-x: hidden;
}

img, video, svg {
    max-width: 100%;
    height: auto;
}

h1, h2, h3, h4 {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
}

/* Navbar */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    height: var(--header-height);
    background: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 2rem;
    min-width: 0;
}

.logo {
    font-family: 'Outfit', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    max-height: clamp(40px, 5vw, 80px);
    width: auto;
    transition: var(--transition);
}

.header-banner {
    height: clamp(28px, 4vw, 70px);
    width: auto;
    max-width: min(520px, 40vw);
    object-fit: contain;
    display: block;
    border-left: 1px solid #eee;
    padding-left: 2rem;
}

.nav-links {
    display: flex;
    gap: clamp(0.9rem, 1.6vw, 2rem);
    list-style: none;
    align-items: center;
}

.nav-links li { flex-shrink: 0; }
.li-header {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
}
.dropdown-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    color: var(--text-muted);
    cursor: pointer;
    flex-shrink: 0;
}
.dropdown-toggle:hover {
    background: rgba(26, 77, 46, 0.08);
    color: var(--primary);
}
.dropdown-toggle i { line-height: 1; }

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--primary);
}

.btn-admin {
    padding: 0.6rem 1.2rem;
    background: var(--primary);
    color: white !important;
    border-radius: 8px;
    font-size: 0.85rem;
}

/* Hero Section */
.hero {
    height: 80vh;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('../../uploads/hero.jpg') center/cover no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 0 10%;
}

.hero h1 {
    font-size: clamp(1.8rem, 4.2vw, 4rem);
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease;
}

.hero p {
    font-size: clamp(0.95rem, 1.4vw, 1.25rem);
    max-width: 700px;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease;
}

/* Sections */
section {
    padding: 5rem 10%;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: clamp(1.6rem, 2.4vw, 2.5rem);
    color: var(--primary);
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .section-title h2 { font-size: 1.8rem; }
    .section-title p { font-size: 1rem !important; }
}

.section-title span {
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary);
    margin: 0 auto;
    border-radius: 2px;
}

/* Grid Layouts */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.responsive-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
}

.page-header {
    background: var(--primary);
    color: white;
    text-align: center;
    padding: 6rem 10% 4rem;
}

.page-header h1 {
    font-size: clamp(1.8rem, 3.2vw, 3.5rem);
    margin-bottom: 1rem;
}

.page-header p {
    font-size: clamp(0.95rem, 1.2vw, 1.2rem);
    opacity: 0.8;
    max-width: 800px;
    margin: 0 auto;
}

/* Cards */
.card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.05);
}

.card:hover {
    transform: translateY(-10px);
}

.card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-content {
    padding: 2rem;
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Homepage Slider */
.slider-container {
    position: relative;
    height: 600px;
    overflow: hidden;
    background: #000;
}

.slide {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 0 10%;
}

.slide.active { opacity: 1; }

.slide::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: 1;
}

.slide-content { position: relative; z-index: 2; }

.slide h1 { 
    font-size: 3.5rem; 
    margin-bottom: 1rem; 
    transform: translateY(30px); 
    transition: 0.8s; 
    opacity: 0; 
}

.slide p { 
    font-size: 1.25rem; 
    max-width: 800px; 
    transform: translateY(30px); 
    transition: 1s; 
    opacity: 0; 
}

.slide.active h1, .slide.active p { transform: translateY(0); opacity: 1; }

.slider-btn {
    position: absolute;
    top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    color: white;
    border: none;
    width: 50px; height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: 0.3s;
}

.slider-btn:hover { background: var(--primary); }
.prev { left: 20px; }
.next { right: 20px; }

/* Announcements Section */
.ann-section { padding: 8rem 10%; background: #fdfdfd; }

.ann-grid, .ann-page-grid, .project-page-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); 
    gap: 3rem; 
    max-width: 1400px;
    margin: 0 auto;
    justify-content: center;
}

.ann-page-grid, .project-page-grid { padding: 5rem 10%; }

.ann-card, .project-card {
    background: white;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.03);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
}

.ann-card:hover, .project-card:hover { 
    transform: translateY(-15px); 
    box-shadow: 0 30px 60px rgba(26, 77, 46, 0.12); 
    border-color: var(--primary); 
}

.ann-img, .project-img { width: 100%; height: 250px; object-fit: cover; transition: transform 0.8s ease; }
.project-content { padding: 2.5rem; flex-grow: 1; display: flex; flex-direction: column; }
.project-title { font-family: 'Outfit'; font-size: 1.6rem; color: #1e293b; margin-bottom: 1.2rem; line-height: 1.3; }

.status-badge {
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.status-completed { background: #ecfdf5; color: #059669; }
.status-ongoing { background: #fff7ed; color: #c2410c; }

.ann-date-tag {
    position: absolute;
    top: 20px; right: 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 0.8rem 1.2rem;
    border-radius: 18px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    z-index: 10;
}
.ann-date-tag span { display: block; }
.ann-date-tag .day { font-size: 1.4rem; font-weight: 800; color: var(--primary); line-height: 1; }
.ann-date-tag .month { font-size: 0.75rem; font-weight: 700; color: #64748b; text-transform: uppercase; margin-top: 2px; }

.ann-content { padding: 2.5rem; flex-grow: 1; display: flex; flex-direction: column; }
.ann-category { color: var(--primary); font-size: 0.8rem; font-weight: 800; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 1rem; }
.ann-title { font-family: 'Outfit'; font-size: 1.6rem; font-weight: 800; color: #1e293b; line-height: 1.3; margin-bottom: 1.2rem; transition: 0.3s; }
.ann-desc { color: #64748b; font-size: 1rem; line-height: 1.7; margin-bottom: 2rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.ann-link {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 800;
    font-size: 0.95rem;
    transition: 0.3s;
}
.ann-link i { font-size: 0.8rem; transition: 0.3s; }

.ann-card:hover { transform: translateY(-15px); box-shadow: 0 30px 60px rgba(26, 77, 46, 0.12); border-color: var(--primary); }
.ann-card:hover .ann-img { transform: scale(1.1); }
.ann-card:hover .ann-title { color: var(--primary); }
.ann-card:hover .ann-link { gap: 15px; }

.view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 1.2rem 2.5rem;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-weight: 800;
    margin-top: 5rem;
    transition: all 0.3s;
    box-shadow: 0 10px 25px rgba(26, 77, 46, 0.2);
}
.view-all-btn:hover { background: #143d24; transform: scale(1.05); box-shadow: 0 15px 35px rgba(26, 77, 46, 0.3); }

/* About Preview */
.about-preview {
    background-color: var(--primary);
    color: white;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
    padding: 5rem 10%;
}

.about-preview img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

/* Mobile Menu Toggle */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary);
    cursor: pointer;
}

.mobile-close {
    display: none;
    position: absolute;
    top: 20px;
    right: 20px;
}

/* Footer Styles */
.site-footer {
    padding: 5rem 10% 2rem;
    background: #1a1a1a;
    color: white;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-heading {
    font-family: 'Outfit';
    margin-bottom: 1.5rem;
    color: var(--primary-light);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    opacity: 0.7;
    transition: var(--transition);
}

.footer-links a:hover {
    opacity: 1;
    color: var(--primary-light);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    opacity: 0.5;
    font-size: 0.85rem;
    position: relative;
}

.footer-admin-link {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    opacity: 0.08;
    text-decoration: none;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    transition: var(--transition);
}
.footer-admin-link:hover,
.footer-admin-link:focus-visible,
.footer-bottom:focus-within .footer-admin-link {
    opacity: 0.5;
    background: rgba(255,255,255,0.08);
}

/* Responsive */
@media (max-width: 1200px) {
    .header-banner { display: none; }
    .mobile-toggle { display: block; z-index: 1100; margin-left: 10px; }
    .mobile-close { display: block; z-index: 1100; }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 1.5rem;
        transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1050;
        padding: 4rem 2rem;
    }

    .nav-links.active { right: 0; }

    .nav-links li { 
        width: 100%; 
        text-align: center;
        opacity: 0;
        transform: translateY(20px);
        transition: 0.4s ease;
    }

    .nav-links.active li {
        opacity: 1;
        transform: translateY(0);
    }

    .nav-links a {
        font-size: 1.15rem;
        font-weight: 700;
        padding: 0.5rem;
        display: inline-block;
    }

    .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        background: rgba(0,0,0,0.03);
        margin-top: 0.5rem;
        border-radius: 12px;
        transition: max-height 0.4s ease;
    }

    .nav-links li.active .dropdown {
        max-height: 500px;
        padding: 1rem 0;
    }

    .dropdown a {
        font-size: 1rem !important;
        padding: 0.5rem 1rem !important;
    }

    .has-dropdown {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .dropdown-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 30px;
        height: 30px;
        margin-left: 10px;
        background: #f0f0f0;
        border-radius: 50%;
        cursor: pointer;
        transition: 0.3s;
    }

    .li-header {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
    }

    .li-header.active .dropdown-toggle {
        transform: rotate(180deg);
        background: var(--primary);
        color: white;
    }
}

@media (max-width: 1024px) {
    .hero h1 { font-size: 3rem; }
    .header-brand { gap: 1rem; }
    .header-banner { padding-left: 1rem; }
}

@media (max-width: 768px) {
    :root { --header-height: 80px; }
    .header-brand { gap: 1rem; flex: 1; min-width: 0; }
    .logo-img { max-height: 40px; max-width: 120px; object-fit: contain; }
    .header-banner { display: none; }
    .mobile-toggle { display: block; z-index: 1100; margin-left: 10px; }
    .mobile-close { display: block; z-index: 1100; }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 1.5rem;
        transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1050;
        padding: 4rem 2rem;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li { 
        width: 100%; 
        text-align: center;
        opacity: 0;
        transform: translateY(20px);
        transition: 0.4s ease;
    }

    .nav-links.active li {
        opacity: 1;
        transform: translateY(0);
    }

    /* Staggered animation */
    .nav-links.active li:nth-child(1) { transition-delay: 0.1s; }
    .nav-links.active li:nth-child(2) { transition-delay: 0.15s; }
    .nav-links.active li:nth-child(3) { transition-delay: 0.2s; }
    .nav-links.active li:nth-child(4) { transition-delay: 0.25s; }
    .nav-links.active li:nth-child(5) { transition-delay: 0.3s; }
    .nav-links.active li:nth-child(6) { transition-delay: 0.35s; }
    .nav-links.active li:nth-child(7) { transition-delay: 0.4s; }

    .nav-links a {
        font-size: 1.2rem;
        font-weight: 700;
        padding: 0.5rem;
        display: inline-block;
    }
    
    .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        background: rgba(0,0,0,0.03);
        margin-top: 0.5rem;
        border-radius: 12px;
        transition: max-height 0.4s ease;
    }

    .nav-links li.active .dropdown {
        max-height: 500px;
        padding: 1rem 0;
    }

    .dropdown a {
        font-size: 1rem !important;
        padding: 0.5rem 1rem !important;
    }

    .has-dropdown {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .dropdown-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 30px;
        height: 30px;
        margin-left: 10px;
        background: #f0f0f0;
        border-radius: 50%;
        cursor: pointer;
        transition: 0.3s;
    }

    .li-header {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
    }

    .li-header.active .dropdown-toggle {
        transform: rotate(180deg);
        background: var(--primary);
        color: white;
    }

    .hero { height: 50vh; padding: 0 5%; }
    .hero h1 { font-size: 1.8rem; }
    .hero p { font-size: 0.9rem; }
    
    section { padding: 3rem 5%; }
    
    .grid {
        grid-template-columns: 1fr;
    }

    .site-footer { padding: 3rem 5% 2rem; }
    .footer-grid { gap: 2rem; }

    /* Homepage Overrides */
    .slider-container { height: 350px; }
    .slide h1 { font-size: 1.6rem; }
    .slide p { font-size: 0.85rem; }
    .slider-btn { width: 35px; height: 35px; font-size: 0.7rem; }
    
    .ann-section { padding: 3rem 5%; }
    .ann-grid, .ann-page-grid, .project-page-grid { grid-template-columns: 1fr; gap: 2rem; }
    .ann-page-grid, .project-page-grid { padding: 2rem 5%; }
    .ann-title, .project-title { font-size: 1.3rem; }
    
    .about-preview {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
        padding: 3rem 5%;
    }

    .responsive-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .page-header {
        padding: 4rem 5% 3rem;
    }

    .page-header h1 {
        font-size: 1.8rem;
    }

    .page-header p {
        font-size: 0.95rem;
    }

    .ann-date-tag {
        padding: 0.6rem 1rem;
        top: 15px; right: 15px;
    }
    .ann-date-tag .day { font-size: 1.2rem; }
    .ann-date-tag .month { font-size: 0.65rem; }
}

@media (max-width: 480px) {
    .header-brand { gap: 0.5rem; }
    .logo { font-size: 1rem; }
    .logo-img { max-height: 32px; max-width: 100px; }
    .header-banner { height: 28px; padding-left: 0.5rem; }
    .logo i { font-size: 1rem; }
    .hero h1 { font-size: 1.5rem; }
    .slider-container { height: 300px; }
    :root { --header-height: 65px; }
}

/* Gallery Section */
.gallery-container {
    width: 100%;
    padding: 0 10%;
    margin-bottom: 3rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
}

.gallery-container::-webkit-scrollbar {
    height: 8px;
}
.gallery-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}
.gallery-container::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 10px;
}

.gallery-grid {
    display: flex;
    gap: 1.5rem;
    padding-bottom: 1rem;
    width: max-content;
}

.gallery-item {
    width: calc((100vw - 20% - 4.5rem) / 4); /* Display 4 items on desktop */
    min-width: 280px;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    scroll-snap-align: start;
    flex-shrink: 0;
}

.gallery-item::after {
    content: '\f00e';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    color: white;
    font-size: 2rem;
    opacity: 0;
    transition: var(--transition);
    z-index: 2;
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(26, 77, 46, 0.4);
    opacity: 0;
    transition: var(--transition);
    z-index: 1;
}

.gallery-item:hover::after { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.gallery-item:hover::before { opacity: 1; }

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Lightbox Styles */
.lightbox {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.95);
    backdrop-filter: blur(10px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    max-width: 90%;
    max-height: 85vh;
    position: relative;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 10px;
    box-shadow: 0 0 50px rgba(0,0,0,0.5);
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.close-lightbox {
    position: absolute;
    top: 30px; right: 30px;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    z-index: 10001;
    transition: 0.3s;
}

.close-lightbox:hover { transform: rotate(90deg); color: var(--primary-light); }

.lightbox-btn {
    position: absolute;
    top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    color: white;
    border: none;
    width: 60px; height: 60px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    transition: 0.3s;
    z-index: 10001;
}

.lightbox-btn:hover { background: var(--primary); }
.lb-prev { left: 40px; }
.lb-next { right: 40px; }

@media (max-width: 768px) {
    .gallery-container {
        padding: 0;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
    }
    
    .gallery-grid {
        display: flex;
        padding: 0 5% 1rem;
        gap: 1rem;
        width: max-content;
    }
    
    .gallery-item {
        width: 280px;
        flex-shrink: 0;
        scroll-snap-align: center;
    }

    .lightbox-btn { width: 45px; height: 45px; font-size: 1rem; }
    .lb-prev { left: 15px; }
    .lb-next { right: 15px; }
    .close-lightbox { top: 20px; right: 20px; font-size: 2.5rem; }
}
