/* Gallery Specific Styles */
.gallery-controls {
    max-width: 1200px;
    margin: 0 auto 2rem;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

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

.toggle-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

.toggle-btn:hover,
.toggle-btn.active {
    border-color: #2563eb;
    background: #2563eb;
    color: white;
}

.sort-controls select {
    padding: 0.5rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    background: white;
    font-size: 14px;
    cursor: pointer;
}



/* Masonry Layout */
.gallery-masonry {
    column-count: 3;
    column-gap: 20px;
    display: none;
}

.gallery-masonry.active {
    display: block;
}

.exhibitions-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.exhibition-item {
    break-inside: avoid;
    margin-bottom: 20px;
    border-radius: 12px;
    overflow: hidden;
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
}

.exhibition-item.show {
    opacity: 1;
    transform: translateY(0);
}

.exhibition-item:hover {
    transform: scale(1.02) translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* Grid Layout */
.gallery-grid {
    display: none;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-grid.active {
    display: grid;
}

.gallery-grid .exhibition-item {
    transform: scale(0.8);
    opacity: 0;
}

.gallery-grid .exhibition-item.show {
    transform: scale(1);
    opacity: 1;
}

/* Remove old exhibition-item styles and replace with: */

.exhibition-section {
    background: white;
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 80px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.exhibition-header {
    margin-bottom: 40px;
    text-align: center;
    border-bottom: 3px solid #f0f0f0;
    padding-bottom: 30px;
}

.exhibition-header h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 20px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.exhibition-meta {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.exhibition-meta .meta-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
    min-width: 120px;
}

.meta-icon {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.meta-label {
    font-size: 0.75rem;
    color: #888;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.meta-value {
    font-size: 1.1rem;
    color: #333;
    font-weight: 500;
    line-height: 1.3;
}

.exhibition-description {
    color: #555;
    font-size: 1.1rem;
    line-height: 1.7;
    max-width: 800px;
    margin: 0 auto;
    font-weight: 400;
}

/* Alternative layout - inline style */
.exhibition-meta.inline {
    flex-direction: row;
    gap: 2rem;
}

.exhibition-meta.inline .meta-item {
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    min-width: auto;
}

.exhibition-meta.inline .meta-icon {
    font-size: 1.2rem;
    margin-bottom: 0;
}

.exhibition-meta.inline .meta-label {
    display: none; /* Hide labels in inline mode */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .exhibition-section {
        padding: 30px 20px;
        margin-bottom: 60px;
    }
    
    .exhibition-header {
        margin-bottom: 30px;
        padding-bottom: 20px;
    }
    
    .exhibition-header h2 {
        font-size: 2rem;
        margin-bottom: 15px;
    }
    
    .exhibition-meta {
        gap: 2rem;
    }
    
    .exhibition-meta .meta-item {
        min-width: 100px;
    }
    
    .meta-value {
        font-size: 1rem;
    }
    
    .exhibition-description {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .exhibition-header h2 {
        font-size: 1.75rem;
    }
    
    .exhibition-meta {
        gap: 1.5rem;
        flex-direction: column;
        align-items: center;
    }
    
    .exhibition-meta .meta-item {
        flex-direction: row;
        gap: 0.75rem;
        min-width: auto;
    }
    
    .meta-icon {
        font-size: 1.2rem !important;
    }
    
    .meta-label {
        display: inline-block;
        font-size: 0.8rem;
    }
}

/* Masonry layout for exhibition photos */
.exhibition-photos {
    column-count: 3;
    column-gap: 20px;
}

.photo-item {
    break-inside: avoid;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.photo-item.show {
    opacity: 1;
    transform: translateY(0);
}

.photo-item:hover {
    transform: scale(1.02) translateY(0);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.photo-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* Image Modal */
.image-modal {
    max-width: 90vw;
    max-height: 90vh;
    padding: 0;
    background: transparent;
}

.image-modal img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}



/* Responsive adjustments */
@media (max-width: 768px) {
    .exhibition-photos {
        column-count: 2;
    }
    
    .exhibition-section {
        padding: 20px;
        margin-bottom: 40px;
    }
    
    .exhibition-header h2 {
        font-size: 1.5rem;
    }
    
    .exhibition-meta {
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .exhibition-photos {
        column-count: 1;
    }
}