/* ===== FIX FOR FIXED NAVBAR ===== */
.gallery-header {
    padding-top: 140px; /* navbar height + breathing space */
    padding-bottom: 4rem;
    background: linear-gradient(135deg, var(--primary-green), var(--light-green));
    text-align: center;
    color: white;
}

/* ===== TITLES ===== */
.page-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.page-subtitle {
    font-size: 1.3rem;
    opacity: 0.95;
}

/* ===== GALLERY GRID ===== */
.gallery-section {
    padding: 5rem 3rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.gallery-item {
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

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

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 60px rgba(45,90,61,0.25);
}

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

/* ===== PAGINATION ===== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 4rem;
}

.page-btn {
    padding: 0.9rem 2.2rem;
    border-radius: 50px;
    border: 2px solid var(--primary-green);
    background: var(--primary-green);
    color: white;
    cursor: pointer;
    transition: 0.3s ease;
}

.page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.page-btn:hover:not(:disabled) {
    background: transparent;
    color: var(--primary-green);
}

/* ===== LIGHTBOX ===== */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.lightbox img {
    max-width: 90%;
    max-height: 85%;
    border-radius: 10px;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 3rem;
    color: white;
    cursor: pointer;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
    padding: 1rem;
}

.lightbox-nav.prev { left: 30px; }
.lightbox-nav.next { right: 30px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .page-title {
        font-size: 2.4rem;
    }
}

@media (max-width: 480px) {
    .pagination {
        flex-direction: row;      
        justify-content: space-between;
        gap: 0.8rem;
        padding: 0 0.5rem;
    }

    .page-btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.85rem;
        white-space: nowrap;
    }

    #pageInfo {
        font-size: 0.8rem;
        opacity: 0.85;
        white-space: nowrap;
    }
}

