/* Gallery Specific Styles - High-End Artist Look */
.gallery-wrapper {
    margin-top: 60px;
    margin-bottom: 120px;
}

.gallery-grid {
    column-count: 3;
    column-gap: 30px;
    orphans: 1;
    widows: 1;
}

@media (max-width: 1400px) {
    .gallery-grid {
        column-count: 2;
    }
}

@media (max-width: 800px) {
    .gallery-grid {
        column-count: 1;
    }
}

.gallery-card {
    display: inline-block;
    /* Crucial for column-count to not break items */
    width: 100%;
    margin-bottom: 30px;
    overflow: hidden;
    position: relative;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

.gallery-card img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s var(--transition);
}

.gallery-card:hover img {
    transform: scale(1.05);
}

.gallery-caption {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    padding: 15px 25px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    color: var(--text);
    font-weight: 700;
    font-size: 0.95rem;
    text-align: center;
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.4s var(--transition);
    pointer-events: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.gallery-card:hover .gallery-caption {
    opacity: 1;
    transform: translateY(0);
}

/* Pagination - Glass Pill Style */
.pagination {
    margin-top: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.page-link {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: var(--white);
    border: 1px solid var(--glass-border);
    color: var(--text);
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
}

.page-link.active {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 10px 20px rgba(0, 77, 64, 0.2);
    border: none;
}

.page-link:not(.active):hover {
    background: var(--bg-alt);
    border-color: var(--accent-green);
    transform: translateY(-3px);
}

.next-link {
    padding: 0 30px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: var(--accent);
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
    margin-left: 20px;
    transition: var(--transition);
}

.next-link:hover {
    background: var(--accent-green);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px var(--accent-glow);
}

.gallery-seo-text {
    margin-top: 100px;
    padding: 60px;
    background: var(--white);
    border-radius: 40px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-soft);
}

.gallery-seo-text h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 25px;
}

.gallery-seo-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.gallery-seo-text p:last-child {
    margin-bottom: 0;
}

.gallery-seo-text strong {
    color: var(--accent);
    font-weight: 700;
}