 /* Стили для контейнера изображения */
        .image-container {
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100vh; /* Занимает всю высоту экрана */
            width: 100vw; /* Занимает всю ширину экрана */
            background-color: rgba(0, 0, 0, 0.9); /* Темный фон */
            position: fixed; /* Фиксированное положение, чтобы перекрыть все */
            top: 0;
            left: 0;
            z-index: 1000; /* Высокий z-index, чтобы быть поверх всего */
            display: none; /* Скрыт по умолчанию */
        }

        .image-container img {
            max-width: 90%; /* Максимальная ширина изображения */
            max-height: 90%; /* Максимальная высота изображения */
            object-fit: contain; /*  Сохраняет пропорции изображения и помещает его целиком в контейнер */
            border-radius: 5px;
        }

        /* Стили для исходных изображений */
        .thumbnail {
            width: 200px;
            height: auto;
            border-radius: 5px;
            cursor: pointer;
            margin: 10px;
            transition: transform 0.2s; /* Плавная анимация при наведении */
        }

        .thumbnail:hover {
            transform: scale(1.1); /* Небольшое увеличение при наведении */
        }

        .close-button {
            position: absolute;
            top: 20px;
            right: 20px;
            font-size: 30px;
            color: white;
            cursor: pointer;
            z-index: 1001; /*  Чтобы кнопка была поверх изображения */
        }
.my-carousel-section {
    padding: 20px;
    text-align: center;
}

.my-carousel-container {
    position: relative;
    width: 100%;
    max-width: 1200px; /* Увеличено значение max-width */
    margin: 0 auto;
    overflow: hidden;
}

.my-carousel-wrapper {
    display: flex;
    transition: transform 0.3s ease-in-out; /*  Плавная анимация  */
}

.my-carousel-slide {
    flex-shrink: 0; /*  Слайды не сжимаются  */
    margin-right: 10px; /*  Расстояние между слайдами  */
}
.my-carousel-slide img {
  display: block;
  max-height: 500px; /* или нужная вам высота */
  width: 400px;
  height: 500px;
  object-fit: cover; /* сохраняет пропорции и масштабирует изображение */
}
.my-carousel-slide:last-child {
    margin-right: 0; /*  Убираем отступ у последнего слайда  */
}

.my-carousel-image {
    width: 100%;
    height: auto;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.2s;
}

.my-carousel-image:hover {
    transform: scale(1.1);
}

.my-carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 10;
    font-size: 50px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.my-carousel-button:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.my-carousel-button-prev {
    left: 10px;
}

.my-carousel-button-next {
    right: 10px;
}