/* =========================================================
   Theme variables — light (default) and dark
   ========================================================= */
:root {
    --bg: #ffffff;
    --text: #333333;
    --surface: #ffffff;
    --surface-alt: #f4f4f4;
    --surface-translucent: #ffffffc5;
    --input-bg: #ffffff;
    --input-border: #cccccc;
    --card-shadow: rgba(0, 0, 0, 0.1);
    --brand: #00992ec5;
    --brand-dark: #007a25c5;
}

[data-theme="dark"] {
    --bg: #121212;
    --text: #e6e6e6;
    --surface: #1e1e1e;
    --surface-alt: #181818;
    --surface-translucent: #1e1e1ecc;
    --input-bg: #2a2a2a;
    --input-border: #444444;
    --card-shadow: rgba(0, 0, 0, 0.4);
}

/* General styling */
body {
    margin: 0;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    line-height: 1.6;
    font-size: medium;
    background-color: var(--bg);
    color: var(--text);
    transition: background-color 0.3s ease, color 0.3s ease;
}

header {
    background-color: #00992ec5;
    color: white;
    padding: 1em 0;
    size: 20px;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow 0.3s ease, padding 0.3s ease;
}

header.scrolled {
    padding: 0.5em 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

nav {
    position: relative;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 10px 0 0;
}

nav ul li {
    display: inline;
    margin: 0 15px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

nav ul li a:hover,
nav ul li a.active {
    text-decoration: underline;
}

/* Hamburger toggle button (hidden on desktop) */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.nav-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: white;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.open span:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
}

/* Back-to-top button */
#backToTop {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: #00992ec5;
    color: white;
    border: none;
    font-size: 1.3em;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    z-index: 999;
}

#backToTop.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#backToTop:hover {
    background-color: #007a25c5;
}

/* Mobile navigation */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    nav ul {
        display: none;
        flex-direction: column;
        margin-top: 15px;
    }

    nav ul.open {
        display: flex;
    }

    nav ul li {
        display: block;
        margin: 10px 0;
    }
}

/* Home Section */
#home {
    position: relative;
    background: url('https://images.unsplash.com/photo-1523580494863-6f3031224c94') no-repeat center/cover;
    color: white;
    text-align: center;
    padding: 120px 20px 0;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.75));
}

#home .content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
    padding-bottom: 60px;
}

#home h2 {
    font-size: 2.4em;
    margin-bottom: 10px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 25px;
}

.btn {
    display: inline-block;
    background-color: #00992ec5;
    color: white;
    padding: 12px 28px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.2s ease, background-color 0.3s ease;
}

.btn:hover {
    background-color: #007a25c5;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid white;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.mission-statement {
    margin-top: 30px;
    font-style: italic;
    font-size: 1em;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Stats bar */
.stats-bar {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    background-color: rgba(0, 0, 0, 0.35);
    padding: 30px 20px;
    margin-top: 40px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 110px;
}

.stat-number {
    font-size: 2.2em;
    font-weight: bold;
    color: #4CCB6B;
}

.stat-label {
    font-size: 0.9em;
    opacity: 0.9;
    margin-top: 4px;
    text-align: center;
}

@media (max-width: 600px) {
    #home h2 {
        font-size: 1.8em;
    }

    .stats-bar {
        gap: 25px;
    }

    .stat-number {
        font-size: 1.8em;
    }
}

/* Programs Section */
#programs {
    background: url('https://images.unsplash.com/photo-1523580494863-6f3031224c94') no-repeat center/cover;
    padding: 60px 20px;
    color: white;
    background-color: #000000;
    text-align: center;
}

.programs-intro {
    max-width: 600px;
    margin: 0 auto 40px;
    opacity: 0.9;
}

.program-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    color: #000000;
    gap: 25px;
}

.program-card {
    background: var(--surface-translucent);
    border-radius: 10px;
    width: 280px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-align: left;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.program-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.25);
}

.program-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

.program-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.program-icon {
    font-size: 1.8em;
    margin-bottom: 5px;
    color: var(--brand);
}

.program-card h3 {
    color: #00992ec5;
    margin: 0 0 8px;
}

