:root {
	--post-tb-padding: 6vw;
	--post-side-padding: 8vw;
	
	--company-details-line-height: 44px;
}

.blocks-gallery-grid .blocks-gallery-item {
	transition: opacity .3s;
}
.blocks-gallery-grid .blocks-gallery-item:not(.slick-current) {
	opacity: .65;
}
.blocks-gallery-grid .blocks-gallery-item:not(.slick-current):hover {
	opacity: 1;
}

/*-----------*/ /*----------------------------------------------------*/
/*-- POST --*/ /*----------------------------------------------------*/
/*---------*/ /*----------------------------------------------------*/
body.single .post,
#project-overlay .post {
	margin: 0 auto;
	max-width: 750px;
	padding: var(--post-tb-padding) var(--post-side-padding);
	background: var(--bg-color);
	color: var(--text-color);
	box-shadow: 0 0 45px rgba(0,0,0,.15);
	transition: opacity 1s;
	
	min-height: calc(100vh - (var(--post-tb-padding) * 2));
}
body.single .post::after,
#project-overlay .post::after {
	content: ;
	content: '';
	display: block;
	clear: both;
}
#project-overlay .post {
	opacity: 0;
}
body.blur #project-overlay .post {
	opacity: 1;
}
	
	/*CLOSE POST*/
	#close-project-post {
		display: block;
		position: fixed;
		top: 20px;
		right: 20px;
		width: 50px;
		height: 50px;
		line-height: 50px;
		text-align: center;
		font-size: 30px;
		border-radius: 50px;
		background: rgba(0,0,0,.15);
		border: 2px solid rgba(255,255,255,.5);
		z-index: 10;
		cursor: pointer;
		transition: background .3s, color .3s, border .3s;
	}
		#close-project-post:hover {
			background: #fff;
			color: #000;	
			border-color: rgba(255,255,255,1);
		}
		
		#close-project-post::before,
		#close-project-post::after {
			content: '';
			display: block;
			position: absolute;
			top: 50%;
			left: 50%;
			transform: translate3d(-50%,-50%,0) rotate(45deg);
			width: 65%;
			height: 2px;
			background: #fff;
			border-radius: 25px;
			transition: background .3s;
		}
		#close-project-post::after {
			transform: translate3d(-50%,-50%,0) rotate(-45deg);
		}
			#close-project-post:hover:before,
			#close-project-post:hover:after {
				background: #000;
			}
	
	/*COMPANY DETAILS*/
	.company-details {
		line-height: var(--company-details-line-height);
		margin-bottom: 15px;
	}
		.company-avatar {
			display: inline-block;
			width: var(--company-details-line-height);
			height: var(--company-details-line-height);
			object-fit: cover;
			border-radius: 50%;
			vertical-align: top;
		}
		.company-name {
			display: inline-block;
			line-height: var(--company-details-line-height);
			vertical-align: top;
			padding-left: 10px;
		}
		
	/*TITLE*/
	body.single .post h1,
	#project-overlay .post h1 {
		font-weight: 400;
		font-size: 40px;
		max-width: 90%;
	}
	
	body.single .post h1,
	#project-overlay .post h1 {
		margin-bottom: 80px;
		
		margin-bottom: 60px;
	}
	
	/*PROJECT DETAILS*/
	.project-details {
		float: right;
		text-align: right;
		width: 280px;
		margin-top: 80px;
		
		margin-top: 0;
		box-sizing: border-box;
		padding-left: 30px;
	}
		.project-details h6 {
			font-size: 20px;
			font-weight: normal;
			color: #fafafa;
			line-height: 1.5em;
		}
		.project-details .hired-as,
		.project-details .deliverables {
			font-size: 20px;
			font-weight: normal;
			color: #9A9A9A;
			margin-bottom: 40px;
			line-height: 1.8em;
			white-space: pre-line;
		}
		
	/*P AFTER PROJECT DETAILS*/
	.project-details + p,
	.project-details + h2 + p,
	.project-details + h3 + p,
	.project-details + h4 + p,
	.project-details + h5 + p,
	.project-details + h6 + p {
		width: calc(100% - 280px);
	}
		
	/* H2 */
	body.single .post h2,
	#project-overlay .post h2 {
		font-weight: 400;
		font-size: 22px;
		letter-spacing: .5px;
		margin-top: 80px;
		
		margin-top: 50px;
	}
	
	/* P */
	body.single .post p,
	#project-overlay .post p {
		margin-top: 20px;
		font-size: 20px;
		line-height: 1.5em;
		opacity: .6;
	}

	/*PAGINATION*/	
	body .post p.post-nav-links {
		opacity: 1;
		font-size: 14px;
		text-align: center;
		margin-top: 80px;
	}
		body .post-page-numbers.current,
		body.single .post p a.post-page-numbers, 
		#project-overlay .post p a.post-page-numbers {
			background: var(--text-color);
			color: var(--bg-color);
			display: inline-block;
			padding: 0 8px;
			border-radius: 3px;
			margin: 0 2px;
			text-align: center;
		}
		body.single .post p a.post-page-numbers, 
		#project-overlay .post p a.post-page-numbers {
			opacity: .5;
			transition: opacity .3s;
		}
		body.single .post p a.post-page-numbers:hover, 
		#project-overlay .post p a.post-page-numbers:hover {
			opacity: 1;
		}
	
	/*a*/
	body.single .post p a,
	#project-overlay .post p a {
		color:  var(--text-color);
		text-decoration: none;
		border-bottom: 1px dotted var(--text-color);
	}
		body.single .post p a:hover,
		#project-overlay .post p a:hover {
			border-bottom: 1px solid  var(--text-color);
		}

