.post-block{
	margin-bottom: 30px;
	.post-image {
		overflow: hidden;
		a{
			position: relative;
			display: block;
		}
		img{
			width: 100%;
			@include transition(all 0.4s);
		}
		&:hover{
			a:before, a:after{
				@include scale(1);
			}
		}
	}
	.post-title{
		padding: 5px 0 0;
		margin: 0;  
		line-height: 36px;
		font-size: 28px;
		display: block;
		@media(max-width: 1024px){
			font-size: 22px;
			line-height: 32px;
		}
		a{
			color: $headings-color;
			// -webkit-hyphens: auto;
			// -moz-hyphens:    auto;
			// -ms-hyphens:     auto;
			// hyphens:         auto;
			word-wrap: break-word;
			&:hover, &:active, &:before{
				color: $theme-color;
			}
		}
	}
	.post-content{
		@include clearfix();
		background: $white;
		box-shadow: 0px 10px 20px 0px rgba(0, 0, 0, 0.05);
		.entry-meta{
			position: relative;
			font-size: 14px;
			line-height: 14px;
			padding: 28px 70px 22px 35px;
			text-transform: capitalize;
			&:after{
				content: '';
				background: $border-color;
				height: 1px;
				position: absolute;
				bottom: 0;
				left: 30px;
				right: 100px;
			}
			.meta-inline{
				display: flex;
				span{
					margin-right: 16px;
					&:last-child{
						margin-right: 0;
					}
					i{
						color: $theme-color;
						margin-right: 4px;
					}
					a{
						color: $body-color;
					}
				}
			}
			.entry-date{
				position: absolute;
				top: -1px;
				right: 0;
				width: 70px;
				height: 100%;
				background: $theme-color;
				color: $white;
				font-size: 16px;
				font-weight: 700;
				line-height: 20px;
				text-align: center;
				padding-top: 15px;
				border-radius: 0 0 0 4px;
				span{
					display: block;
				}
			}
		}
		.content-inner{
			padding: 20px 35px 38px 35px;
			@media(max-width: 1024px){
				padding: 20px 25px 35px 25px;
			}
			.post-desc{
				margin-top: 15px;
			}
		}
	}

	&.teaser-2{
		text-align: center;
		.post-content{
			padding: 30px 30px 30px;
			border: none;
			text-align: center;
			.entry-meta{
				padding: 0 0 5px;
				text-align: center;
				.meta-inline{
					justify-content: center;
				}
				&:after{
					display: none;
				}
			}
			.post-title{
				margin-bottom: 0;
				font-size: 20px;
				line-height: 30px;
			}
		}
	}
}

.post-footer{
	margin-top: 25px;
	.item-list{
		ul{
			li{ 
				margin-bottom: 15px!important;
				&:last-child{
					border: none;
					margin-bottom: 0!important;
				}
				.post-block{
					background: transparent!important;
					.post-title{
						font-size: 14px;
						a{
							color: $white;
							font-weight: 400;
							&:hover{
								color: $theme-color;
							}
						}
					}
					.post-meta{
						color: rgba(255, 255, 255, 0.8);
						.post-categories{
							font-size: 12px;
							a{
								font-size: 10px;
							}
						}
					}
				}
			}
		}
	}
}

.post-style-grid{
  .post-block{
	 margin-bottom: 40px;
  }
}

.gallery-post{
  position: relative;
  display: block;
  width: 100%;
  margin-bottom: 30px;
  &:after{
	 content: "";
	 @include size(100%, 100%);
	 @include transition(all 0.35s);
	 top: 0;
	 left: 0;
	 position: absolute;
	 background: rgba(0, 0, 0, 0.5);
	 z-index: 9;
	 @include opacity(0);
  }
  .images{
	 overflow: hidden;
	 position: relative;
	 img{
		@include transition(all 5s);
	 }
  }
  a.zoomGallery{ 
	 position: absolute;
	 @include size(32px, 32px);
	 top: 50%;
	 left: 50%;
	 margin-top: -16px;
	 margin-left: -16px;
	 z-index: 99;
	 color: $white;
	 font-size: 30px;
	 line-height: 1;
	 @include opacity(0);
	 @media(max-width: 680px){
		display: none;
	 }
  }
  &:hover{
	 &:after{
		@include opacity(1);
	 }
	 a.zoomGallery{
		@include opacity(1);
	 }
  }
}

//Post skin dark
.style-dark{
  .post-block{
	 background: $nocolor;
	 .post-title{
		background: $nocolor;
		a{
		  color: $white;
		  &:hover{
			 color: $theme-color;
		  }
		}
	 }
  }
}


//------------------------- Horizontal post -------------------------------
.post-style-horizontal{
  .post-block{
	 @include clearfix();
  }
}

