body {
    margin: 0;
    font-family: 'Playfair Display', serif;
    background-color: #000;
    color: white;
}

/* Контейнер галереи */
.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 40px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-item img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item img:hover {
    transform: scale(1.03);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

footer {
    background-color: #111;
    padding: 20px;
    text-align: center;
    color: #aaa;
    font-size: 14px;
    border-top: 1px solid #333;
}

/* ===== АДАПТАЦИЯ ===== */

/* Базовые стили уже заданы выше */

/* 1280px — немного уменьшаем отступы и зазор */
@media (max-width: 1280px) {
    .gallery-container {
        gap: 18px;
        padding: 30px 15px;
    }
}

/* 1024px — уменьшаем размер ячеек, чтобы влезало больше фото */
@media (max-width: 1024px) {
    .gallery-container {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 16px;
    }
}

/* 768px и меньше — 1 картинка по центру */
@media (max-width: 768px) {
    .gallery-container {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
        gap: 15px;
    }

    .gallery-item {
        flex: 0 0 100%;
        max-width: 100%;
        display: flex;
        justify-content: center;
    }

    .gallery-item img {
        max-width: 100%;
        height: auto;
        display: block;
        object-fit: contain;
    }
}