/*
===================================================================

	Copyright (C) 2015 Schweizerpunkt - Aliu Media
	All rights reserved.

	Redistribution, modification and personal use of this software 
	and its source code is prohibited and protected by law.
	
===================================================================
*/
	::-webkit-scrollbar {
	  width: 8px;
	}
	 
	::-webkit-scrollbar-track {
	  -webkit-box-shadow: inset 0 0 4px #E67061; 
	  border-radius: 0px;
	}
	 
	::-webkit-scrollbar-thumb {
	  border-radius: 0px;
	  background-color: #E67061;
	}
	#viewPostBox {
		position: 		absolute;
    	top: 			50%;
    	left: 			50%;
    	z-index: 		20;
	    transform: translate(-50%, -50%);
	    -moz-transform: translate(-50%, -50%);
	    -o-transform: translate(-50%, -50%);
	    -webkit-transform: translate(-50%, -50%);
	    -ms-transform: translate(-50%, -50%);
    	color: 			#fff;
	    background: 	rgba(0,0,0, 1);
	    border: 		1px solid #333;
	    padding: 		0;
	    margin: 		0;
	    list-style: 	none;
	    display: 		-webkit-box;
	    display: 		-moz-box;
	    display: 		-ms-flexbox;
	    display: 		-webkit-flex;
	    display: 		flex;
	    -webkit-flex-flow: row wrap;
	    justify-content:space-around;
	    width: 			100%;
	    height: 		100%;
}

#viewPostBox  {
	box-sizing: border-box;
    margin: 0;
    padding: 0;
    color: #fff;
    display: inline-block;
    word-wrap: break-word;
    opacity: 0.85;
    background: rgba(0, 0, 0, 0.75);
    /* padding: 15px; */
    /* height: auto; */
    /* margin: 0px; */
    /* text-align: center; */
    /* font-family: homizio; */
    /* letter-spacing: 2px; */
    /* width: 100%; */
    /* height: auto;*/
	}
