/* ========== GALLERY SPECIFIC STYLES ========== */

/* Gallery Layout */
.gallery-container {
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-viewport {
    width: 100%;
    height: 600px;
    overflow: hidden;
    border-radius: 20px;
    margin-bottom: 20px;
    background: var(--bg-tertiary);
    position: relative;
}

.gallery-main-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: var(--bg-tertiary);
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.gallery-main-image:hover {
    transform: scale(1.02);
}

.gallery-thumbnails {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 10px 0;
    margin-bottom: 20px;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-primary) var(--bg-tertiary);
}

.gallery-thumbnails::-webkit-scrollbar {
    height: 8px;
}

.gallery-thumbnails::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
    border-radius: 4px;
}

.gallery-thumbnails::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border-radius: 4px;
}

.gallery-thumbnail {
    flex: 0 0 auto;
    width: 120px;
    height: 90px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.gallery-thumbnail:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.gallery-thumbnail.active {
    border-color: var(--accent-primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

.gallery-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-thumbnail:hover img {
    transform: scale(1.1);
}

/* Gallery Navigation */
.gallery-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 30px;
}

.gallery-counter {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.gallery-nav-buttons {
    display: flex;
    gap: 15px;
}

.gallery-nav-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.gallery-nav-btn:hover {
    border-color: var(--accent-primary);
    background: var(--accent-primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.2);
}

/* Gallery Info */
.gallery-info-section {
    margin-bottom: 40px;
}

.gallery-title {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.gallery-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    color: var(--text-secondary);
    flex-wrap: wrap;
}

.gallery-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.gallery-description {
    line-height: 1.8;
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Gallery Grid Modes */
.gallery-grid-mode {
    display: none;
}

.gallery-grid-mode.active {
    display: grid;
}

.gallery-grid-compact {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.gallery-grid-spacious {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

/* Gallery Loading States */
.gallery-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.gallery-loading::after {
    content: '';
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: loadingSpin 1s linear infinite;
    margin-left: 15px;
}

@keyframes loadingSpin {
    to {
        transform: rotate(360deg);
    }
}

/* Gallery Empty State */
.gallery-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
}

.gallery-empty-icon {
    font-size: 4rem;
    color: var(--text-tertiary);
    margin-bottom: 20px;
}

.gallery-empty h3 {
    margin-bottom: 15px;
    color: var(--text-primary);
}

.gallery-empty p {
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto 30px;
    font-size: 1rem;
}

/* Gallery Tags */
.gallery-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.gallery-tag {
    padding: 8px 15px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-tag:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: translateY(-2px);
}

.gallery-tag.active {
    background: var(--accent-gradient);
    border-color: transparent;
    color: white;
    transform: translateY(-2px);
}

/* Gallery Lightbox */
.gallery-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 3000;
    display: none;
    flex-direction: column;
    animation: lightboxFadeIn 0.3s ease;
}

@keyframes lightboxFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.gallery-lightbox.active {
    display: flex;
}

.lightbox-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    position: sticky;
    top: 0;
    z-index: 2;
}

.lightbox-title {
    font-size: 1.2rem;
    font-weight: 600;
}

.lightbox-close {
    font-size: 2rem;
    color: white;
    cursor: pointer;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.lightbox-body {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
}

.lightbox-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
}

.lightbox-nav {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    pointer-events: auto;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.lightbox-footer {
    padding: 20px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    text-align: center;
    position: sticky;
    bottom: 0;
    z-index: 2;
}

.lightbox-counter {
    font-size: 1rem;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.8);
}

.lightbox-description {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Product Gallery Modal Specific */
.gallery-wrapper {
    display: flex;
    flex-direction: column;
    height: 90vh;
    width: 90vw;
    max-width: 1400px;
    background: var(--bg-secondary);
    border-radius: 20px;
    overflow: hidden;
}

.thumb-strip {
    display: flex;
    gap: 10px;
    padding: 15px;
    background: var(--bg-tertiary);
    overflow-x: auto;
    border-bottom: 1px solid var(--border-color);
    min-height: 120px;
}

.thumb-box {
    flex: 0 0 auto;
    width: 150px;
    height: 100px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
}

.thumb-box.active {
    border-color: var(--accent-primary);
    transform: scale(1.05);
}

.thumb-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.thumb-box:hover img {
    transform: scale(1.1);
}

.main-display {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    background: var(--bg-primary);
    position: relative;
}

.main-display img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.no-media-message {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.2rem;
}

.no-media-message i {
    font-size: 4rem;
    margin-bottom: 20px;
    color: var(--text-tertiary);
}

/* Gallery Responsive */
@media (max-width: 1200px) {
    .gallery-viewport {
        height: 500px;
    }
    
    .gallery-wrapper {
        width: 95vw;
        height: 85vh;
    }
}

@media (max-width: 768px) {
    .gallery-viewport {
        height: 400px;
    }
    
    .gallery-thumbnail {
        width: 100px;
        height: 75px;
    }
    
    .lightbox-controls {
        padding: 0 10px;
    }
    
    .lightbox-nav {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .gallery-wrapper {
        height: 80vh;
    }
    
    .thumb-box {
        width: 120px;
        height: 80px;
    }
}

@media (max-width: 576px) {
    .gallery-viewport {
        height: 300px;
    }
    
    .gallery-thumbnail {
        width: 80px;
        height: 60px;
    }
    
    .gallery-grid-compact {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .gallery-grid-spacious {
        grid-template-columns: 1fr;
    }
    
    .gallery-nav-btn {
        width: 40px;
        height: 40px;
    }
    
    .thumb-box {
        width: 100px;
        height: 70px;
    }
    
    .main-display {
        padding: 15px;
    }
}

/* Mobile specific */
@media (max-width: 480px) {
    .gallery-title {
        font-size: 1.5rem;
    }
    
    .gallery-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .thumb-strip {
        min-height: 100px;
        padding: 10px;
    }
    
    .thumb-box {
        width: 80px;
        height: 60px;
    }
}
/* ========== GALLERY MODAL FIXES ========== */
#gallery-modal {
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
}

#gallery-modal .gallery-wrapper {
    width: 95vw;
    height: 95vh;
    max-width: 1400px;
    background: var(--bg-secondary);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

#gallery-modal .thumb-strip {
    display: flex;
    gap: 10px;
    padding: 15px;
    background: var(--bg-tertiary);
    overflow-x: auto;
    border-bottom: 1px solid var(--border-color);
    min-height: 130px;
}

#gallery-modal .thumb-box {
    flex: 0 0 auto;
    width: 150px;
    height: 100px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
}

#gallery-modal .thumb-box.active {
    border-color: var(--accent-primary);
    transform: scale(1.05);
}

#gallery-modal .thumb-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#gallery-modal .main-display {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

#gallery-modal .main-display img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

#gallery-modal .gallery-loading {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.2rem;
}

#gallery-modal .gallery-loading i {
    font-size: 2rem;
    margin-bottom: 10px;
}

