/* ========================================
   GALLERY PAGE SPECIFIC STYLES
   gallery.css
   ======================================== */

/* ===== BREADCRUMB SECTION STYLES ===== */

/* Main Breadcrumb Section */
.breadcrumb-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    padding: 4rem 0 3rem;
    position: relative;
    overflow: hidden;
    min-height: 200px;
    display: flex;
    align-items: center;
}

/* Background Pattern Overlay */
.breadcrumb-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 20"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.03)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.03)"/><circle cx="50" cy="50" r="0.5" fill="rgba(255,255,255,0.02)"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grain)"/></svg>');
    opacity: 0.5;
}

/* Animated Background Shapes */
.breadcrumb-section::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    animation: floatBackground 20s ease-in-out infinite;
    pointer-events: none;
}

/* Content Container */
.breadcrumb-content {
    position: relative;
    z-index: 2;
    color: white;
    text-align: center;
}

/* Main Title Styling */
.breadcrumb-content h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    background: linear-gradient(45deg, #ffffff, var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleGlow 3s ease-in-out infinite alternate;
    line-height: 1.2;
}

/* Breadcrumb Navigation */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
    justify-content: center;
    font-size: 1.1rem;
}

/* Breadcrumb Items */
.breadcrumb-item {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    position: relative;
    transition: all var(--transition);
}

/* Breadcrumb Separator */
.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: var(--secondary-color);
    font-weight: bold;
    font-size: 1.2rem;
    margin: 0 0.75rem;
    text-shadow: 0 0 5px rgba(255, 107, 53, 0.5);
}

/* Breadcrumb Links */
.breadcrumb-item a {
    color: white;
    text-decoration: none;
    transition: all var(--transition);
    position: relative;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

/* Link Hover Effects */
.breadcrumb-item a:hover {
    color: var(--secondary-color);
    text-shadow: 0 0 10px rgba(255, 107, 53, 0.5);
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Active Breadcrumb Item */
.breadcrumb-item.active {
    color: var(--secondary-color);
    font-weight: 600;
    text-shadow: 0 0 8px rgba(255, 107, 53, 0.3);
}

/* Animations */
@keyframes titleGlow {
    0% {
        filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
    }
    100% {
        filter: drop-shadow(0 0 20px rgba(255, 107, 53, 0.4));
    }
}

@keyframes floatBackground {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(-20px, -20px) rotate(120deg);
    }
    66% {
        transform: translate(20px, -10px) rotate(240deg);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .breadcrumb-section {
        padding: 3rem 0 2rem;
        min-height: 150px;
    }
    
    .breadcrumb-content h1 {
        font-size: 2.2rem;
        margin-bottom: 0.75rem;
    }
    
    .breadcrumb {
        font-size: 1rem;
    }
    
    .breadcrumb-item + .breadcrumb-item::before {
        margin: 0 0.5rem;
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
     .breadcrumb-section {
        padding: 2.5rem 0 1.5rem;
        min-height: 30vh;
    }
    
    .breadcrumb-content h1 {
        font-size: 1.8rem;
    }
    
    .breadcrumb {
        font-size: 0.9rem;
        flex-wrap: wrap;
    }
    
    .breadcrumb-item + .breadcrumb-item::before {
        margin: 0 0.3rem;
    }
}

/* Enhanced Hover Effects */
.breadcrumb-item a::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.breadcrumb-item a:hover::before {
    width: 100%;
    box-shadow: 0 0 10px var(--secondary-color);
}

/* Focus States for Accessibility */
.breadcrumb-item a:focus {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
    background: rgba(255, 255, 255, 0.1);
}

/* Print Styles */
@media print {
    .breadcrumb-section {
        background: none !important;
        color: black !important;
        padding: 1rem 0;
    }
    
    .breadcrumb-content h1 {
        color: black !important;
        text-shadow: none !important;
        background: none !important;
        -webkit-text-fill-color: initial !important;
    }
    
    .breadcrumb-item,
    .breadcrumb-item a {
        color: black !important;
        text-shadow: none !important;
    }
}

/* Dark Mode Support (if needed) */
@media (prefers-color-scheme: dark) {
    .breadcrumb-section {
        background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .breadcrumb-content h1 {
        background: white;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
    
    .breadcrumb-item a {
        border: 1px solid rgba(255, 255, 255, 0.3);
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .breadcrumb-section::after {
        animation: none;
    }
    
    .breadcrumb-content h1 {
        animation: none;
    }
    
    .breadcrumb-item a {
        transition: none;
    }
}

/* Gallery Categories Section */
.gallery-categories-section {
    padding: 4rem 0;
}

.gallery-filter-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.filter-btn {
    background: white;
    border: 2px solid var(--light-color);
    color: var(--text-color);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.filter-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    color: white;
    border-color: var(--secondary-color);
    box-shadow: var(--shadow);
}

.filter-btn i {
    transition: var(--transition);
}

.filter-btn:hover i,
.filter-btn.active i {
    transform: scale(1.1);
}

/* Photo Grid Section */
.photo-grid-section {
    padding: 4rem 0;
}

.gallery-grid {
    margin-top: 2rem;
}

.gallery-item {
    margin-bottom: 2rem;
    opacity: 1;
    transform: scale(1);
    transition: all 0.5s ease;
}

.gallery-item.hidden {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
    height: 0;
    margin: 0;
    overflow: hidden;
}

.gallery-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    height: 100%;
}

.gallery-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.gallery-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-card:hover .gallery-image img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 43, 92, 0.9), rgba(255, 107, 53, 0.8));
    opacity: 0;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
}

.gallery-content {
    text-align: center;
    color: white;
    padding: 1rem;
    transform: translateY(20px);
    transition: var(--transition);
}

.gallery-card:hover .gallery-content {
    transform: translateY(0);
}

.gallery-content h5 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.gallery-content p {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    opacity: 0.9;
    color: white;
}

.gallery-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--secondary-color);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition);
    border: 2px solid white;
}

