.media-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    border: grey solid 1px;
}

.media-container .grid-image,
.media-container .grid-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.media-container .grid-video {
    opacity: 0;
    pointer-events: none;
}

.media-container.has-video:hover .grid-video {
    opacity: 1;
}

.media-container.no-video:hover .grid-image {
    transform: scale(1.05);
}
