/* performance-gallery and persons styles */
.gallery-title {
    color: #333;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.gallery-count {
    color: #6c757d;
    font-size: 0.9em;
    margin-left: 0.5rem;
}

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

.gallery-item {
    position: relative;
    aspect-ratio: 3/2;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.gallery-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-thumbnail {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: white;
    font-size: 1.2rem;
}

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

.gallery-more-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;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
}

.gallery-hidden {
    display: none;
}

.show-all-gallery {
    border-radius: 20px;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.show-all-gallery:hover {
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .performance-gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    .gallery-item {
        aspect-ratio: 1;
    }
}

@media (max-width: 576px) {
    .performance-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.main-poster {
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}

.main-poster:hover {
    transform: scale(1.02);
}

.lightbox .lb-data .lb-caption {
    font-size: 14px;
    color: #fff;
    text-align: center;
}

.lightbox .lb-data .lb-number {
    color: #ccc;
    font-size: 12px;
}
.sticky-poster {
    position: -webkit-sticky; /* Для совместимости со старыми версиями Safari */
    position: sticky;
    top: 20px; /* Расстояние от верха, при котором изображение "залипнет". Можете изменить. */
}