<style>
    .gallery-hero {
        background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
        color: white;
        padding: 80px 0 60px;
        margin-bottom: 50px;
    }

    .gallery-hero h1 {
        font-size: 3rem;
        font-weight: 800;
        margin-bottom: 15px;
    }

    .gallery-hero p {
        font-size: 1.2rem;
        opacity: 0.9;
    }

    .gallery-post-card {
        background: white;
        border-radius: 16px;
        box-shadow: 0 4px 20px rgba(0,0,0,0.08);
        overflow: hidden;
        margin-bottom: 40px;
        transition: transform 0.3s, box-shadow 0.3s;
    }

    .gallery-post-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    }

    .gallery-slider {
        position: relative;
        width: 100%;
        height: 400px;
        overflow: hidden;
        background: #f0f2f4;
    }

    .gallery-slider-track {
        display: flex;
        height: 100%;
        transition: transform 0.4s ease;
    }

    .gallery-slider-track img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        flex-shrink: 0;
    }

    .gallery-slider-btn {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background: rgba(0,0,0,0.5);
        color: white;
        border: none;
        border-radius: 50%;
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: background 0.2s;
        z-index: 2;
    }

    .gallery-slider-btn:hover {
        background: rgba(0,0,0,0.7);
    }

    .gallery-slider-btn.prev { left: 12px; }
    .gallery-slider-btn.next { right: 12px; }

    .gallery-slider-dots {
        position: absolute;
        bottom: 12px;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        gap: 8px;
        z-index: 2;
    }

    .gallery-slider-dots span {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: rgba(255,255,255,0.5);
        cursor: pointer;
        transition: background 0.2s;
    }

    .gallery-slider-dots span.active {
        background: white;
    }

    .gallery-post-content {
        padding: 30px;
    }

    .gallery-post-title {
        font-size: 1.5rem;
        font-weight: 700;
        color: #2c3e50;
        margin-bottom: 12px;
    }

    .gallery-post-date {
        font-size: 0.85rem;
        color: #95a5a6;
        margin-bottom: 16px;
    }

    .gallery-post-text {
        color: #555;
        line-height: 1.7;
        white-space: pre-wrap;
    }

    .gallery-no-images {
        text-align: center;
        padding: 40px;
        color: #999;
    }

    .gallery-no-images i {
        font-size: 3rem;
        margin-bottom: 15px;
        color: #ddd;
    }

    @media (max-width: 768px) {
        .gallery-hero {
            padding: 60px 0 40px;
        }
        .gallery-hero h1 {
            font-size: 2rem;
        }
        .gallery-slider {
            height: 250px;
        }
        .gallery-post-content {
            padding: 20px;
        }
        .gallery-post-title {
            font-size: 1.2rem;
        }
    }
</style>

<div class="gallery-hero">
    <div class="container text-center">
        <h1><i class="bi bi-images me-2"></i>Галерея</h1>
        <p>Фотоотчёты с мероприятий, турниров и тренировок</p>
    </div>
</div>

<div class="container">
    <div id="gallery-posts-container"></div>
</div>

<script type="module" src="/js/site/pages/gallery/gallery.js"></script>
