/* Background */
#bg {
    transition: opacity 2s ease-in-out;
    height: 100%;
    left: 0;
    opacity: 0.375;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1;
}

#bg div {
    transition: opacity 3s ease;
    background-size: cover;
    height: 100%;
    left: 0;
    opacity: 0;
    position: absolute;
    top: 0;
    visibility: hidden;
    width: 150%;
}

#bg div.visible {
    animation: bg 45s linear infinite;
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

#bg div.visible.top {
    z-index: 2;
}

@media screen and (max-width: 1280px) {
    #bg div.visible {
        animation: bg 29.25s linear infinite;
    }
}

@media screen and (max-width: 736px) {
    #bg div.visible {
        animation: bg 18s linear infinite;
    }
}

#bg div:only-child {
    animation-direction: alternate !important;
}

body.is-preload #bg {
    opacity: 0;
}

@keyframes bg {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-25%);
    }
}

