/* Gallery Page Specific Styles */
/* Donation Page Specific Styles */
.bwf-banner{
        background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.7)), 
                url('/assets/images/banners/media-banner.jpg');
}
/* Gallery Banner */
.gallery-banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    position: relative;
    overflow: hidden;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
}

.gallery-banner:before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 45%;
    height: 100%;
    background-image: url('https://images.unsplash.com/photo-1579155206741-e8a63c49f110?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80');
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    border-radius: 0 0 0 100px;
}

.gallery-banner .banner-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
}

.gallery-banner .banner-text {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.gallery-banner .banner-text h1 {
    font-size: 3.5rem;
    margin-bottom: 25px;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.gallery-banner .banner-text p {
    font-size: 1.3rem;
    opacity: 0.9;
    margin-bottom: 40px;
    line-height: 1.8;
}

.gallery-banner .banner-breadcrumbs {
    position: absolute;
    bottom: 30px;
    right: 30px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border-radius: 50px;
    padding: 12px 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    animation: slideInRight 0.8s ease-out;
}

.gallery-banner .breadcrumb-links {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 10px;
}

.gallery-banner .breadcrumb-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
}

.gallery-banner .breadcrumb-links a:hover {
    color: white;
}

/* Gallery Hero */
.gallery-hero {
    padding: 160px 0 80px;
    background: linear-gradient(rgba(0, 86, 166, 0.85), rgba(0, 61, 122, 0.9)), url('https://images.unsplash.com/photo-1515378791036-0648a3ef77b2?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80');
    background-size: cover;
    background-position: center;
    color: white;
    position: relative;
    text-align: center;
}

.gallery-hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.gallery-hero h1 {
    font-size: 3.2rem;
    margin-bottom: 25px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.gallery-hero p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.95;
    line-height: 1.8;
}

/* Filter Buttons */
.gallery-filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin: 30px;
}

.filter-btn {
    padding: 12px 24px;
    background-color: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    /* color: white; */
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover {
    background-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.filter-btn.active {
    background-color: var(--secondary);
    border-color: var(--secondary);
}

/* Section Header */
.section-header {
    margin-bottom: 50px;
}

.section-header h2 {
    color: var(--primary);
    text-align: center;
    margin-bottom: 15px;
    font-size: 2.5rem;
}

/* Video Gallery */
.video-gallery-section {
    padding: 100px 0;
    background-color: var(--light);
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.video-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}

.video-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.video-thumbnail {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    background-color: #000;
    cursor: pointer;
}

.video-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.05);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background-color: rgba(227, 24, 55, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
}

.play-button:hover {
    background-color: rgba(227, 24, 55, 1);
    transform: translate(-50%, -50%) scale(1.1);
}

.play-button i {
    margin-left: 5px;
}

.video-info {
    padding: 25px;
}

.video-info h3 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 1.4rem;
    line-height: 1.3;
    cursor: pointer;
}

.video-info p {
    color: var(--gray);
    margin-bottom: 15px;
    font-size: 1rem;
    line-height: 1.6;
}

.video-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--gray);
    opacity: 0.8;
    margin-top: 10px;
}

.video-duration, .video-date {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Photo Gallery */
.photo-gallery-section {
    padding: 100px 0;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.photo-card {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
}

.photo-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.photo-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.photo-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.photo-card:hover .photo-image img {
    transform: scale(1.1);
}

.photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 20px;
    transform: translateY(100%);
    transition: var(--transition);
}

.photo-card:hover .photo-overlay {
    transform: translateY(0);
}

.photo-category {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
    color: var(--secondary-light);
}

.photo-title {
    font-size: 1.1rem;
    font-weight: 600;
}

/* Video Popup Modal */
.video-popup-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
}

.video-popup-modal.active {
    display: block;
}

.video-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 2001;
}

.video-popup-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 900px;
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    z-index: 2002;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: popupFadeIn 0.3s ease-out;
}

@keyframes popupFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -40%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.video-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background-color: var(--primary);
    color: white;
}

.video-popup-header h3 {
    margin: 0;
    font-size: 1.5rem;
}

.close-video-popup {
    background: none;
    border: none;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
    transition: var(--transition);
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-video-popup:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.video-popup-body {
    padding: 0;
}

.video-player-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    background-color: #000;
}

#videoPlayer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-popup-info {
    padding: 20px 30px;
}

.video-popup-info p {
    margin-bottom: 15px;
    color: var(--dark);
    font-size: 1.1rem;
    line-height: 1.6;
}

.video-popup-meta {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    color: var(--gray);
    border-top: 1px solid var(--light-gray);
    padding-top: 15px;
}

/* Lightbox Modal */
.lightbox-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
}

.lightbox-header {
    padding: 20px;
    background-color: var(--primary);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-lightbox {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

.lightbox-title {
    font-size: 1.3rem;
    font-weight: 600;
}

.lightbox-body {
    padding: 20px;
    max-height: 70vh;
    overflow-y: auto;
}

#lightboxImage {
    max-width: 100%;
    max-height: 60vh;
    display: block;
    margin: 0 auto 20px;
}

.lightbox-description {
    text-align: center;
    color: var(--gray);
    font-size: 1.1rem;
}

.lightbox-nav {
    padding: 20px;
    background-color: var(--light);
    display: flex;
    justify-content: space-between;
}

.lightbox-nav button {
    padding: 10px 20px;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.lightbox-nav button:hover {
    background-color: var(--primary-dark);
}

/* Load More Button */
.load-more-photos, #loadMoreVideos, #loadMorePhotos {
    padding: 15px 40px;
    font-size: 1.1rem;
    margin-top: 20px;
}

.loading-spinner {
    margin-top: 20px;
    color: var(--primary);
    font-size: 1.1rem;
}

.loading-spinner i {
    margin-right: 10px;
    font-size: 1.3rem;
}

/* Utility Classes */
.mt-50 {
    margin-top: 50px;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .gallery-hero h1 {
        font-size: 2.5rem;
    }
    
    .video-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .photo-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .video-popup-content {
        width: 95%;
    }
}

@media (max-width: 768px) {
    .gallery-hero {
        padding: 140px 0 60px;
    }
    
    .gallery-hero h1 {
        font-size: 2rem;
    }
    
    .gallery-filter-buttons {
        gap: 10px;
    }
    
    .filter-btn {
        padding: 10px 18px;
        font-size: 0.9rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .video-gallery-section,
    .photo-gallery-section {
        padding: 70px 0;
    }
    
    .photo-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 20px;
    }
    
    .video-popup-content {
        width: 98%;
        max-height: 90vh;
    }
    
    .video-popup-header {
        padding: 15px 20px;
    }
    
    .video-popup-header h3 {
        font-size: 1.2rem;
    }
    
    .video-popup-info {
        padding: 15px 20px;
    }
}

@media (max-width: 480px) {
    .gallery-hero h1 {
        font-size: 1.8rem;
    }
    
    .gallery-filter-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .filter-btn {
        width: 200px;
    }
    
    .video-grid {
        grid-template-columns: 1fr;
    }
    
    .photo-grid {
        grid-template-columns: 1fr;
    }
    
    .play-button {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}