    @media (max-width: 768px) {
        .scroll-btn {
            display: inline-block;
        }
    }

    .gallery-container {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 15px;
        padding: 20px;
        justify-content: center;
    }

    .gallery-item {
        position: relative;
        overflow: hidden;
        cursor: pointer;
        transition: transform 0.3s ease;
    }

    .gallery-item:hover {
        transform: scale(1.05);
    }

    .gallery-item img,
    .gallery-item video {
        width: 100%;
        height: 200px;
        object-fit: cover;
        border-radius: 5px;
    }

    .lightbox {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.8);
        display: none;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        z-index: 1050;
    }

    .lightbox-content {
        text-align: center;
        margin-left: 40px;
    }

    .lightbox img,
    .lightbox video {
        max-width: 90%;
        max-height: 80vh;
        border-radius: 10px;
    }

    .lightbox-desc {
        margin-top: 10px;
        font-size: 16px;
        color: #ffffff;
    }


    .pagination {
        text-align: center;
        margin-top: 20px;
    }

    .page-btn {
        display: inline-block;
        padding: 8px 12px;
        margin: 5px;
        background: #007bff;
        color: white;
        text-decoration: none;
        border-radius: 5px;
    }

    .page-btn.active,
    .page-btn:hover {
        background: #0056b3;
        font-weight: bold;
    }


    .close {
        position: absolute;
        top: 10px;
        right: 20px;
        font-size: 30px;
        cursor: pointer;
        color: #fff;
    }

    .scroll-btn {
        position: fixed;
        right: 20px;
        background: #343a40;
        color: white;
        border: none;
        padding: 10px;
        border-radius: 50%;
        z-index: 999;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
        cursor: pointer;
    }

    .scroll-btn svg {
        display: block;
        margin: auto;
    }

    #scrollTopBtn {
        bottom: 80px;
    }

    #scrollBottomBtn {
        bottom: 20px;
    }



    .scroll-btn:hover {
        background-color: #495057;
    }