#foliowrap {
  position: relative;
  margin-top: 25px;
}
#foliowrap .item {
	color:#333333;
	position: relative;
	width: 100%;
	height: 100%;
}
#foliowrap section {
  position: relative;
}
#foliowrap h4,
#foliowrap p {
  padding: 1em
}
#foliowrap h4 {
  font-family: 'Roboto', sans-serif;
  margin: 0;
  padding-bottom: 0;
  position: relative;
}
#foliowrap h4:after {
  position: absolute;
  width: 100%;
  content: "";
  height: 2px;
  right: 0;
  top: 0;
  background-color: #465866;
}
#folio-single .pitem {
  box-shadow: -8px -8px 0 0 #53bd99, 8px 8px 0 0 #465866;
}
#portfolio_width {
	width:100% !important;
	margin-top:25px;
	margin-bottom:4.2em;
}
#item_gallery {
	height: 100%;
position: relative;
}
#image-overlay-gallery {
    width: 88%;
	height: 340px;
}
#overlay-hslide-gallery {
    background-color: rgba(51,51,51, 0.8);
    -webkit-transition: none;
    -moz-transition: none;
    -ms-transition: none;
    -o-transition: none;
    transition: none;
}
#overlay-hslide-gallery img {
    height: 30px;
    width: 45px;
    position: absolute;
    text-align: center;
    top: 0;
    left: 0;
    line-height: 80px;
    cursor: pointer;
    bottom: 0;
    right: 0;
    margin: auto;
}

#project_description {
    background-color: white;
    border: 1px solid #CCCCCC;
    width: 43%;
    float: right;
    text-align: left;
    height: 163px;
    margin-top: -163px;
    z-index: 1;
    position: relative;
    color: #333333;
}

#project_title {
    border-left: 2px solid #00abca;
    font-weight: bold;
    font-size: 17px;
    padding: 20px;
    margin-left: -2px;
    margin-top: -1px;
	display: flex;
flex-direction: column;
justify-content: center;
position: absolute;
top: 0;
bottom: 0;
}



#project_description_text {
    font-weight: 300;
    font-size: 15.2px;
    line-height: 24px;
    padding: 30px;
	height: 100%;
	background-color: rgba(0,171,202,0.7);
	color:white;
	text-align: justify;
}

.left_item {
    padding-right: 15px;
}
.right_item {
    padding-left: 15px;
}




#project_description:hover #project_title {
	border-left:2px solid rgba(0,0,0,0);
}
#project_description:hover ~ .image-overlay .overlay-fade {
	opacity:1;
}

/*#project_description:hover {
	color:#fff;
	background-color:#00abca;
	border:1px solid #00abca;
}

.image-overlay .overlay-hslide #project_description:hover ~  {
	width: 100%;
	top: 0;
	left: 0;
	filter: alpha(opacity=100);
	opacity: 1;
}*/

.image-overlay:hover ~ #project_description #project_title  {
	border-left:2px solid rgba(0,0,0,0);
}

.row > .column {
  padding: 0 8px;
}

.row:after {
  content: "";
  display: table;
  clear: both;
}

.column {
  margin-top:25px;
  /*float: left;*/
  width: 100%;
}

/* The Modal (background) */
.modal {
  display: none;
  position: fixed;
  z-index: 100000;
  padding-top: 20px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(51,51,51,0.95);
}

/* Modal Content */
.modal-content {
  position: relative;
  margin: auto;
  padding: 0;
  width: 790px !important;
  max-width: 1200px;
}

