/*
Theme Name: Ethnos360 Theme
Description: Standard WordPress theme for the Ethnos360 Brand
Author: Ethnos360 (Stephen Narwold)
Template: genesis
Version: 1.3.9
*/

/*
Break points:
0-639: Single Column Mode, full mobile menu mode
640-900: Mobile nav menu mode, small right menu stays visible
901-1000: Main menu smaller font
0-1016: Fluid content width
> 1016: Fixed content width at 1000px
 */
@import url("din/din.css");
@import url("css/buttons.css");

/* ## Box Sizing
--------------------------------------------- */

input {
	-webkit-appearance: none;
	border-radius:0;
	-webkit-border-radius: 0;
	-moz-border-radius: 0;
}

html,
input[type="search"]{
	-webkit-box-sizing: border-box;
	-moz-box-sizing:    border-box;
	box-sizing:         border-box;
}

*,
*:before,
*:after {
	box-sizing: inherit;
}

figure, iframe {
	max-width: 100%;
}

/* ## Float Clearing
--------------------------------------------- */

.author-box:before,
.clearfix:before,
.entry:before,
.entry-content:before,
.nav-primary:before,
.nav-secondary:before,
.pagination:before,
.site-container:before,
.site-footer:before,
.site-header:before,
.site-inner:before,
.widget:before,
.wrap:before {
	content: " ";
	display: table;
}

.author-box:after,
.clearfix:after,
.entry:after,
.entry-content:after,
.nav-primary:after,
.nav-secondary:after,
.pagination:after,
.site-container:after,
.site-footer:after,
.site-header:after,
.site-inner:after,
.widget:after,
.wrap:after {
	clear: both;
	content: " ";
	display: table;
}

.clear-both {
	clear: both;
}

/* ## Gutenberg fixes
--------------------------------------------- */
.wp-block-gallery li.blocks-gallery-item {
	display: block;
}
.wp-block-gallery li.blocks-gallery-item figcaption {
	left: 0;
}

/* ## Gutenberg friendly rules
--------------------------------------------- */
.has-background.has-cream-background-color,
.has-cream-background-color {
	background-color: #d4bf93;
}
.has-text-color.has-cream-color,
.has-text-color.has-cream-color:hover {
	color: #d4bf93;
}

.has-background.has-clay-background-color,
.has-clay-background-color {
	background-color: #897863;
}
.has-text-color.has-clay-color,
.has-text-color.has-clay-color:hover {
	color: #897863;
}

.has-background.has-black-background-color,
.has-black-background-color {
	background-color: #000000;
}
.has-text-color.has-black-color,
.has-text-color.has-black-color:hover {
	color: #000000;
}

.has-background.has-white-background-color,
.has-white-background-color {
	background-color: #ffffff;
}
.has-text-color.has-white-color,
.has-text-color.has-white-color:hover {
	color: #ffffff;
}

.has-background.has-brown-background-color,
.has-brown-background-color {
	background-color: #4e3629;
}
.has-text-color.has-brown-color,
.has-text-color.has-brown-color:hover {
	color: #4e3629;
}

.has-background.has-red-background-color,
.has-red-background-color {
	background-color: #ac2b37;
}
.has-text-color.has-red-color,
.has-text-color.has-red-color:hover {
	color: #ac2b37;
}

.has-background.has-blue-background-color,
.has-blue-background-color {
	background-color: #366884;
}
.has-text-color.has-blue-color,
.has-text-color.has-blue-color:hover {
	color: #366884;
}

.has-background.has-orange-background-color,
.has-orange-background-color {
	background-color: #c4622d;
}
.has-text-color.has-orange-color,
.has-text-color.has-orange-color:hover {
	color: #c4622d;
}

.has-background.has-green-background-color,
.has-green-background-color {
	background-color: #658237;
}
.has-text-color.has-green-color,
.has-text-color.has-green-color:hover {
	color: #658237;
}

.has-background.has-medium-blue-background-color,
.has-medium-blue-background-color {
	background-color: #6eb1de;
}
.has-text-color.has-medium-blue-color,
.has-text-color.has-medium-blue-color:hover {
	color: #6eb1de;
}



/* ## Typographical Elements
--------------------------------------------- */

html {
	font-size: 62.5%; /* 10px browser default */
}

/* Chrome fix */
body > div {
	font-size: 1.8rem;
}

body {
	background-color: #fff;
	color: #333;
	font-family: 'Merriweather', serif;
	font-size: 18px;
	font-weight: 400;
	line-height: 1.625;
	margin: 0;
}

a,
a *,
a:after,
a:before,
button,
input:focus,
input[type="button"],
input[type="reset"],
input[type="submit"],
textarea:focus,
.button,
.gallery img,
ul {
	-webkit-transition: all 0.3s ease-in-out;
	-moz-transition:    all 0.3s ease-in-out;
	-ms-transition:     all 0.3s ease-in-out;
	-o-transition:      all 0.3s ease-in-out;
	transition:         all 0.3s ease-in-out;
}

a {
	color: #ac2b37;
	text-decoration: none;
}
a:hover,
a:focus {
	text-decoration: underline;
}
h1 a:hover, h1 a:focus,
h2 a:hover, h2 a:focus,
h3 a:hover, h3 a:focus,
h4 a:hover, h4 a:focus,
h5 a:hover, h5 a:focus,
h6 a:hover, h6 a:focus {
	text-decoration: none;
}

code {
	background-color: #ddd;
	padding-left: 7px;
	padding-right: 7px;
	font-style: normal;
}

/* Buttons: Imported at the top of the file */


p {
	margin: 0 0 28px;
	padding: 0;
}

hr {
	border: 0;
	border-collapse: collapse;
	border-top: 1px solid #ddd;
	clear: both;
	margin: 1em 0;
}

b,
strong {
	font-weight: 700;
}

cite,
em,
i {
	font-style: italic;
}

blockquote {
	padding-left: 40px;
	margin: 40px 40px 40px 10px;
	position: relative;
	border-left: 4px solid rgba(0, 0, 0, 0.2);
}

blockquote::before {
	content: "\201C";
	display: block;
	font-size: 240px;
	height: 0;
	position: absolute;
	top: -90px;
	z-index: -0;
	opacity: 0.2;
	font-family: "Times New Roman", serif;
}

.wp-block-pullquote {
	border-top: 4px solid;
	border-bottom: 4px solid;
}

.wp-block-pullquote blockquote {
	border: none;
	margin: initial;
	padding: initial;
}

.wp-block-pullquote blockquote:before {
	display: none;
}


.centered-text {
	text-align: center;
	margin-left: auto;
	margin-right: auto;
}
.centered-text .button {
	margin: 0 auto;
}

.fine-print {
	font-size: 12px;
}


/* ## Forms
--------------------------------------------- */

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="url"],
.wpcf7 input[type="number"],
.wpcf7 input[type="date"],
.wpcf7 textarea,
#mc_embed_signup input[type="text"],
#mc_embed_signup input[type="email"],
#mc_embed_signup input[type="tel"],
#mc_embed_signup input[type="url"],
#mc_embed_signup input[type="number"],
#mc_embed_signup input[type="date"],
#mc_embed_signup textarea,
#mc_signup input[type="text"],
#mc_signup input[type="email"],
#mc_signup input[type="tel"],
#mc_signup input[type="url"],
#mc_signup input[type="number"],
#mc_signup input[type="date"],
#mc_signup textarea,
input#s2email,
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea{
	background: #FFF;
	border: 1px solid rgba( 0, 0, 0, .25 );
	position: relative;
	height: auto;
	padding: 13px;
	max-width: 100%;
	width: 450px;
}

