/* -----------------------------------------
	04. Modules
----------------------------------------- */

/* Front Page Slider */
#home-slider.loading {
	position: relative;

	&:after {
		content: ' ';
		position: absolute;
		width: 30px;
		height: 30px;
		right: 20px;
		top: 40%;
		margin: 0 0 0 -15px;
		border: 8px solid #FFF;
		border-right-color: transparent;
		border-radius: 50%;
		box-shadow: 0 0 25px 2px #eee;
		-webkit-animation: spin 1s linear infinite;
		-moz-animation: spin 1s linear infinite;
		-ms-animation: spin 1s linear infinite;
		-o-animation: spin 1s linear infinite;
		animation: spin 1s linear infinite;
	}
}

#home-slider {
	position: relative;
	top: -160px;
	margin-bottom: -160px;
	background: none;

	.slides {
		li {
			position: relative;
			height: 850px;
			background-position: center top;
		}
	}

	&.flexslider .slides > li:first-child {
		display: block;
	}

	&.flexslider.loading .slides > li:first-child {
		opacity: 1 !important;
	}

	.flex-control-nav {
		width: 20px;
		bottom: auto;
		z-index: 20;
		top: 40%;
		right: 20px;
	}

	.flex-control-nav li {
		display: block;
		margin: 0 0 5px 0;
	}

	.flex-control-paging li a {
		background: #FFF;
		opacity: 0.6;
		border: none;
		border-radius: 100%;
		box-shadow: none;
	}

	.flex-control-paging li a.flex-active,
	.flex-control-paging li a:hover {
		opacity: 1;
	}
}

.slide-content {
	width: 100%;
	text-align: center;
	color: #FFF;
	position: absolute;
	top: 35%;
}

