body {
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
    background: #000;
}

#bgVideo {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: 100%;
    width: auto;
    object-fit: contain;
    z-index: -1;
}

.top-image {
    max-width: 80%;
    height: auto;
    max-height: calc(var(--vh, 1vh) * 80);
    display: block;
    margin: 0 auto;
    z-index: 1;
}

@media screen and (max-width: 768px) {
    .top-image {
        max-width: 40%;
    }
  }

@media screen and (min-width: 1920px) and (min-height: 1080px) {
    #bgVideo {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        min-width: 100%;
        min-height: 100%;
        width: auto;
        height: auto;
        z-index: -1;
        object-fit: cover;
    }
}