@import 'variables';
@import 'mixins';

.edgtf-blog-holder{
	article {
		margin-bottom: 60px;

		&:last-child{
			margin-bottom: 0;
		}

		.edgtf-blog-audio-holder,
		&:not(.format-audio) .edgtf-post-image {
			margin-bottom: 25px;
		}

		.edgtf-post-text-inner {

			> h1:not(.edgtf-post-title),
			> h2:not(.edgtf-post-title),
			> h3:not(.edgtf-post-title),
			> h4:not(.edgtf-post-title),
			> h5:not(.edgtf-post-title),
			> h6:not(.edgtf-post-title) {
				margin: 15px 0;
			}
		}


		.edgtf-post-excerpt{
			margin-bottom: 8px;
		}

		.edgtf-post-title {
			margin-bottom: 14px;
			letter-spacing: -0.02em;

			a:hover{
				color: #ababab;
			}
		}

		&.sticky {
			.edgtf-post-title:before{
				content: '\e031';
				font-family: 'ElegantIcons';
				margin-right: 10px;
			}
		}

		.edgtf-more-link-container{
			margin-bottom: 30px;
		}

		.edgtf-post-image {

			img {
				vertical-align: middle;
			}
		}

		.edgtf-blog-read-more {
			margin-top: 17px;
			display: block;
			color: #000;
			font-weight: 500;
		}

		.edgtf-post-info-bottom {
			display: block;
			width: 100%;
			padding-top: 5px;
			margin-bottom: 0;

			.edgtf-post-info-bottom-left,
			.edgtf-post-info-bottom-right{
				display: block;
				vertical-align: middle;

				> div{
					display: inline-block;
					position: relative;
					color: $gray-color;
					font-size: 15px;
					font-weight: 500;
					margin-right: 4px;

					&.edgtf-post-info-date{
						color: $first-main-color;
					}

					a {
						color: $first-main-color;

						&:hover{
							color: $gray-color;
						}
					}

					&.edgtf-post-info-comments-holder{
						margin-right: 15px;
					}
				}

				> div:last-child {
					border-right: none;
					margin-right: 0;
					padding-right: 0;
				}

				> div + .edgtf-post-info-comments-holder{
					margin-left: 12px;
				}

				.edgtf-post-info-comments,
				.edgtf-like{

					color: $gray-color;

					&:hover{
						color: $first-main-color;
					}

					a {
						color: $gray-color;
					}

					> i:first-child,
					> span:first-child{
						margin-right: 7px;
					}
				}

				.edgtf-post-info-author:not(:last-child):after{
					content: ',';
					color: $first-main-color;
				}
			}
		}

		&.format-link,
		&.format-quote {

			.edgtf-post-title{
				margin-bottom: 9px;
				font-weight: 400;
                letter-spacing: 0;
			}

			.edgtf-post-text {
				padding: 43px 10% 36px;
				position: relative;
				text-align: center;
				background-color: #fafafa;
			}

		}

		.edgtf-post-mark{
			color: #999;

			&:hover{
				color: $first-main-color;
			}

			&.edgtf-link-mark{
				font-size: 20px;
				position: absolute;
				left: 20px;
				top: 20px;
			}
		}

		.edgtf-quote-author {
			color: $gray-color;
			font-size: 15px;
			font-weight: 500;
			display: block;

			a{
				color: inherit;
			}
		}

        .edgtf-post-link-title {
            font-size: 37px;
            font-weight: 400;
            color: $first-main-color;
        }

        &.format-quote {
            .edgtf-post-title{
                &:before {
                    content: open-quote;
                }
                &:after {
                    content: close-quote;
                }

				&:hover{
					&:before,
					&:after{
						color: $gray-color;
					}
				}
            }
        }

		&.format-link{
			position: relative;

			.edgtf-post-text{
				padding: 89px 0 87px;
			}

			.edgtf-post-whole-link{
				position: absolute;
				top: 0;
				left: 0;
				height: 100%;
				width: 100%;
				z-index: 2;
			}

			a {
				&:hover {
					~ .edgtf-post-text-inner,
					~ .edgtf-post-content {
						.edgtf-post-link-title {
							a,
							a * {
								color: $gray-color;
							}
						}
					}
				}
			}
		}

	}

	&.edgtf-blog-single {
		article {
			margin-bottom: 30px;

			.edgtf-blog-audio-holder,
			&:not(.format-audio) .edgtf-post-image {
				margin-bottom: 53px;
			}

			.edgtf-post-info-bottom{
				border-bottom: 1px solid $first-main-color;
				padding: 16px 0 65px;
			}

			&.format-link,
			&.format-quote {

				.edgtf-post-text {
					background-color: $default-elements-background-color;
					margin-bottom: 41px;
					@include edgtfTransition(background-color .15s ease-out);
				}

				.edgtf-post-mark{
					@include edgtfTransition(color .15s ease-out);
				}
			}

			&.format-link {
				a {
					&:hover {
						~ .edgtf-post-text-inner,
						~ .edgtf-post-content {
							.edgtf-post-link-title {
								a,
								a * {
									color: $gray-color;
								}
							}
						}
					}
				}
			}

			&.format-quote{
				.edgtf-post-title{
					&:before {
						content: open-quote;
					}
					&:after {
						content: close-quote;
					}
				}
				.edgtf-quote-author{
					display: inline-block;
				}
			}

			.edgtf-post-info-date{
				color: $first-main-color;
			}

			.edgtf-quote-author{
				color: $gray-color;
				@include edgtfTransition(color .15s ease-out);
			}
			.edgtf-blog-link-holder {
				display: block;
				position: absolute;
				width: 100%;
				height: 100%;
				z-index: 1;
				top: 0;
				left: 0;

				&:hover{

				}
			}
		}
	}

	&.edgtf-blog-type-masonry {
		overflow: visible !important;
        opacity: 0;
        @include edgtfTransition(opacity 0.15s ease-out);

        &.edgtf-appeared{
            opacity: 1;
        }

		.edgtf-post-image {
			overflow: hidden;

			a {
				display: block;
				@include edgtfTransition(all 0.3s $transition-easing);

				img {
					vertical-align: middle;
				}
			}

			&:hover {

				a {
					@include edgtfTransform(scale(1.05, 1.05));
				}

			}
		}

		.format-gallery .edgtf-post-image .slick-slide {

			a {
				@include edgtfTransition(all 0.3s $transition-easing);

				&:hover {
					@include edgtfTransform(scale(1, 1));
				}

			}

			&.slick-current {
				position:relative;
				z-index:1;

				a:hover {
					@include edgtfTransform(scale(1.05, 1.05));
				}

			}

		}

		article {
			display: block;
			width: 32%;
			padding: 0;
			text-align: left;
			vertical-align: top;
			z-index: 100;
			margin: 0 0 50px;
			box-sizing: border-box;
			@include edgtfTransition(border-color 0.15s ease-out);

			.edgtf-blog-audio-holder,
			&:not(.format-audio) .edgtf-post-image{
				margin-bottom: 21px;
			}

			.edgtf-post-info {
				margin-bottom: 20px;
			}

			&.format-link,
			&.format-quote{
				.edgtf-post-text {
					background-color: $default-elements-background-color;
					padding: 78px 24px 21px;
					@include edgtfTransition(background-color .15s ease-out);
				}

				.edgtf-post-mark,
				.edgtf-post-title{
					color: $header-dark-color;
				}

				.edgtf-post-mark{
					@include edgtfTransition(color .15s ease-out);
				}

				&:hover{
					.edgtf-post-text{
						background-color: #eaeaea;
					}


					.edgtf-post-mark,
					.edgtf-post-title,
					.edgtf-quote-author,
					.edgtf-post-link-title{
						color: $first-main-color;
					}
				}
			}

			.edgtf-post-link-title{
				color: #fff;
			}

			.edgtf-quote-author{
				color: $gray-color;
				@include edgtfTransition(color .15s ease-out);
			}

			&.format-link {
				.edgtf-post-text {
					padding: 93px 55px 87px;
				}
			}

			&.format-quote {
				.edgtf-post-text {
					padding: 85px 35px;
				}
			}
		}
		.edgtf-blog-masonry-grid-sizer {
			width: 32%;
		}
		.edgtf-blog-masonry-grid-gutter {
			width: 2%;
		}

		#infscr-loading {
			position: absolute;
			bottom: -35px;
			left: 50%;
			@include edgtfTransform(translateY(-50%));
		}

		+ .edgtf-blog-load-more-button-holder{
			.edgtf-btn{
				margin-top: 40px;
			}
		}

	}
	&.edgtf-masonry-full-width {
		margin-right: 1.7%;
		margin-left: 1.7%;

		article,
		.edgtf-blog-masonry-grid-sizer{
			width: 23.65%;
		}

		.edgtf-blog-masonry-grid-gutter {
			width: 1.8%;
		}

		+ .edgtf-blog-load-more-button-holder{
			.edgtf-btn{
				margin-top: 40px;
			}
		}
	}

}