.slide-title {
	font-size: 48px;
	font-weight: 900;
	text-transform: uppercase;
	text-shadow: 0 5px 0 rgba(#000, 0.3);
	line-height: 1;
	margin: 0 0 8px;
}

.slide-subtitle {
	font-size: 18px;
	margin: 0 0 40px;
}

.section-title {
	font-size: 24px;
	font-weight: 400;
	position: relative;
	text-transform: uppercase;
	margin: 0 0 50px;
	line-height: 1;
	letter-spacing: 0.18em;

	&:after {
		content: "";
		width: 70px;
		position: absolute;
		bottom: -10px;
		left: 0;
		border-bottom: 1px solid $primary-color;
	}
}

/* Item Styling */

.item {
	position: relative;
	margin: 0 0 30px;
}

.item-thumb {
	position: relative;
	background-color: #242424;

	&:before {
		position: absolute;
		width: 100%;
		height: 100%;
		z-index: 1;
		content: "";
		box-shadow: inset 0 0 1px 1px rgba(#FFF, 0.15);
		transition: box-shadow 0.18s ease;
	}

	&:hover {
		&:before {
			box-shadow: inset 0 0 1px 1px rgba(#FFF, 0.25);
		}

		img {
			opacity: 0.8;
		}
	}

	img {
		opacity: 0.5;
		transition: opacity 0.18s ease;
	}
}

a.zoom {
	position: relative;
	display: block;

	&:after {
		font-family: FontAwesome;
		content: "\f00e";
		font-size: 33px;
		position: absolute;
		line-height: 1;
		top: 50%;
		left: 50%;
		margin: -17px 0 0 -17px;
		color: #FFF;
		opacity: 0.3;
		transition: opacity 0.18s ease;
	}

	&:hover {
		&:after {
			opacity: 1;
		}
	}
}

.item-info {
	position: absolute;
	top: 0;
	left: 0;
	padding: 25px;
	color: #FFF;

	p {
		margin: 0;
	}
}

.item-title-intro {
	font-size: 24px;
	text-transform: uppercase;
	font-weight: 900;
	line-height: 1;
}

.item-title-main {
	font-size: 18px;
}

.item-byline {
	@include secondary-font-style();
	font-weight: normal;
}

.item-btn {
	position: absolute;
	bottom: 0;
	left: 25px;
	z-index: 5;
}

.item-fullwidth {
	.item-thumb {
		max-height: 240px;
		overflow: hidden;
	}
}

.item-meta {
	width: 100%;
	border-top: 1px solid $border-color;

	th, td {
		@include secondary-font-style();
		text-align: left;
		padding: 13px 15px;
		border-bottom: 1px solid $border-color;
		border-left: 1px solid $border-color;
		width: 50%;
	}

	td {
		font-weight: 400;
		border-right: 1px solid $border-color;
	}

	td.action {
		padding: 3px;
	}

	.btn {
		@include secondary-font-style();
		font-weight: normal;
		width: 100%;
	}
}

/* Event Item Timer Module */
.item-timer {
	@include clearfix();

	.count {
		float: left;
		width: 33.33333333%;
		text-align: center;
		border: 1px solid $border-color;
		border-bottom-width: 0;
		border-left-width: 0;
		height: 90px;
		padding-top: 22px;

		&:first-child {
			border-left-width: 1px;
		}

		b, span {
			display: block;
		}

		b {
			font-size: 36px;
			font-weight: 900;
			color: $primary-color;
			line-height: 0.8;
		}

		span {
			text-transform: uppercase;
			font-size: 14px;
			line-height: 1;
		}
	}
}

/* Entry Styles */
.entry {
	margin: 0 0 60px;

	&:only-of-type {
		margin: 0;
	}
}

.entry-thumb {
	position: relative;
	background: #242424;
	display: inline-block;
	margin: 0 0 20px;
	max-width: 100%;

	a {
		display: block;
		line-height: 0;

		&:after {
			position: absolute;
			width: 100%;
			height: 100%;
			top: 0;
			left: 0;
			z-index: 1;
			content: "";
			box-shadow: inset 0 0 1px 1px rgba(#FFF, 0.15);
			transition: box-shadow 0.18s ease;
		}

		&:hover {
			&:after {
				box-shadow: inset 0 0 1px 1px rgba(#FFF, 0.25);
			}

			img {
				opacity: 0.8;
			}
		}

		img {
			opacity: 0.5;
			transition: opacity 0.18s ease;
		}
	}

	.alignnone,
	.alignleft,
	.aligncenter,
	.alignright {
		margin: 0;
	}
}

.entry-title {
	font-weight: bold;
	margin: 0 0 5px;

	a {
		color: #FFF;

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

.entry-meta {
	color: #3F3F3F;
	text-transform: uppercase;
	font-size: 18px;
	margin: 0 0 15px;
}

.entry-time {
	color: #FFF;
}

.entry-content {
	@include clearfix();
	margin-bottom: 25px;

	h1, h2, h3, h4, h5, h6 {
		font-weight: bold;
	}

	h1 {
		font-size: 28px;
	}

	h2 {
		font-size: 26px;
	}

	h3 {
		font-size: 23px;
	}

	h4 {
		font-size: 20px;
	}

	h5 {
		font-size: 18px;
	}
}

/* Pagination */
#paging, .page-numbers li {
	> span, a {
		display: inline-block;
		color: #FFF;
		background-color: #1D1D1D;
		margin: 0 10px 5px 0;
		padding: 7px 14px;
		font-weight: bold;
		font-size: 14px;
		text-transform: uppercase;
	}

	.current,
	a:hover {
		background-color: $primary-color;
	}
}

/* Listings */
.event-list {
	&:first-of-type {
		margin-bottom: 60px;
	}

	&:only-of-type {
		margin-bottom: 0;
	}
}

/* Event Single */
#event_map {
	width: 100%;
	height: 400px;
	margin-bottom: 30px;
}

.tip-content {
	color: #333;
}

/* Video Single */
.video-wrap {
	margin: 0 0 50px;
}

/* Gallery Staple */
.tp-grid {
	list-style: none;
	padding: 0;

	li {
		border: none;
		width: 255px;
	}

	.item-info, a.zoom:after {
		opacity: 0;
		transition: opacity 0.18s ease;
	}

	&.tp-open {
		.item-info {
			opacity: 1;
		}

		a.zoom {
			&:after {
				opacity: 0.3;
			}

			&:hover:after {
				opacity: 0.8;
			}
		}
	}
}

.tp-title {
	background: none;
	top: 8px;
	font-size: 18px;
	box-shadow: none;
	font-weight: normal;
	left: 10px;
	color: #FFF;
	width: auto;

	span:nth-child(2) {
		background: none;
		box-shadow: none;
		color: #fff;
		opacity: 0.8;
		display: none;
	}
}

.stapel-head {
	position: relative;
}

.tp-close {
	display: none;
	position: absolute;
	right: 0;
	top: -13px;
	font-size: 34px;
}

/* Isotope Filtering */
.filters-nav {
	list-style: none;
	margin: 0 0 30px;
	padding: 0;

	li {
		display: inline-block;
		margin-right: 10px;
	}

	.btn {
		background-color: #1d1d1d;

		&:hover {
			background-color: $primary-color;
		}
	}

	a.selected {
		background-color: $primary-color;
	}
}

/* Tracklisting */
.tracklisting {
	list-style: none;
	margin: 1px 0 20px;
	padding: 0;

	.widget & {
		margin-bottom: 0;
	}

	.track {
		position: relative;
		margin-top: -1px;
		@include clearfix();
		display: block;
		padding: 4px;
		min-height: 67px;
		border: 1px solid $border-color;
		z-index: 1;

		&:last-child {
			border: 1px solid $border-color;
		}

		&:hover,
		&.playing {
			border-color: $primary-color;
			z-index: 2;

			.sm2_link {
				background-color: $primary-color;
			}

			.track-no {
				color: $primary-color;
			}
		}

		&.tall {
			.sm2_link {
				height: 88px;
				line-height: 86px;
			}
		}
	}

	.track-buttons {
		list-style: none;
		margin: 0;
		padding: 0;
		@include clearfix();
		position: absolute;
		right: 70px;
		top: 15px;

		li {
			display: inline-block;
			margin-left: 5px;
			padding: 0;
			border-bottom: 0;
		}
	}

	iframe {
		width: 100%;
	}
}

.sm2_link {
	width: 58px;
	height: 58px;
	float: left;
	margin-right: 15px;
	text-align: center;
	display: inline-block;
	color: #FFF;
	line-height: 56px;
	font-size: 22px;
	transition: 0;

	&:hover,
	&:focus {
		color: #FFF;
		background-color: $primary-color;
	}

	.fa {
		&:before {
			content: "\f04b";
		}
	}

	&.sm2_playing {
		background-color: $primary-color;
		.fa {
			&:before {
				content: "\f04c";
			}
		}
	}

	&.sc-play {
		.fa {
			&:before {
				content: "\f1be";
			}
		}
	}
}

.track-info {
	position: relative;
	overflow: hidden;
	zoom: 1;
	padding: 5px;

	.item-title-main {
		margin: 0;
	}

	.item-byline {
		margin: 0;
	}
}

.track-no {
	color: lighten($border-color, 15%);
	font-weight: 300;
	position: absolute;
	right: 15px;
	font-size: 36px;
	top: 0;
}

.soundcloud-wrap {
	padding: 0;
	display: none;
	width: 100%;
	clear: both;

	iframe {
		margin: 0 0 -5px 0;
		border: none;
		max-height: 200px;
	}
}

@import '_player';