/* === GALLERY STYLING === */
.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 20px;
    border: 2px solid #ddd;
    background: #fff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 30px;
}

.filter-btn:hover,
.filter-btn.active {
    background: #3b3f40;
    color: white;
    border-color: #3b3f40;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.gallery-img {
    position: relative;
    display: block;
    width: 100%;
    height: auto;
    overflow: hidden;
}

.gallery-img img {
    transition: transform 0.5s ease;
    object-fit: cover;
    height: 250px; /* Fixed height for uniform grid */
}

.gallery-item:hover .gallery-img img {
    transform: scale(1.05);
}

.gallery-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255,255,255,0.9);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #333;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 2;
}

.gallery-item:hover .gallery-icon {
    opacity: 1;
}

/* Hide items not matching filter */
.gallery-item:not(.active) {
    display: none;
}

/* Show all by default */
.gallery-item {
    display: block;
}

/* Responsive for mobile */
@media (max-width: 768px) {
    .gallery-item {
        width: 100%;
    }
    .gallery-filters {
        display: inline-block;
        flex-direction: column;
        align-items: center;
        margin-top: 4%;
    }
}

/* Pagination Styling */
.pagination .page-link {
    color: #333;
    margin: 0 4px;
    border-radius: 5px;
    padding: 6px 12px;
    text-decoration: none;
    border: 1px solid #ddd;
    transition: all 0.2s;
}

.pagination .page-link:hover,
.pagination .page-link.active {
    background-color: #4bc77a;
    color: white;
    border-color: #4bc77a;
}

.pagination .disabled .page-link {
    color: #ccc;
    pointer-events: none;
}

.active > .page-link,
.page-link.active {
    background-color: #4bc77a !important; /* your desired active background color */
    border-color: #4bc77a !important; /* optional: match border to background */
}

.g-3 {
    margin-top: 2%;
}