/* The Close Button */
.close {
  color:rgba(0,0,0,0);
  position: absolute;
top: -16px;
right: -16px;
  font-size: 35px;
  font-weight: bold;
  background-image:url(http://dextek.com.cy/uploads/images/close-02.png);
  width:32px;
  height:32px;
  background-size:32px;
  z-index: 1;
}

.close:hover,
.close:focus {

  text-decoration: none;
  cursor: pointer;
}

.mySlides {
  display: none;
height: 70vh;
overflow: hidden;
background-color: rgba(0,0,0,0.3);
position: relative;
}

/* Next & previous buttons */
.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -50px;
  color: white;
  font-weight: bold;
  font-size: 20px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
  -webkit-user-select: none;
  /*background-color: rgba(0, 0, 0, 0.5);*/
  color:white;
}
.prev {
left: 10px;
border-radius: 10px;
display: inline-block;
font-family: Icons;
background-image:url(http://dextek.com.cy/uploads/images/prev_arrow-02.png);
  background-size: 32px;
  background-repeat: no-repeat;
}


/* Position the "next button" to the right */
.next {
right:10px;
border-radius:10px; 
font-family: Icons;
width:32px;
height:32px;
background-image:url(http://dextek.com.cy/uploads/images/next_arrow-02.png);
background-size: 32px;
background-repeat: no-repeat;
}

/* On hover, add a black background color with a little bit see-through */
.prev:hover,
.next:hover {
  /*background-color: rgba(0, 0, 0, 1.0);*/
  color:white;
}
/*.prev:before {
  content: "\f177";
  font-size:40px; 
}
.next:before {
  content: "\f178";
  font-size:40px; 
}*/
/* Number text (1/3 etc) */
.numbertext {
  color: #f2f2f2;
  font-size: 12px;
  padding: 8px 12px;
  position: absolute;
  top: 0;
}

.caption-container {
  text-align: center;
  background-color: black;
  padding: 2px 16px;
  color: white;
}

img.dotimg {
 /*opacity: 0.6;*/
}

.active,
.dotimg:hover {
  opacity: 1;
}
.dotimg { 
width: 23% !important;
margin-right: 2%;
border:none !important;
}
img.hover-shadow {
  transition: 0.3s
}

.hover-shadow:hover {
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
 
}
.barposfix {
	left: 0px !important;
	right:0;
}
#project_description_text .barposfix {
	left: -12px !important;
	right:0;
}
#project_description_text .vertical-handle {
	border:none;
	background-color:white;
}
.img-scroll {
  width: 790px !important;
  height: 210px;
  border: 5px solid #blue;
  overflow: auto;
  white-space: nowrap;
  margin: 0 auto;
  margin-top: 25px;
}
.horizontal-track {
    width: 100%;
    height: 8px;
    background: rgba(255,255,255,0.7);
	margin:auto;
	margin-top: 25px;
}

.horizontal-handle {
    height: 11px;
background: #00abca;
border: 3px solid #00abca;
}
.desc-scroll {
  width: 555px !important;
  height: 210px;
  border: 5px solid #blue;
  overflow: auto;
  /*white-space: nowrap;*/
  margin: 0 auto;
}
.vertical-track {
    width: 100%;
    width: 8px;
   background: rgba(255,255,255,0.7);
  margin:auto;
  margin-left: 25px;
  position: absolute !important;
  right: 12px;
}

.vertical-handle {
   width: 10px;
/*background: #00abca;*/
background: blue;
border: 3px solid #00abca;
margin-left: -1px;
}