input[type="checkbox"] {
	-webkit-appearance: checkbox;
}
input[type="radio"] {
	-webkit-appearance: radio;
}

.comment-form textarea {
	display: block;
	width: 100%;
	max-width: 900px;
}
.comment-form p.comment-form-author,
.comment-form p.comment-form-email,
.comment-form p.comment-form-url {
	width: 49%;
	max-width: 100%;
	padding: 5px;
	display: inline-block;
}

.comment-form p.comment-form-author input,
.comment-form p.comment-form-email input,
.comment-form p.comment-form-url input {
	width: 100%;
}

.wpcf7 input:focus,
.wpcf7 textarea:focus,
#mc_embed_signup input:focus,
#mc_embed_signup textarea:focus,
#mc_signup input:focus,
#mc_signup textarea:focus {
	border: 1px solid rgba( 0, 0, 0, .5 );
}

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

form#form_donate {
	padding: 20px;
	background-color: #d4bf93;
	border-radius: 7px;
	-webkit-border-radius: 7px;
	position:relative;
	margin-bottom: 10px;
}

form#form_donate .simple-form-holder {
	display: flex;
	width: 100%;
	flex-wrap:nowrap;
	justify-content:center;
	position:relative;
	margin-bottom: 5px;
}

form#form_donate .simple-form-holder #amount{
	background-color: #fff;
	color: #979696;
	border: none;
	height: 45px;
	flex-basis: 100px;
	width:auto;
	font-size: 16px;
	font-family: "DinPro", Arial, sans-serif;
	padding: 8px 8px 8px 40px;
	flex-grow: 1;
	flex-shrink: 1;
	border-radius: 5px 0 0 5px;
	margin: 0;
	overflow:hidden;
}
form#form_donate .simple-form-holder::before {
	content: '\f155';
	display: block;
	position: absolute;
	box-sizing: border-box;
	top: 6px;
	left: 14px;
	font-family: 'FontAwesome', serif;
	font-size: 20px;
	color: #979696;
}

form#form_donate .simple-form-holder .submit {
	display: block;
	height: 45px;
	flex-basis:120px;
	flex-grow:0;
	flex-shrink:0;
	width: auto;
	background-color: #658237;
	text-transform: uppercase;
	font-size: 16px;
	font-family: "DinPro", Arial, sans-serif;
	margin: 0;
	border-radius: 0 5px 5px 0;
}

form#form_donate small {
	font-size: 14px;
}

select#giving-country {
	border-color: #d4bf93;
	padding: 5px;
	border-radius: 4px;
	margin-top: 30px;
}

body.page-template-template_donate div.printfriendly {
	display:none;
}

@media only screen and (max-width: 375px) {
	form#form_donate .simple-form-holder {
		display:block;
	}
	form#form_donate .simple-form-holder #amount{
		display: block;
		float: none;
		border-radius: 5px;
		margin: 0 0 10px;
		width: 100%;
	}

	form#form_donate .simple-form-holder .submit {
		display: block;
		width: 100%;
		border-radius: 5px 5px;
	}
}

@media only screen and (max-width: 475px) {
	.comment-form p.comment-form-author,
	.comment-form p.comment-form-email,
	.comment-form p.comment-form-url {
		width: 100%;
	}
}


/* ## Headings
--------------------------------------------- */

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: DinPro, Arial, 'Helvetica Neue', Helvetica, sans-serif;
	font-weight: 700;
	line-height: 1.2;
	margin: 0 0 10px;
}

h1 {
	font-size: 36px;
}

h2 {
	font-size: 30px;
}

h3 {
	font-size: 24px;
}

h4 {
	font-size: 20px;
}

.sidebar-primary h4.widget-title {
	text-transform: uppercase;
}

h5 {
	font-size: 18px;
}

h6 {
	font-size: 16px;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
	color: #ac2b37;
}

/* ## Wraps
--------------------------------------------- */
.wrap, .content-sidebar-wrap {
	max-width: 1000px;
	position: relative;
	margin: 0 auto;
	padding: 0 15px;
}

.e3-full-width {
	width: 100vw;
	position: relative;
	margin-left: -50vw;
	left: 50%;
}

.e3-background-light {
	background-color: #d4bf93;
}

.e3-background-medium {
	background-color: #897863;
	color: #fff;
}

.e3-background-dark {
	background-color: #4e3629;
	color: #fff;
}

.e3-background-accent {
	background-color: #c4622d;
}


/*@media only screen and (max-width: 800px) {
	.wrap, .content-sidebar-wrap {
		max-width: 600px;
	}
}*/


/* ## Columns
--------------------------------------------- */

.e3-standard-column-1-2,
.e3-standard-column-1-3,
.e3-standard-column-2-3,
.e3-standard-column-1-4,
.e3-standard-column-1-5,
.e3-standard-column-1-6 {
	float: left;

}
.e3-standard-column-1-2 {
	width: 49%;
	padding-left: 10px;
	padding-right: 10px;
}
.e3-standard-column-1-3 {
	width: 33%;
	padding-left: 8px;
	padding-right: 8px;
}
.e3-standard-column-2-3 {
	width: 66%;
	padding-left: 8px;
	padding-right: 8px;
}
.e3-standard-column-1-4 {
	width: 24.5%;
	padding-left: 7px;
	padding-right: 7px;
}
.e3-standard-column-1-5 {
	width: 19.5%;
	padding-left: 5px;
	padding-right: 5px;
}
.e3-standard-column-1-6 {
	width: 16%;
	padding-left: 3px;
	padding-right: 3px;
}

@media only screen and (max-width: 639px) {

	.e3-standard-column-1-2,
	.e3-standard-column-1-3,
	.e3-standard-column-2-3,
	.e3-standard-column-1-4,
	.e3-standard-column-1-5,
	.e3-standard-column-1-6 {
		float: none;
		width: 100%;
		max-width: 450px;
		margin-left: auto;
		margin-right: auto;
	}
}

/* ## Images
--------------------------------------------- */
img {
	max-width: 100%;
	height: auto;
	border: none;
}

.alignleft, img.alignleft {
	margin: 10px 20px 10px 0;
	display: inline;
	float: left;
}

.alignright, img.alignright {
	margin: 10px 0 10px 20px;
	display: inline;
	float: right;
}

.aligncenter, img.aligncenter {
	margin: 0 auto;
	display: block;
	clear: both;
}

figure.wp-caption {
	padding: 5px;
	border: 1px solid #ccc;
}
figure.wp-caption .wp-caption-text {
	font-size: 80%;
	text-align: center;
}

a.full-attachment-link {
	display: block;
	text-align: center;
}

.gallery {
	margin-left: -0.5em;
	margin-right: -0.5em;
}

.gallery:after {
	display: table;
	content: "";
	clear: both;
}

.gallery-item {
	margin: 0;
	float: left;
	padding: 0.5em;
}

.gallery-item img {
	width: 100%;
}

.gallery-columns-1 .gallery-item {
	width: 100%;
	float: none;
}
.gallery-columns-2 .gallery-item {
	width: 50%
}
.gallery-columns-3 .gallery-item {
	width: 33.3333%
}
.gallery-columns-4 .gallery-item {
	width: 25%
}
.gallery-columns-5 .gallery-item {
	width: 20%
}
.gallery-columns-6 .gallery-item {
	width: 16.6667%
}
.gallery-columns-7 .gallery-item {
	width: 14.2857%
}
.gallery-columns-8 .gallery-item {
	width: 12.5%
}
.gallery-columns-9 .gallery-item {
	width: 11.1111%
}