.no-media-message {
    text-align: center;
    color: var(--text-secondary);
    padding: 40px;
}

.no-media-message i {
    font-size: 4rem;
    color: var(--text-tertiary);
    margin-bottom: 20px;
}

/* Gallery navigation buttons */
.gallery-nav-buttons {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 10;
}

.gallery-nav-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.gallery-nav-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.gallery-counter {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
}

/* Close button */
#gallery-modal .close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 10;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

#gallery-modal .close-modal:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: rotate(90deg);
}

/* Mobile responsive for gallery */
@media (max-width: 768px) {
    #gallery-modal .gallery-wrapper {
        width: 100vw;
        height: 100vh;
        border-radius: 0;
    }
    
    #gallery-modal .thumb-strip {
        min-height: 100px;
        padding: 10px;
    }
    
    #gallery-modal .thumb-box {
        width: 100px;
        height: 70px;
    }
    
    #gallery-modal .main-display {
        padding: 15px;
    }
    
    .gallery-nav-buttons {
        bottom: 10px;
    }
    
    .gallery-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    /* ========== FACTORY GALLERY IMPROVEMENTS ========== */

/* Factory Image Captions */
.factory-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    color: white;
    padding: 20px 15px 15px;
    font-size: 0.95rem;
    transform: translateY(100%);
    transition: transform 0.4s ease;
    text-align: center;
}

