/*
Theme Name: 	AES
Theme URI: 		http://anendlesssupply.co.uk
Description: 	Wordpress template
Version: 		1.0
Author: 		An Endless Supply
Author URI: 	http://anendlesssupply.co.uk
Tags: 			clean, basic
*/

/* ---------------------------------------------------------------------------------------------------------- 
01 Sensible defaults ----------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------- */
@import "css/reset.css";

div,
article,
section,
header,
footer,
nav,
li					{ position:relative; }
.group:after 		{ display:block; height:0; clear:both; content:"."; visibility:hidden; }
body 				{ background:#fff; }
::-moz-selection 	{ background:#ff0; color:#333; }
::selection 		{ background:#ff0; color:#333; }

/* ---------------------------------------------------------------------------------------------------------- 
02 Typography -----------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------- */
*, *:before, *:after {
	-moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box;
}
body,
input,
textarea {
	font-family: sans-serif;
	font-weight: bold;
	font-size:16px;
	line-height: 1.2;
	color: #f00;
}
h1, 
h2, 
h3, 
h4, 
h5, 
h6 {
	font-weight:bold; 
}
a {
	text-decoration: none;
	color: #f00;
	outline: 0 !important;
}
a:hover {
	color:#696969;
}
/* ---------------------------------------------------------------------------------------------------------- 
03 Header -----------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------- */
.header {
	margin: 0;
	background: #e6e6e6;
}
.nav {
    background-color: #fff;
	padding:20px 0;
	height:60px;
	z-index:3;
	transition: background-color 0.5s ease;
}
.name, .title, .panel-toggle {
	float: left;
	text-transform: uppercase;
	padding: 0 20px;
	z-index:11;
	width: 33.3%;
}
.title {
	text-align: center;
}
.panel-toggle {
	text-align: right;
	float:right;
	width: auto;
}
header.active {
	background: #e6e6e6;
}
.panel {
    background-color: #fff;
    position: absolute;
    top:60px;
    left:0;
    width:100%;
	padding:0 20px;
	height:0;
	z-index:2;
	transition: height 0.5s ease, background-color 0.5s ease;
	overflow:hidden;
}
.panel .col {
	padding:0 0 20px;
}
.panel h1 {
	text-transform: uppercase;
}
.header.active .nav {
    background-color: #e6e6e6;
}
.header.active .panel {
	height:100%;
	height:300px;
	z-index:3;
    background-color: #e6e6e6;
	border-bottom: 1px solid #ddd;
}
/* ---------------------------------------------------------------------------------------------------------- 
04 Main -----------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------- */
.main {
	margin: 0;
	padding:20px 10px 20px 20px;
	background: #fff;
}
.col {
  float: left;
  width: 30%;
  margin-right: 3.3%;
}
.item {
	margin-bottom: 30px;
}
.item:last-of-type {
	margin-bottom: 0;
}
.gallery, .single-gallery {
	display:flex;
	flex-flow:row wrap;
}
.gallery a {
	margin:0 8px 8px 0;
	display:block;
}
.gallery img {
	/*width: auto;
	max-height: 200px;*/
}
.gallery-item {
	margin:0 10px 10px 0;
}
.single-gallery img {
	/*max-height: 500px;
	width: auto;*/
		max-width:100%;
		height:auto;
}
.text {
	clear: both;
	opacity:1;
	transition: opacity 0.5s ease;
}
.item.inactive .text {
	opacity:0;
}
.single-text {
	margin-bottom:15px;
}
.text p {
	display:inline;
}
.secondary {
	color: #696969;
}
/* ---------------------------------------------------------------------------------------------------------- 
05 Footer -----------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------- */
.footer {
	padding:0 20px 20px;
	font-size:11px;
	letter-spacing: 0.02em;
	color:#696969;
}
.footer p {
	max-width: 360px;
}
/* ---------------------------------------------------------------------------------------------------------- 
08 Media queries (using a mobile-first approach) ------------------------------------------------------------
---------------------------------------------------------------------------------------------------------- */

@media only screen and (min-width: 0px) and (max-width: 667px) {
	body, input, textarea {
		font-size:14px;
		line-height: 1.285;
	}
	.nav {
		height:80px;
	}.name, .title, .panel-toggle {
		width: 100%;
	}
	.title {
		text-align: left;
	}
	.panel-toggle {
		text-align: left;
		float:left;
	}
	.panel {
	    top:80px;
	    padding-top:20px;
	}
	.panel .col {
		width:100%;
		margin:0
	}
	.header.active .panel {
		height:100%;
	}
	.gallery a {
		margin:0 4px 4px 0;
	}
	.gallery img {
		width: auto;
		max-height: 60px;
	}
	.single-gallery img {
		max-width:100%;
		height:auto;
/* 		width:auto; */
	}
	.footer {
		font-size: 10px;
	}
	.footer p {
		max-width: 80%;
	}
}

/* Lazy Images */

.mask {
	position: relative;
}
.mask::after {
	pointer-events: none;
	content:"";
	position: absolute;
	top:0;
	left:0;
	right:0;
	bottom:0;
	background:rgba(0,0,0,.01);	
	opacity:1;
	transition:opacity .2s ease;	
	z-index: 1;
}
.fade {
	opacity:0;
	transition:opacity .2s ease;
}
.loaded .fade {
	opacity:1;
}
.loaded::after {
	opacity: 0;
}

/* Video */
.gallery-item-video {
    width: 100%;
    max-width:750px;
}
.embed-container { 
    position: relative; 
    padding-bottom: 56.25%;
    overflow: hidden;
    max-width: 100%;
    height: auto;
} 
.embed-container iframe,
.embed-container object,
.embed-container embed { 
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.index-item-video {
    height:60px;
    width:107px;
}
@media (min-width:668px){	
	.index-item-video {
	    height:200px;
	    width:356px;
	}
}
.index-item-video .embed-container { 
    position: relative; 
    padding-bottom: 56.25%;
    overflow: hidden;
    max-width: 100%;
    height: auto;
}