.program-meta {
    list-style: none;
    padding: 0;
    margin: 12px 0;
    font-size: 0.9em;
    color: #333;
}

.program-meta li {
    margin-bottom: 4px;
}

.program-meta li i {
    color: var(--brand);
    width: 1.1em;
    text-align: center;
}

.program-learn-label {
    font-weight: bold;
    margin: 10px 0 5px;
    font-size: 0.9em;
}

.program-skills {
    list-style: none;
    padding: 0;
    margin: 0 0 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.program-skills li {
    background-color: #00992e22;
    color: #00742bc5;
    font-size: 0.8em;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: bold;
}

.program-btn {
    margin-top: auto;
    align-self: flex-start;
}

/* Contact Section */
#contact {
    background: url('https://images.unsplash.com/photo-1523580494863-6f3031224c94') no-repeat center/cover;
    padding: 40px 10px;
    color: rgb(252, 251, 251);
    text-align: center;
    text-indent: #ffffffc5;
}

form {
    max-width: 300px;
    margin: auto;
}

input, textarea {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border-radius: 5px;
    border: 1px solid var(--input-border);
    background-color: var(--input-bg);
    color: var(--text);
}

button {
    background-color: #00992ec5;
    color: white;
    border: transparent;
    padding: 10px 25px;
    border-radius: 5px;
    cursor: pointer;
}

button:hover {
    background-color: #00992ec5;
}

/* Footer */
footer {
    background-color: #00992ec5;
    color: white;
    text-align: center;
    padding: 7px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .program-container {
        flex-direction: column;
        align-items: center;
    }
}

/* About Section */
#about {
    background: url('https://images.unsplash.com/photo-1523580494863-6f3031224c94') no-repeat center/cover;
    padding: 60px 20px;
    background-color: var(--surface-alt);
    text-align: center;
}

.about-container {
    color: var(--text);
    max-width: 1000px;
    margin: auto;
}

.about-container h2 {
    color: var(--brand);
    margin-bottom: 20px;
}

.about-container p {
    color: var(--text);
    font-size: 1.1em;
    margin-bottom: 20px;
}

.about-grid {
    display: flex;
    color: var(--text);
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.about-card {
    background: var(--surface);
    padding: 20px;
    border-radius: 10px;
    width: 280px;
    box-shadow: 0 4px 8px rgba(252, 251, 251, 0.301);
    text-align: left;
}

.about-card h3 {
    color: #00992ec5;
    margin-bottom: 8px;
}

.about-card ul {
    list-style: disc;
    padding-left: 20px;
}

/* Responsive Layout for About Page */
@media (max-width: 768px) {
    .about-grid {
        flex-direction: column;
        align-items: center;
    }
}

/* =========================================================
   Contact Form — validation, honeypot, loading state, status
   ========================================================= */

.hidden-field {
    position: absolute;
    left: -9999px;
    top: -9999px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.form-group {
    text-align: left;
}

input.invalid,
textarea.invalid {
    border-color: #e74c3c;
    box-shadow: 0 0 0 1px #e74c3c;
}

.error-message {
    display: block;
    min-height: 1.2em;
    color: #ffdddd;
    background: rgba(231, 76, 60, 0.15);
    font-size: 0.85em;
    margin-top: -6px;
    margin-bottom: 4px;
    padding: 0 4px;
}

#submitBtn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 140px;
}

#submitBtn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

#submitBtn.loading .btn-spinner {
    display: inline-block;
}

#submitBtn.loading .btn-text {
    opacity: 0.7;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.form-status {
    margin-top: 15px;
    padding: 0;
    border-radius: 6px;
    font-weight: bold;
    min-height: 1.2em;
    transition: padding 0.2s ease;
}

.form-status.success {
    padding: 12px;
    background-color: rgba(46, 204, 113, 0.9);
    color: white;
}

.form-status.error {
    padding: 12px;
    background-color: rgba(231, 76, 60, 0.9);
    color: white;
}

/* =========================================================
   Accessibility — skip link, focus states, smooth scroll
   ========================================================= */

html {
    scroll-behavior: smooth;
}

.skip-link {
    position: absolute;
    top: -50px;
    left: 10px;
    background: #00992ec5;
    color: white;
    padding: 10px 16px;
    border-radius: 0 0 6px 6px;
    z-index: 2000;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 0;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 3px solid #4CCB6B;
    outline-offset: 2px;
}

