/* ==========================================
   SHARED GALLERY CARDS + LIGHTBOX STYLES
   Used across all event/cause pages
   ========================================== */

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* Gallery Card */
.gallery-card {
    cursor: pointer;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s;
    background: #fff;
}

.gallery-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
}

/* Gallery Card Image */
.gallery-card .gc-img-wrap {
    position: relative;
    overflow: hidden;
}

.gallery-card .gc-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s;
}

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

/* Gallery Card Badge */
.gallery-card .gc-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.72rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

/* Gallery Card Overlay */
.gallery-card .gc-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-card:hover .gc-overlay {
    opacity: 1;
}

/* Gallery Card Search Icon */
.gallery-card .gc-search-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-card .gc-search-icon i {
    color: #f26522;
    font-size: 1.2rem;
}

/* Gallery Card Caption */
.gallery-card .gc-caption {
    padding: 14px 16px;
}

.gallery-card .gc-caption h6 {
    color: #1a1b2e;
    font-weight: 600;
    font-size: 0.9rem;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ==================== LIGHTBOX ==================== */
.page-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
}

.page-lightbox .lb-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    color: #fff;
    font-size: 1.3rem;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.page-lightbox .lb-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.page-lightbox .lb-prev,
.page-lightbox .lb-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    color: #fff;
    font-size: 1.2rem;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.page-lightbox .lb-prev {
    left: 20px;
}

.page-lightbox .lb-next {
    right: 20px;
}

.page-lightbox .lb-prev:hover,
.page-lightbox .lb-next:hover {
    background: rgba(255, 255, 255, 0.2);
}

.page-lightbox .lb-content {
    text-align: center;
    max-width: 90%;
    max-height: 85vh;
}

.page-lightbox .lb-img {
    max-width: 100%;
    max-height: 78vh;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    object-fit: contain;
}

.page-lightbox .lb-title {
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    margin: 14px 0 0;
}

.page-lightbox .lb-info {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.82rem;
}

.page-lightbox .lb-meta {
    margin-top: 14px;
}

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

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