/*!
Theme Name: SUR&R Images
Theme URI: 
Author:
Author URI: 
Description: WordPress theme for SUR&R Images website.
Version: 1.0
*/

/* ---------------------------------------------------- */
/* HTML5 Reset ---------------------------------------- */
/* ---------------------------------------------------- */
html
{
	font-size: 1em;
	line-height: 1.4;
}

::-moz-selection
{
	background: #b3d4fc;
	text-shadow: none;
}

::selection
{
	background: #b3d4fc;
	text-shadow: none;
}

hr
{
	display: block;
	height: 1px;
	border: 0;
	border-top: 1px solid #ccc;
	margin: 1em 0;
	padding: 0;
}

audio,
canvas,
img,
video { vertical-align: middle; }

fieldset
{
	border: 0;
	margin: 0;
	padding: 0;
}

textarea { resize: vertical; }

/* ---------------------------------------------------- */
/* General -------------------------------------------- */
/* ---------------------------------------------------- */
html, body
{
	font-family: "Roboto Slab", serif;
	font-weight: 400;
	font-style: normal;
	font-size: 0.6153846154;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
}

body
{
	color: #000;
	background: #FFF;
}

#container { position: relative; overflow: hidden; }

header {
	position: relative;
}

header img {
	width: 100%;
}



#categories {
	text-align: center;
}

#categories li {
	display: inline-block;
	
}

#categories li .children {
	position: absolute;
	left: -9999px;
	margin: 0;
	padding: 8px;
	background: #CCC; 
	text-align: left;
}


#categories li .children li {
	display: block;
	padding: 0;
	border-left: 0;
}

#categories li:hover .children {
	left: auto;
}

#intro {
	text-align: center;
}

#intro h1 {
	color: #e51937;
	font-size: 4.7em;
	text-transform: uppercase;
	font-family: "Alfa Slab One", cursive;
	letter-spacing:0.05em;
	margin-bottom: 0;
	line-height: 1em;
}

#intro h2 {
	margin-top: 0;
	font-size: 1.6em;
	font-family: "Alfa Slab One", cursive;
	line-height: 120%;
}

#intro p {
	font-size: 1.3em;
}

li.cat-item {
	list-style: none;
	font-size: 0.9em;
	padding: 0 0.5em;
}

li.cat-item+li.cat-item {
	border-left: 1px solid #000;
}

li.cat-item a {
	color: #000;
}

li.cat-item.current-cat a {
	color: #a30c33;
}

.home li.cat-item:first-child a {
	color: #a30c33;
}

a {
	color: #a30c33;
	font-weight: bold;
	text-decoration: none;
}

#images {
	display: flex;
	flex-wrap: wrap;
	margin-bottom: 32px;
}


.image {
	/*flex: 0 1;*/
	box-sizing:border-box;
	
	margin: 12px;
	
	background: #f8f8f8;
	padding: 12px;
	width: calc(30% - 12px);
}

.image h3 {
	margin-top: 0;
	color: #a30c33;
	margin-bottom: 0.4em;
}

.image img {
	max-width: 100%;
	height: auto;
}

.image form ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.image .selector {
	padding-left: 20px;
}

.image form li {
	font-weight: bold;
	margin: 6px 0;
}

.image form input {
	margin-right: 4px;
}

.image form .button {
	border: 3px solid #b7b7b7;
	background: #a30c33;
	text-transform: uppercase;
	color: #FFF;
	padding: 2px 14px;
	font-family: 'Helvetica', 'Arial', sans-serif;
	font-weight: normal;
	font-size: 0.8em;
	display: none;
}

.image form .button:first-child {
	display: inline-block;
}

.link {
	background-color: #e51937; 
	color: #FFF;
	padding: 32px;
	text-align: center;
	box-sizing: border-box;
}

.link a {
    display: inline-block;
    margin: 0 auto;
    color: #FFF;
    border: 1px solid #FFF;
    text-transform: uppercase;
    padding: 8px 60px;
    font-size: 1.5em;
    font-weight: bold;
    font-family: "Open Sans", sans-serif;
}

footer {
    background-color: #555;
    font-size: 0.8em;
    padding: 8px 0;
    text-align: center;
    color: #FFF;
    font-weight: bold;
}

.pager {
	text-align: center;
	list-style: none;
	padding: 32px;
}

.pager li {
	display: inline;
	list-style: none;
	padding: 0 8px; 
	text-align: center;
}

.pager li+li {
	border-left: 1px solid #000;
}

#pageTitle {
	text-align: center;
}

/* ---------------------------------------------------- */
/* Search ----------------------------------------------- */
/* ---------------------------------------------------- */
#searchform {
	box-sizing: border-box;
	position: relative;
	margin: 0 auto;
	width: auto;
	background: none;
	padding: 0;
	text-align: center;
}

#searchform input[type=text]
{
	background: #FFF url("images/search.png") right 4px center no-repeat;
	background-size: auto 90%;
	padding: 6px 30px 6px 6px;
	margin: 0 auto;
}

@media only screen and (min-width: 320px)
{
	#searchform input[type=text] { width: 60%; }
}

@media only screen and (min-width: 768px)
{
	#searchform input[type=text] { width: auto; }
}

#searchform input { vertical-align: middle; }
.search-results .results article { padding: 30px 20px; }
.search-results .results article:nth-child(even) { background: #e3e0e0; }
.search-results .results article h4 { margin-bottom: 0; }


@media(max-width:589px) {
	html {
		font-size: 12px;
	}
	
	header {
		height: 70px;
	}
	
	header img {
		height: 100%;
		width: auto;
		position: absolute;
		top: 0;
		left: 50%;
		transform: translateX(-50%);
	}
	
	#intro h1 {
		font-size: 2.7em; 
	}
	
	#intro h2 {
		font-size: 1.4em;
	}
	
	#intro p {
		font-size: 1em; 
	}
	
	.link { 
		padding: 16px;
	}
	
	.link a {
		padding: 8px 30px;
		font-size: 1em;
	}
	
	#categories {
		margin-left: 0;
		padding-left: 0;
	}
	
	.image {
		width: calc(50% - 32px);
	}
}

@media(max-width:350px) {
	.image {
		width: 100%;
		padding: 0;
		margin: 24px 0;
		text-align: center;
	}
	
	.image img {
		max-width: 80%;
	}	
}