/*---------------------*/ /*----------------------------------------------------*/
/*-- FEATURED IMAGE --*/ /*----------------------------------------------------*/
/*-------------------*/ /*----------------------------------------------------*/
.featured-image {
	position: relative;
	width: calc(100% + 16vw);
	display: block;
	max-width: none;
	margin: calc(-1 * var(--post-tb-padding)) 0 50px calc(-1 * var(--post-side-padding));
	object-fit: cover;
}

/*-------------------------*/ /*----------------------------------------------------*/
/*-- SINGLE LARGE IMAGE --*/ /*----------------------------------------------------*/
/*-----------------------*/ /*----------------------------------------------------*/
.wp-block-image.size-large,
.wp-block-image.size-full {
	margin: 80px 0 50px calc(-1 * var(--post-side-padding));
	width: calc(100% + (2 * var(--post-side-padding)));
	display: block;
	max-width: 100vw;
}
	.wp-block-image.size-large img,
	.wp-block-image.size-full img {
		width: calc(100% + (2 * var(--post-side-padding)));
		object-fit: cover;
	}
	.wp-block-image.size-large figcaption,
	.wp-block-image.size-full figcaption {
		margin: 12px 0 0 var(--post-side-padding);
		max-width: calc(100% - (2 * var(--post-side-padding)));
		color: #9A9A9A;
		text-align: left;
		font-style: italic;
		font-size: 16px;
	}
		.wp-block-image.size-large figcaption:before,
		.wp-block-image.size-full figcaption:before {
			content: '\2014 ';	
		}
		
/*--------------------------*/ /*----------------------------------------------------*/
/*-- SINGLE MEDIUM IMAGE --*/ /*----------------------------------------------------*/
/*------------------------*/ /*----------------------------------------------------*/
.wp-block-image.size-medium {
	margin: 80px 0 50px;
	display: block;
	max-width: 100vw;
}
	.wp-block-image.size-medium img {
		width: calc(100% + (2 * var(--post-side-padding)));
		object-fit: contain;
	}
	.wp-block-image.size-medium figcaption {
		margin: 12px 0 0;
		max-width: 100%;
		color: #9A9A9A;
		text-align: left;
		font-style: italic;
		font-size: 16px;
	}
		.wp-block-image.size-medium figcaption:before {
			content: '\2014 ';	
		}

 /*------------------------*/ /*----------------------------------------------------*/
/*-- SINGLE VIDEO BLOCK --*/ /*----------------------------------------------------*/
 /*----------------------*/ /*----------------------------------------------------*/
.wp-block-video {
	margin-top: 80px;
	margin-bottom: 80px;
}

	.wp-block-video figcaption {
		margin: 12px 0 0;
		max-width: 100%;
		color: #9A9A9A;
		text-align: left;
		font-style: italic;
		font-size: 16px;
	}
		.wp-block-video figcaption:before {
			content: '\2014 ';	
		}

	.wp-block-video video {
		width: 100%;
	}