.view_post {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    color: #fff;
    display: inline-block;
    word-wrap: break-word;
    opacity: 1;
    padding: 15px;
    height: auto;
    margin: 0px;
    text-align: center;
    font-family: "RobotoLight";
    /*width: 100%;*/
    /*height: 100%;*/
    position: fixed !important;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    border: 2px dotted #fff;
}
	.view_post_text {
    	padding-left: 	20px !important;
	}
	/*@media all and (min-width: 641px) {*/
		.cviewPostBox {
			width:			600px;
			height:			400px;
		}	
		#viewPostBox img {
			width: 			200px;
			height: 		200px;
			object-fit: cover;
			margin-top: 16px;
			margin-left: 10px;
		}	
		#viewPostImageDiv {
			width: 			40px;
			height: 		200px;
			margin-top: 16px;
			margin-left: 10px;
		}
		/*.cviewPostBox div:nth-of-type(2) {
		    position: absolute;
		    left: 0px;
		    top: 240px;
		    width: 100%;
		    overflow-y: auto;
		    height: 450px;
		}
		.cviewPostBox div:nth-of-type(2) h1 {
			width:			100%;
			text-align:		center;
			font-size:		30px;
			padding:		10px !important;
		}*/
		.cviewPostBox #viewPostContent {
			width: 95%;
		    text-align: justify;
		    display: inline-block;
		    word-wrap: break-word;
		    font-size: 20px;
		    height: 450px;
		    padding-left: 0px !important;
		}
		/* close, buy */
		/*.cviewPostBox > div > div:nth-of-type(3) {
		    position: absolute;
		    bottom: 40px;
		    left: 0;
		    text-align: center;
		    box-sizing: border-box;
		    margin: 0;
		    display: inline-block;
		    word-wrap: break-word;
		    opacity: 0.85;
		    padding: 15px;
		    font-family: homizio;
		    letter-spacing: 2px;
		    width: 400px;
		    height: auto;
		}	
		.cviewPostBox > div > div:nth-of-type(3) * {
			position:		absolute;
			top:			50%;
			transform:			translateY(-50%);
			-moz-transform: 	translateY(-50%);
			-o-transform: 		translateY(-50%);
			-webkit-transform:  translateY(-50%);
			-ms-transform:		translateY(-50%);
		}		
		.cviewPostBox > div > div:nth-of-type(3) > button:nth-of-type(1) {
			position:		absolute;
			top:			50%;
			left:			25%;
			transform:			translate(-50%, -50%);
			-moz-transform: 	translate(-50%, -50%);
			-o-transform: 		translate(-50%, -50%);
			-webkit-transform: 	translate(-50%, -50%);
			-ms-transform:		translate(-50%, -50%);
		}
		.cviewPostBox > div > div:nth-of-type(3) > button:nth-of-type(2) {
			position:		absolute;
			top:			50%;
			left:			75%;
			transform:			translate(-50%, -50%);
			-moz-transform: 	translate(-50%, -50%);
			-o-transform: 		translate(-50%, -50%);
			-webkit-transform: 	translate(-50%, -50%);
			-ms-transform:		translate(-50%, -50%);
		}	*/
		/* next, prev 
		.cviewPostBox > div > div:nth-of-type(4) {
		    position: absolute;
		    bottom: 40px;
		   	right: 0;
		    box-sizing: border-box;
		    color: #fff;
		    display: inline-block;
		    word-wrap: break-word;
		    opacity: 0.85;
		    padding: 15px;
		    margin: 0px;
		    text-align: center;
		    font-family: homizio;
		    letter-spacing: 2px;
		    width: 400px;
		    height: auto;
		}	
		.cviewPostBox > div > div:nth-of-type(4) * {
			position:		absolute;
			top:			50%;
			transform:			translateY(-50%);
			-moz-transform: 	translateY(-50%);
			-o-transform: 		translateY(-50%);
			-webkit-transform:  translateY(-50%);
			-ms-transform:		translateY(-50%);
		}	
		.cviewPostBox > div > div:nth-of-type(4) > button:nth-of-type(1) {
			position:		absolute;
			top:			50%;
			transform:			translate(-50%, -50%);
			-moz-transform: 	translate(-50%, -50%);
			-o-transform: 		translate(-50%, -50%);
			-webkit-transform: 	translate(-50%, -50%);
			-ms-transform:		translate(-50%, -50%);
		}
		.cviewPostBox > div > div:nth-of-type(4) > button:nth-of-type(2) {
			position:		absolute;
			top:			50%;
			left:			75%;
			transform:			translate(-50%, -50%);
			-moz-transform: 	translate(-50%, -50%);
			-o-transform: 		translate(-50%, -50%);
			-webkit-transform: 	translate(-50%, -50%);
			-ms-transform:		translate(-50%, -50%);
		}	*/
#viewPostBox button {
			width: 100px;
		    height: 35px;
		    font-size: 20px;
		    border: 2px solid #fff;
		    background: #000;
		    box-shadow: none;
		    transition: box-shadow 0.5s
}
		#viewPostBox button:hover {
		    background-color: #fff;
		    color: #000;
		    transition: all ease 0.5s;
		}
		#viewPostBox button:active {
			font-size:		15px;
			transition:		font-size 0.25s;
		}


.viewpostbox-buttons-footer {
	position: absolute;
	bottom: 5px;
	left: 0;
	width: 100%;
}
.viewpostbox-buttons-footer > .row > div {
	padding: 10px;
}


