.video-container {
    position: relative;
    width: 300px;
    height: 200px;
    overflow: visible;
    /* Allow video to expand beyond the container */
    display: inline-block;
}

.video-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Ensure the entire video is visible */
    transition: transform 0.4s ease;
    /* Smooth zoom transition */
    position: absolute;
    top: 0;
    left: 0;
}

/* Zoom the video larger while keeping it visible */
.video-container:hover .video-thumbnail {
    transform: scale(3);
    /* Adjust this to make the video larger on hover */
    z-index: 1000;
    /* Ensure it appears above other content */
}

.image-container {
    position: relative;
    width: 300px;
    height: 130px;
    overflow: visible; /* Allow image to expand beyond the container */
    display: inline-block;
}

.image-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease; /* Smooth zoom transition */
    position: absolute;
    top: 0;
    left: 0;
}

/* Zoom the image larger while keeping it visible */
.image-container:hover .image-thumbnail {
    transform: scale(4); /* Adjust this to make the image larger on hover */
    z-index: 1000; /* Ensure it appears above other content */
}