/*EMBED*/
.wp-block-embed__wrapper {
	position: relative;
	height: 0;
	width: 100%;
	padding-bottom: 56.25%;
	clear: both;
}
	.wp-block-embed__wrapper iframe {
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;	
	}


/*-------------------------------------------*/ /*----------------------------------------------------*/
/*-- DISABLE DEFAULT IMAGE GALLERY STYING --*/ /*----------------------------------------------------*/
/*-----------------------------------------*/ /*----------------------------------------------------*/
figure.wp-block-gallery {
	display: block;
	white-space: nowrap;
	padding-top: 80px;	
	position: relative;
	clear: both;
}

.blocks-gallery-grid {
	white-space: nowrap;
	display: block;
	width: 100vw;
	overflow: scroll;
	position: relative;
	left: 50%;
	right: 50%;
	margin-left: -50vw;
	margin-right: -50vw;
	
	overflow: hidden;
	padding-bottom: 30px;
}

.blocks-gallery-grid * {
	outline: none;
}

.blocks-gallery-grid .blocks-gallery-image, 
.blocks-gallery-grid .blocks-gallery-item, 
.wp-block-gallery .blocks-gallery-image, 
.wp-block-gallery .blocks-gallery-item {
	width: auto !important;
	
	cursor: ew-resize;
    cursor: grab;
    cursor: -moz-grab;
    cursor: -webkit-grab;
}
	.blocks-gallery-grid .blocks-gallery-image a, 
	.blocks-gallery-grid .blocks-gallery-item a, 
	.wp-block-gallery .blocks-gallery-image a, 
	.wp-block-gallery .blocks-gallery-item a {
		cursor: ew-resize;
		cursor: grab;
		cursor: -moz-grab;
		cursor: -webkit-grab;
	}

.blocks-gallery-grid .blocks-gallery-image:active, 
.blocks-gallery-grid .blocks-gallery-item:active, 
.wp-block-gallery .blocks-gallery-image:active, 
.wp-block-gallery .blocks-gallery-item:active {
    cursor: grabbing;
    cursor: -moz-grabbing;
    cursor: -webkit-grabbing;
}
	.blocks-gallery-grid .blocks-gallery-image a:active, 
	.blocks-gallery-grid .blocks-gallery-item a:active, 
	.wp-block-gallery .blocks-gallery-image a:active,
	.wp-block-gallery .blocks-gallery-item a:active {
	    cursor: grabbing;
	    cursor: -moz-grabbing;
	    cursor: -webkit-grabbing;
	}

.blocks-gallery-grid .blocks-gallery-item {
	display: inline-block;
	vertical-align: top;
	padding: 0 45px 25px;
	margin: 0 !important;
}	
.blocks-gallery-grid .blocks-gallery-item:first-child {
	padding-left: 50px;	
}
.blocks-gallery-grid .blocks-gallery-item:last-child {
	padding-right: 50px;	
}

	/*FIGURE*/
	.blocks-gallery-grid .blocks-gallery-image figure, 
	.blocks-gallery-grid .blocks-gallery-item figure, 
	.wp-block-gallery .blocks-gallery-image figure, 
	.wp-block-gallery .blocks-gallery-item figure {
		display: block;
	}
		/*IMG*/
		.blocks-gallery-grid .blocks-gallery-image img, 
		.blocks-gallery-grid .blocks-gallery-item img, 
		.wp-block-gallery .blocks-gallery-image img, 
		.wp-block-gallery .blocks-gallery-item img {
			border-radius: 3px;
			box-shadow: 0 15px 20px rgba(0,0,0,.35);
			object-fit: cover;
			max-width: 700px;
			max-height: none;
		}

		/*MOBILE IMG*/
		.blocks-gallery-grid.mobile .blocks-gallery-image img, 
		.blocks-gallery-grid.mobile .blocks-gallery-item img, 
		.wp-block-gallery.mobile .blocks-gallery-image img, 
		.wp-block-gallery.mobile .blocks-gallery-item img {
			max-height: 850px;
			
			max-height: 668px;
			width: auto;
		}
		

		/*IMAGE GALLERY CAPTION*/
		.blocks-gallery-item figure .blocks-gallery-item__caption {
			position: relative;
			background: none;
			color: #9A9A9A;
			display: block;
			padding: 0;
			text-align: left;
			font-style: italic;
			margin-top: 12px;
			font-size: 16px;
		}
		.blocks-gallery-item figure .blocks-gallery-item__caption:before {
			content: '\2014 ';	
		}
		
		
