/*
	css for the modal video div
	© Thomas Osthege 12.3.2017
*/

/* the modal (background) */
.modal-video {
    display: none;		/* Hidden by default */
    position: fixed;	/* Stay in place */
    z-index: 1;			/* Sit on top */
    left: 0;
    top: 0;
    width: 100%;		/* Full width */
    height: 100%;		/* Full height */
    overflow: auto;		/* Enable scroll if needed */
    background-color: rgb(0,0,0);		/* Fallback color */
    background-color: rgba(0,0,0,0.9);	/* Black w/ opacity */
}

/* modal content (video) */
.modal-video-content {
    margin: auto;
    display: block;
    max-width: 100%;
    height: auto;
}

/* vertically center modal content (makes the close button disappear if z-index is not set */
.modal-video-content {
    position: absolute;
    top: 50%;
    left: 50%;
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
}

/* Add Animation (does not work with vertical alignment) */
/*
.modal-video-content {    
    -webkit-animation-name: zoom;
    -webkit-animation-duration: 0.6s;
    animation-name: zoom;
    animation-duration: 1.5s;
}

@-webkit-keyframes zoom {
    from {-webkit-transform: scale(0)} 
    to {-webkit-transform: scale(1)}
}

@keyframes zoom {
    from {transform: scale(0.1)} 
    to {transform: scale(1)}
}
*/

/* the close button */
.modal-video-close {
    position: absolute;
    z-index: 1;			/* Sit on top */
    top: 15px;
    right: 30px;
    color: WhiteSmoke;
    font-size: 30px;
    font-weight: bold;
    transition: 0.3s;
}

.modal-video-close:hover,
.modal-video-close:focus {
    color: DarkGray;
    text-decoration: none;
    cursor: pointer;
}

/* 100% Image Width on Smaller Screens */
@media only screen and (max-width: 700px){
    .modal-video-content {
        width: 100%;
    }
}