body {
    font-family: Arial, sans-serif;
    padding: 20px;
    background: #f5f5f5;
}

.gallery-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
    font-size: 28px;
}

.gallery-container {
    position: relative;
    width: 100%;
    margin: 0 auto;
}

.gallery-scroll {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    /* Плавная прокрутка */
    -webkit-overflow-scrolling: touch;
    /* Инерционный скролл на iOS */
    scrollbar-width: none;
    /* Скрыть скроллбар в Firefox */
    padding: 20px 10px;
    gap: 20px;
    cursor: grab;
}

.gallery-scroll::-webkit-scrollbar {
    display: none;
    /* Скрыть скроллбар в Chrome/Safari */
}

.gallery-scroll:active {
    cursor: grabbing;
}

.photo-card {
    flex: 0 0 auto;
    width: 300px;
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    position: relative;
}

.photo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.photo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.photo-card:hover img {
    transform: scale(1.05);
}

.photo-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.photo-card:hover .photo-caption {
    transform: translateY(0);
}

.nav-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 25px;
}

.nav-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: #333;
}

.nav-btn:hover {
    background: #007bff;
    color: white;
    transform: scale(1.1);
}

.scroll-indicator {
    text-align: center;
    margin-top: 20px;
    color: #666;
    font-size: 14px;
    opacity: 0.7;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.7;
    }

    50% {
        opacity: 1;
    }
}

/* Адаптивность */
@media (max-width: 768px) {
    .photo-card {
        width: 250px;
        height: 350px;
    }

    .section-title {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .photo-card {
        width: 200px;
        height: 300px;
    }

    .nav-btn {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}