/*
Theme Name: 	Bachmann
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
*/

/*
===========================
CONTENTS:

01 Sensible defaults
02 Typography
03 Header
04 Structure
05 Announcement
06 Index 
07 Single
08 Subnav
09 Infinite Scrolling
10 404
11 Media queries
===========================
*/

/* ---------------------------------------------------------------------------------------------------------- 
01 Sensible defaults ----------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------- */
@import url("//hello.myfonts.net/count/2c0a3d");
@import "css/reset.css";
@font-face {font-family: 'EhrhardtMTPro';src: url('webfonts/2C0A3D_0_0.eot');src: url('webfonts/2C0A3D_0_0.eot?#iefix') format('embedded-opentype'),url('webfonts/2C0A3D_0_0.woff') format('woff'),url('webfonts/2C0A3D_0_0.ttf') format('truetype');}
@font-face {font-family: 'EhrhardtMTPro-Italic';src: url('webfonts/2C0A3D_1_0.eot');src: url('webfonts/2C0A3D_1_0.eot?#iefix') format('embedded-opentype'),url('webfonts/2C0A3D_1_0.woff') format('woff'),url('webfonts/2C0A3D_1_0.ttf') format('truetype');}
div,
article,
section,
header,
footer,
nav,
li					{ position:relative; }
.group:after 		{ display:block; height:0; clear:both; content:"."; visibility:hidden; }
::-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 {
	font-size: 19px;
}
body,
input,
textarea {
	font-family: 'EhrhardtMTPro', serif;
	line-height: 1.25;
	/*letter-spacing: 1px;
	word-spacing: -1px;*/
	-moz-font-feature-settings:"onum" 1; 
	-moz-font-feature-settings:"onum=1"; 
	-ms-font-feature-settings:"onum" 1; 
	-o-font-feature-settings:"onum" 1; 
	-webkit-font-feature-settings:"onum" 1; 
	font-feature-settings:"onum" 1;
	color: #25326A;
	background:#fff;
}
h1, 
h2, 
h3,
h4, 
h5, 
h6 {
	font-weight: 400;
}
a {
	text-decoration: none;
	color: #25326A;
	-webkit-transition: color 0.1s ease-in-out, border-bottom 0.1s ease-in-out;
	-moz-transition: color 0.1s ease-in-out, border-bottom 0.1s ease-in-out;
	-o-transition: color 0.1s ease-in-out, border-bottom 0.1s ease-in-out;
	-ms-transition: color 0.1s ease-in-out, border-bottom 0.1s ease-in-out;
}
a:hover {
	text-decoration: none;
	border-bottom: 1px solid #25326A;
}
em, i, italic {
	font-family: 'EhrhardtMTPro-Italic', serif;
	font-style: normal;
}
b, strong {
	font-family: 'Times New Roman', Times, serif;
	font-weight: 700;
}
/* ---------------------------------------------------------------------------------------------------------- 
03 Header ---------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------- */
header {
  margin: 1em 0 1.75em;
}
header nav a {
  font-size: 1.2em;
  text-decoration: none;
}
header h1 {
  font-size: 2em;
  text-align: center;
}
header h1 a:hover {
	text-decoration: none;
	border-bottom: 3px solid #25326A;	
}
ul.menu {
  text-align: center;
  margin-top: 1em;
}
ul.menu li {
  display: inline;
  margin: 0 0.5em;
}
header nav a:hover, li.current-menu-item a {
	text-decoration: none;
	border-bottom: 2px solid #25326A;
}
/* ---------------------------------------------------------------------------------------------------------- 
04 Structure ------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------- */
.wrap {
	width: 100%;
	margin: 4em 0 2em;
}
.inner {
	padding: 0 1em;
}
body.single .inner {
	padding: 0 5em;
}
/* ---------------------------------------------------------------------------------------------------------- 
05 Announcement ---------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------- */
#announcement {
	position: absolute;
	top:1em;
	right: 1em;
	color: tomato;
	background: #fff;
	border: 2px solid tomato;
	max-width: 15em;
	min-width: 8em;
	z-index: 400;
}
.announcement-inner {
	padding: 0.6rem 1rem;
	font-size: 0.8em;
}
.announcement-header {
	border-bottom: 2px solid tomato;
	margin-bottom: 0.8em;
}
#announcement a {
	color: tomato;
}
.close {
	top: 0;
	right: 0;
	position: absolute;
	cursor: pointer;
}
.close:hover, #announcement a:hover {
	color: #444;
}
/* ---------------------------------------------------------------------------------------------------------- 
06 Index ----------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------- */
.item-container {
	float: left;
	margin: 0.5em;
}
.item {
	position: relative;
	display: block;
	height: 15em;
}
.item-thumbnail {
	background: #ffffff; 
	position: absolute;
	width: 15em; 
	height: 15em;
}
.item-thumbnail img {
	position:absolute;
	top:0;
	bottom:0;
	left: 0;  
	right: 0;  
	margin: auto;
	max-width: 15em;
	max-height: 15em;
	height: auto;
	width: auto;
}
.item-title {
	float: left;
	width: 15em; 
	height: 15em;
	background: #25326A;
	display: table; 
	visibility: hidden;
}
.item-title p {
	display: table-cell; 
	vertical-align: middle; 
	text-align: center;
	padding: 1em;
	margin: 0;
	color: #ffffff;
}
.item-container a:hover {
	border-bottom: 0;
}
.item-container a:hover .item-title {
	visibility: visible;
}
.item-thumbnail-video {
	float: left;
	width: 15em; 
	height: 15em;
}
.item-thumbnail-video-inner {
    position: absolute;
    left: 0; right: 0;
    top: 50%;
    margin-top: -28.1%;
    padding-bottom: 56.2%;
    height: 0;
    overflow: visible;
}
.item-thumbnail-video-inner iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.item-thumbnail-video p {
	position:absolute;
	bottom: 0;
	text-align: left;
	visibility: hidden;
	background: #25326A;
	color:#fff;
	display:inline-block;
	padding:0.5em;
}
.item-container a:hover .item-thumbnail-video p {
	visibility: visible;
}
.item-small {
	height: 10em;
}
.item-small .item-thumbnail-video, .item-small .item-thumbnail, .item-small .item-title {
	width: 10em;
	height: 10em;
}
.item-small .item-thumbnail img {
	max-width: 10em;
	max-height: 10em;
}
.item-large {
	height: 24em;
}
.item-large .item-thumbnail-video, .item-large .item-thumbnail, .item-large .item-title {
	width: 24em;
	height: 24em;
}
.item-large .item-thumbnail img {
	max-width: 24em;
	max-height: 24em;
}
.item-huge {
	height: 30em;
}
.item-huge .item-thumbnail-video, .item-huge .item-thumbnail, .item-huge .item-title {
	width: 30em;
	height: 30em;
}
.item-huge .item-thumbnail img {
	max-width: 30em;
	max-height: 30em;
}
/* ---------------------------------------------------------------------------------------------------------- 
07 Single ---------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------- */
.main {
	width: 100%;
	margin: 0 auto 0;
	max-width: 80em;
}
.main h2 {
	font-size: 2em;
	margin: 1em 0 0.5em;
}
.main img {
	max-width: 100%;
	height: auto;
	margin: 0 auto 1em;
	display: block;
}
.image {
	float: none;
	max-width: 100%;
	height:auto;
	margin: 0 auto 1em;
	display:block;
}
.video, .video iframe {
	float: none;
	max-width: 100%;
	margin: 0 auto 1em;
	display:block;
}
.image p {
	font-family: 'EhrhardtMTPro-Italic', serif;
	font-style: normal;
	font-size: 0.8em;
	line-height: 1.25;
	margin: 0.75em 0 0;
	text-align: center;
}
.text {
	margin: 0 auto;
	max-width: 46em;
	clear: both;
}
.text p {
	margin-bottom: 1em;
}
.text small {
	font-size: 0.8em;
	display: block;
}
.text blockquote {
	margin: 0 1em 1em;
}
.columns { 
	overflow:hidden;
	padding-right:5em;
	margin-bottom: 1em;
}
.columns p {
	margin-bottom: 0;
}
.columns a {
	border-bottom: 1px solid #ababab;
}
.columns h4 {
	margin: 0.5em 0 0.5em 5em;
}
.col-r { 
	margin: 0 -5em 0 auto;
	width: 100%;
	float:right;
}
.col-l { 
	width: 4em; 
	float: left; 
}
/* ---------------------------------------------------------------------------------------------------------- 
08 Subnav ---------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------- */
.secondary {
	font-size: 0.8em;
}
.secondary.fade-in a {
	font-family: 'EhrhardtMTPro-Italic', serif;
	font-style: normal;	
}
.fade-in {
	margin-top: 4em;
	transition: ease-in-out;
	-moz-transition: ease-in-out;
	-webkit-transition: ease-in-out;
}
.hidden {
	display: none;
}
.scroll {
	position: fixed;
	left: 1em;
	top: 12.5em;
	z-index: 400;
	width: 80px;
	display: block;
}
.scroll span {
	position: absolute;
	left:0;
	width: 80px;
}
.scroll a {
	display: inline;
}
/* ---------------------------------------------------------------------------------------------------------- 
09 Infinite Scrolling ---------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------- */
.js .navigation {
	display:none;
}
#infscr-loading {
	position: fixed;
	bottom: 1em;
	left: 1em;
}
#infscr-loading img {
	width:2em;
	height:2em;
}
/* ---------------------------------------------------------------------------------------------------------- 
10 404 ------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------- */
body.error404 {
	text-align: center;
}
/* ---------------------------------------------------------------------------------------------------------- 
11 Media queries --------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------- */
@media only screen and (min-width: 960px) and (max-width: 1280px) {
}
@media only screen and (min-width: 768px) and (max-width: 959px) {
}
@media only screen and (min-width: 0px) and (max-width: 767px) {
	body {
		font-size: 18px;
	}
	body,
	input,
	textarea {
		letter-spacing: 0;
		word-spacing: 0;
	}
	header nav a {
	  font-size: 1em;
	}
	ul.menu li {
		text-align: left;
		display: block;
		margin-left: 1em;
	}
	header h1, .main h2 {
	  font-size: 1.5rem;
	}
	header h1 {
		text-align: left;
		margin-left: 0.75em;
	}
	header h1 a:hover, header nav a:hover, li.current-menu-item a {
		border-bottom: 1px solid #25326A;
	}
	.wrap {
		margin: 1em 0 2em;
	}
	.inner {
		padding: 0 1em;
	}
	.columns { 
		padding-right:3em;
	}
	.columns h4 {
		margin-left: 3em;
	}
	.col-r { 
		margin: 0 -3em 0 auto;
	}
	.col-l { 
		width: 2.5em; 
	}
	.scroll {
		display: none;
	}
	.item-small, .item-large, .item-huge {
		height: 15em;
	}
	.item-small .item-thumbnail-video, .item-small .item-thumbnail, .item-small .item-title,
	.item-large .item-thumbnail-video, .item-large .item-thumbnail, .item-large .item-title,
	.item-huge .item-thumbnail-video, .item-huge .item-thumbnail, .item-huge .item-title {
		width: 15em;
		height: 15em;
	}
	.item-small .item-thumbnail img, .item-large .item-thumbnail img, .item-huge .item-thumbnail img {
		max-width: 15em;
		max-height: 15em;
	}
}
@media only screen and (min-width: 0px) and (max-width: 480px) {
	#announcement {
		position: relative;
		top:auto;
		right: auto;
		margin-left: 1em;
	}
	.inner {
		padding: 0 1em;
	}
}