body {
    font-family: 'Segoe UI', sans-serif;
    margin: 0;
    background-color: #f4f4f4;
   display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    text-align: center;
    padding: 5px;
    background: white;
}

.container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0px;
}

/* Сетка для 3-х картинок */
.gallery-row {
    display: flex;
    gap: 10px; /* Расстояние между картинками */
    width: 100%;
    max-width: 1200px; /* Чтобы на очень широких мониторах не растягивалось слишком сильно */
    justify-content: center;
}

/* Стиль каждой карточки */
.gallery-card {
    flex: 1; /* Равномерно распределяет место */
    max-width: 30%; /* Ограничиваем, чтобы точно влезло три */
    background: white;
    border-radius: 12px;
    overflow: visible;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.3s ease;
    text-align: center;
    padding-bottom: 0px;
}

.gallery-card:hover {
    transform: translateY(-5px);
}

.gallery-card img {
    width: 100%;
    height: 100px; /* Фиксированная высота для стройности ряда */
    object-fit: scale-down; /* Обрезает лишнее, сохраняя пропорции */
    display: block;
}

.gallery-card p {
    margin: 0px 5px;
    font-size: 16px;
    font-weight: normal;
    color: #333;
    word-break: break-all; /* Если название файла слишком длинное */
}

/* Стили подвала из прошлых шагов */
footer {
    background: #1a1a1a;
    color: white;
    padding: 10px;
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.social-icon {
    color: white;
    font-size: 24px;
    text-decoration: none;
    transition: 0.3s;
}

.social-icon:hover { color: #007bff; }
/* К существующим стилям добавьте: */

.container {
    flex: 1;
    display: flex;
    flex-direction: column; /* Элементы (галерея и кнопки) друг под другом */
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.gallery-row {
    display: flex;
    gap: 5px;
    width: 100%;
    max-width: 1000px;
    justify-content: center;
    margin-bottom: 10px; /* Отступ до кнопок */
}

.gallery-card {
    flex: 1;
    max-width: 50%;
    background: white;
    border-radius:5px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.gallery-card img {
    width: 100%;
    height: 90%;
	border-radius:5px;
    object-fit: contain;
}

/* Стили кнопок-стрелок */
.controls {
    display: flex;
    gap: 40px;
}

.arrow-btn {
    background: #2c3e50;
    color: white;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s, transform 0.2s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.arrow-btn:hover {
    background: #e8491d;
    transform: scale(1.1);
}

.arrow-btn:active {
    transform: scale(0.9);
}