/* =================================================================
   VAMPIRES INDUSTRY - GALLERY PAGE STYLES
   Beautiful gallery showcase with consistent styling patterns
   ================================================================= */

/* CSS Variables - Consistent with other pages */
:root {
    --primary: #374151 !important;           /* Dark neutral gray */
    --secondary: #6b7280 !important;         /* Medium neutral gray */
    --accent: #9ca3af !important;            /* Light neutral gray */
    --bg-primary: #ffffff !important;        /* Pure white */
    --bg-secondary: #f9fafb !important;      /* Very light gray */
    --light: #f3f4f6 !important;            /* Light gray */
    --text-dark: #374151 !important;        /* Dark text */
    --text-light: #ffffff !important;       /* White text */
    --text-muted: #9ca3af !important;       /* Muted text */
    --border-color: #e5e7eb !important;     /* Light border */
    --shadow-light: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-heavy: 0 10px 25px rgba(0, 0, 0, 0.15);
    --border-radius: 8px;
    --transition: all 0.3s ease;
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Base Styles */
.gallery-page {
    font-family: var(--font-primary);
    color: var(--text-dark);
    background: var(--bg-primary);
    min-height: 100vh;
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Force WordPress containers to full width */
.site,
.site-content,
.content-area,
.site-main,
article,
.entry-content,
.inside-article,
.container,
.grid-container {
    max-width: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
}

.gallery-container {
    width: 100%;
    margin: 0;
    padding: 0;
    position: relative;
    z-index: 1;
}

/* Page Header */
.gallery-header {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--light) 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
    text-align: center;
    width: 100%;
    margin: 0;
}

.gallery-header-content {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    z-index: 1;
}

.gallery-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--text-dark);
}

.gallery-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.gallery-subtitle p {
    margin: 0;
}

/* Gallery Items Section */
.gallery-items-section {
    padding: 80px 0;
    background: #ffffff;
    width: 100%;
    margin: 0;
}

/* Filter Tabs */
.gallery-filter-tabs {
    max-width: 1600px;
    margin: 0 auto 60px;
    padding: 0 40px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.filter-tab {
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    color: var(--text-dark);
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: var(--transition);
}

.filter-tab:hover,
.filter-tab.active {
    background: var(--primary);
    color: var(--text-light);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Gallery Grid */
.gallery-grid {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    contain: layout style paint;
}

.gallery-item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    opacity: 0;
    transform: scale(0.8);
    animation: fadeInUp 0.6s ease forwards;
    box-shadow: var(--shadow-light);
}

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-heavy);
}

.gallery-image-container {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    background: var(--bg-secondary);
    contain: layout style paint;
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
    image-rendering: -webkit-optimize-contrast;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    image-rendering: pixelated;
    -webkit-backface-visibility: hidden;
    -moz-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform: translate3d(0,0,0);
    transform: translate3d(0,0,0);
}

.gallery-item:hover .gallery-image {
    transform: scale(1.1) translate3d(0,0,0);
    image-rendering: auto;
}

/* Gallery Overlay */
.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.8) 100%);
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay-content {
    width: 100%;
}

.gallery-overlay-content h3 {
    color: var(--text-light);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.gallery-categories {
    margin-bottom: 1rem;
}

.gallery-category {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-light);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.75rem;
    margin-right: 0.5rem;
    backdrop-filter: blur(4px);
}

.gallery-view-btn {
    background: var(--accent);
    color: var(--text-light);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.gallery-view-btn:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

/* Load More Button */
.gallery-load-more {
    text-align: center;
    margin-top: 4rem;
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 40px;
}

/* Empty State */
.no-gallery-items {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 40px;
    text-align: center;
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.empty-state {
    max-width: 400px;
    margin: 0 auto;
}

.empty-state i {
    font-size: 4rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    opacity: 0.3;
}

.empty-state h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.empty-state p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* Lightbox Styles */
.gallery-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(8px);
}

.lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: calc(90vh - 100px);
    object-fit: contain;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-heavy);
    image-rendering: -webkit-optimize-contrast;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    image-rendering: high-quality;
    -webkit-backface-visibility: hidden;
    -moz-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform: translate3d(0,0,0);
    transform: translate3d(0,0,0);
}

.lightbox-caption {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    padding: 1rem 2rem;
    margin-top: 1rem;
    border-radius: var(--border-radius);
    backdrop-filter: blur(8px);
    text-align: center;
}

.lightbox-caption h4 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

/* Lightbox Controls */
.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: var(--transition);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--text-light);
    font-size: 2rem;
    cursor: pointer;
    padding: 1rem;
    border-radius: 50%;
    transition: var(--transition);
    backdrop-filter: blur(4px);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-prev {
    left: -80px;
}

.lightbox-next {
    right: -80px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .gallery-header-content,
    .gallery-filter-tabs,
    .gallery-grid,
    .gallery-load-more,
    .no-gallery-items {
        padding-left: 30px;
        padding-right: 30px;
    }
}

@media (max-width: 768px) {
    .gallery-header {
        padding: 60px 0;
    }
    
    .gallery-items-section {
        padding: 60px 0;
    }
    
    .gallery-header-content,
    .gallery-filter-tabs,
    .gallery-grid,
    .gallery-load-more,
    .no-gallery-items {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .gallery-title {
        font-size: 2.5rem;
    }
    
    .gallery-subtitle {
        font-size: 1rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .gallery-image-container {
        height: 250px;
    }
    
    .gallery-image {
        image-rendering: auto;
    }
    
    .gallery-filter-tabs {
        margin-bottom: 40px;
    }
    
    .filter-tab {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
    }
    
    /* Lightbox responsive */
    .lightbox-prev,
    .lightbox-next {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .lightbox-prev {
        left: -60px;
    }
    
    .lightbox-next {
        right: -60px;
    }
}

@media (max-width: 480px) {
    .gallery-title {
        font-size: 2rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-filter-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .filter-tab {
        width: 100%;
        max-width: 200px;
        text-align: center;
    }
    
    /* Move lightbox controls inside for mobile */
    .lightbox-prev,
    .lightbox-next {
        position: fixed;
        bottom: 20px;
        top: auto;
        transform: none;
        width: 60px;
        height: 60px;
    }
    
    .lightbox-prev {
        left: 20px;
    }
    
    .lightbox-next {
        right: 20px;
    }
    
    .lightbox-close {
        position: fixed;
        top: 20px;
        right: 20px;
    }
}