/* styles.css */
body {
    margin: 0;
    padding: 0;
    background-color: black;
    color: white;
    font-family: Arial, sans-serif;
}

p {
margin-left: 20px;
margin-right: 20px;
text-align: center;
}
header, footer {
    text-align: center;
    padding: 10px;
}

.gallery {
    margin: 20px 0;
}

.gallery h2 {
    text-align: center;
    margin-bottom: 15px;
}

.image-container {
    display: flex;
    overflow-x: auto;
    padding-bottom: 10px;
    margin-left: 5%;
    margin-right: 5%;
}

.image-container::-webkit-scrollbar {
    display: none; /* Скрыть скроллбар для Webkit браузеров */
}

.gallery figure {
    flex: 0 0 auto;
    width: 200px; /* Ширина миниатюр */
    margin: 10px;
    text-align: center;
}

.gallery figure img {
    width: 100%;
    height: auto;

}

figcaption {
    margin-top: 10px;
    text-align: center;
}

@media (min-width: 768px) {
    .image-container {
        display: block;
    }

    .gallery figure {
        width: calc(33.333% - 20px);
        display: inline-block;
    }
}
.gallery .image-container {
    display: flex;
    flex-wrap: wrap;
    
   
justify-content: space-between;
}

.gallery .image-container figure {
    
    f

 
flex-basis: calc(33.333% - 10px); /* Разделите строку на 3 части и вычтите небольшое пространство между изображениями */
    
   
margin-bottom: 20px; /* Отступ снизу */
}

.gallery .image-container figure img {
    width: 100%; /* Заставляет изображение заполнять свой контейнер */
    
    hei

    
height: auto; /* Сохраняет пропорции изображения */
}