.showcase-item:hover .factory-caption {
    transform: translateY(0);
}

/* Factory Image Counter */
.factory-counter {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

/* Factory Category Tabs */
.factory-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.factory-tab {
    padding: 10px 20px;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 30px;
    color: var(--text-primary);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.factory-tab.active,
.factory-tab:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
    transform: translateY(-3px);
}

/* Enhanced Factory Grid */
.factory-showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.factory-showcase-grid .showcase-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    height: 250px;
}

/* Factory Modal View */
.factory-modal-view {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.factory-modal-view.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.factory-modal-content {
    max-width: 1200px;
    width: 100%;
    background: var(--bg-secondary);
    border-radius: 20px;
    overflow: hidden;
    max-height: 90vh;
}

.factory-modal-img {
    width: 100%;
    max-height: 70vh;
    object-fit: contain;
    padding: 20px;
}

/* Responsive Factory */
@media (max-width: 768px) {
    .factory-showcase-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px;
    }
    
    .factory-tabs {
        gap: 8px;
    }
    
    .factory-tab {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
}
}

/* ========== EXHIBITION FOLDER SYSTEM ========== */

/* Folder Grid */
.exhibition-folders {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin: 50px 0;
}

/* Folder Card */
.folder-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px var(--shadow-color);
}

.folder-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-primary);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.2);
}

.folder-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.folder-card:hover::before {
    transform: scaleX(1);
}

/* Folder Icon */
.folder-icon-large {
    font-size: 4rem;
    color: var(--accent-primary);
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.folder-card:hover .folder-icon-large {
    transform: scale(1.1);
    color: var(--accent-secondary);
}

/* Folder Info */
.folder-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.folder-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    color: var(--text-tertiary);
    font-size: 0.9rem;
    margin-top: 10px;
}

.folder-stats span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.folder-stats i {
    color: var(--accent-primary);
}

/* Folder Badge */
.folder-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent-primary);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.folder-card:hover .folder-badge {
    opacity: 1;
    transform: translateY(0);
}

/* Exhibition Modal */
.exhibition-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 3000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.exhibition-modal.active {
    display: flex;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.exhibition-modal-content {
    width: 95%;
    max-width: 1400px;
    max-height: 90vh;
    background: var(--bg-secondary);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    animation: modalSlideUp 0.4s ease;
}

@keyframes modalSlideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.exhibition-modal-header {
    padding: 20px 30px;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.exhibition-modal-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.exhibition-modal-header h3 i {
    color: var(--accent-primary);
}

.exhibition-modal-close {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.exhibition-modal-close:hover {
    background: var(--accent-primary);
    color: white;
    transform: rotate(90deg);
    border-color: transparent;
}

.exhibition-modal-body {
    padding: 30px;
    max-height: calc(90vh - 140px);
    overflow-y: auto;
}

/* Exhibition Grid inside Modal */
#exhibition-modal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.exhibition-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 16/9;
    box-shadow: 0 10px 20px var(--shadow-color);
    transition: all 0.3s ease;
}

.exhibition-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.3);
}

.exhibition-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.exhibition-item:hover img {
    transform: scale(1.1);
}

.exhibition-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.exhibition-item:hover .exhibition-overlay {
    opacity: 1;
}

