.video-grid {
    display: grid;
    gap: 15px;
}


.video-thumb {
    cursor: pointer;
    overflow: hidden;
}

.video-thumb img,
.video-thumb video {
    width: 100%;
    height: auto;
    cursor: pointer;
    border-radius: 5px;
}


.video-pagination {
    text-align: center;
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

.page-link {
    cursor: pointer;
    margin: 0 5px;
    padding: 5px 10px;
    background: #eee;
    display: inline-block;
}

#video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

#modal-content {
    width: 80%;
    max-width: 800px;
    background: #000;
    padding: 20px;
    border-radius: 8px;
}

#close-modal {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 30px;
    color: #fff;
    cursor: pointer;
}

#modal-content iframe,
#modal-content video {
    max-width: 90vw;
    max-height: 80vh;
}