September 5, 2024 at 9:04 pm
#10045178
Keymaster
Hello, you can add mas-width/height in that CSS and center the video. I used 800×600, but you can change that f you want. Also added the overlay and the close button.
CSS:
.custom-overlay{
position: fixed;
top:0px;
left: 0px;
height:100%;
width:100%;
z-index: 99999999;
opacity:0.7;
display:none;
}
.custom-close{
position: fixed;
top:30px;
right:30px;
width:24px;
height:24px;
color: #FFF;
font-size: 24px;
z-index:99999999;
display:none;
cursor: pointer;
background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23FFF'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e");
}
.custom-main-vid-box{
position: fixed;
width: 100%;
height:100vh;
display:none;
top:0px;
left:0px;
z-index: 99999999;
}
.custom-video-wrapper {
position: relative;
z-index:99999999;
background-color: rgba(0, 0, 0, 0.7);
width:100%;
height: 100%;
margin:0 auto;
}
.custom-video-wrapper video {
position: relative;
top: 50%;
left: 50%;
z-index: 99999999;
width: 100% !important;
height: 100% !important;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
border-width: 40px;
border-style: solid;
border-color: transparent;
transform: translate3d(-50%, -50%, 0);
max-width: 800px;
max-height: 600px;
}