/*-------------------------*/ /*----------------------------------------------------*/	
/*-- GALLERY INDICATORS --*/ /*----------------------------------------------------*/
/*-----------------------*/ /*----------------------------------------------------*/
.gallery-indicators,
.slick-dots {
	text-align: center;
	padding: 30px 30px 0;
	white-space: normal;
}

	.gallery-indicator,
	.slick-dots > li {
		display: inline-block;
		width: 10px;
		height: 10px;
		border: 2px solid #fff;
		border-radius: 50%;
		margin: 0 8px;
		opacity: .3;
		cursor: pointer;
		transition: opacity .3s;
		position: relative;
	}
	.slick-dots > li:hover,
	.gallery-indicator:hover {
		opacity: 1;	
	}
	.slick-dots > li.slick-active,
	.gallery-indicator.active-indicator {
		opacity: 1;
		background: #fff;
	}
	
		.slick-dots > li button {
			background: none;
			border: none;
			color: transparent;
			position: absolute;
			top: 0;
			left: 0;
			width: 100%;
			height: 100%;
			border-radius: 50%;
			cursor: pointer;
		}
		

/*LIKE - COMMENT - SHARE */
#like-comment-share {
	background: rgba(255,255,255,.1);
	position: relative;
	transform: translate3d(-8vw,0,0);
	padding: 40px 8vw;
	width: 100%;
	margin: 80px 0 0;
}	
	#like-comment-share h3 {
		font-weight: 400;
		font-size: 22px;
		letter-spacing: .5px;
	}

		
		
/*--ADDITIONAL CREDITS--*/
#additional-credits h5 {
	font-weight: 400;
	font-size: 20px;
	letter-spacing: .5px;
	margin-top: 80px;
	font-weight: 400;
}
#additional-credits > div {
	white-space: pre-line;
	margin-top: 10px;
	font-size: 20px;
	line-height: 1.5em;
	color: #9A9A9A;	
}



/*--------------------*/ /*----------------------------------------------------*/ /*----------------------------------------------------*/	
/*-- MEDIA QUERIES --*/ /*----------------------------------------------------*/ /*----------------------------------------------------*/
/*------------------*/ /*----------------------------------------------------*/ /*----------------------------------------------------*/


@media only screen and (max-width: 900px) {
	
	:root {
		--post-tb-padding: 8vw;
	}
	
	body.single .post h1, 
	#project-overlay .post h1 {
		font-size: 30px;	
	}
	.project-details {
		float: none;
		text-align: left;
		width: 100%;
		margin-top: 40px;
		padding-left: 0;
	}
	.project-details:after {
		content: '';
		display: block;
		clear: both;
	}
		.hired-as-container {
			float: left;
		}
		.deliverables-container {
			float: right;
		}

	/*P AFTER PROJECT DETAILS*/
	.project-details + p,
	.project-details + h2 + p,
	.project-details + h3 + p,
	.project-details + h4 + p,
	.project-details + h5 + p,
	.project-details + h6 + p {
		width: 100%;
	}

	body.single .post h2, 
	#project-overlay .post h2 {
		clear: both;
	}
	
	
	.blocks-gallery-grid .blocks-gallery-image img, 
	.blocks-gallery-grid .blocks-gallery-item img, 
	.wp-block-gallery .blocks-gallery-image img, 
	.wp-block-gallery .blocks-gallery-item img {
		max-height: 100vh;
		object-fit: contain !important;
	}
}

@media only screen and (max-width: 700px) {
	
	.deliverables-container {
		float: none;
		clear: both;
	}
	
	
	.blocks-gallery-grid .blocks-gallery-image img, 
	.blocks-gallery-grid .blocks-gallery-item img, 
	.wp-block-gallery .blocks-gallery-image img, 
	.wp-block-gallery .blocks-gallery-item img {
		max-width: 80vw;
	}
}