.gallery-columns-2 .gallery-item:nth-child(2n+1),
.gallery-columns-3 .gallery-item:nth-child(3n+1),
.gallery-columns-4 .gallery-item:nth-child(4n+1),
.gallery-columns-5 .gallery-item:nth-child(5n+1),
.gallery-columns-6 .gallery-item:nth-child(6n+1),
.gallery-columns-7 .gallery-item:nth-child(7n+1),
.gallery-columns-8 .gallery-item:nth-child(8n+1),
.gallery-columns-9 .gallery-item:nth-child(9n+1) {
	clear: left;
}

/* ## Headers
--------------------------------------------- */

.e3-header-background {
	background: #d4bf93 center center;
	background-size: cover;
}

header.site-header {
	overflow: hidden;
}

/* Standard Header */
header .standard-header-wrap {
	height: 300px;
}

header .standard-header-wrap .e3-image-overlay, header .standard-header-wrap .e3-image-overlay .wrap {
	height: 100%;
}

header .standard-header-wrap .e3-image-overlay {
	background-color: rgba(0,0,0,0.2);
}

header .standard-header-wrap h1 {
	color: #fff;
	position: absolute;
	left: 20px;
	bottom: 20px;
	font-size: 36px;
}

body.page header .standard-header-wrap h1,
body.blog header .standard-header-wrap h1,
body.archive header .standard-header-wrap h1 {
	font-size: 72px;
	text-transform: uppercase;
}

/* Front Page Header */
.front-page-header-wrap {
	height: 470px;
}
.front-page-header-wrap .e3-image-overlay {
	height: 100%;
}
.front-page-header-wrap .e3-image-overlay .wrap {
	height: 100%;
	display: flex;
	justify-content:center;
	align-items:center;
}

.front-page-header-wrap .e3-title-tagline-container {
	position: absolute;
	bottom: 40px;
	left: 15px;
	color: #fff;
}

.e3-page-banner {
	color: #fff;
	text-align: center;
	padding: 40px 20px;
	max-width: 100%;
	max-height: 100%;
	overflow: hidden;
}
.e3-page-banner-buttons {
	padding-top: 15px;
}

.e3-page-banner-buttons.e3-buttons-2 a.button {
	display: inline-block;
	max-width: 48%;
}
.e3-page-banner-buttons.e3-buttons-2 a.button.second-button {
	margin-left: 2%;
}


.e3-page-banner-text h1 {font-size: 50px;}
.e3-page-banner-text h2 {font-size: 40px;}
.e3-page-banner-text h3 {font-size: 30px;}
.e3-page-banner-text h4 {font-size: 25px;}

@media only screen and (max-width: 650px) {
	.e3-page-banner-buttons.e3-buttons-2 a.button {
		display: block;
		max-width: 100%;
		margin: 0 auto;
	}
	.e3-page-banner-buttons.e3-buttons-2 a.button.second-button {
		margin: 10px auto 0;
	}
	.e3-page-banner-text {
		font-size: 1.6rem;
	}
	body.page header .standard-header-wrap h1, .e3-page-banner-text h1 {font-size: 40px;}
	.e3-page-banner-text h2 {font-size: 30px;}
	.e3-page-banner-text h3 {font-size: 25px;}
	.e3-page-banner-text h4 {font-size: 20px;}

}

/* Country Menu */
.country-menu {
	position: absolute;
	top: 10px;
	left: 10px;
	background-color: rgba(78,54,41, 0.7);
	border-radius: 5px;
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	color: #fff;
	font-family: DinPro, Arial, sans-serif;
	line-height: 24px;
	white-space: nowrap;
	display: inline-block;

}

.country-menu .country-menu-inner {
	padding: 5px 20px;
	cursor: pointer;
}
.country-menu .country-menu-inner::after {
	content: '\f0d8';
	display: block;
	float: right;
	padding-left: 20px;
	font-family: FontAwesome, serif;
}
.country-menu.closed .country-menu-inner::after {
	content: '\f0d7';
}

.country-menu img {
	display: block;
	float: left;
	margin-right: 10px;
	opacity: .8;
}

.country-menu ul {
	list-style-type: none;
	padding: 0 10px;
	width: auto;
	margin: 10px 0;
}
.country-menu.closed ul {
	overflow: hidden;
	height: 0;
	margin: 0;
}
.country-menu a {
	color: #fff;
	opacity: 0.7;
}
.country-menu a:hover {
	text-decoration: none;
	opacity: 1;
}
.country-menu a:hover img {
	text-decoration: none;
	opacity: 1;
}

/* ## Main Menu
--------------------------------------------- */

nav {
	width: 100%;
	position: relative;
	color: #fff;
	height: 80px;
	z-index: 3000;
}
nav:before {
	position:absolute;
	z-index: -1;
	top: 0;
	left: 0;
	width: 100%;
	height: 80px;
	content: "";
	background-color: #000;
}

/*#wrap.fixed-nav nav {
	position: fixed;
	top: 0;
	left: 0;
}
#wrap.stationary-nav nav {
	position: absolute;
	left: 0;
}*/
body.admin-bar #wrap.fixed-nav nav {
	top: 32px;
}
/*#wrap::before, #wrap.stationary-nav::before {
	!* To push the content down below the header *!
	content: ' ';
	height: 80px;
	position: static;
	display: block;
	width: 100%;
	background-color: transparent;
}
body.admin-bar #wrap.fixed-nav::before, body.admin-bar #wrap.stationary-nav::before {
	height: 112px;
}*/

nav ul, nav li {
	float: left;
	list-style-type: none;
	margin: 0;
	padding: 0;
}

nav a {
	color: #fff;
	font-family: DinPro, Arial, sans-serif;
	font-size: 14px;
}
nav a:hover {
	text-decoration: none;
}

nav ul.genesis-nav-menu {
	margin-left: 140px;
}

nav ul.genesis-nav-menu li {
	position: relative;
}

nav ul.genesis-nav-menu > li > a {
	display: block;
	line-height: 29px;
	height: 80px;
	float: left;
	padding: 25px 9px 0 9px;
	text-transform: uppercase;
	cursor: pointer;
}
nav ul.genesis-nav-menu > li > a:hover {
	background-color: #777;
}

nav ul.genesis-nav-menu ul.sub-menu {
	position: absolute;
	overflow: hidden;
	top: 80px;
	max-height: 0;
	padding: 0 10px;
	background-color: #4e3629;
	z-index: 5;
	width: 150px;
}
nav ul.genesis-nav-menu ul.sub-menu ul.sub-menu {
	position: relative;
	overflow: hidden;
	max-height: 0;
	top: 0;
	padding: 0 10px;
	background-color: #4e3629;
	z-index: 5;
	width: 150px;
}

nav ul.genesis-nav-menu ul.sub-menu li {
	float: none;
	line-height: 17px;
}

nav ul.genesis-nav-menu ul.sub-menu li a {
	color: rgba(255, 255, 255, 0.7);
	font-weight: 100;
	padding: 5px 0;
	display: block;
}
nav ul.genesis-nav-menu ul.sub-menu li a:hover {
	color: #fff;
}

nav .logo {
	/* holds the place for the absolutely positioned logo link */
	position: relative;
	padding: 0;
	width: 125px;
	margin-right: 15px;
	height: 100%;
}
nav .logo a {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 4;
}
nav .logo a img {
	max-height: 110px;
	max-width: 125px;
	width: auto;
	height: auto;
}