.gallery-btn:hover {
    background: white;
    color: var(--secondary-color);
    transform: scale(1.1);
}

.gallery-btn i {
    font-size: 1.25rem;
}

/* Load More Button */
#loadMoreBtn {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border: none;
    color: white;
    transition: var(--transition);
}

#loadMoreBtn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

        /* Video Section */
        .video-section {
            padding: 4rem 0;
            background-color: #f8f9fa;
        }

        .video-section h2 {
            text-align: center;
            color: var(--primary-color);
            font-size: 2.5rem;
            margin-bottom: 3rem;
            font-weight: 600;
        }

        .video-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 2rem;
            margin-bottom: 2rem;
        }

        .video-card {
            background: white;
            border-radius: var(--border-radius);
            overflow: hidden;
            box-shadow: var(--shadow);
            transition: var(--transition);
        }

        .video-card:hover {
            transform: translateY(-5px);
            box-shadow: var(--shadow-hover);
        }

        .video-container {
            position: relative;
            width: 100%;
            padding-bottom: 177.78%; /* 9:16 aspect ratio for reels */
            height: 0;
            overflow: hidden;
            border-radius: var(--border-radius);
        }

        .video-container video {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: var(--border-radius);
            cursor: pointer;
        }

        .video-thumbnail {
            position: relative;
            height: 250px;
            overflow: hidden;
            cursor: pointer;
        }

        .video-thumbnail img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: var(--transition);
        }

        .video-card:hover .video-thumbnail img {
            transform: scale(1.05);
        }

        .play-button {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 80px;
            height: 80px;
            background: rgba(255, 107, 53, 0.9);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: var(--transition);
            backdrop-filter: blur(10px);
        }

        .play-button:hover {
            background: var(--secondary-color);
            transform: translate(-50%, -50%) scale(1.1);
        }

        .play-button i {
            color: white;
            font-size: 1.5rem;
            margin-left: 3px;
        }

        /* Play icon using CSS */
        .play-icon {
            width: 0;
            height: 0;
            border-left: 20px solid white;
            border-top: 12px solid transparent;
            border-bottom: 12px solid transparent;
            margin-left: 4px;
        }

        .video-content {
            padding: 1.5rem;
        }

        .video-content h4 {
            color: var(--primary-color);
            margin-bottom: 0.75rem;
            font-size: 1.25rem;
        }

        .video-content p {
            color: #666;
            margin: 0;
            line-height: 1.5;
        }

        /* Responsive Design */
        @media (max-width: 1024px) {
            .video-grid {
                grid-template-columns: repeat(3, 1fr);
                gap: 1.5rem;
            }
            
            .container {
                padding: 0 15px;
            }
        }

        @media (max-width: 768px) {
            .video-section {
                padding: 2rem 0;
            }
            
            .video-section h2 {
                font-size: 2rem;
                margin-bottom: 2rem;
            }
            
            .video-grid {
                grid-template-columns: repeat(3, 1fr);
                gap: 1rem;
            }
        }

        @media (max-width: 480px) {
            .video-section h2 {
                font-size: 1.5rem;
            }
            
            .video-grid {
                grid-template-columns: 1fr;
                gap: 1.5rem;
                max-width: 350px;
                margin: 0 auto;
            }
        }

        /* Animation Classes */
        .animate-scale-up {
            animation: scaleUp 0.6s ease forwards;
        }

        @keyframes scaleUp {
            from {
                opacity: 0;
                transform: scale(0.9) translateY(20px);
            }
            to {
                opacity: 1;
                transform: scale(1) translateY(0);
            }
        }

        .animate-fade-in {
            animation: fadeIn 0.8s ease forwards;
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* Video Modal Styling */
        .modal {
            display: none;
            position: fixed;
            z-index: 1000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.9);
        }

        .modal-content {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background: white;
            border-radius: var(--border-radius);
            overflow: hidden;
            max-width: 90%;
            max-height: 90%;
        }

        .modal-header {
            background: var(--primary-color);
            color: white;
            padding: 1rem;
            border-bottom: none;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .modal-header h5 {
            margin: 0;
            font-weight: 600;
        }

        .btn-close {
            background: none;
            border: none;
            color: white;
            font-size: 1.5rem;
            cursor: pointer;
            padding: 0;
            width: 30px;
            height: 30px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .modal-video {
            width: 100%;
            height: auto;
            display: block;
        }

/* Responsive Design */
@media (max-width: 1199.98px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .gallery-image {
        height: 220px;
    }
}

@media (max-width: 991.98px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .gallery-filter-buttons {
        justify-content: center;
    }
    
    .filter-btn {
        padding: 0.6rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .gallery-image {
        height: 200px;
    }
    
    .video-thumbnail {
        height: 220px;
    }
}

@media (max-width: 767.98px) {
    .page-hero-section {
        padding: 6rem 0 4rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .gallery-filter-buttons {
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
        flex-direction: column;
        text-align: center;
    }
    
    .filter-btn i {
        margin-right: 0;
        margin-bottom: 0.25rem;
    }
    
    .gallery-image,
    .video-thumbnail {
        height: 180px;
    }
    
    .play-button {
        width: 60px;
        height: 60px;
    }
    
    .play-button i {
        font-size: 1.25rem;
    }
}

@media (max-width: 575.98px) {
    .gallery-categories-section,
    .photo-grid-section,
    .video-section {
        padding: 3rem 0;
    }
    
    .filter-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
        min-width: 80px;
    }
    
    .gallery-content h5 {
        font-size: 1.125rem;
    }
    
    .gallery-content p {
        font-size: 0.85rem;
    }
    
    .gallery-btn {
        width: 40px;
        height: 40px;
    }
    
    .gallery-btn i {
        font-size: 1rem;
    }
    
    .video-content {
        padding: 1rem;
    }
    
    .video-content h4 {
        font-size: 1.125rem;
    }
}

/* Additional CSS rules for proper space removal in gallery.css */

/* Gallery Grid - Ensure proper space collapse */
.gallery-grid {
    display: flex !important;
    flex-wrap: wrap;
    gap: 1rem;
    margin: -0.5rem;
}

/* Gallery Item - Proper hiding */
.gallery-item {
    flex: 0 0 auto;
    transition: all 0.3s ease;
    opacity: 1;
    transform: scale(1);
}

/* Hidden state - Completely removes from layout */
.gallery-item.d-none,
.gallery-item[style*="display: none"] {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    opacity: 0 !important;
    transform: scale(0) !important;
    visibility: hidden !important;
}

/* Ensure Bootstrap column classes work properly */
@media (min-width: 992px) {
    .gallery-item.col-lg-4 {
        width: calc(33.333333% - 1rem);
        max-width: calc(33.333333% - 1rem);
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .gallery-item.col-md-6 {
        width: calc(50% - 1rem);
        max-width: calc(50% - 1rem);
    }
}

@media (max-width: 767.98px) {
    .gallery-item {
        width: calc(100% - 1rem);
        max-width: calc(100% - 1rem);
    }
}

/* Animation states */
.gallery-item.animate-fade-in {
    opacity: 1 !important;
    transform: scale(1) !important;
}

.gallery-item.animate-fade-out {
    opacity: 0 !important;
    transform: scale(0.8) !important;
}

/* Mobile responsive fixes */
@media (max-width: 576px) {
    .gallery-grid {
        margin: 0;
        gap: 0.5rem;
    }
    
    .gallery-item {
        margin-bottom: 0.5rem;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .gallery-item.d-none {
        margin: 0 !important;
    }
}