.moving-gallery {
    position: relative;
    overflow: hidden;
    padding: 80px 0;
}

.moving-row {
    display: flex;
    white-space: nowrap;
    overflow: hidden;
    margin: 20px 0;
}

.row-track {
    display: flex;
    animation: scroll 30s linear infinite;
}

.moving-row:nth-child(2) .row-track {
    animation-duration: 40s;
}
.moving-row:nth-child(3) .row-track {
    animation-duration: 50s;
}

.row-track img {
    width: 250px;
    margin: 0 15px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Бесконечный скролл */
@keyframes scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

/* Сообщение */
.guest-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    background: rgba(0,0,0,0.8);
    padding: 30px;
    border-radius: 15px;
    color: #fff;
}

/* Кнопки для страницы "Фотографии" */
.photo-btn-outline,
.photo-btn-filled {
    padding: 12px 24px;
    margin: 10px;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
}

/* Кнопка "Войти" */
.photo-btn-outline {
    background: #ff6600;
    border: 2px solid #ff6600;
    color: #fff;
}
.photo-btn-outline:hover {
    background: #e65c00;
}

/* Кнопка "Регистрация" */
.photo-btn-filled {
    background: transparent;
    border: 2px solid #ff6600;
    color: #ff6600;
}
.photo-btn-filled:hover {
    background: #ff6600;
    color: #fff;
}

/* 📱 Адаптивность */
@media (max-width: 1024px) {
    .row-track img {
        width: 200px;
        margin: 0 12px;
    }
    .guest-message {
        padding: 25px;
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .row-track img {
        width: 160px;
        margin: 0 10px;
    }
    .row-track {
        animation-duration: 40s; /* замедляем */
    }
    .photo-btn-outline,
    .photo-btn-filled {
        padding: 10px 20px;
        font-size: 15px;
    }
    .guest-message {
        width: 90%;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .row-track img {
        width: 120px;
        margin: 0 8px;
    }
    .row-track {
        animation-duration: 50s; /* ещё медленнее */
    }
    .photo-btn-outline,
    .photo-btn-filled {
        width: 100%;
        padding: 12px;
        font-size: 14px;
        margin: 8px 0;
    }
    .guest-message {
        font-size: 0.9rem;
        padding: 20px;
    }
}