.node--view-mode-full{
  .post-thumbnail{
	 margin-bottom: 10px;
	 iframe{
		min-height: 400px;
	 }
  }
  .post-categories{
	 padding-bottom: 0;
	 margin-bottom: 5px;
  }
 
}

.node-detail{
	padding-bottom: 35px;
	iframe{
		width: 100%;
		display: block;
	}
	.post-thumbnail.post-gallery{
		overflow: hidden;
		.owl-nav{
			@include opacity(1);
			.owl-prev{
				margin-left: 60px;
			}
			.owl-next{
				margin-right: 60px;
			}
		}
	}
	.post-title{
		margin-top: 5px;
		margin-bottom: 30px;
		font-size: 26px; 
	}
  .post-content{
	box-shadow: none!important;
  }
  .entry-meta{
		padding: 30px 0 0!important;
		&:after{
			display: none;
		}
  }
  .field--name-field-tags{
	 margin-top: 20px;
	 .field__item{
		float: left;
		margin-right: 10px;
		font-weight: 400;
		text-transform: uppercase;
		font-size: 14px;
	  a{
		  background: #f5f5f5;
		  padding: 2px 15px;
		  @include border-radius(3px);
		  &:hover, &:focus, &:active{
			 background: $theme-color;
			 color: $white;
		  }
	  }
	 }
  }
}

.categories-view-content{
  &.layout-grid, &.layout-masonry{
	 .post-block{
		margin-bottom: 30px;
		text-align: left;
		.post-categories{
		  margin: 0;
		  h2, h3, h4{
			 margin: 0;
			 line-height: 1;
		  }
		}
		.post-title{
		  padding: 0;
		}
		.post-meta{
		  margin-top: 0;
		}
		.post-body{
		  padding: 10px 0 15px;
		}
		.post-content{
		  padding: 15px;
		  border: 1px solid $border-color;
		  border-top: 0;
		}
	 }
  }
  &.layout-list{
	 .post-block{
		@include clearfix();
		margin-bottom: 0;
		 .post-thumbnail{
			 width: 45%;
			 float: left;
			 @include media-breakpoint-down(sm){
				width: 100%;
			 }
		 }
		 .post-title{
			 padding: 0;
			 margin: 0;
		  }
		 .post-content{
		  width: 55%;
		  float: left;
		  padding-left: 30px;
		  @include media-breakpoint-down(sm){
			 width: 100%;
		  }
		  .post-categories{
			 line-height: 1;
			 padding-bottom: 0;
			 margin-bottom: 0;
			 h2{
				margin: 0;
			 }
		  }
		 }
	 }
  }
}

.post-style-list{
	margin-bottom: 10px!important;
  ul > li.view-list-item{
	 margin-bottom: 30px!important;
  }
  .post-block{
	 clear: both;
	 .post-image{
		width: 40%;
		float: left;
		@include media-breakpoint-down(sm){
		  width: 100%;
		}
		img{
		  height: auto;
		  width: 100%;
		}
	 }
	 .entry-meta{
		padding: 5px 0 12px;
		margin-top: 2px;
		&:after{
			display: none;
		}
	 }
	 .post-title{
		margin-bottom: 8px;
		font-size: 22px;
		line-height: 28px;
	 }
	 .post-content{
		padding-top: 5px;
		width: 60%;
		padding-left: 30px;
		float: left;
		box-shadow: none;
		@include media-breakpoint-down(sm){
		  width: 100%;
		  padding-left: 0;
		}
		.action{
			display: none;
		}
		.body{
			line-height: 24px;
			margin-top: 15px;
		}
	 }
	 .post-title{
		padding-top: 0;
	 }
	 &.no-image{
		.post-content{
		  width: 100%;
		  padding-left: 0;
		}
	 }
  }
}

.post-list-small{
  background: $white;
  border: 1px solid $border-color;
  padding: 20px;
  .item-list{
	 ul{
		li{
		  margin-bottom: 20px!important;
		  padding-bottom: 20px;
		  border-bottom: 1px solid $border-color;
		  &:last-child{
			 margin-bottom: 0!important;
			 border-bottom: 0;
			 border: 0;
		  }
		}
	 }
  }
  .post-block{
	 clear: both;
	 background: none;
  }
}