/*CHANGES*/
.view_post_text {
    width: 75%;
    margin: 10px auto;
    height: auto;
    overflow-y: auto;
    max-height: 200px;
}
.cviewPostBox #viewPostContent {
    width: 100%;
    margin: auto;
    height: auto;
    text-align: left;
    font-family: "RobotoLight", sans-serif;
    font-size: 16px;
    letter-spacing: 0.5px;
    padding-left: 10px !important;
    border-left: 5px solid #18b0b7;
    margin-top: 30px !important;
}
#viewPostBox button {
    width: 100px;
    height: 35px;
    font-size: 20px;
    border: 0px solid #fff;
    background: transparent !important;
    box-shadow: none;
    transition: box-shadow 0.5s;
    font-family: "RobotoLight", sans-serif;
    position: absolute;
    top: -40px;
}
.col-sm-12.col-md-6.close-post {
    position: absolute;
    width: 50%;
    left: 13px;
    top: 1px;
}
.col-sm-12.col-md-6.prev-post {
    position: absolute;
    width: 200px;
    right: 0px;
    top: 1px;
}
#viewPostBox button:hover {
    background-color: transparent;
    color: #fff;
    transition: all ease 0.5s;
}
button#btnPrevPost {
    position: absolute;
    left: 40px;
    padding: 0;
    width: auto;
}
#btnCloseViewPostbox svg {
    width: 20px;
    position: absolute;
    height: 30px;
    top: 0;
}
#btnCloseViewPostbox {
    position: absolute;
    top: 0;
    text-align: right;
    width: auto;
    right: 50px;
}
.col-sm-12.col-md-6.close-post {
    position: absolute;
    width: 100%;
    top: 10px;
    right: 0;
}
button#btnNextPost {
    width: auto;
    right: 15px;
}
.view_post_image {
    width: 27%;
    float: left;
}
.view_post_text {
    width: 65%;
    margin-top: 16px;
}
div#viewPostBox {
    position: fixed;
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100%;
    height: 100%;
    transform: translate(0%, 0%) !important;
    opacity: 1;
}
.view_post {
    position: absolute !important;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding-left: 0px;
    min-height: 255px !important;
    max-height: 100%;
}
.scale-bg {
  /*  -webkit-transform: scale(2.1) !important;
    -ms-transform: scale(2.1) !important;
    transform: scale(2.1) !important;
    -webkit-transition: all 4s ease-in-out;
  transition: all 4s ease-in-out;*/
}

@media(max-width: 1500){
	.view_post_text {
    	width: 63%;
	}
	.view_post {
    	top: 50%;
    	left: 45%;
    	transform: translate(-40%, -50%);
	}
	.view_post_image {
    	width: 35%;
    	float: left;
	}
}
@media(max-width: 1350px){
	.view_post {
    	top: 50%;
    	left: 35% !important;
    	transform: translate(-26%, -50%) !important;
	}
}
@media(max-width: 1140px){
	.view_post {
    	left: 25%;
    	transform: translate(-15%, -50%);
	}
}
@media(max-width: 992px){
	.view_post_text {
    	width: 80%;
	}
	.col-sm-12.col-md-6.close-post {
    	top: 12px;
	}
	.view_post {
	    position: absolute !important;
	    top: 20px;
	    left: 20px !important;
	    transform: translate(0%, 0%) !important;
	    padding-left: 0;
	    max-height: 100% !important;
	}
	.view_post_text {
    	max-height: 100%;
	}
	.view_post_text {
    	max-height: 100%;
    	margin: 25px;
    	width: 94%;
	}
	.view_post_image {
    	width: 100% !important;
	}
}
@media(max-width: 500px){
	.view_post_text {
    	width: 96%;
	}
	/*.col-sm-12.col-md-6.close-post {
	    position: absolute;
	    width: 100px;
	    left: 0;
	    top: 1px;
	}
	#btnCloseViewPostbox {
    	left: 5px;
	}*/
	/*.col-sm-12.col-md-6.prev-post {
    	position: absolute;
    	width: 100px;
    	right: 15px;
    	top: 1px;
	}
	button#btnPrevPost {
    	position: absolute;
    	left: -35px;
	}*/
	.view_post_text {
	    margin: 25px 15px !important;
	}
}
@media(max-width: 430px){
	.cviewPostBox #viewPostContent {
    	font-size: 16px;
    	letter-spacing: 0.5px;
    }
}
@media(max-height: 663px){
	.view_post_text {
    	max-height: 91%;
	}
}
@media(max-height: 510px){
	.view_post_text {
    	max-height: 40%;
	}
}
@media(max-height: 430px){
	.view_post_text {
    	max-height: 30%;
	}
}