.exhibition-title {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.exhibition-location {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.exhibition-location i {
    color: var(--accent-primary);
    font-size: 0.8rem;
}

.exhibition-modal-footer {
    padding: 15px 30px;
    background: var(--bg-tertiary);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.exhibition-counter {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.exhibition-modal-close-btn {
    padding: 10px 25px;
    background: var(--accent-primary);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.exhibition-modal-close-btn:hover {
    background: var(--accent-secondary);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

.exhibition-loading {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.exhibition-loading i {
    font-size: 2.5rem;
    color: var(--accent-primary);
    margin-bottom: 15px;
}

/* No Images Message */
.exhibition-no-images {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
}

.exhibition-no-images i {
    font-size: 4rem;
    color: var(--text-tertiary);
    margin-bottom: 20px;
    opacity: 0.5;
}

.exhibition-no-images h3 {
    margin-bottom: 10px;
    color: var(--text-primary);
}

.exhibition-no-images p {
    color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 768px) {
    .exhibition-folders {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 20px;
    }
    
    .folder-icon-large {
        font-size: 3rem;
    }
    
    .folder-info h3 {
        font-size: 1.2rem;
    }
    
    .exhibition-modal-content {
        width: 100%;
        height: 100%;
        max-height: 100%;
        border-radius: 0;
    }
    
    .exhibition-modal-body {
        padding: 20px;
    }
    
    #exhibition-modal-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .exhibition-folders {
        grid-template-columns: 1fr;
    }
    
    #exhibition-modal-grid {
        grid-template-columns: 1fr;
    }
}

/* ========== CERTIFICATE GALLERY ========== */
.certification-section {
    padding: 100px 0;
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.certification-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><path d="M30 5L55 20V40L30 55L5 40V20L30 5Z" fill="%236366f1" fill-opacity="0.03"/></svg>');
    opacity: 0.5;
    pointer-events: none;
}

.certificate-folder {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.folder-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 30px 60px;
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 15px 30px var(--shadow-color);
}

.folder-icon i {
    font-size: 4rem;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    transition: all 0.3s ease;
}

.folder-icon span {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
}

.folder-icon:hover {
    transform: translateY(-10px);
    border-color: var(--accent-primary);
    box-shadow: 0 25px 50px rgba(99, 102, 241, 0.25);
}

.folder-icon:hover i {
    transform: scale(1.1);
    color: var(--accent-primary);
}

/* Certificate Modal */
.certificate-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 3000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.certificate-modal.active {
    display: flex;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.certificate-modal-content {
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    background: var(--bg-secondary);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideUp 0.4s ease;
}

@keyframes modalSlideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.certificate-modal-header {
    padding: 20px 30px;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.certificate-modal-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.certificate-modal-header h3 i {
    color: var(--accent-primary);
}

.certificate-modal-close {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.certificate-modal-close:hover {
    background: var(--accent-primary);
    color: white;
    transform: rotate(90deg);
    border-color: transparent;
}

.certificate-modal-body {
    padding: 30px;
    max-height: calc(90vh - 100px);
    overflow-y: auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

/* ========== WOODEN FRAME CERTIFICATES ========== */
.certificate-item {
    position: relative;
    border-radius: 12px !important;
    overflow: visible !important;
    cursor: pointer;
    aspect-ratio: 1/1.4;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    border: none !important;
    padding: 18px 15px 25px 15px !important;
    background: #8B5A2B !important;
    box-shadow: 
        0 15px 25px rgba(0, 0, 0, 0.3),
        inset 0 -3px 8px rgba(0, 0, 0, 0.3),
        inset 0 3px 8px rgba(255, 215, 140, 0.5) !important;
}

/* Wood grain texture */
.certificate-item::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: 
        repeating-linear-gradient(
            45deg,
            rgba(110, 60, 20, 0.25) 0px,
            rgba(110, 60, 20, 0.25) 2px,
            rgba(160, 100, 40, 0.15) 2px,
            rgba(160, 100, 40, 0.15) 8px
        ),
        radial-gradient(circle at 30% 30%, rgba(210, 180, 140, 0.3) 0%, transparent 60%) !important;
    border-radius: 8px !important;
    pointer-events: none !important;
    z-index: 1 !important;
}

/* Inner mat board */
.certificate-item::after {
    content: '' !important;
    position: absolute !important;
    top: 10px !important;
    left: 8px !important;
    right: 8px !important;
    bottom: 10px !important;
    background: #f5f0e0 !important;
    border-radius: 6px !important;
    box-shadow: inset 0 0 0 1px rgba(210, 180, 140, 0.6) !important;
    z-index: 2 !important;
}

/* Certificate image */
.certificate-item img {
    position: relative !important;
    width: calc(100% - 6px) !important;
    height: calc(100% - 6px) !important;
    object-fit: cover !important;
    border-radius: 4px !important;
    margin: 3px !important;
    z-index: 3 !important;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2) !important;
    transition: transform 0.5s ease !important;
}

/* Wooden frame corners */
.frame-corner {
    position: absolute !important;
    width: 25px !important;
    height: 25px !important;
    border: 3px solid #c69c6d !important;
    z-index: 5 !important;
    pointer-events: none !important;
}

.corner-tl {
    top: 5px !important;
    left: 3px !important;
    border-right: none !important;
    border-bottom: none !important;
}

.corner-tr {
    top: 5px !important;
    right: 3px !important;
    border-left: none !important;
    border-bottom: none !important;
}

.corner-bl {
    bottom: 5px !important;
    left: 3px !important;
    border-right: none !important;
    border-top: none !important;
}

.corner-br {
    bottom: 5px !important;
    right: 3px !important;
    border-left: none !important;
    border-top: none !important;
}

.certificate-item:hover {
    transform: translateY(-12px) scale(1.02) !important;
    box-shadow: 
        0 25px 35px rgba(0, 0, 0, 0.4),
        inset 0 -3px 8px rgba(0, 0, 0, 0.3),
        inset 0 3px 12px rgba(255, 215, 140, 0.7) !important;
}

.certificate-item:hover img {
    transform: scale(1.05) !important;
}

.certificate-item-overlay {
    position: absolute !important;
    bottom: 18px !important;
    left: 18px !important;
    right: 18px !important;
    background: rgba(100, 60, 20, 0.95) !important;
    backdrop-filter: blur(2px) !important;
    padding: 15px 10px !important;
    color: #f5e6d3 !important;
    transform: translateY(100%) !important;
    transition: transform 0.4s ease !important;
    z-index: 10 !important;
    border-radius: 8px !important;
    border: 1px solid #d4a373 !important;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3) !important;
    text-align: center !important;
}

.certificate-item:hover .certificate-item-overlay {
    transform: translateY(0) !important;
}

.certificate-item-title {
    font-weight: 700 !important;
    font-size: 1rem !important;
    color: #ffdead !important;
    margin-bottom: 5px !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5) !important;
}

.certificate-item-subtitle {
    font-size: 0.8rem !important;
    color: #e6c9a8 !important;
    opacity: 0.9 !important;
}

/* Certificate Lightbox */
.certificate-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.98);
    z-index: 4000;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.certificate-lightbox.active {
    display: flex;
    animation: lightboxFadeIn 0.3s ease;
}

.certificate-lightbox .lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

.certificate-lightbox img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border: 25px solid #8B5A2B !important;
    border-radius: 15px !important;
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.7),
        inset 0 -5px 15px rgba(0, 0, 0, 0.3),
        inset 0 5px 15px rgba(255, 215, 140, 0.4) !important;
    background: #8B5A2B !important;
    padding: 15px !important;
}

.certificate-lightbox .lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.certificate-lightbox .lightbox-close:hover {
    background: var(--accent-primary);
    border-color: transparent;
    transform: rotate(90deg);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.lightbox-nav:hover {
    background: var(--accent-primary);
    border-color: transparent;
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-counter {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 0.95rem;
    background: rgba(0, 0, 0, 0.5);
    padding: 5px 20px;
    border-radius: 30px;
}

@media (max-width: 768px) {
    .certificate-modal-body {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 15px;
        padding: 20px;
    }
    
    .certificate-item {
        padding: 12px 10px 18px 10px !important;
    }
    
    .certificate-lightbox img {
        border-width: 15px !important;
        padding: 8px !important;
    }
    
    .lightbox-nav {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .certificate-modal-body {
        grid-template-columns: 1fr;
    }
}