/* Основные стили для карусели фотогалереи */
.gallery-foto,
.production-gallery-foto,
.programm-gallery-foto
{
    max-width: 1200px;
}
.gallery,
.production-gallery,
.programm-gallery
{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
    width: 90%;
    margin: 40px auto;
    position: relative;
    padding: 20px 0;
}
/* Стили для слайдов */
.gallery .slick-slide,
.production-gallery .slick-slide,
.programm-gallery .slick-slide
{
    padding: 0 15px;
    transition: all 0.4s ease;
}
.gallery img,
.production-gallery img,
.programm-gallery img
{
    width: 100%;
    max-height: 220px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.gallery .slick-slide:hover img,
.production-gallery .slick-slide img,
.programm-gallery .slick-slide img
{
    transform: scale(1.03);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}
.galery-carousel-nav,
.production-galery-carousel-nav,
.programm-galery-carousel-nav
{
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 30px;
}
.galery-carousel-prev,
.galery-carousel-next,
.production-galery-carousel-prev, 
.production-galery-carousel-next,
.programm-galery-carousel-prev, 
.programm-galery-carousel-next
{
    background: none;
    border: none;
    color: #007bff;
    font-size: 24px;
    padding: 0 15px;
}
.galery-carousel-dots,
.production-galery-carousel-dots,
.programm-galery-carousel-dots
{
    display: flex;
    margin: 0 20px;
    padding: 0;
    list-style: none;
}
.galery-carousel-dots li,
.production-galery-carousel-dots li,
.programm-galery-carousel-dots li
{
    margin: 0 5px;
}
.galery-carousel-dots button,
.production-galery-carousel-dots button,
.programm-galery-carousel-dots button
{
    background: #ddd;
    border: none;
    border-radius: 50%;
    width: 12px;
    height: 12px;
    padding: 0;
    text-indent: -9999px;
}
.galery-carousel-dots .slick-active button,
.production-galery-carousel-dots .slick-active button,
.programm-galery-carousel-dots .slick-active button
{
    background: #007bff;
}
/* Стили для модального окна */
.modal-gallery {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,1);
}
.modal-gallery-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh;
}
.modal-gallery-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
}
.modal-gallery-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}
.modal-gallery-close:hover,
.modal-gallery-close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}
.slick-track img:hover{
    cursor: pointer;
}