/* =========================================================
   Fade-in on scroll
   ========================================================= */

/* Visible by default. JS adds .fade-in-armed only once it has successfully
   set up the observer that will reveal the element again — so if the script
   fails to load or errors out, content is never left permanently invisible. */
.fade-in.fade-in-armed {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.fade-in-armed.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .fade-in.fade-in-armed {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* =========================================================
   Director's Message
   ========================================================= */

.director-section {
    background-color: var(--surface-alt);
    padding: 60px 20px;
}

.director-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 30px;
    text-align: left;
}

.director-photo {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.director-message h2 {
    color: #00992ec5;
    margin-top: 0;
}

.director-message p {
    color: var(--text);
}

.director-name {
    font-weight: bold;
    font-style: italic;
    color: #555 !important;
}

/* =========================================================
   Timeline
   ========================================================= */

.timeline-section {
    padding: 60px 20px;
    text-align: center;
    background-color: var(--bg);
}

.timeline-section h2 {
    color: #00992ec5;
    margin-bottom: 40px;
}

.timeline {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
    border-left: 3px solid #00992ec5;
    padding-left: 30px;
}

.timeline-item {
    position: relative;
    margin-bottom: 35px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -38px;
    top: 4px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: #00992ec5;
    border: 3px solid white;
    box-shadow: 0 0 0 2px #00992ec5;
}

.timeline-content h4 {
    margin: 0 0 5px;
    color: #00992ec5;
}

.timeline-content p {
    margin: 0;
    color: var(--text);
}

/* =========================================================
   Team
   ========================================================= */

.team-section {
    padding: 60px 20px;
    text-align: center;
    background-color: var(--surface-alt);
}

.team-section h2 {
    color: #00992ec5;
    margin-bottom: 40px;
}

.team-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
}

.team-card {
    background: var(--surface);
    border-radius: 10px;
    padding: 20px;
    width: 220px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.team-card img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 12px;
}

.team-card h4 {
    color: #00992ec5;
    margin: 0 0 8px;
}

.team-card p {
    font-size: 0.9em;
    color: var(--text);
    margin: 0;
}

/* =========================================================
   Success Stories
   ========================================================= */

.stories-section {
    padding: 60px 20px;
    text-align: center;
    background-color: #00992ec5;
    color: white;
}

.stories-section h2 {
    margin-bottom: 40px;
}

.stories-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    max-width: 1000px;
    margin: 0 auto;
}

.story-card {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 25px;
    width: 280px;
    text-align: left;
}

.story-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 12px;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.story-quote {
    font-style: italic;
    margin: 0 0 12px;
}

.story-author {
    font-weight: bold;
    font-size: 0.9em;
    margin: 0;
    opacity: 0.9;
}

/* =========================================================
   Partners
   ========================================================= */

.partners-section {
    padding: 60px 20px;
    text-align: center;
    background-color: var(--bg);
}

.partners-section h2 {
    color: #00992ec5;
    margin-bottom: 30px;
}

.partners-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.partners-grid a {
    display: inline-block;
    padding: 14px 22px;
    border: 2px solid #00992ec5;
    border-radius: 8px;
    color: #00992ec5;
    text-decoration: none;
    font-weight: bold;
    transition: 0.25s;
}

.partners-grid a:hover {
    background-color: #00992ec5;
    color: white;
}

/* =========================================================
   Contact page — info panel + map
   ========================================================= */

.contact-layout {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
}

.contact-info {
    flex: 1 1 280px;
    background: var(--surface-translucent);
    color: var(--text);
    border-radius: 10px;
    padding: 25px;
}

.contact-info h3 {
    color: #00992ec5;
    margin-top: 0;
}

.contact-details {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
}

.contact-details li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
}

.contact-icon,
.contact-details li i,
.social-links a i {
    color: var(--brand);
    width: 1.1em;
    text-align: center;
}

.contact-details a {
    color: #00742bc5;
    text-decoration: none;
    font-weight: bold;
}

.contact-details a:hover {
    text-decoration: underline;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 20px;
}