img.is-circle {
	border-radius: 1000px;
	-webkit-border-radius: 1000px;
	-moz-border-radius: 1000px;
	background-color: #000000;
}

ul#nav-menu-right {
	float: right;
	margin-top: 25px;
}

ul#nav-menu-right li {
	margin-left: 5px;
}

form.search-form {
	width: 152px;
	overflow: hidden;
	background-color: #333;
	border-radius: 50px;
	-webkit-border-radius: 50px;
	-moz-border-radius: 50px;
	height: 32px;
	border: 1px solid #000;
}

form.search-form input[type="search"] {
	-webkit-appearance: none;
	float: left;
	display: block;
	width: 118px;
	height: 32px;
	border: none;
	padding-left: 5px;
	font-family: DinPro, Arial, 'Helvetica Neue', Helvetica, sans-serif;
}

form.search-form input[type="submit"] {
	width: 30px;
	height: 30px;
	max-width: none;
	padding: 0;
	border: none;
	display: inline;
	background-color: #333;
	font-family: FontAwesome, serif;
	color: #fff;
	cursor: pointer;
}

ul#nav-menu-right li a {
	text-align: center;
	display: block;
	background-color: #333;
	width: 30px;
	height: 30px;
	padding-top: 4px;
	overflow: hidden;
	border-radius: 3px;
	-webkit-border-radius: 3px;
	-moz-border-radius: 3px;
}

ul#nav-menu-right li a:hover {
	background-color: #777;
}

ul#nav-menu-right li a i {
	font-size: 22px;
}

#nav-mobile-menu-button {
	display: none;
	width: 30px;
	height: 30px;
	font-family: FontAwesome, serif;
	text-align: center;
	float: right;
	font-size: 35px;
	margin-top: 20px;
	line-height: 40px;
	margin-left: 15px;
	cursor: pointer;
}

a.offset-anchor:before {
	content: "";
	display: block;
	height: 80px; /* fixed header height*/
	margin: -80px 0 0 0; /* negative fixed header height */
}

nav ul.genesis-nav-menu ul li.menu-item-has-children:after {
	content: '\f0fe';
	font-family: FontAwesome, serif;
	position: absolute;
	right: 0;
	top: 0;
	padding: 5px 0 5px 10px;
	cursor: pointer;
}

nav ul.genesis-nav-menu ul li.menu-item-has-children.submenu-open:after {
	content: '\f146';
}
nav ul.genesis-nav-menu ul ul li.menu-item-has-children:after {
	display: none;
}

/* ## Main Menu Mobile Rules
--------------------------------------------- */

@media only screen and (max-width: 1000px) {
	nav a {
		font-size: 12px;
	}
	nav ul.genesis-nav-menu > li > a {
		padding: 25px 5px 0 9px;
	}
}

@media only screen and (max-width: 900px) {
	#nav-mobile-menu-button {
		display: block;
	}

	nav .genesis-nav-menu {
		position: absolute;
		top: 0;
		left: 100vw;
		right: auto;
		background-color: #000;
		padding: 0;
		border-left: 3px solid #777;
		width: 220px;
		z-index: 3;
		max-height: 100vh;
		overflow-y: auto;
		overflow-x: hidden;
		display: none;
	}
	nav .genesis-nav-menu.mobile-menu-open {
		left: auto;
		right: 0;
		display: block;
	}
	nav .genesis-nav-menu li, nav ul.genesis-nav-menu > li > a {
		float: none;
		height: auto;
		padding: 0;
	}
	nav ul.genesis-nav-menu > li > a {
		padding: 10px 15px;
		margin: 0
	}
	nav ul.genesis-nav-menu > li {
		border-bottom: 1px solid #777;
	}
	nav ul.genesis-nav-menu li.menu-item-has-children:after {
		content: '\f0fe';
		font-family: FontAwesome, serif;
		position: absolute;
		right: 0;
		top: 0;
		padding: 10px 5px 10px 15px;
		cursor: pointer;
	}
	nav ul.genesis-nav-menu ul li.menu-item-has-children:after {
		right: -5px;
	}

	nav ul.genesis-nav-menu li.menu-item-has-children.submenu-open:after {
		content: '\f146';
	}
	nav ul.genesis-nav-menu ul ul li.menu-item-has-children:after {
		display: none;
	}
	nav ul.genesis-nav-menu ul.sub-menu {
		position: static;
		float: none;
		width: 100%;
	}
	nav ul.genesis-nav-menu ul.sub-menu ul.sub-menu {
		padding-right: 0 !important;
	}
	nav ul.genesis-nav-menu ul.sub-menu ul.sub-menu ul.sub-menu {
		display: none;
	}

}

@media only screen and (max-width: 639px) {
	nav .genesis-nav-menu:before {
		content: ' ';
		display: block;
		height: 100px;
	}
	nav .genesis-nav-menu {
		max-height: 100vh;
	}

	ul#nav-menu-right {
		position: absolute;
		top: 0;
		z-index: 5;
		right: -220px;
		background-color: #000;
		padding: 0;
		border-left: 3px solid #777;
		border-bottom: 1px solid #777;
		width: 220px;
		height: 100px;
		margin: 0;
		display: none;
	}
	ul#nav-menu-right.mobile-menu-open {
		right: 0;
		white-space: nowrap;
		display: block;
	}
	ul#nav-menu-right li {
		padding: 10px 5px 10px 0;
		display: inline-block;
		float: right;
	}
	ul#nav-menu-right li.nav-search {
		display: block;
		float: none;
	}

}


/* ## Content
--------------------------------------------- */

.content-sidebar-wrap {
	margin-top: 30px;
}

body.content main.content {
	max-width: 800px;
	margin: 0 auto;
}
body.content-sidebar main.content, body.content-sidebar-sidebar main.content {
	width: 66%;
	float: left;
}
body.sidebar-content main.content, body.sidebar-content-sidebar main.content, body.sidebar-sidebar-content main.content {
	width: 66%;
	float: right;
}

body.single-post .entry-header {
	opacity: 0.7;
}

body.single-post .entry-footer {
	margin-bottom: 20px;
}

.entry-categories,
.entry-tags {
	display: block;
}

/* Navigation Links */
.post-nav:after {
	content: ' ';
	display: block;
	clear: both;
}
.post-nav .previous-link {
	float: left;
}
.post-nav .next-link {
	float: right;
}

.gallery-nav {
	width: 100%;
	clear: both;
}

/* Dividers */
div.e3-divider {
	clear: both;
	border-top: 1px solid #000;
	width: 100%;
	position: relative;
	margin: 20px 0;
}
div.e3-divider.no-clear {
	clear: none;
}
div.e3-divider.double-margin {
	margin: 40px 0;
}
div.e3-divider:after,
div.e3-divider:before {
	content:  ' ';
	background-color:  #000;
	width:  7px;
	height:  7px;
	display:  block;
	border-radius: 7px;
	-webkit-border-radius: 7px;
	-moz-border-radius: 7px;
	position: absolute;
	top: -4px;
}
div.e3-divider:before {
	left: -4px;
}
div.e3-divider:after {
	right: -4px;
}
div.e3-divider.only-single-column {
	display: none;
}

article.e3-post-list-item {
	height: 100px;
	overflow: hidden;
	margin-bottom: 20px;
	position: relative;
	padding-left: 170px;
}