.edgtf-blog-infinite-scroll-button-holder {
	text-align: center;

	.edgtf-blog-infinite-scroll-button{
		a {
			border: none;
			visibility: hidden;
			color: $first-main-color;
			background-color: transparent;
		}
	}
}

.edgtf-blog-load-more-button-holder{
	text-align: center;

	.edgtf-btn{
		margin-top: 40px;
	}
}

.edgtf-filter-blog-holder{

	text-align: center;
	margin-bottom: 30px;

	li {
		display:inline-block;
		padding: 0 8px;
		cursor: pointer;
		font-size: 15px;

		&.edgtf-active{
			color: $first-main-color;
		}
	}
}


/* #Audio styles - start
   ========================================================================== */

.edgtf-blog-audio-holder{
	width: 100%;
	height: 44px;

	.mejs-container {
		height: 44px !important;
		background: #eaeaea;


		.mejs-controls{
			height: 37px !important;
			padding: 0 13px 0 10px;
			box-sizing: border-box;

			.mejs-time {
				color: $first-main-color;
				font-weight: 600;
			}

			.mejs-button button{
				height: 26px;
				width: 20px;
				line-height: 26px;
				background-image: none;
				margin: 0;
				outline: none;

				&:before{
					font-family: 'ElegantIcons';
					color: $first-main-color;
					display: inline-block;
					vertical-align: middle;
				}
			}

			.mejs-playpause-button{
				&.mejs-play button:before{
					content: '\49';
					font-size: 20px;
				}

				&.mejs-pause button:before{
					content: '\5f';
					font-size: 19px;
					margin-top: 1px; //because of the 1px spacing around play icon
				}
			}

			.mejs-horizontal-volume-slider .mejs-horizontal-volume-total{
				background-color: #fff;
			}

			.mejs-time-rail .mejs-time-loaded {
				background: $first-main-color;
			}

			.mejs-volume-button{
				margin-top: 2px;

				&.mejs-mute button:before{
					content: '\e069';
					font-size: 15px;
				}

				&.mejs-unmute button:before{
					content: '\e067';
					font-size: 15px;
				}
			}

			a.mejs-horizontal-volume-slider {
				margin-top: 1px;
			}

			.mejs-time {
				padding: 10px 8px 0 6px;
			}

			.mejs-time-rail .mejs-time-total {
				margin: 7px 8px 5px;
				background: $first-main-color;
			}

			.mejs-time-rail .mejs-time-current,
			.mejs-horizontal-volume-slider .mejs-horizontal-volume-current{
				background: $first-main-color;
			}

			.mejs-time-rail span,
			.mejs-time-rail a{
				height: 6px;

			}
			.mejs-horizontal-volume-slider .mejs-horizontal-volume-total,
			.mejs-horizontal-volume-slider .mejs-horizontal-volume-current {
				height: 6px;
			}

			span.mejs-time-handle{
				display: inline-block;
				top: -5.5px;
				width: 15px;
				height: 15px;
				background-color: #8b8b8b;
				border: none;
				@include edgtfBorderRadius(25px);
			}
		}
		.mejs-container,
		.mejs-controls{
			background: transparent;
		}
	}
}
/* #Audio styles - end
========================================================================== */