.social-links a {
    text-decoration: none;
    color: #00742bc5;
    font-weight: bold;
    font-size: 0.9em;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.map-embed {
    border-radius: 8px;
    overflow: hidden;
}

.map-embed iframe {
    border: 0;
    display: block;
}

form {
    flex: 1 1 300px;
    max-width: 320px;
    margin: 0;
}

/* =========================================================
   Footer
   ========================================================= */

footer {
    background-color: #1a1a1a;
    color: #eee;
    text-align: left;
    padding: 0;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 50px 20px 30px;
}

.footer-col {
    flex: 1 1 180px;
}

.footer-brand {
    flex: 1 1 240px;
}

.footer-col h3,
.footer-col h4 {
    color: white;
    margin-top: 0;
    margin-bottom: 15px;
}

.footer-col p {
    color: #bbb;
    font-size: 0.9em;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col a {
    color: #bbb;
    text-decoration: none;
    font-size: 0.9em;
}

.footer-col a:hover {
    color: white;
    text-decoration: underline;
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

.footer-social a {
    font-size: 1.3em;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 220px;
}

.newsletter-form input {
    padding: 8px;
    border-radius: 5px;
    border: 1px solid #444;
    background: #2a2a2a;
    color: white;
}

.newsletter-form button {
    background-color: #00992ec5;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

.newsletter-form button:hover {
    background-color: #007a25c5;
}

.newsletter-status {
    font-size: 0.85em;
    margin-top: 8px;
    min-height: 1.2em;
}

.newsletter-status.success {
    color: #4CCB6B;
}

.newsletter-status.error {
    color: #ff8a80;
}

.footer-bottom {
    text-align: center;
    padding: 15px;
    background-color: #111;
    color: #999;
    font-size: 0.85em;
}

@media (max-width: 600px) {
    .footer-container {
        flex-direction: column;
    }

    .contact-layout {
        flex-direction: column;
    }
}

/* =========================================================
   Dark mode toggle button
   ========================================================= */

.theme-toggle {
    background: transparent;
    border: 2px solid white;
    color: white;
    border-radius: 20px;
    padding: 4px 12px;
    cursor: pointer;
    font-size: 0.95em;
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
    transition: background-color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.theme-toggle:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

@media (max-width: 768px) {
    .theme-toggle {
        right: 60px;
        font-size: 0.85em;
        padding: 5px 8px;
    }

    .theme-toggle-label {
        display: none;
    }
}

/* =========================================================
   Loading screen (preloader)
   ========================================================= */

#preloader {
    position: fixed;
    inset: 0;
    background-color: var(--bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    z-index: 3000;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-spinner {
    width: 48px;
    height: 48px;
    border: 5px solid var(--surface-alt);
    border-top-color: var(--brand);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.preloader-text {
    color: var(--text);
    font-weight: bold;
    letter-spacing: 0.5px;
}

@media (prefers-reduced-motion: reduce) {
    .preloader-spinner {
        animation: none;
    }
}

/* =========================================================
   Typing effect (hero heading)
   ========================================================= */

.typing-cursor {
    display: inline-block;
    width: 3px;
    background-color: currentColor;
    margin-left: 2px;
    animation: blink 0.8s step-end infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .typing-cursor {
        animation: none;
    }
}

/* =========================================================
   Photo Gallery + Lightbox
   ========================================================= */

.gallery-section {
    padding: 60px 20px;
    text-align: center;
    background-color: var(--surface-alt);
}

.gallery-section h2 {
    color: var(--brand);
    margin-bottom: 10px;
}

.gallery-intro {
    max-width: 600px;
    margin: 0 auto 35px;
    color: var(--text);
    opacity: 0.85;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    max-width: 1000px;
    margin: 0 auto;
}

.gallery-item {
    padding: 0;
    border: none;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4 / 3;
    background: var(--surface);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 16px var(--card-shadow);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 30px;
    z-index: 4000;
}

.lightbox[hidden] {
    display: none;
}

.lightbox img {
    max-width: min(90vw, 900px);
    max-height: 75vh;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
    color: white;
    text-align: center;
    max-width: 600px;
    font-size: 0.95em;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 25px;
    background: transparent;
    border: 2px solid white;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.lightbox-close:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}