.im-modal {
		color:#222;
  position: fixed;
  z-index: 10011;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.9);
  padding:22px 50px;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
      align-items: center;
  visibility: hidden;
  opacity: 0;
  transition: visibility 350ms ease 20ms, opacity 350ms ease 20ms; }

.im-active {
  visibility: visible;
  opacity: 1;
  background: rgba(0, 0, 0, 0.9);
 }

.im-active > .im-inner-panel { opacity:1;  background-color:#ffffff; 
  animation: scale 600ms ease; 
  -webkit-transition: all 600ms ease;
     -moz-transition: all 600ms ease;
       -o-transition: all 600ms ease;
      -ms-transition: all 600ms ease;
          transition: all 600ms ease;
	-webkit-filter: blur(0px);
	-moz-filter: blur(0px);
	filter: blur(0px);  
  }

.im-inner-panel { opacity:0.3;   background-color:#ffffff;
  -webkit-transition: all 0ms ease;
     -moz-transition: all 0ms ease;
       -o-transition: all 0ms ease;
      -ms-transition: all 0ms ease;
          transition: all 0ms ease;
		  
	-webkit-filter: blur(5px);
	-moz-filter: blur(5px);
	filter: blur(5px);

  overflow-y: auto;
  background-color:rgba(0,0,0,0);
  padding: 15px;
  margin: 0 auto;
  width: 77%;
  left:0;
  right:0;
  max-width: 100%;
  max-height: 100%; 
  height:auto;
}

@keyframes scale {
  0% {
    transform: scale(0.892); }
  100% {
    transform: scale(1); } }


video {max-width:100%;} 


@media screen and (max-width: 768px) {


}