article.e3-post-list-item .image-container {
	display: block;
	width: 150px;
	position: absolute;
	left: 0;
	top: 0;
}
article.e3-post-list-item.post-type-e3_video .image-container:after {
	display: block;
	position: absolute;
	left: 0;
	top: 10%;
	width: 100%;
	opacity: .75;
	content: '\f144';
	font-family: FontAwesome, serif;
	text-align: center;
	color: #fff;
	font-size:50px;
}
article.e3-post-list-item.post-type-e3_video .image-container:hover:after {
	opacity: 1;
}

article.e3-post-list-item h2 {
	font-size: 20px;
	margin-bottom: 5px;
}

article.e3-post-list-item p {
	font-size: 14px;
}

@media only screen and (min-width: 720px) {
	body.full-width-content .e3-post-list.two-column article.e3-post-list-item {
		max-width: 49%;
		display: inline-block;
	}
	body.full-width-content .e3-post-list.two-column article.e3-post-list-item:nth-child(2n-1) {
		max-width: 51%;
		padding-right: 10px;
	}
}
@media only screen and (max-width: 400px) {
	article.e3-post-list-item {
		padding-left: 110px
	}
	article.e3-post-list-item .image-container {
		width: 100px;
		top: 12px
	}
	article.e3-post-list-item.post-type-e3_video .image-container:after {
		font-size: 35px;
	}
}


/* ## Comments
--------------------------------------------- */
ol.comment-list {
	margin: 0 0 20px 0;
	padding: 0;
}
ol.comment-list li {
	list-style-type: none;
	padding: 0;
}

ol.comment-list .comment-header {
	padding: 5px;
	background-color: #eee;
	color: #000;
	font-family: "DinPro", Arial, sans-serif;
	line-height: 24px;
	margin-bottom: 0;
}
ol.comment-list .comment-header:after {
	content: ' ';
	display: block;
	clear: both;
	width: 0;
	height: 0;
}

ol.comment-list .comment-header p.comment-author {
	margin: 0;
}

ol.comment-list .comment-header p.comment-author img.avatar {
	float: left;
	margin-right: 10px;
}

ol.comment-list .comment-header p.comment-author .says {
	display: none;
}

ol.comment-list .comment-header p.comment-meta {
	margin: 0;
}

ol.comment-list .comment-content {
	padding: 10px;
	margin-bottom: 10px;
}


/* ## Sidebar
--------------------------------------------- */

body.content-sidebar aside.sidebar-primary, body.content-sidebar-sidebar aside.sidebar-primary {
	float: right;
	width: 30%;
}
body.sidebar-content aside.sidebar-primary, body.sidebar-content-sidebar aside.sidebar-primary, body.sidebar-sidebar-content aside.sidebar-primary {
	float: left;
	width: 30%;
}

.sidebar ul {
	padding: 0;
	margin: 0;
	list-style-type: none;
}
.sidebar ul li {
	font-size: 14px;
	padding-left: 14px;
	margin-left: 0;
	padding-bottom: 5px
}
.sidebar ul li:before {
	font-family: FontAwesome, serif;
	display: inline-block;
	width: 20px;
	margin-left: 0;
	content: "\f054";
	font-size: 11px;
	color: #AC2b37;
}

.sidebar .widget-wrap {
	padding-bottom: 30px;
	margin-bottom: 30px;
	border-bottom: 1px solid #ddd;
}

.sidebar section.widget:last-child .widget-wrap {
	border-bottom: transparent;
}

.sidebar .tagcloud a {
	width: auto;
	display: inline-block;
	white-space: nowrap;
	max-width: 100%;
	text-overflow: ellipsis;
	overflow: hidden;
	text-transform: none;
	padding: 5px;
}

.sidebar .widget-wrap .calendar_wrap table {
	margin: 0 auto;
}

aside.sidebar ul.instagram-pics {
	list-style-type: none;
}

aside.sidebar ul.instagram-pics li {
	list-style-type: none;
	margin: 0;
	padding: 0;
}

aside.sidebar ul.instagram-pics li:before {
	display: none;
}

/* Accordion Menu */
.e3-accordion-menu ul li {
	position: relative;
}

.e3-accordion-menu > ul > li {
	padding: 5px 0;
	border-bottom: 1px solid #ccc;
	text-transform: uppercase;
	font-family: DinPro, Arial, 'Helvetica Neue', Helvetica, sans-serif;
	font-size: 15px;
}
.e3-accordion-menu > ul > li:first-child {
	border-top: 1px solid #ccc;

}

.e3-accordion-menu ul li ul li {
	padding: 0 0 0 20px;
	text-transform: none;
	font-family: Merriweather, Georgia, serif;
}

.e3-accordion-menu ul li ul li a {
	display: block;
	padding: 4px 30px 2px 0;
}

.e3-accordion-menu ul li::before {
	display: none;
}
.e3-accordion-menu .e3-expand-button {
	display: none;
}
.e3-accordion-menu ul li.menu-item-has-children > .e3-expand-button {
	display: block;
	position: absolute;
	right: 0;
	top: 0;
	cursor: pointer;
}


.e3-accordion-menu ul li.menu-item-has-children .e3-expand-button {

}

.e3-accordion-menu ul li.menu-item-has-children > .e3-expand-button:after {
	display: block;
	content: '\f0fe';
	font-family: FontAwesome, serif;
	font-size: 16px;
}
.e3-accordion-menu ul li.menu-item-has-children.expanded > .e3-expand-button:after {
	content: '\f146';
}

.e3-accordion-menu ul li ul li ul li.menu-item-has-children > .e3-expand-button {
	display: none;
}

.e3-accordion-menu ul li ul {
	height: 0;
	overflow: hidden;
}
.e3-accordion-menu ul li.expanded > ul {
	height: auto;
	overflow: visible;
}
.e3-accordion-menu li.current-menu-item {
	font-weight: 900;
}


/* ## Footer
--------------------------------------------- */

footer.site-footer {
	clear:both;
	background-color: #000;
	padding: 20px 0;
	color: #fff;
	font-family: "DinPro", Arial, sans-serif;
	font-size: 16px;
}

footer.site-footer a {
	color: #fff;
	text-decoration: underline;
}
footer.site-footer li a, footer.site-footer li a:hover {
	text-decoration: none;
}

#footer-widget-large, #footer-widget-small {
	float: left;
	margin: 0;
}

#footer-widget-large {
	width: 66%;
	padding-right: 15px;
}

#footer-widget-small {
	width: 33%;
	max-width: 335px;
	font-size: 12px;
}

#footer-widget-large ul {
	padding: 0;
}

#footer-widget-large .menu, #footer-sitemap {
	-moz-column-count: 3;
	-webkit-column-count: 3;
	column-count: 3;
	-moz-column-gap: 10px;
	-webkit-column-gap: 10px;
	column-gap: 10px;
	text-align: left;
}
#footer-widget-large ul.menu ul, #footer-sitemap ul {
	-moz-column-count: 1;
	-webkit-column-count: 1;
	column-count: 1;
	-moz-column-gap: normal;
	-webkit-column-gap: normal;
	column-gap: normal;
}

#footer-widget-large ul.menu li, #footer-sitemap li {
	font-size: 20px;
}
#footer-widget-large ul.sub-menu li,
#footer-widget-large ul.children li {
	font-size: 13px;
}


#footer-widget-large li {
	display: inline-block;
	font-weight: bold;
	margin-bottom: 25px;
	margin-right: 10px;
	text-align: left;
	vertical-align: top;
	width: 100%;
}
#footer-widget-large ul.sub-menu li,
#footer-widget-large ul.children li {
	display: block;
	font-weight: 100;
	margin: 0;
	padding: 0;
	width: 100%;

}

