/* Gallery Page Specific Styles */

/* Series Hero Section */
.series-hero {
    position: relative;
    height: 60vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 70px; /* Account for fixed navbar */
}

.series-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.series-hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

.series-hero-content {
    text-align: center;
    z-index: 1;
    max-width: 800px;
    padding: 2rem;
}

.series-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 7vw, 5rem);
    color: var(--white);
    margin-bottom: 1rem;
    letter-spacing: 3px;
    animation: fadeInUp 1s ease-out;
}

.series-subtitle {
    font-size: 1.5rem;
    color: var(--primary-red);
    margin-bottom: 1rem;
    font-weight: 600;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.series-description {
    font-size: 1.125rem;
    color: var(--gray-light);
    line-height: 1.6;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.series-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.stat-badge {
    text-align: center;
}

.stat-badge .stat-number {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--white);
    display: block;
}

.stat-badge .stat-label {
    font-size: 0.875rem;
    color: var(--gray-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Gallery Controls */
.gallery-controls {
    background-color: var(--gray-dark);
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 70px;
    z-index: 100;
}

.controls-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.view-options {
    display: flex;
    gap: 0.5rem;
}

.view-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: transparent;
    color: var(--gray-light);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.875rem;
}

.view-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.view-btn.active {
    background-color: var(--primary-red);
    color: var(--white);
    border-color: var(--primary-red);
}

.gallery-info {
    color: var(--gray-light);
    font-size: 0.875rem;
}

/* Modern Gallery Grid */
.modern-gallery {
    padding: 3rem 0;
    background-color: var(--black);
    min-height: 60vh;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 3rem;
}

.gallery-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background-color: var(--gray-dark);
    transition: var(--transition);
    opacity: 0;
    animation: fadeInUp 0.5s ease-out forwards;
}

.gallery-item.grid {
    aspect-ratio: 1;
}

.gallery-item.list {
    height: 150px;
}

.gallery-item.list a {
    display: flex;
    height: 100%;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item.list img {
    width: 200px;
    height: 100%;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item.list .gallery-item-overlay {
    position: relative;
    transform: none;
    background: none;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    flex: 1;
}

.gallery-item:hover .gallery-item-overlay {
    transform: translateY(0);
}

.image-number {
    color: var(--white);
    font-size: 0.875rem;
    font-weight: 500;
}

.gallery-item.list .image-number {
    color: var(--white);
    font-size: 1rem;
}

/* Load More */
.load-more-wrapper {
    text-align: center;
    margin-top: 3rem;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background-color: var(--primary-red);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--dark-red);
    transform: translateY(-5px);
}

/* Lightbox Customization */
.lightbox {
    background-color: rgba(0, 0, 0, 0.95) !important;
}

.lb-data .lb-caption {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 400;
    color: var(--white);
}

.lb-data .lb-number {
    font-family: var(--font-body);
    color: var(--gray-light);
}

/* Animation Delays for Staggered Effect */
.gallery-item:nth-child(1) { animation-delay: 0.05s; }
.gallery-item:nth-child(2) { animation-delay: 0.1s; }
.gallery-item:nth-child(3) { animation-delay: 0.15s; }
.gallery-item:nth-child(4) { animation-delay: 0.2s; }
.gallery-item:nth-child(5) { animation-delay: 0.25s; }
.gallery-item:nth-child(6) { animation-delay: 0.3s; }
.gallery-item:nth-child(7) { animation-delay: 0.35s; }
.gallery-item:nth-child(8) { animation-delay: 0.4s; }
.gallery-item:nth-child(9) { animation-delay: 0.45s; }
.gallery-item:nth-child(10) { animation-delay: 0.5s; }

/* Responsive Design */
@media (max-width: 768px) {
    .series-hero {
        height: 50vh;
        min-height: 350px;
    }
    
    .series-stats {
        gap: 2rem;
    }
    
    .controls-wrapper {
        flex-direction: column;
        gap: 1rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 0.5rem;
    }
    
    .gallery-item.list {
        height: 100px;
    }
    
    .gallery-item.list img {
        width: 100px;
    }
    
    .back-to-top {
        width: 40px;
        height: 40px;
        bottom: 1rem;
        right: 1rem;
    }
}

@media (max-width: 480px) {
    .series-title {
        font-size: 2.5rem;
    }
    
    .series-subtitle {
        font-size: 1.2rem;
    }
    
    .series-stats {
        gap: 1.5rem;
    }
    
    .stat-badge .stat-number {
        font-size: 1.5rem;
    }
}