body.modal {
  -webkit-overflow-scrolling: auto;
}
.modal {
    position: fixed;
    display:none;
    top:0;
    left:0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding:0;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
    -webkit-animation-name: animatetop;
    -webkit-animation-duration: 0.4s;
    animation-name: animatetop;
    animation-duration: 0.4s;
    overflow: auto;
    z-index: 10001;
    -webkit-transform: translate3d(0,0,0);
}
.modal-container {
    position: relative;
    background-color: #fefefe;
    overflow-y: auto;
    margin: auto;
    padding: 2px 10px;
    border: 1px solid #888;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
    -webkit-animation-name: animatetop;
    -webkit-animation-duration: 0.4s;
    animation-name: animatetop;
    animation-duration: 0.4s;
    z-index: 10002;
}
.modal-header{
    position: relative;
    clear:both;
    height: 35px;
    overflow-y: auto;
    z-index:10003;
}
.modal-closebutton{
    fill: #56BAE5;
    position:absolute;
    float:right;
    right:0;top:0;
    width:30px;
    height:30px;
    cursor:pointer;
    z-index:10004;
}
.modal-body{
    position: relative;
    clear:both;
    height: 100%;
    overflow-y: auto;
    z-index:10003;
}
.modal-close{
    position: fixed;
    top:0;
    left:0;
    background-color: #000000;
    opacity: 0.9;
    width:100%;
    height: 100%;
    overflow-y: hidden;
    z-index:10000;
}

.modal-video .modal-container {
    width: 900px;
    top: 50px;
}
.modal-video .modal-body{
    height:unset !important;
    margin: 25px 0;
}
@media screen and (max-width: 769px) and (orientation: portrait) {
    .modal-video .modal-container{
        width: 90%;
        left: 0;
        top: calc(50vh - 23vh);
    }
}
@media screen and (max-width: 769px) and (orientation: landscape) {
    .modal-video .modal-container{
        height: 90%;
        left: 0;
        top: 0;
    }
}        

.modal-filmografia {
    width: 320px;
    left: calc(50vw - 160px);
    top: 0;
}

.modal-sinopsis .modal-container {
    width: calc(100vw - 30px);
    max-width: 320px;
    top: 0;
}


@-webkit-keyframes animatetop {
    from {top:-300px; opacity:0}
    to {top:0; opacity:1}
}
@keyframes animatetop {
    from {top:-300px; opacity:0}
    to {top:0; opacity:1}
}

@-webkit-keyframes animateright {
    from {right:-600px; opacity:0}
    to {right:0; opacity:1}
}
@keyframes animateright {
    from {right:-600px; opacity:0}
    to {right:0; opacity:1}
}


.modal-footer {
    padding: 2px 16px;
    background-color: #5cb85c;
    color: white;
}

.video{
    position: relative;
    padding-bottom: 56.25%;
}

#popup{
    position: fixed;
	display: flex;
    z-index: 9999;
    right:0; top:0; bottom:0;left:0; 
}

#popup .close{
    position: fixed;
    content: "";
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: black;
    z-index: 10000;
    opacity: .5;
}

#popup .closeButton{
	fill: #000;
	width:50px;
	height:50px;
	position:fixed;
	right:5px;
	top:5px;
}

#popup .content{
	display: flex;
	flex-direction: column;
    align-items: center;
	width:480px;
    height:100vh;
    background-color: #e9e9e9;
    padding: 15px;
    margin: 0 auto;
	z-index: 10001;
	overflow-y: scroll;
}



#mediabox{
    position: fixed;
	display: flex;
    z-index: 9999;
    right:0; top:0; bottom:0; left:0;
}

#mediabox .close{
    position: fixed;
    content: "";
    top:0; left:0;
    width:100vw;
    height:100vh;
    background:black;
    z-index:10000;
    opacity:.7;
}

#mediabox .closeButton{
	fill: #FFF;
	width:50px;
	height:50px;
	position:fixed;
	right:5px; top:5px;
   	z-index:10001;
}

#mediabox .content{
	display: flex;
	flex-direction: column;
    align-items: center;
	width:70vw;
    height:auto;
    padding: 15px;
    margin: 0 auto;
	z-index: 10001;
	overflow: hidden;
	background-color: #e9e9e9;
}

#mediabox .video{
	position: relative;
	padding-bottom:56.25%;
	padding-top:30px;
	width:100vw; 
	height:0;
	overflow: hidden;
}

#mediabox .video iframe {
	position: absolute;
	height:100%
	width:100%
	top:0;
	left:0;
}


#modalbox .video{
	position: relative;
	padding-bottom:56.25%;
	padding-top:30px;
	width:100%; 
	height:0;
	overflow: hidden;
}

#modalbox .video iframe {
	position: absolute;
	height:100%
	width:100%
	top:0;
	left:0;
}

@media (max-width: 600px) {

	#popup .content{
    	width:calc(100vw - 90px);
    	align-items: left;
    	margin: 0;
	}

	#mediabox .content{
		width:100vw;
    	background:black;
    	opacity:.7;
	}
	#mediabox .video{
		width:100vw;
		padding-top:25px;
	}
	#mediabox .closeButton{
		width:20px;
		height:20px;
    	z-index:10001;
	}

}