.gallery-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
}
.filter-btn {
    background-color: white;
    border: 1px solid #e2e8f0;
    color: #4a5568;
    padding: 8px 22px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}
.filter-btn:hover, .filter-btn.active {
    background-color: #0A5C45;
    border-color: #0A5C45;
    color: white;
    box-shadow: 0 4px 12px rgba(10, 92, 69, 0.15);
}
.causes-card-item-3 {
    border: 1px solid #edf2f7;
    border-radius: 12px;
    background: white;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}
.causes-card-item-3:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
}
.causes-card-item-3.causes-image img {
    transition: transform 0.5s ease;
}
.causes-card-item-3:hover.causes-image img {
    transform: scale(1.05);
}
.badge-category {
    background-color: rgba(10, 92, 69, 0.1);
    color: #0A5C45;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    margin-bottom: 8px;
}

/* Custom Lightbox Popup Styling & Prominent Close Button */
.causes-card-item-3:hover .causes-image img {
    transform: scale(1.06);
}

/* Fix Lightbox Modal Overlay Above Header Sticky */
.mfp-bg {
    z-index: 999999 !important;
    background: #0b0b0b !important;
    opacity: 0.92 !important;
}

.mfp-wrap {
    z-index: 9999999 !important;
}

/* Modal Image Padding / Gapping on Mobile & Desktop */
.mfp-container {
    padding-top: 90px !important;
    padding-bottom: 50px !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    box-sizing: border-box !important;
}

.mfp-content {
    vertical-align: middle !important;
}

.mfp-figure {
    position: relative !important;
}

.mfp-image-holder .mfp-content {
    max-width: 90% !important;
    padding: 0 !important;
}

img.mfp-img, 
.mfp-img-mobile img.mfp-img {
    padding: 0 0 35px 0 !important;
    max-height: 72vh !important;
    border-radius: 12px !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8) !important;
    margin: 0 auto !important;
}

/* Close Button Positioned Right Above Top-Right of Image with Website Brand Colors */
button.mfp-close,
.mfp-close-btn-in .mfp-close,
.mfp-close,
.mfp-image-holder .mfp-close,
.mfp-img-mobile .mfp-close {
    color: transparent !important;
    font-size: 0 !important;
    opacity: 1 !important;
    background: #0A5C45 !important;
    border-radius: 50% !important;
    width: 42px !important;
    height: 42px !important;
    top: -48px !important;
    right: 0 !important;
    position: absolute !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6) !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    z-index: 99999999 !important;
    border: 2px solid #ffffff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
}

/* Explicit Cross Symbol '✕' */
button.mfp-close::before,
.mfp-close::before {
    content: '✕' !important;
    font-size: 20px !important;
    font-weight: 900 !important;
    font-family: system-ui, -apple-system, sans-serif !important;
    color: #ffffff !important;
    line-height: 1 !important;
    display: block !important;
}

button.mfp-close:hover,
.mfp-close:hover {
    background: #ff7a00 !important;
    border-color: #ffffff !important;
    transform: scale(1.1) !important;
}

.mfp-bottom-bar {
    margin-top: -30px !important;
}

.mfp-fade.mfp-bg {
    opacity: 0;
    transition: all 0.3s ease-out;
}
.mfp-fade.mfp-bg.mfp-ready {
    opacity: 0.88;
}
.mfp-fade.mfp-bg.mfp-removing {
    opacity: 0;
}

.mfp-fade.mfp-wrap .mfp-content {
    opacity: 0;
    transition: all 0.3s ease-out;
    transform: scale(0.95);
}
.mfp-fade.mfp-wrap.mfp-ready .mfp-content {
    opacity: 1;
    transform: scale(1);
}
.mfp-fade.mfp-wrap.mfp-removing .mfp-content {
    opacity: 0;
    transform: scale(0.95);
}

/* Pagination Control Styling */
.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.pagination .page-item .page-link {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    color: #0A5C45;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pagination .page-item:not(.disabled) .page-link:hover {
    background-color: #ff7a00;
    border-color: #ff7a00;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(255, 122, 0, 0.25);
}

.pagination .page-item.active .page-link {
    background-color: #0A5C45;
    border-color: #0A5C45;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(10, 92, 69, 0.3);
}

.pagination .page-item.disabled .page-link {
    background-color: #f8fafc;
    color: #cbd5e1;
    border-color: #e2e8f0;
    cursor: not-allowed;
}

/* Disable all image mouse hover scale, zoom and layer animation effects */
img,
.causes-image img,
.program-card-image-wrapper img,
.donation-image img,
.causes-card-item-3 img,
.slider-image-card img,
.program-grid-card img {
    transition: none !important;
    transform: none !important;
}

*:hover > img,
*:hover > .causes-image img,
*:hover > .program-card-image-wrapper img,
*:hover > .donation-image img,
*:hover > .causes-card-item-3 img,
.causes-card-item-3:hover .causes-image img,
.program-grid-card:hover .program-card-image-wrapper img,
.donation-card-item-2:hover .donation-image img,
.causes-card-item-3:hover.causes-image img {
    transform: none !important;
    scale: 1 !important;
    opacity: 1 !important;
}

.news-layer-wrapper,
.news-layer-image,
.causes-layer-wrapper,
.causes-layer-image {
    display: none !important;
    transform: none !important;
    animation: none !important;
}
