﻿body {
    font-family: Arial, sans-serif;
}

.video-thumbnail {
    width: 25px;
    cursor: pointer;
    border-radius: 8px;
    transition: transform 0.2s;
}

    .video-thumbnail:hover {
        transform: scale(1.05);
    }

.modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
}

.modal-content {
    width: fit-content;
    max-width: 80%;
    margin: 10% auto;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 20px;
    cursor: pointer;
    color: #333;
}

video {
    width: 600px;
    height: 400px;
    max-width: 100%;
    display: block;
    margin: 0 auto;
    object-fit: contain;
    border: none;
    border-radius: 0;
}

.close-wrapper {
    text-align: center;
    margin-bottom: 10px;
}

.close-btn {
    font-size: 32px;
    cursor: pointer;
    color: #333;
    display: inline-block;
    padding: 10px 16px;
    background-color: #eee;
    border-radius: 50%;
    transition: background-color 0.2s;
    touch-action: manipulation;
}

    .close-btn:hover {
        background-color: #ccc;
    }

@media (max-width: 600px) {
    .modal-content {
        width: 90%;
        margin: 20% auto;
        padding: 10px;
    }

    video {
        width: 100%;
        height: auto;
    }

    .close-btn {
        font-size: 36px;
        padding: 12px 18px;
    }
}