/* Scroll animations are defined in assets/css/main.css */

    /* Scroll-reveal on the section hid the whole gallery (blank white area). */
    .gallery-section,
    .gallery-section.reveal-zoom,
    .gallery-item,
    .gallery-item.reveal-pop,
    .gallery-item.reveal-zoom,
    .gallery-item.fade-in-up {
        opacity: 1;
        transform: none;
        filter: none;
    }

    /* Gallery Page Styles */
    .page-hero {
        background-color: #EDF2F7;
        color: #1A365D;
        padding: 100px 20px;
        text-align: center;
        position: relative;
        overflow: hidden;
    }

    .page-hero-container {
        max-width: 1200px;
        margin: 0 auto;
        position: relative;
        z-index: 2;
    }

    .page-hero h1 {
        font-family: 'Plus Jakarta Sans', sans-serif;
        font-size: 36px;
        font-weight: 700;
        margin-bottom: 15px;
        line-height: 1.2;
        color: #1A365D;
    }

    .page-hero p {
        font-size: 18px;
        color: #4A5568;
        max-width: 700px;
        margin: 0 auto;
    }

    /* Gallery Section */
    .gallery-section {
        padding: 80px 20px;
        background-color: #FFFFFF;
    }

    .gallery-container {
        max-width: 1200px;
        margin: 0 auto;
    }

    .gallery-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 25px;
        margin-top: 40px;
    }

    .gallery-item {
        position: relative;
        overflow: hidden;
        border-radius: 12px;
        border: 3px dotted #2C5282;
        cursor: pointer;
        transition: all 0.3s ease;
        background-color: #FFFFFF;
        aspect-ratio: 1;
    }

    .gallery-item:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 25px rgba(26, 54, 93, 0.18);
        border-color: #1A365D;
    }

    .gallery-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: transform 0.3s ease;
    }

    .gallery-item:hover img {
        transform: scale(1.05);
    }

    .gallery-item-overlay {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        background: linear-gradient(to top, rgba(27, 94, 32, 0.9), transparent);
        padding: 15px;
        color: #FFFFFF;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .gallery-item:hover .gallery-item-overlay {
        opacity: 1;
    }

    .gallery-item-number {
        font-weight: 600;
        font-size: 14px;
    }

    /* Lightbox Modal */
    .lightbox-modal {
        display: none;
        position: fixed;
        z-index: 2000;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.95);
        overflow: auto;
    }

    .lightbox-modal.active {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .lightbox-content {
        position: relative;
        max-width: 90%;
        max-height: 90%;
        margin: auto;
    }

    .lightbox-content img {
        max-width: 100%;
        max-height: 90vh;
        object-fit: contain;
        border-radius: 8px;
    }

    .lightbox-close {
        position: absolute;
        top: -40px;
        right: 0;
        color: #FFFFFF;
        font-size: 40px;
        font-weight: bold;
        cursor: pointer;
        transition: color 0.3s ease;
    }

    .lightbox-close:hover {
        color: #3182CE;
    }

    .lightbox-nav {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background-color: rgba(255, 255, 255, 0.2);
        color: #FFFFFF;
        border: none;
        padding: 15px 20px;
        font-size: 24px;
        cursor: pointer;
        border-radius: 50%;
        transition: all 0.3s ease;
    }

    .lightbox-nav:hover {
        background-color: rgba(255, 255, 255, 0.3);
    }

    .lightbox-prev {
        left: 20px;
    }

    .lightbox-next {
        right: 20px;
    }

    /* Responsive Design */
    @media (max-width: 1024px) {
        .gallery-grid {
            grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
            gap: 20px;
        }

        .page-hero h1 {
            font-size: 32px;
        }

        .page-hero p {
            font-size: 16px;
        }
    }

    @media (max-width: 768px) {
        .page-hero {
            padding: 60px 20px;
        }

        .page-hero h1 {
            font-size: 28px;
        }

        .page-hero p {
            font-size: 15px;
        }

        .gallery-section {
            padding: 50px 15px;
        }

        .gallery-grid {
            grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
            gap: 15px;
        }

        .lightbox-nav {
            padding: 10px 15px;
            font-size: 20px;
        }

        .lightbox-prev {
            left: 10px;
        }

        .lightbox-next {
            right: 10px;
        }
    }
