.video-wrapper {
    position: relative;
    width: 100%;
    max-width: 1280px;

    /* Prevents it from exceeding 1280px */
    margin: 0 auto;

    /* Centers it */
    aspect-ratio: 16 / 9;

    /* Keeps proportional sizing */
    overflow: hidden;

    /* Ensures no overflow on cropping */
}

.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;

    /* Crops instead of stretching */
    object-position: center;

    /* Keeps subject centered */
}