#footer-widget-large li a {
	color: #d4bf93;
}
#footer-widget-large ul.sub-menu li a,
#footer-widget-large ul.children li a {
	color: #fff;
}
#footer-widget-large li a:hover {
	text-decoration: none;
}

#footer-widget-large ul.sub-menu ul.sub-menu,
#footer-widget-large ul.children ul.children {
	padding-left: 15px

}
#footer-widget-large ul.sub-menu li,
#footer-widget-large ul.children li {
	padding-bottom: 0;
	padding-left: 0;
}

#footer-logo {
	max-width: 175px;
	text-align: center;
	width: 100%;
	margin: 15px auto 30px;
}

ul#footer-social-menu {
	padding: 0;
}

ul#footer-social-menu li {
	display: inline-block;
	padding-right: 10px;
}

ul#footer-social-menu li a:hover {
	text-decoration: none;
	opacity: 0.7;
}

@media only screen and (max-width: 875px) {
	#footer-widget-large .menu,
	#footer-widget-large #footer-sitemap {
		-moz-column-count: 2;
		-webkit-column-count: 2;
		column-count: 2;
	}
}

@media only screen and (max-width: 639px) {
	#footer-widget-large, #footer-widget-small {
		float: none;
		margin: 0 auto;
		width: 100%
	}
}

@media only screen and (max-width: 460px) {
	#footer-widget-large .menu,
	#footer-widget-large #footer-sitemap {
		-moz-column-count: 1;
		-webkit-column-count: 1;
		column-count: 1;
	}
}


/* ## Blog Post Lists
--------------------------------------------- */

.blog-post-search-container:after {
	content: '';
	clear: both;
	display: block;
}

.blog-post-search-container article {
	max-width: 450px;
	width: 33%;
	float: left;
	padding: 15px;
}

.blog-post-search-container.two-column article {
	width: 49%;
}

.blog-post-search-container.three-column article {
	width: 33%;
}

.blog-post-search-container article p {
	margin-bottom: 0;
}

.blog-post-search-container article .article-inner {
	height: 173px;
	overflow: hidden;
}
.blog-post-search-container article a.image-container {
	display: block;
	overflow: hidden;
	width: 100%;
	height: 0;
	padding-bottom: 57%;
	text-align: center;
	margin-bottom: 8px;
	position: relative;
}
.blog-post-search-container article.e3_video a.image-container:after {
	color: #fff;
	content: '\f144';
	font-family: FontAwesome, serif;
	display: block;
	font-size:50px;
	position: absolute;
	width: 100%;
	left: 0;
	top: 20%;
	opacity: .75;
}
.blog-post-search-container article .article-inner {
	margin-bottom: 25px;
	line-height: 25px;
}
.blog-post-search-container article h2.entry-title {
	font-size: 20px;
	line-height: 25px;
	margin: 0;
	padding: 0;
}
.blog-post-search-container article .entry-time {
	display: block;
	padding: 10px 0;
	text-align: center;
	color: #897863;
	font-family: "DinPro", Arial, sans-serif;
	line-height: 25px;
}
.blog-post-search-container article .entry-content {
	/*height: 120px;*/
	/*overflow: hidden;*/
	font-size: 16px;
}
.blog-post-search-container article a.read-more-link {

}

.pagination {
	clear: both;
}

.pagination ul {
	list-style-type: none;
	margin: 0;
	text-align: center;
	padding: 0;
	clear: both;
}
.pagination ul li {
	margin: 0 0 15px 0;
	display: inline-block;
	padding: 0;
}
.pagination ul li a {
	width: auto;
	text-transform: none;
	padding: 5px 10px;
}

/* Missionary Archive Adjustments */
.blog-post-search-container article.type-e3_missionary {
	text-align: center;
}
.blog-post-search-container article.type-e3_missionary .article-inner {
	height: 127px;
	overflow: hidden;
}
.blog-post-search-container article.type-e3_missionary a.button.missionary-give-link {
	margin-bottom: 5px;
}

@media only screen and (max-width: 750px) {
	.blog-post-search-container.three-column article {
		width: 50%;
	}
}
@media only screen and (max-width: 639px) {
	.blog-post-search-container article,
	.blog-post-search-container.two-column article {
		width: 100%;
		float: none;
		margin: 10px auto;
	}
}
@media only screen and (max-width: 500px) {
	.blog-post-search-container.three-column article {
		width: 100%;
		float: none;
		margin: 10px auto;
	}
}


/* ## Blog Front Page
--------------------------------------------- */

.view-all-blog-posts-container {
	/*padding: 30px 0;*/
	/*margin: 30px auto 15px;*/
	/*border-top: 1px solid #ddd;*/
	/*border-bottom: 1px solid #ddd;*/
}

.blog-homepage-about-contact {

}

.blog-homepage-about {
	margin-top: 15px;
}

.blog-homepage-contact {
	float: right;
	margin-top: 15px;
}

@media only screen and (max-width: 639px) {
	.blog-homepage-contact {
		border-top: 1px solid #ddd;
		padding-top: 15px;
		float: none;
	}
}


/* ## Standard Front (Home) Page
--------------------------------------------- */
#homepage-top-widgets {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: space-around;
	align-items: stretch;
}

#homepage-top-widgets .homepage-top-widget {
	flex-basis: 30%;
	overflow: hidden;
	position: relative;
	margin: 10px;
	padding-bottom: 41px;
}

.homepage-top-widget .e3-frontpage-button {
	position: absolute;
	left: 0;
	bottom: 0;
	width: 100%;
}

article.e3-frontpage-post.type-e3_missionary {
	min-height: 0;
}

article.e3-frontpage-post {
	position: relative;
	padding: 0 5px 0 90px;
	height: 80px;
	overflow: hidden;
	margin-bottom: 20px;
}

article.e3-frontpage-post img {
	height: 80px;
	width: 80px;
	position: absolute;
	left: 0;
	top: 0;
}
article.e3-frontpage-post h3 {
	line-height: 19px;
	margin: 0 0 4px;
	font-size: 18px;
}
article.e3-frontpage-post h3 a:hover {
	text-decoration: underline;
}
article.e3-frontpage-post p {
	line-height: 19px;
	font-size: 13px;
	margin: 0;
}
#homepage-top-widgets article.e3-frontpage-post.type-e3_video a.image-container:after {
	color: #fff;
	content: '\f144';
	font-family: FontAwesome, serif;
	display: block;
	font-size: 40px;
	position: absolute;

	left: 20px;
	top: 9px;
	opacity: 0.75;
}
#homepage-top-widgets article.e3-frontpage-post.type-e3_video a.image-container:hover:after {
	opacity: 1;
}

/* RSS Feed */
.widget_e3_home_rss_widget ul {
	margin: 0;
	padding: 0;
	list-style-type: none;
}

.widget_e3_home_rss_widget ul li {
	height: 80px;
	margin-bottom: 20px;
	overflow: hidden;
	padding: 3px 0 3px 30px;
	list-style-type: none;
	background-color: #d4bf93;
	position: relative;
}
.widget_e3_home_rss_widget ul li:before {
	display: block;
	content: '';
	width: 20px;
	height: 100%;
	position: absolute;
	left: 0;
	top: 0;
	background-color: #000;
}

