Me gustaría que quedara así en vertical: y así en horizontal:
Me gustaría que quedara como en las imágenes manteniendo el responsive. Tiene en el css un left y no sé cómo arreglarlo para que quede perfecto de todos los lados; el ícono de cerrar también quisiera que quedara bien. He intentado poner en todo el html y también en el body al 100% pero este código en específico no deja acomodarlo como yo quisiera.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<title>entrada</title>
<style>
* {
margin: 0;
padding: 0;
width: 100%;
}
body {
font-size: 62.5%;
}
/* Banner CSS */
.container {
position: absolute;
}
.video-banner {
width: 100%;
height: 100%; }
.video-banner-link {
transition: all 0.1s ; }
.video-banner-link:hover {
opacity: 0.8; }
/* Modal */
.modal {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
visibility: hidden;
opacity: 0;
z-index: 100;
transition: all 0.1s ;
background: rgba(0, 0, 0, 0.85); }
.modal-video-container {
position: absolute;
top: 0%;
left: 15%;
transform: scale(1);
width: 50%;
height: 100%;
transition: all 0.1s }
.video-popup {
position: fixed;
top: 0;
left: 0;
z-index: 99999;
width: 70%;
height: 70%;
transition: all 0.1s ; }
@media only screen and (min-width: 1300px) {
.modal-video-container {
top: 10%; } }
@media only screen and (max-height: 1024px) {
.video-popup {
width: 85%;
height: 90%; }
.modal-video-container {
left: 7%; } }
@media only screen and (max-width: 100%) {
.video-popup {
width: 85%;
height: 90%; }
.modal-video-container {
left: 7%; } }
.close {
position: absolute;
width: 100%;
height: 50px;
z-index: 100;
font-size: 2rem;
color: #fff;
cursor: pointer; }
.close > span {
position: absolute;
left: 95%;
top: 50%; }
modal-video{
width: 90%;
max-width: 800px;
transform: scale(0);
box-shadow: 0 20px 20px rgba(0,0,0,0.2);
outline: none;
transition: all 0.3s;
}
button{
text-decoration: none;
padding: 5px;
font-weight: 500;
font-size: 20px;
color: #ffffff;
border-radius: 6px;
cursor: pointer;
background: linear-gradient(to bottom, #414142, #040404);
}
p {
font-weight: 500;
font-size: 15px;
color: #ffffff;
}
/*-- para la pantalla horizontal ---*/
@media (orientation:landscape){
.video-popup iframe{
height: 70%!important;
}
</style>
</head>
<body bgcolor="black">
<div class="modal" id="modal">
<div class="close"><span class="close" id="close">×</span></div>
<div class="modal-video-container" id="mdc">
<iframe class="video-popup" width="100%" height="500 vh" allowfullscreen id="modal-video" frameborder="0" onload="$('.iframe-loading').css('background-image', 'none');" sandbox="allow-same-origin allow-scripts" scrolling="no" style="background-color: #000; border: 2px solid red; border-radius: 5px"></iframe>
</div>
</div>
<div class="container">
</br><a class="video-banner-link" href="https://pelistop.co/embed-8f6y3rkjn0m7.html" data-vidup>
<button class="video-banner">Peliculas </button><br>
</br><a class="video-banner-link" href="https://pelistop.co/embed-8f6y3rkjn0m7.html" data-vidup>
<button class="video-banner">Estrenos </button><br>
<script>
/* Data VidUp */
/* Get all elements with data-vidup */
const vidupElements = document.querySelectorAll('[data-vidup]');
const modal = document.getElementById('modal');
const modalVideo = document.getElementById('modal-video');
const mdc = document.getElementById('mdc');
const close = document.getElementById('close');
function closeModal() {
// mdc.style.width = "0";
mdc.style.transform = "scale(0)";
setTimeout(() => {
modal.style.visibility = "hidden";
modal.style.opacity = "0";
modalVideo.src = "";
}, 500);
}
function showModal(element) {
modal.style.visibility = "visible";
modal.style.opacity = "1";
modalVideo.src = element.href;
mdc.style.width = "100%";
setTimeout(() => {
mdc.style.transform = "scale(1)";
}, 300);
}
/* Foreach element add an eventlistener and show the popup when clicked and add the src in the link */
vidupElements.forEach(element => {
element.addEventListener("click", (e) => {
e.preventDefault();
showModal(element);
});
});
close.addEventListener('click', (e) => {
closeModal();
});
mdc.addEventListener('click', () => {
closeModal();
});
modal.addEventListener('click', () => {
closeModal();
});
</script>
</body>
</html>