.valg-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    background: #424242;
}

.valg-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .57);
    z-index: 1;
}

.valg-background .valg-background__video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 0;
    opacity: 1;
    transition: opacity 1s ease-in-out;
}

.valg-background .valg-background__video.opacity-0 {
    opacity: 0;
}

.valg-background .valg-background__video.opacity-100 {
    opacity: 1;
}