.post-popup {
	display: block;
	position: fixed;
	background: rgba(20,20,20,0.5);
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 9999;
	display: none;
	line-height: 100%;
}

.post-popup.show {
	display: table;
}

body.qpost-popup-show {
	overflow: hidden !important;
}

.post-popup .inner {
	display: table-cell;
	vertical-align: middle;
	text-align: center;
	height: 100%;
	width: 100%;
}
   
.post-popup .inner .in {
	background: #ffffff;
	width: 80%;
	min-height: 80%;
	height: 80%;
	max-height: 320px;
	
	display: inline-block;
	text-align: left;
	padding: 3em;
	overflow: auto;
	padding-right: 2em;
	
	max-width: 900px;
	max-height: 900px;
	
	position: relative;
	
}
 
.post-popup .inner .in a.close {
	position: absolute;
	right: 2em;
	top: 1em;
	color: #d85d0a;
	text-transform: uppercase;
	font-weight: bold;
}
 
.post-popup .inner .content {
	width: 100%;
	height: 100%;
	overflow-y: scroll;
	overflow-x: hidden;
	padding-right: 1em;
}

.post-popup .inner .content .presentation {
	display: block;
	background: #efefef;
	width: auto;
		min-height: 447px;
	overflow: hidden;
	margin-bottom: 1em;
}


.post-popup .inner .content .presentation .image {
	display: block;
	width: auto;
	min-height: 447px;
	overflow: hidden;
}

.post-popup .inner .content .presentation .video {
	display: block;
	width: 100%;
	min-height: 447px;
	overflow: hidden;
}

.post-popup .inner .content .presentation .image img {
	width: 100%;
}

.post-popup .inner .content .objects {
	margin-bottom: 1em;
}

.post-popup .inner .content .objects .button {
	margin-right: 1em;	
}

.post-popup .inner .content .vimeo-box {
    background-color: #000000;
    width: 100%;
    padding-top: 100%; /* 1:1 Aspect Ratio */
    position: relative; /* If you want text inside of it */
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
   margin-bottom: 1em;
}

.post-popup .inner .content .vimeo-box iframe {
	position: absolute;
	left: 0;
	top: 0;
}


.dynamic-object .video {
	width: 100%;
	height: 100%;
	position: absolute;
	z-index: 1;
	top: 0;
	left: 0;
}

.publication .dynamic-object .overlay {
	z-index: 2;	
}

.post-popup .presentation  {
	position: relative;	
}

.post-popup .presentation .video {
	width: 100%;
	height: 100%;
	
	position: absolute;
	z-index: 1;
}

.post-popup .presentation .video .control {
	position: absolute;
	bottom: 0;
	width: 100%;
	background: transparent;
	text-align: center;
}


.post-popup .presentation .video .control .progress {
	position: relative;
	display: inline-block;
	background: rgba(20,20,20,0.8);
	border: 0;
	color: #ffffff;
	font-size: 10px;
	width: 30%;
	overflow: hidden;
	padding: 0;
	margin: 0;
	height: auto;
	border-radius: 10px;
	height: 20px;
}

.post-popup .presentation .video .control .progress .bar {
	 position: absolute;
	 background: rgba(255,255,255,0.5);
	 height: 20px;
}

.post-popup .presentation .video .control .progress .text {
	position: absolute;
	width: 100%;
	text-shadow: 0px 0px 1px #222222;
	font-weight: bold;
	font-size: 10px;
	padding: 1px;
}

.qPost.categories {
	margin-top: 4em;
	margin-bottom: 2em;	
}

.qPost.categories .button {
	margin-right: 1em;
}

.qPost.categories .button.active {
	background-color: #014655;
}




.publication .dynamic-object {
    background-color: #000000;
    width: 100%;
    padding-top: 100%; /* 1:1 Aspect Ratio */
    position: relative; /* If you want text inside of it */
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    margin-bottom: 1em;
    min-height: auto;
    
    background-image: url(img/loading.gif);
	background-position: center;
	background-repeat:no-repeat;
}


.publication .dynamic-object .image {
	position: absolute;
	left: 0;
	top: 0;
}

.post-popup .inner .content .presentation .top-box {
    background-color: #000000;
    width: 100%;
    padding-top: 100%; /* 1:1 Aspect Ratio */
    position: relative; /* If you want text inside of it */
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    min-height: auto;
    
    background-image: url(img/loading.gif);
	background-position: center;
	background-repeat:no-repeat;
}


.post-popup .inner .content .presentation .top-box .top-inner {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
}

.post-popup .inner .content .presentation {
    display: block;
    background: #efefef;
    width: auto;
    overflow: hidden;
    margin-bottom: 1em;
    padding: 0;
    min-height: auto;
}

.post-popup .inner .content .presentation .video {
	min-height: auto;
}

/***
 * Media
 */


/* 
  ##Device = Tablets, Ipads (portrait)
  ##Screen = B/w 768px to 1024px
*/

@media (min-width: 768px) and (max-width: 1024px) {
  
  .post-popup {
  	
  }
  
  .post-popup .inner .in {
	
	}
  
}

/* 
  ##Device = Tablets, Ipads (landscape)
  ##Screen = B/w 768px to 1024px
*/

@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
  
  .post-popup {
  	
  }
  
  .post-popup .inner .in {
	
	}
  
}

/* 
  ##Device = Low Resolution Tablets, Mobiles (Landscape)
  ##Screen = B/w 481px to 767px
*/

@media (min-width: 481px) and (max-width: 767px) {
  
  .post-popup {
  	
  }
  
  .post-popup .inner .in {
	
	}
  
}

/* 
  ##Device = Most of the Smartphones Mobiles (Portrait)
  ##Screen = B/w 320px to 479px
*/

@media (min-width: 320px) and (max-width: 480px) {
  
  .publication .dynamic-object .overlay {
    display: block;
    opacity: 1;
   }

.publication .dynamic-object .overlay .btn {
	margin-top: 20%;
	margin-top: calc(50% - 94px);	
}

  .post-popup {
  	
  }
  
  .post-popup .inner .in {
	    
    	padding: 2em;
    	padding-right: 1em;
    	
    	width: 90%;
    	height: 90%;
    	overflow: hidden;
    	
	    position: fixed;
	    left: 5%;
	    top: 5%;
  }
  
}
