.video-container {
    position: relative;
    width: 300px;
    height: 200px;
    overflow: visible;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
}

.video-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
    position: relative;
}

.video-container:hover .video-thumbnail {
    transform: scale(3);
    z-index: 1000;
}

.image-container {
    position: relative;
    width: 300px;
    height: 130px;
    overflow: visible;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
}

.image-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
    position: relative;
}

.image-container:hover .image-thumbnail {
    transform: scale(4);
    z-index: 1000;
}

@media screen and (max-width: 960px) {

    .video-container {
        width: 100%;
        height: auto;
        margin-top: 50px;
        overflow: hidden;
    }

    .image-container {
        width: 100%;
        height: auto;
        margin-top: 40px;
        overflow: hidden;
    }

    .video-thumbnail,
    .image-thumbnail {
        position: relative;
        height: auto;
        transform: none !important;
    }

    .video-container:hover .video-thumbnail,
    .image-container:hover .image-thumbnail {
        transform: none !important;
    }
}