.mySlides img {
	border:none !important;
}
.portfolio-modal-background {
background-color: rgba(255,255,255,0.2);
padding: 30px;
width: 850px;
margin: auto;
max-height: 96vh;
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
}
#project_description_text1 {
	max-height: 240px;
	/*overflow: auto;*/
	padding-right: 30px !important;
}
@media only screen and (max-width:1225px) {
	/*Portfolio Publish*/
	.modal-content {
    width: 660px !important;
	}
	.img-scroll {
    width: 660px !important;
	}
	.portfolio-modal-background {
	width: 720px;
	}
}
@media only screen and (max-width:1010px) {
	#project_description_text1 {
	max-height: 169px;
}
}
@media only screen and (max-width:935px) {
	#project_description_text1 {
	max-height: 145px;
}
}
@media only screen and (max-width:845px) {
	/*Portfolio Publish*/
	.modal-content {
    width: 500px !important;
	}
	.img-scroll {
    width: 500px !important;
	}
	.prev, .next {
		top:60%;
	}
	.portfolio-modal-background {
	width: 560px;
	}
	#project_description_text1 {
	max-height: 115px;
	}
}
@media only screen and (max-width:768px) {
	#project_description_text1 {
    max-height: 307px;
	}
}
@media only screen and (max-width:715px) {
	#project_description_text1 {
    max-height: 265px;
}
}
@media only screen and (max-width:700px) {
	/*Portfolio Publish*/
	.modal-content {
    width: 380px !important;
	}
	.img-scroll {
    width: 380px !important;
	height: 140px !important;
	}
	.dotimg {
    height: 85px !important;
}
	.portfolio-modal-background {
	width: 440px;
	}
}
@media only screen and (max-width:635px) {
	#project_description_text1 {
    max-height: 215px;
}
}
@media only screen and (max-width:550px) {
	#project_description_text1 {
    max-height: 165px;
}
}
@media only screen and (max-width:535px) {
		/*Portfolio Publish*/
	.modal-content {
    width: 240px !important;
	}
	.img-scroll {
    width: 240px !important;
	height: 110px !important;
	}
	.dotimg {
    height: 55px !important;
}
.barposfix {
	display:none;
}
.prev, .next {
    top: 70%;

}
	.portfolio-modal-background {
	width: 300px;
	}
}
@media only screen and (max-width:465px) {
	#project_description_text1 {
    max-height: 115px;
}
}
@media only screen and (max-width:435px) {
			/*Portfolio Publish*/
	/*.modal-content {
    width: 150px !important;
	}
	.img-scroll {
    width: 150px !important;
	height: 110px !important;
	}
	.dotimg {
    height: 55px !important;
}
	.prev, .next {
    padding: 37px;
	}*/
	.portfolio-modal-background {
	width: 100%;
	}
}
@media only screen and (max-width:395px) {
	#latest_portfolios {
		padding-bottom: 2.2em !important;
	}
}
@media only screen and (max-width:380px) {
	#project_description_text1 {
    max-height: 95px;
}
}
@media only screen and (max-width:345px) {
	#project_description_text1 {
    max-height: 70px;
}
#view_gallery_button {
    margin-top: -45px;
}
}
@media only screen and (max-width:300px) {
#project_description_text1 {
    max-height: 50px;
}
}
.flip-container {
  perspective: 1000px;
  transform-style: preserve-3d;
}

.flip-container:hover .flip-back {
  transform: rotateY(0deg);
  opacity:1;
}
.flip-container:hover .flip-front {
    transform: rotateY(180deg);
	
}

.flip-container, .flip-front, .flip-back {
 	 width: 100%;
	height: 100%;
}

.flip-flipper {
  	transition: 0.6s;
 	transform-style: flat;
  	position: relative;
	height: 100%;
}

.flip-front, .flip-back {
  backface-visibility: hidden;
  transition: 0.6s;
  transform-style: preserve-3d;

  
  top: 0;
  left: 0;
}

.flip-front {
  z-index: 2;
  transform: rotateY(0deg);
  position:relative;
}

.flip-back {
  transform: rotateY(-180deg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: absolute;
  opacity:0;
}

#view_gallery_button {
  cursor: pointer;
  margin: auto;
margin-top: -60px;
color: white;
text-align: center;
background-color: rgba(255,255,255,0.2);
padding: 5px;
width: 90%;

}
.flip-front .image-overlay:hover .overlay-fade {
	opacity:0;
}

.photo-landscape img {
	width:100% !important;
	height:auto !important;
	position: absolute;
	top: 0;
	bottom: 0;
	margin: auto;
}

.photo-portrait img {
	width: auto !important;
	height: 70vh !important;
	margin: auto;
	display: block;
}