.video-popup {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0, 0, 0, 0.8); /* Black w/ opacity */
}

.video-popup-content {
    position: relative;
    margin: auto;
    padding: 0;
    width: 80%; /* Could be more or less, depending on screen size */
    max-width: 700px; /* Max width of the video */
}

.video-popup-close {
    position: absolute;
    top: 10px;
    right: 25px;
    color: white;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
}

.video-thumbnail {
    width: 100%; /* Responsive thumbnails */
    max-width: 200px; /* Max width for thumbnails */
    cursor: pointer;
    transition: transform 0.2s; /* Animation */
}

.video-thumbnail:hover {
    transform: scale(1.05); /* Zoom effect on hover */
}

.video-thumbnails {
    padding: 20px 0;
}

.thumbnail {
    max-width: 300px;
    margin: 0 auto 30px;
    background: #fff;
    border-radius: 4px;
    padding: 15px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
    cursor: pointer;
}

.thumbnail:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
}

.thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 10px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.thumbnail p {
    color: #333;
    font-size: 16px;
    text-align: center;
    margin: 10px 0 0;
}

.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
}

.popup video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    max-height: 80vh;
}

.close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    z-index: 10000;
}

.section-padding {
    padding: 60px 0;
}

.video-grid {
    margin: 30px 0;
    overflow: hidden;
}

.video-grid .thumbnail {
    margin-bottom: 30px;
    background: #fff;
    border-radius: 4px;
    padding: 15px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
    cursor: pointer;
}

.video-grid .thumbnail:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
}

.video-grid .thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 10px;
}

.clear {
    clear: both;
    margin-bottom: 30px;
}