/* #Blog Single - start
========================================================================== */

.single-post{
	.edgtf-content .edgtf-content-inner{
		> .edgtf-container > .edgtf-container-inner,
		> .edgtf-full-width > .edgtf-full-width-inner{
			padding: 67px 0;
		}
	}
}

.edgtf-author-description {
	width: 100%;
	display: inline-block;
	vertical-align: middle;
	text-align: center;
	margin-top: 70px;


	.edgtf-author-description-inner{
		display: inline-table;
		table-layout: fixed;
		width: 85%;
	}

	.edgtf-author-description-image {
		display: table-cell;
		vertical-align: top;
		width: 80px;
		padding-right: 20px;

		img {
			vertical-align: middle;
			@include edgtfBorderRadius(50%);
		}
	}

	.edgtf-author-description-text-holder {
		display: table-cell;
		vertical-align: top;
		text-align: left;
	}

	.edgtf-author-name{
		margin-bottom: 7px;
	}

	.edgtf-author-email{
		font-size: 12px;
		font-weight: 400;
		padding-left: 3px;
	}

	.edgtf-author-text {
		p:last-child{
			margin: 0;
		}
	}
}

.edgtf-single-tags-holder {
	margin: 66px 0 5px;
	text-align: center;

	.edgtf-single-tags-title {
		display: inline-block;
		margin-right: 5px;
	}
	.edgtf-tags{
		display: inline-block;

		a {
			color: $gray-color;
			border: 2px solid #d3d3d3;
			display: inline-block;
			margin: 5px;
			font-size: 15px;
			font-weight: 700;
			padding: 4px 26px 3px;
			@include edgtfTransition(all 0.15s ease-out);

			&:hover{
				color: $first-main-color;
				border-color: $first-main-color;
			}
		}
	}
}

