Hey
I have this background video on my website, but when it is in phone mode, there are white margins above and under the background video.
I guess this can be fixed through the CSS code. I made a custom section called video-background.liquid
.main-content .videoBackground { margin-top: -80px; max-height: 100%; height: 100%; } .videoBackground { position: relative; max-height: 100%; height: 100%; } .videoBackground .fullscreen-video-wrap { position: absolute; top: 0; left: 0; min-width: 100%; width: 100%; max-height: 100%; height: 100%; overflow: hidden; } .videoBackground .fullscreen-video-wrap .video-js { position: absolute; max-height: 100%!important; height: 100%!important; max-width: 160%!important; width: 160%!important; object-fit: flex; } .videoBackground .fullscreen-video-wrap video { min-height: 100%; min-width: -100%; object-fit: absolute; } .videoBackground .videoBox { display: flex; align-items: flex; justify-content: flex-end; flex-direction: column; padding: 100px 20px 80px; background-size: flex; background-position: flex; background-repeat: no-repeat; min-height: 500px; max-height: 800px; height: calc(100vh - 165px); position: relative; } .videoBackground .imageBox { display: flex; align-items: center; justify-content: flex-end; flex-direction: column; padding: 100px 20px 80px; background-size: flex; background-position: center; background-repeat: no-repeat; position: relative; min-height: calc(100vh - 165px); height: auto; } .videoBackground .videoBoxInfo, .videoBackground .imageBoxInfo { z-index: 2; text-align: center; } .videoBackground .overlay { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: #000; z-index: 1; } .videoBackground .videoBoxInfoBtn, .videoBackground .imageBoxInfoBtn { -moz-user-select: none; -ms-user-select: none; -webkit-user-select: none; user-select: none; -webkit-appearance: none; -moz-appearance: none; appearance: none; display: inline-block; width: auto; text-decoration: none; text-align: center; vertical-align: middle; cursor: pointer; border: 1px solid transparent; border-radius: 2px; padding: 8px 15px; font-style: normal; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; white-space: normal; font-size: 14px; margin-top: 50px; } .videoBackground .videoBoxInfoTitle, .videoBackground .imageBoxInfoTitle { color: #00000; font-size: 30px; line-height: 40px; } .videoBackground .videoBoxInfoDescription, .videoBackground .imageBoxInfoDescription { max-width: 1000px; margin: 135px!important; text-align: left!important; } .videoBackground .videoBoxInfoDescription p, .videoBackground .imageBoxInfoDescription p { font-size: 95px; line-height: 150px; text-align: down!important; margin: -40px!important; } .videoBackground .placeholderNoblocks { text-align: center; max-width: 1000px; margin: 0 auto; } @media screen and (max-width: 100%) { .main-content .videoBackground { margin-top: -35px; } .videoBackground .fullscreen-video-wrap { z-index: 3; } .videoBackground .videoBox { min-height: 500px; height: 100%; position: relative; padding: 0; } .videoBackground .fullscreen-video-wrap { position: relative; min-height: 300px; } .videoBackground .videoBoxInfo { padding: 40px 20px; background: #000; width: 100%; } }





