.video-grid {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
    gap: 10px;
}

.video-trigger {
    width: 32%;
    height: 210px;
    background-size: cover;
    object-fit: cover;
    background-repeat: no-repeat;
    background-position: 50% 50%;
    position: relative;
    z-index: 10;
}

.video-trigger::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: transparent url('/static/image/icon_play.png') no-repeat center center;
    background-size: cover;
    width: 48px;
    height: 48px;
    z-index: 15;
}


/* 弹窗 */
#video-modal {
    display: none;
    position: fixed;
    width: 80%;
    max-width: 800px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 5px;
}

.modal-content {
    position: relative;
    width: 100%;
    height: 100%;
    background: #000;
}

.modal-content video {
    width: 100%;
    display: block;
}

.close-btn {
    position: absolute;
    top: -50px;
    right: -36px;
    color: white;
    font-size: 28px;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.6);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
}


/*小屏幕*/
@media (max-width: 768px) {
    .video-trigger {
        width: 48%;
        height: 105px;
    }
    #video-modal{
        width: 80%;
    }
}
