/* Gallery Hero Section */
.gallery-hero {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 400px;
    display: flex;
    align-items: center;
    position: relative;
    margin-top: 0;
}

.gallery-hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(42, 122, 143, 0.8) 100%);
    display: flex;
    align-items: center;
}

.gallery-hero__title {
    color: #fff;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.gallery-hero__subtitle {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Gallery Navigation */
.gallery-nav-section {
    padding: 2rem 0;
    background: #f8f9fa;
}

.gallery-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.gallery-nav__btn {
    background: #fff;
    border: 2px solid #dee2e6;
    color: #6c757d;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.gallery-nav__btn:hover,
.gallery-nav__btn.active {
    background: #667eea;
    border-color: #667eea;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

/* Section Headers */
.section-header {
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto;
}

/* Photo Gallery Section */
.photo-gallery-section {
    padding: 4rem 0;
    background: #fff;
}

.gallery-item {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    background: #fff;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.gallery-item__image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.gallery-item__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-item__image img {
    transform: scale(1.1);
}

.gallery-item__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-item__overlay {
    opacity: 1;
}

.gallery-item__content {
    text-align: center;
    color: #fff;
    padding: 1rem;
}

.gallery-item__content h5 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.gallery-item__content p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

/* Fancybox Gallery Links */
.gallery-fancybox-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.gallery-fancybox-link:hover {
    text-decoration: none;
    color: inherit;
}

.gallery-fancybox-trigger {
    transition: all 0.3s ease;
}

.gallery-fancybox-trigger:hover {
    background: #667eea;
    border-color: #667eea;
    color: #fff;
    transform: translateY(-2px);
}

/* Video Gallery Section */
.video-gallery-section {
    padding: 4rem 0;
    background: #f8f9fa;
}

.video-item {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    background: #fff;
}

.video-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.video-item__thumbnail {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.video-item__thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.video-placeholder {
    width: 100%;
    height: 100%;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
}

.video-item:hover .video-item__thumbnail img {
    transform: scale(1.1);
}

.video-item__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-item:hover .video-item__overlay {
    opacity: 1;
}

.video-item__content {
    text-align: center;
    color: #fff;
    padding: 1rem;
}

.video-item__content h5 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.video-item__content p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

/* No Gallery Content */
.no-gallery-content {
    padding: 3rem 0;
}

.no-gallery-content h4 {
    color: #6c757d;
    margin-bottom: 1rem;
}

.no-gallery-content p {
    color: #6c757d;
}

/* Modal Styles */
.modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modal-header {
    border-bottom: 1px solid #dee2e6;
    padding: 1.5rem;
}

.modal-body {
    padding: 1.5rem;
}

.modal-body img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .gallery-hero {
        min-height: 300px;
        margin-top: 0;
    }
    
    .gallery-hero__title {
        font-size: 2rem;
    }
    
    .gallery-hero__subtitle {
        font-size: 1rem;
    }
    
    .gallery-nav {
        flex-direction: column;
        align-items: center;
    }
    
    .gallery-nav__btn {
        width: 200px;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .section-header p {
        font-size: 1rem;
    }
    
    .photo-gallery-section,
    .video-gallery-section {
        padding: 2rem 0;
    }
    
    .gallery-item__content h5,
    .video-item__content h5 {
        font-size: 1rem;
    }
    
    .gallery-item__content p,
    .video-item__content p {
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .gallery-hero__title {
        font-size: 1.5rem;
    }
    
    .gallery-hero__subtitle {
        font-size: 0.9rem;
    }
    
    .gallery-nav {
        gap: 0.5rem;
    }
    
    .gallery-nav__btn {
        width: 150px;
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .modal-dialog {
        margin: 0.5rem;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading State */
.gallery-loading {
    text-align: center;
    padding: 3rem 0;
}

.gallery-loading .spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Hide/Show Sections */
.photo-gallery-section,
.video-gallery-section {
    transition: opacity 0.3s ease;
}

.photo-gallery-section.hidden,
.video-gallery-section.hidden {
    display: none;
}

/* Fancybox Custom Styles */
.fancybox__container {
    z-index: 9999;
}

.fancybox__content {
    background: transparent;
}

.fancybox__caption {
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    background: rgba(0, 0, 0, 0.8);
    padding: 1rem;
    border-radius: 8px;
}

.fancybox__button {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    transition: all 0.3s ease;
}

.fancybox__button:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
}

.fancybox__toolbar {
    background: rgba(0, 0, 0, 0.8);
    border-radius: 8px;
    padding: 0.5rem;
}

.fancybox__nav button {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    transition: all 0.3s ease;
}

.fancybox__nav button:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
} 