.widget_e3_home_rss_widget ul li a.rsswidget {
	display: block;
	font-family: "DinPro", Arial, sans-serif;
	line-height: 22px;
	font-size: 18px;
	font-weight: bold;
	white-space: nowrap;
	text-overflow: ellipsis;
	overflow: hidden;
}
.widget_e3_home_rss_widget ul li cite {
	display: block;
	line-height: 18px;
	font-size: 12px;
	white-space: nowrap;
	text-overflow: ellipsis;
	width: 100%;
	overflow: hidden;
}
.widget_e3_home_rss_widget ul li .rssSummary {
	line-height: 20px;
	font-size: 14px;
	white-space: nowrap;
	text-overflow: ellipsis;
	width: 100%;
	overflow: hidden;
}
.widget_e3_home_rss_widget ul li .rss-date {
	display: block;
	line-height: 14px;
	font-size: 11px;
	color: #777;
	white-space: nowrap;
	text-overflow: ellipsis;
	width: 100%;
	overflow: hidden;
}

@media (max-width: 875px) {
	#homepage-top-widgets .homepage-top-widget {
		flex-basis: 45%;
	}
}
@media (max-width: 600px) {
	#homepage-top-widgets .homepage-top-widget {
		flex-basis: 90%;
	}
}


/* ## Missionary/Rep Page
--------------------------------------------- */

.entry-content .missionary-image-container {
	max-width: 350px;
	text-align: center;
	float: left;
}
.entry-content .missionary-content-container {
	padding-left: 375px;
}
.entry-content .missionary-content-container .missionary-detail-label {
	font-weight: bold;
}

article.type-e3_missionary {
	min-height: 500px;
}

@media (max-width: 792px) {
	.entry-content .missionary-image-container {
		max-width: 250px;
	}
	.entry-content .missionary-content-container {
		padding-left: 275px;
	}
}
@media (max-width: 725px) {
	.entry-content .missionary-image-container {
		float: none;
		margin: 0 auto;
		max-width: 600px;
	}
	.entry-content .missionary-content-container {
		padding-left: 0;
	}
	div.e3-divider.only-single-column {
		display: block;
	}
}

/* Search Form */
form.missionary-search-form,
form.video-search-form,
form.representative-search-form {
	background-color: rgba(212,191,147,0.7);
	padding: 10px 30px;
	border-radius: 15px;
	-webkit-border-radius: 15px;
	-moz-border-radius: 15px;
	margin-bottom: 15px;
}
form.missionary-search-form .screen-reader-text,
form.video-search-form .screen-reader-text,
form.representative-search-form .screen-reader-text{
	position: absolute;
	clip: rect(1px 1px 1px 1px); /* IE6, IE7 */
	clip: rect(1px, 1px, 1px, 1px);
}

form.missionary-search-form input.search-field,
form.missionary-search-form select,
form.video-search-form input.search-field,
form.video-search-form select,
form.representative-search-form input.search-field,
form.representative-search-form select {
	width: 100%;
	border: 3px solid #d4bf93;
	padding: 10px;
	font-size: 16px;
	border-radius: 5px;
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	color: #888;
	margin: 0 0 6px 0;
}
form.representative-search-form select,
form.missionary-search-form select {
	width: 49%;
}
form.representative-search-form select.last,
form.missionary-search-form select.last {
	float: right;
}
@media (max-width: 570px) {
	form.representative-search-form select,
	form.missionary-search-form select {
		width: 100%;
	}
	form.representative-search-form select.last,
	form.missionary-search-form select.last {
		float: none;
	}
}


form.missionary-search-form input.search-submit,
form.video-search-form input.search-submit,
form.representative-search-form input.search-submit {
	clear: both;
	width: 100%
}

/* ## Single Video Page
--------------------------------------------- */

/* Make All Embeds wrapped in .e3-embed-wrapper be full-width and responsive */
.e3-embed-wrapper {
	height:0;
	position: relative;
	overflow: hidden;
	width: 100%;
	padding-top: 56.25%;
}

