.box-box{
    width:25%;
    float:left;
    display:inline-block;
    height:400px;
}
.close-outside{
    display: none;
    top:0;
    bottom:0;
    left:0;
    right:0;
    height:100%;
    width:100%;
    position: absolute;
    opacity:0.5;
    z-index:9998;
}
.shot-overlay{
    background:rgba(30,30,30,0.5);
    top:0;
    left:0;    
    width:100%;
    height:100%;
    position:fixed;
    box-sizing:border-box;
    display: none;
    z-index: 1900;
}
.md-show.shot-overlay,
.md-show.close-outside{
    display: block;
}

.main-content {
    -webkit-transform: scale(0.7);
    -moz-transform: scale(0.7);
    -ms-transform: scale(0.7);
    transform: scale(0.7);
    opacity: 0;
    -webkit-transition: all 0.3s;
    -moz-transition: all 0.3s;
    transition: all 0.3s;
    padding: 15px;
    background: #ffffff;
    box-sizing: border-box;
    border-radius: 5px;
    display: flex;
    width: 100%;
    height: 100%;
}

/* Effect 1: Fade in and scale up */

.main-content.effect-top {
    -webkit-transform: scale(0.7);
    -moz-transform: scale(0.7);
    -ms-transform: scale(0.7);
    transform: scale(0.7);
    opacity: 0;
    -webkit-transition: all 0.3s;
    -moz-transition: all 0.3s;
    transition: all 0.3s;
    padding: 15px;
    background: #ffffff;
    box-sizing: border-box;
    border-radius: 5px;
    display: flex;
}

.md-show.main-content.effect-top {
    -webkit-transform: scale(1);
    -moz-transform: scale(1);
    -ms-transform: scale(1);
    transform: scale(1);
    opacity: 1;
    z-index:9997;
}
.overlay-content{
    position:fixed;
    z-index:-1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50vw;
    height: 80vh;
    opacity: 0;
}
.overlay-content iframe{
    margin:0;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    border: 0;
}
.md-show.overlay-content{
    opacity: 1;
    z-index:9998;
}
a.close-overlay{
    position: absolute;
    top: -15px;
    right: -11px;
    width: 32px;
    height: 32px;
    border: 2px solid #fff;
    z-index: 9999;
    border-radius: 99px;
}
.noscroll{
    overflow-x:hidden;
    overflow-y:hidden;
}
.close-overlay {
    position: absolute;
    right: 32px;
    top: 32px;
    width: 32px;
    height: 32px;
}
.close-overlay:hover {
    opacity: 1;
}
.close-overlay:before, .close-overlay:after {
    position: absolute;
    top: 4px;
    left: 13px;
    content: ' ';
    height: 20px;
    width: 3px;
    background-color: #fff;
}
.close-overlay:before {
    transform: rotate(45deg);
}
.close-overlay:after {
    transform: rotate(-45deg);
}
iframe {
    min-width: 100%; 
    width: 100px;
    *width: 100%; 
}
@media screen and (max-width:760px){
    .overlay-content{
        width:550px;
    }
}
@media screen and (max-width:580px){
    .overlay-content{
        width:90%;
        max-width:90%;
        border-radius:0;
    }
}