.post-list-small-2{
  .item-list{
	 ul{
		li{
		  margin-bottom: 20px!important;
		  &:last-child{
			 margin-bottom: 0!important;
		  }
		}
	 }
  }
  .post-block{
	 clear: both;
	 background: none;
	 .post-image{
		width: 90px;
		float: left;
		img{
		  height: auto;
		  width: 100%;
		}
	 }
	 .post-content{
		padding-left: 110px;
		background: none;
	 }
	 .post-title{
		padding: 0;
		margin: 0;
		font-size: 16px;
		line-height: 1.4;
		margin-top: -3px;
		font-weight: 600;
	 }
	 .post-meta{
		position: relative;
		margin-bottom: 8px;
		font-size: 12px;
		color: $theme-color;
		font-weight: 600;
		font-family: $headings-font-family;
		.line{
			padding: 0 5px;
		}
		.post-categories{
		  font-size: 12px;
		}
	 }
  }
}


.team-block{
  &.team-v1{
	 text-align: center;
	 margin-bottom: 30px;
	 position: relative;
	 overflow: hidden;
	 background: transparent;
	 background: $white;
	 .team-image{
		position: relative; 
		background: transparent;
		.socials-team{
		  z-index: 9;
		  width: auto;
		  padding: 10px 0;
		  @include opacity(0);
		  @include transition(all 0.15s); 
		  text-align: center;
		  position: absolute;
		  top: -20px;
		  right: 10px;
		  z-index: 9;
		  width: 32px;
		  a{
			 @include size(32px, 32px);
			 @include border-radius(50%);
			 line-height: 32px;
			 text-align: center;
			 color: $white;
			 background: $black;
			 font-size: 14px;
			 display: block;
			 margin-bottom: 10px;
			 &:hover, &:focus, &:active{
				background: $theme-color;
			 }
		  }
		}
		.item-image{
		  position: relative;
		  a{
			 &:after{
				content: "";
				position: absolute;
				top: 0;
				left: 0;
				@include size(100%, 100%);
				background: rgba(255, 255, 255, 0.8);
				@include opacity(0);
				z-index: 1;
				@include transition(all 0.35s);
			 }
		  }
		}
	 }
	 .team-content{
		background: transparent;
		position: relative;
		text-align: left;
		padding: 10px 20px 20px;
		border: 1px solid $border-color;
		border-top: 0;
		.team-name{
		  font-size: 20px;
		  font-weight: 700;
		  margin: 0;
		  line-height: 20px;
		  padding: 20px 0 6px;
		  text-transform: capitalize;
		}
		.team-job{
		  font-size: 13px;
		  color: #808080;
		  padding: 0 0 10px;
		}
	 }
	 .team-skills{
		.progress-label{
		  font-weight: 400!important;
		  font-size: 13px;
		  color: $black;
		  text-transform: capitalize;
		}
		.progress{
		  margin-bottom: 12px!important;
		  height: 2px!important;
		  .progress-bar span{
			 display: none;
		  }
		  .percentage{
			 font-size: 12px!important;
			 top: -22px;
			 color: $black;
			 font-weight: 400;
		  }
		}
	 }
	 &:hover{
		.team-image{
		  .item-image{
			 &:after{
				@include opacity(1);
			 }
		  }
		  .socials-team{
			 @include opacity(1);
			 top: 10px;
		  }
		}
	 }
  }
  &.team-v2{
	 max-width: 500px;
	 margin: 0 auto 30px;
	 .team-image{
		position: relative; 
		text-align: center;
		z-index: 1;
	 }
	 .team-content{
	 	background: $white;
		text-align: center;
		@include transition(all 0.35s);
		padding: 30px 20px 20px;
		margin: -50px 10px 0 10px;
		box-shadow: 0px 10px 25px 0px rgba(0, 0, 0, 0.06);
		border-radius: 4px;
		position: relative;
		z-index: 9;
		border-bottom: 2px solid transparent;
		@media(max-width: 1024px){
			padding: 20px 15px;
		}
		.socials-team{
		  z-index: 9;
		  width: auto;
		  padding: 5px 0;
		  @include transition(all 0.15s); 
		  text-align: center;
		  margin-top: 10px;
		  margin-bottom: 10px;
		  @include transition(all 0.4s);
		  a{
			 text-align: center;
			 color: $black;
			 font-size: 16px;
			 margin: 0 5px;
			 @include size(40px, 40px);
			 @include border-radius(50%);
			 background: $bg-gray;
			 display: inline-block;
			 line-height: 40px;
			 &:hover, &:focus, &:active{
				color: $white;
				background: $theme-color;
			 }
		  }
		}
		.team-name{
		  line-height: 22px;
		  font-size: 20px;
		  margin: 0 0 6px;
		  @include transition(all 0.5s);
		  a{
			 &:hover{
				color: $theme-color;
			 }
		  }
		}
		.team-job{
		  font-size: 14px;
		  font-weight: 400;
		  margin-top: 5px;
		}
	 }
	 &:hover, &:focus{
	 	.team-content{
	 		border-bottom-color: $theme-color;
	 	}
	 }
  }
}