.edgtf-blog-single-navigation{
	position: relative;
	margin-top: 70px;

	.edgtf-blog-single-navigation-inner {
		display: table;
		width: 100%;
		table-layout: fixed;
	}

	.edgtf-nav-holder{
		display: table;
		width: 100%;
		table-layout: fixed;

		.edgtf-nav-image{
			display: table-cell;
			vertical-align: middle;
			width: 80px;
			height: 80px;
			background-size: contain;
			background-repeat: no-repeat;
			background-position: center;
		}

		.edgtf-nav-title{
			display: table-cell;
			vertical-align: middle;
		}

		.edgtf-nav-text{
			display: inline-block;
			vertical-align: middle;
			color: #ababab;
			font-size: 12px;
			font-weight: 700;

			span{
				display: inline-block;
				vertical-align: middle;
				font-size: 21px;
				margin-top: -2px; //because of the icon alignment
			}
		}
	}

	.edgtf-blog-single-prev{
		.edgtf-nav-title{
			padding-left: 20px;
		}

		.edgtf-nav-text span{
			margin-right: 10px;
		}
	}

	.edgtf-blog-single-next{
		text-align: right;

		.edgtf-nav-title{
			padding-right: 20px;
		}

		.edgtf-nav-text span{
			margin-left: 10px;
		}
	}

	.edgtf-nav-no-img{
		.edgtf-nav-image{
			display: none;
		}

		.edgtf-nav-title{
			padding: 0;
		}
	}

	.edgtf-blog-single-prev,
	.edgtf-blog-single-next{
		display: table-cell;
		width: 35%;
		vertical-align: middle;
	}

	.edgtf-blog-single-share{
		display: table-cell;
		width: 30%;
		vertical-align: middle;
		text-align: center;
	}
}

.edgtf-blog-single-share{
	.edgtf-social-share-holder.edgtf-list{
		.edgtf-social-share-title{
			display: block;
			margin: 0 0 8px;
		}
	}
}

.edgtf-single-links-pages{
	margin-top: 30px;
	margin-bottom: 25px;

	.edgtf-single-links-pages-inner{
		> a,
		> span{
			display: inline-block;
			height: 37px;
			width: 37px;
			line-height: 37px;
			text-align: center;
			border-bottom: 1px solid transparent;
			@include edgtfTransition(border-color .15s ease-out);
		}

		span{
			color: $first-main-color;
		}

		> a:hover{
			border-bottom-color: $first-main-color;
		}
	}
}


/* #Blog Single - end
========================================================================== */

/* Related Posts - begin
========================================================================== */

.edgtf-related-posts-holder {
	margin-top: 45px;

	.edgtf-related-posts-title {
		margin-bottom: 35px;
	}

	.edgtf-related-post {
		width: 24.8125%;
		margin-right: 0.25%;
		display: inline-block;
		float: left;

		&:nth-child(4n) {
			margin-right: 0;
		}

		img {
			display: block;
		}

		.edgtf-related-post-image {
			margin-bottom: 16px;
		}

	}

}

//Related posts with sidebar

.edgtf-column1 .edgtf-related-posts-holder,
.edgtf-column2 .edgtf-related-posts-holder {

	.edgtf-related-post {
		width: 33.16%;
		margin-right: 0.25%;

		&:nth-child(3n) {
			margin-right: 0;
		}

	}

}

/* Related Posts - end
========================================================================== */