.e3-embed-wrapper > iframe,
.e3-embed-wrapper > object,
.e3-embed-wrapper > embed {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

article.e3_video .entry-content .e3-embed-wrapper {
	margin-top: 50px;
	margin-bottom: 20px;
}

/* ## Gallery and photos
--------------------------------------------- */

a.e3-gallery-link {
	display: block;
	position: relative;
	flex-basis: 225px;
	flex-grow: 1;
	max-width: 450px;
	margin: 15px
}
a.e3-gallery-link.no-margins {
	margin-top: 0;
	margin-bottom: 0;
}

a.e3-gallery-link .e3-gallery-title-container {
	display: flex;
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	align-items: center;
	justify-content: center;
	background-color: rgba(0, 0, 0, 0.4 );
}
a.e3-gallery-link:hover .e3-gallery-title-container {
	background-color: rgba(0, 0, 0, 0.1 );
}
a.e3-gallery-link .e3-gallery-title {
	display: block;
	color: #fff;
	font-family: DinPro, Arial, 'Helvetica Neue', Helvetica, sans-serif;
	text-align: center;
	font-weight: bold;
	font-size: 22px;
	text-transform:uppercase;
}

a.e3-gallery-link img {
	display: block;
}

.e3-galleries-container {
	display: flex;
	flex-wrap: wrap;
	justify-content:space-evenly;
}

.e3-galleries-container.gallery-size-small a.e3-gallery-link {
	flex-basis: 150px;
	max-width: 200px;
}
.e3-galleries-container.gallery-size-small .e3-gallery-title {
	font-size: 16px;
}

figure.gallery-item {
	position: relative;
}

figure.gallery-item figcaption.gallery-caption {
	position: absolute;
	bottom: 17px;
	left: 9px;
	right: 9px;
	color: #fff;
	font-size: 13px;
	background-color: rgba(0,0,0,0.5);
	max-height: 50%;
	padding: 0 4px;

}

@media only screen and (max-width: 1000px) {
	/* If sidebar exists, make galleries 4 columns max */
	body.content-sidebar.page-template-template_gallery .gallery-columns-5 .gallery-item,
	body.sidebar-content.page-template-template_gallery .gallery-columns-5 .gallery-item,
	body.content-sidebar-sidebar.page-template-template_gallery .gallery-columns-5 .gallery-item,
	body.sidebar-content-sidebar.page-template-template_gallery .gallery-columns-5 .gallery-item,
	body.sidebar-sidebar-content.page-template-template_gallery .gallery-columns-5 .gallery-item {
		width: 25%;
	}

	body.content-sidebar.page-template-template_gallery .gallery-columns-5 .gallery-item:nth-child(5n+1),
	body.sidebar-content.page-template-template_gallery .gallery-columns-5 .gallery-item:nth-child(5n+1),
	body.content-sidebar-sidebar.page-template-template_gallery .gallery-columns-5 .gallery-item:nth-child(5n+1),
	body.sidebar-content-sidebar.page-template-template_gallery .gallery-columns-5 .gallery-item:nth-child(5n+1),
	body.sidebar-sidebar-content.page-template-template_gallery .gallery-columns-5 .gallery-item:nth-child(5n+1) {
		clear: none;
	}

	body.content-sidebar.page-template-template_gallery .gallery-columns-5 .gallery-item:nth-child(4n+1),
	body.sidebar-content.page-template-template_gallery .gallery-columns-5 .gallery-item:nth-child(4n+1),
	body.content-sidebar-sidebar.page-template-template_gallery .gallery-columns-5 .gallery-item:nth-child(4n+1),
	body.sidebar-content-sidebar.page-template-template_gallery .gallery-columns-5 .gallery-item:nth-child(4n+1),
	body.sidebar-sidebar-content.page-template-template_gallery .gallery-columns-5 .gallery-item:nth-child(4n+1) {
		clear: left;
	}

}

@media only screen and (max-width: 840px) and (min-width: 640px) {
	/* If sidebar exists, make galleries 3 columns max */
	body.content-sidebar.page-template-template_gallery .gallery-columns-4 .gallery-item,
	body.sidebar-content.page-template-template_gallery .gallery-columns-4 .gallery-item,
	body.content-sidebar-sidebar.page-template-template_gallery .gallery-columns-4 .gallery-item,
	body.sidebar-content-sidebar.page-template-template_gallery .gallery-columns-4 .gallery-item,
	body.sidebar-sidebar-content.page-template-template_gallery .gallery-columns-4 .gallery-item,
	body.content-sidebar.page-template-template_gallery .gallery-columns-5 .gallery-item,
	body.sidebar-content.page-template-template_gallery .gallery-columns-5 .gallery-item,
	body.content-sidebar-sidebar.page-template-template_gallery .gallery-columns-5 .gallery-item,
	body.sidebar-content-sidebar.page-template-template_gallery .gallery-columns-5 .gallery-item,
	body.sidebar-sidebar-content.page-template-template_gallery .gallery-columns-5 .gallery-item{
		width: 33%;
	}

	body.content-sidebar.page-template-template_gallery .gallery-columns-4 .gallery-item:nth-child(4n+1),
	body.sidebar-content.page-template-template_gallery .gallery-columns-4 .gallery-item:nth-child(4n+1),
	body.content-sidebar-sidebar.page-template-template_gallery .gallery-columns-4 .gallery-item:nth-child(4n+1),
	body.sidebar-content-sidebar.page-template-template_gallery .gallery-columns-4 .gallery-item:nth-child(4n+1),
	body.sidebar-sidebar-content.page-template-template_gallery .gallery-columns-4 .gallery-item:nth-child(4n+1),
	body.content-sidebar.page-template-template_gallery .gallery-columns-5 .gallery-item:nth-child(4n+1),
	body.sidebar-content.page-template-template_gallery .gallery-columns-5 .gallery-item:nth-child(4n+1),
	body.content-sidebar-sidebar.page-template-template_gallery .gallery-columns-5 .gallery-item:nth-child(4n+1),
	body.sidebar-content-sidebar.page-template-template_gallery .gallery-columns-5 .gallery-item:nth-child(4n+1),
	body.sidebar-sidebar-content.page-template-template_gallery .gallery-columns-5 .gallery-item:nth-child(4n+1) {
		clear: none;
	}

	body.content-sidebar.page-template-template_gallery .gallery-columns-4 .gallery-item:nth-child(3n+1),
	body.sidebar-content.page-template-template_gallery .gallery-columns-4 .gallery-item:nth-child(3n+1),
	body.content-sidebar-sidebar.page-template-template_gallery .gallery-columns-4 .gallery-item:nth-child(3n+1),
	body.sidebar-content-sidebar.page-template-template_gallery .gallery-columns-4 .gallery-item:nth-child(3n+1),
	body.sidebar-sidebar-content.page-template-template_gallery .gallery-columns-4 .gallery-item:nth-child(3n+1),
	body.content-sidebar.page-template-template_gallery .gallery-columns-5 .gallery-item:nth-child(3n+1),
	body.sidebar-content.page-template-template_gallery .gallery-columns-5 .gallery-item:nth-child(3n+1),
	body.content-sidebar-sidebar.page-template-template_gallery .gallery-columns-5 .gallery-item:nth-child(3n+1),
	body.sidebar-content-sidebar.page-template-template_gallery .gallery-columns-5 .gallery-item:nth-child(3n+1),
	body.sidebar-sidebar-content.page-template-template_gallery .gallery-columns-5 .gallery-item:nth-child(3n+1) {
		clear: left;
	}
}

@media only screen and (max-width: 710px) {
	/* If there's no sidebar, make galleries 4 columns max */
	body.full-width-content.page-template-template_gallery .gallery-columns-5 .gallery-item {
		width: 25%;
	}

	body.full-width-content.page-template-template_gallery .gallery-columns-5 .gallery-item:nth-child(5n+1) {
		clear: none;
	}

	body.full-width-content.page-template-template_gallery .gallery-columns-5 .gallery-item:nth-child(4n+1) {
		clear: left;
	}
}

@media only screen and (max-width: 580px) {
	/* Make galleries with or without a sidebar 3 columns max */
	body.page-template-template_gallery .content-sidebar-wrap .gallery-columns-4 .gallery-item,
	body.page-template-template_gallery .content-sidebar-wrap .gallery-columns-5 .gallery-item {
		width: 33%;
	}

	body.page-template-template_gallery .content-sidebar-wrap .gallery-columns-4 .gallery-item:nth-child(4n+1),
	body.page-template-template_gallery .content-sidebar-wrap .gallery-columns-5 .gallery-item:nth-child(4n+1) {
		clear: none;
	}

	body.page-template-template_gallery .content-sidebar-wrap .gallery-columns-4 .gallery-item:nth-child(3n+1),
	body.page-template-template_gallery .content-sidebar-wrap .gallery-columns-5 .gallery-item:nth-child(3n+1) {
		clear: left;
	}
}

@media only screen and (max-width: 425px) {
	/* Galleries are 2 columns max now, always */
	body.page-template-template_gallery .content-sidebar-wrap .gallery-columns-3 .gallery-item,
	body.page-template-template_gallery .content-sidebar-wrap .gallery-columns-4 .gallery-item,
	body.page-template-template_gallery .content-sidebar-wrap .gallery-columns-5 .gallery-item {
		width: 50%;
	}
	body.page-template-template_gallery .content-sidebar-wrap .gallery-columns-3 .gallery-item:nth-child(3n+1),
	body.page-template-template_gallery .content-sidebar-wrap .gallery-columns-4 .gallery-item:nth-child(3n+1),
	body.page-template-template_gallery .content-sidebar-wrap .gallery-columns-5 .gallery-item:nth-child(3n+1) {
		clear: none;
	}
	body.page-template-template_gallery .content-sidebar-wrap .gallery-columns-3 .gallery-item:nth-child(2n+1),
	body.page-template-template_gallery .content-sidebar-wrap .gallery-columns-4 .gallery-item:nth-child(2n+1),
	body.page-template-template_gallery .content-sidebar-wrap .gallery-columns-5 .gallery-item:nth-child(2n+1) {
		clear: left;
	}

}


/* ## Full-width Containers
--------------------------------------------- */
div.e3-full-width-container {

}



/* ## General Mobile Break Points
--------------------------------------------- */

@media only screen and (max-width: 639px) {
	/*Single column mode*/
	main.content,
	body.sidebar-content main.content,
	body.sidebar-content-sidebar main.content,
	body.sidebar-sidebar-content main.content,
	body.content-sidebar main.content,
	body.content-sidebar-sidebar main.content {
		float: none;
		width: 100%;
		clear: both;
	}
	aside.sidebar-primary,
	body.sidebar-content aside.sidebar-primary,
	body.sidebar-content-sidebar aside.sidebar-primary,
	body.sidebar-sidebar-content aside.sidebar-primary,
	body.content-sidebar aside.sidebar-primary,
	body.content-sidebar-sidebar aside.sidebar-primary {
		float: none;
		width: 100%;
		max-width: 350px;
		margin-left: auto;
		margin-right: auto;
		clear: both;
	}


}
