/*
Theme Name: EMJC
Theme URI: http://emjc.org
Description: Starter theme for Bad Feather sites, heavily indebted to Automattic's Toolbox, Andy Clark's 320 and up, Twitter's Bootstrap and god knows what else
Version: 2.0
Author: John Macaluso
Author URI: http://jmacaluso.com/
Tags: minimal, mobile
*/
/*===================================================================
	Reset
===================================================================*/
/* http://meyerweb.com/eric/tools/css/reset/
   v2.0 | 20110126
   License: none (public domain)
*/
html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}
body {
  line-height: 1;
}
ol,
ul {
  list-style: none;
}
blockquote,
q {
  quotes: none;
}
blockquote:before,
blockquote:after,
q:before,
q:after {
  content: '';
  content: none;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}
/*----- Imports -----*/
/*! normalize.css v2.0.1 | MIT License | git.io/normalize */
/* ==========================================================================
   HTML5 display definitions
   ========================================================================== */
/*
 * Corrects `block` display not defined in IE 8/9.
 */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
nav,
section,
summary {
  display: block;
}
/*
 * Corrects `inline-block` display not defined in IE 8/9.
 */
audio,
canvas,
video {
  display: inline-block;
}
/*
 * Prevents modern browsers from displaying `audio` without controls.
 * Remove excess height in iOS 5 devices.
 */
audio:not([controls]) {
  display: none;
  height: 0;
}
/*
 * Addresses styling for `hidden` attribute not present in IE 8/9.
 */
[hidden] {
  display: none;
}
/* ==========================================================================
   Base
   ========================================================================== */
/*
 * 1. Sets default font family to sans-serif.
 * 2. Prevents iOS text size adjust after orientation change, without disabling
 *    user zoom.
 */
html {
  font-family: sans-serif;
  /* 1 */

  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  /* 2 */

}
/*
 * Removes default margin.
 */
body {
  margin: 0;
}
*,
*:before,
*:after {
  -moz-box-sizing: border-box;
  -webkit-box-sizeing: border-box;
  box-sizing: border-box;
}
/* ==========================================================================
   Links
   ========================================================================== */
/*
 * Addresses `outline` inconsistency between Chrome and other browsers.
 */
a:focus {
  outline: thin dotted;
}
/*
 * Improves readability when focused and also mouse hovered in all browsers.
 */
a:active,
a:hover {
  outline: 0;
}
/* ==========================================================================
   Typography
   ========================================================================== */
/*
 * Addresses `h1` font sizes within `section` and `article` in Firefox 4+,
 * Safari 5, and Chrome.
 */
h1 {
  font-size: 2em;
}
/*
 * Addresses styling not present in IE 8/9, Safari 5, and Chrome.
 */
abbr[title] {
  border-bottom: 1px dotted;
}
/*
 * Addresses style set to `bolder` in Firefox 4+, Safari 5, and Chrome.
 */
b,
strong {
  font-weight: bold;
}
/*
 * Addresses styling not present in Safari 5 and Chrome.
 */
dfn {
  font-style: italic;
}
/*
 * Addresses styling not present in IE 8/9.
 */
mark {
  background: #ff0;
  color: #000;
}
/*
 * Corrects font family set oddly in Safari 5 and Chrome.
 */
code,
kbd,
pre,
samp {
  font-family: monospace, serif;
  font-size: 1em;
}
/*
 * Improves readability of pre-formatted text in all browsers.
 */
pre {
  white-space: pre;
  white-space: pre-wrap;
  word-wrap: break-word;
}
/*
 * Sets consistent quote types.
 */
q {
  quotes: "\201C" "\201D" "\2018" "\2019";
}
/*
 * Addresses inconsistent and variable font size in all browsers.
 */
small {
  font-size: 80%;
}
/*
 * Prevents `sub` and `sup` affecting `line-height` in all browsers.
 */
sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}
sup {
  top: -0.5em;
}
sub {
  bottom: -0.25em;
}
/* ==========================================================================
   Embedded content
   ========================================================================== */
/*
 * Removes border when inside `a` element in IE 8/9.
 */
img {
  border: 0;
  max-width: 100%;
  height: auto;
  -ms-interpolation-mode: bicubic;
}
/*
 * Corrects overflow displayed oddly in IE 9.
 */
svg:not(:root) {
  overflow: hidden;
}
/* ==========================================================================
   Figures
   ========================================================================== */
/*
 * Addresses margin not present in IE 8/9 and Safari 5.
 */
figure {
  margin: 0;
}
/* ==========================================================================
   Forms
   ========================================================================== */
/*
 * Define consistent border, margin, and padding.
 */
fieldset {
  border: 1px solid #c0c0c0;
  margin: 0 2px;
  padding: 0.35em 0.625em 0.75em;
}
/*
 * 1. Corrects color not being inherited in IE 8/9.
 * 2. Remove padding so people aren't caught out if they zero out fieldsets.
 */
legend {
  border: 0;
  /* 1 */

  padding: 0;
  /* 2 */

}
/*
 * 1. Corrects font family not being inherited in all browsers.
 * 2. Corrects font size not being inherited in all browsers.
 * 3. Addresses margins set differently in Firefox 4+, Safari 5, and Chrome
 */
button,
input,
select,
textarea {
  font-family: inherit;
  /* 1 */

  font-size: 100%;
  /* 2 */

  margin: 0;
  /* 3 */

}
/*
 * Addresses Firefox 4+ setting `line-height` on `input` using `!important` in
 * the UA stylesheet.
 */
button,
input {
  line-height: normal;
  font-size: 20px;
      /*background-color: #33FF00;*/
  -moz-border-radius: 5px;
  -webkit-border-radius: 5px;
  /*border: 5px solid #009900;*/
  padding: 5px;}
/*
 * 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
 *    and `video` controls.
 * 2. Corrects inability to style clickable `input` types in iOS.
 * 3. Improves usability and consistency of cursor style between image-type
 *    `input` and others.
 */
button,
html input[type="button"],
input[type="reset"],
input[type="submit"] {
  -webkit-appearance: button;
  /* 2 */

  cursor: pointer;
  /* 3 */

}
/*
 * Re-set default cursor for disabled elements.
 */
button[disabled],
input[disabled] {
  cursor: default;
}
/*
 * 1. Addresses box sizing set to `content-box` in IE 8/9.
 * 2. Removes excess padding in IE 8/9.
 */
input[type="checkbox"],
input[type="radio"] {
  box-sizing: border-box;
  /* 1 */

  padding: 0;
  /* 2 */

}
/*
 * 1. Addresses `appearance` set to `searchfield` in Safari 5 and Chrome.
 * 2. Addresses `box-sizing` set to `border-box` in Safari 5 and Chrome
 *    (include `-moz` to future-proof).
 */
input[type="search"] {
  -webkit-appearance: textfield;
  /* 1 */

  -moz-box-sizing: content-box;
  -webkit-box-sizing: content-box;
  /* 2 */

  box-sizing: content-box;
}
/*
 * Removes inner padding and search cancel button in Safari 5 and Chrome
 * on OS X.
 */
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}
/*
 * Removes inner padding and border in Firefox 4+.
 */
button::-moz-focus-inner,
input::-moz-focus-inner {
  border: 0;
  padding: 0;
}
/*
 * 1. Removes default vertical scrollbar in IE 8/9.
 * 2. Improves readability and alignment in all browsers.
 */
textarea {
  overflow: auto;
  /* 1 */

  vertical-align: top;
  /* 2 */

}
/* ==========================================================================
   Tables
   ========================================================================== */
/*
 * Remove most spacing between table cells.
 */
table {
  border-collapse: collapse;
  border-spacing: 0;
}
/* Generated by Font Squirrel (http://www.fontsquirrel.com) on December 23, 2011 */
@font-face {
  font-family: 'GBold';
  src: url('font/g-bold.otf-webfont.eot');
  src: url('font/g-bold.otf-webfont.eot?#iefix') format('embedded-opentype'), url('font/g-bold.otf-webfont.woff') format('woff'), url('font/g-bold.otf-webfont.ttf') format('truetype'), url('font/g-bold.otf-webfont.svg#GBold') format('svg');
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: 'GBook';
  src: url('font/g-book.otf-webfont.eot');
  src: url('font/g-book.otf-webfont.eot?#iefix') format('embedded-opentype'), url('font/g-book.otf-webfont.woff') format('woff'), url('font/g-book.otf-webfont.ttf') format('truetype'), url('font/g-book.otf-webfont.svg#GBook') format('svg');
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: 'GLight';
  src: url('font/g-light.otf-webfont.eot');
  src: url('font/g-light.otf-webfont.eot?#iefix') format('embedded-opentype'), url('font/g-light.otf-webfont.woff') format('woff'), url('font/g-light.otf-webfont.ttf') format('truetype'), url('font/g-light.otf-webfont.svg#GLight') format('svg');
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: 'GBlack';
  src: url('font/g-black.otf-webfont.eot');
  src: url('font/g-black.otf-webfont.eot?#iefix') format('embedded-opentype'), url('font/g-black.otf-webfont.woff') format('woff'), url('font/g-black.otf-webfont.ttf') format('truetype'), url('font/g-black.otf-webfont.svg#GBlack') format('svg');
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: 'GMedium';
  src: url('font/g-medium.otf-webfont.eot');
  src: url('font/g-medium.otf-webfont.eot?#iefix') format('embedded-opentype'), url('font/g-medium.otf-webfont.woff') format('woff'), url('font/g-medium.otf-webfont.ttf') format('truetype'), url('font/g-medium.otf-webfont.svg#GMedium') format('svg');
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: 'GUltra';
  src: url('font/g-ultra.otf-webfont.eot');
  src: url('font/g-ultra.otf-webfont.eot?#iefix') format('embedded-opentype'), url('font/g-ultra.otf-webfont.woff') format('woff'), url('font/g-ultra.otf-webfont.ttf') format('truetype'), url('font/g-ultra.otf-webfont.svg#GUltra') format('svg');
  font-weight: normal;
  font-style: normal;
}
/*===================================================================
	Variables
===================================================================*/
/*===================================================================
	Base Styles
===================================================================*/
* {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}
img {
  max-width: 100%;
  display: block;
}
/*html, body {
	height: 100%;
}*/
body {
  font-size: 62.5%;
  font-family: Arial, Helvetica, sans-serif;
  background-color: #445e95;
  color: #263f72;
}
.page-wrap {
  background-color: #fff;
  zoom: 1;
}
.page-wrap:before,
.page-wrap:after {
  content: "";
  display: table;
}
.page-wrap:after {
  clear: both;
}
/*===================================================================
	Links & Buttons
===================================================================*/
a:link,
a:visited {
  font-weight: bold;
  color: #263f72;
  text-decoration: none;
}
a:focus,
a:hover,
a:active {
  outline: none;
}
.button {
  font-size: 1.5em;
  font-weight: bold;
  color: #fffae1 !important;
  padding: 20px;
  background-color: #445e95;
}
.button:hover {
  color: #263f72 !important;
  background-color: #fffae1;
}
.button-dark {
  font-size: 1.5em;
  font-weight: bold;
  color: #fffae1 !important;
  padding: 20px;
  background-color: #263f72;
}
.button-dark:hover {
  color: #263f72 !important;
}
/*===================================================================
	Typography
===================================================================*/
h1,
h2,
h3,
h4 {
  font-weight: bold;
}
h1 {
  font-family: 'GBook';
  font-size: 2.5em;
  line-height: 1;
  color: #fffae1;
  padding: 8px 20px;
  background-color: #263f72;
}
h2,
h3,
h4 {
  line-height: 1.5;
}
h2 {
  font-size: 2.2em;
}
h3 {
  font-size: 1.8em;
  margin-bottom: 10px;
}
h4 {
  font-size: 1.5em;
  margin-bottom: 5px;
}
p {
  font-size: 1.4em;
  line-height: 1.5;
  margin-bottom: 20px;
}
/*===================================================================
	Content
===================================================================*/
.banner {
  background-color: #263f72;
  padding: 10px 0;
}
.banner .grid {
  position: relative;
}
.banner .grid .button {
  position: absolute;
  top: -15px;
  right: 0;
}
.logo a {
  display: block;
  width: 337px;
  height: 75px;
  /*-- margin: 0 auto;    ---   center align the logo --- */
  background: url(images/logo.png);
  background-size: 214px 70px;
  text-indent: -9999px;
  background-repeat: no-repeat;
}
.banner .grid .address {
  position: absolute;
  top: 50px;
  right: 0;
  color: #fffae1 !important;
}
.banner .grid .address p {
  font-size: 1em;
}
.rabbi {
  padding-top: 20px; 
}
/*----- Main Navigation -----*/
.main-menu {
  font-size: 1.5em;
  font-weight: bold;
  text-align: center;
  line-height: .5;
}
.main-menu ul {
  display: inline-table;
  zoom: 1;
}
.main-menu ul:before,
.main-menu ul:after {
  content: "";
  display: table;
}
.main-menu ul:after {
  clear: both;
}
.main-menu ul li {
  float: left;
}
.main-menu ul li a {
  display: block;
  color: #263f72;
  padding: 20px;
}
.main-menu ul li a:hover {
  color: #fffae1;
  background-color: #263f72;
}
.main-menu ul .current-page-ancestor a,
.main-menu ul .current-menu-item a {
  color: #fffae1;
  background-color: #263f72;
}
.sub-menu .current_page_item a {
  text-decoration: underline;
}
/*----- Mobile Nav -----*/
.mobile-nav {
  zoom: 1;
}
.mobile-nav:before,
.mobile-nav:after {
  content: "";
  display: table;
}
.mobile-nav:after {
  clear: both;
}
.show-hide-navigation {
  display: none;
  float: right;
  color: #fff !important;
  padding: 5px 10px;
  font-size: 2.2em;
}
.show-hide-navigation:hover {
  color: #fffae1;
  background-color: #445e95;
}
.sub-menu {
  font-size: 1.4em;
  font-weight: normal;
  background: url(images/emblem.png) no-repeat right #263f72;
  //border-top: 1px solid #263f72;
}
.sub-menu ul {
  zoom: 1;
}
.sub-menu ul:before,
.sub-menu ul:after {
  content: "";
  display: table;
}
.sub-menu ul:after {
  clear: both;
}
.sub-menu li {
  float: left;
  padding: 10px 0;
}
.sub-menu li a {
  display: block;
  color: #fffae1;
  padding: 0px 20px;
}
.sub-menu li a:hover {
  text-decoration: underline;
}
.sub-menu li.current-menu-item {
  font-weight: bold;
}
.sub-menu li.parent-page-title span {
  color: #fffae1;
  padding: 0px 20px;
  font-weight: bold;
  font-size: 1em;
  float: left;
  border-right: 1px solid #fffae1;
}
/* FlexSlider Necessary Styles
*********************************/.flexslider {
  margin: 0;
  padding: 0;
}
.flexslider .slides > li {
  display: none;
  -webkit-backface-visibility: hidden;
}
/* Hide the slides before the JS is loaded. Avoids image jumping */
.flexslider .slides img {
  width: 100%;
  display: block;
}
.flex-pauseplay span {
  text-transform: capitalize;
}
/* Clearfix for the .slides element */
.slides:after {
  content: ".";
  display: block;
  clear: both;
  visibility: hidden;
  line-height: 0;
  height: 0;
}
html[xmlns] .slides {
  display: block;
}
* html .slides {
  height: 1%;
}
/* No JavaScript Fallback */
/* If you are not using another script, such as Modernizr, make sure you
 * include js that eliminates this class on page load */
.no-js .slides > li:first-child {
  display: block;
}

/*----- Hero Images EMJC ----*/
.hero_images .slides img {
  float: left;
  margin: 1px;
  width: 33%;
  max-height: 304px;
}

/*----- Flexslider EMJC -----*/
.flex-container {
  position: relative;
}
.flex-container .flex-control-nav {
  position: absolute;
  right: 0px;
  top: 0px;
}
.flex-container .flex-control-nav li {
  padding: 0 1px 1px 0;
  display: block;
  position: relative;
  cursor: pointer;
}
.flex-container .flex-control-nav li:before {
  display: block;
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  -moz-box-shadow: inset 0 0 10px #000000;
  -webkit-box-shadow: inset 0 0 10px #000000;
  box-shadow: inset 0 0 10px #000000;
}
.flex-container .flex-control-nav .arrow {
  position: absolute;
  left: -16px;
  display: none;
  border: none;
}
.flex-container .flex-control-nav .flex-active .arrow {
  display: block;
}
.flexslider {
  position: relative;
  background-color: #263f72;
}
.flexslider .slides img {
  max-width: 726px;
  max-height: 304px;
  border: 1px solid #263f72;
}
.flexslider .slides p {
  margin: 0px;
  padding: 0px;
}
.flexslider .slides div {
  display: block;
  position: relative;
}
.flexslider .slides div:before {
  display: block;
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  -moz-box-shadow: inset 0 0 10px #000000;
  -webkit-box-shadow: inset 0 0 10px #000000;
  box-shadow: inset 0 0 10px #000000;
}
.flexslider .slides div figcaption {
  position: absolute;
  bottom: 0px;
  width: 100%;
  padding: 15px 20px;
  font-family: 'GMedium';
  font-size: 2em;
  color: #fffae1;
  font-weight: normal;
  background-color: rgba(38, 63, 114, 0.5);
  text-shadow: 1px 1px 1px #000;
}
/*----- Articles -----*/
.post {
  margin-bottom: 20px;
  /*padding: @padding;*/

  zoom: 1;
}
.post .entry-content {
  clear: both;
}
.post:before,
.post:after {
  content: "";
  display: table;
}
.post:after {
  clear: both;
}
.entry-content a,
.post a {
  color: #263f72;
  font-weight: bold;
}
.entry-content a:hover,
.post a:hover {
  background-color: #fffae1;
}
.home .post {
  padding: 0px;
}
.home .post small {
  font-size: 1.1em;
  display: inline-block;
}
.home p {
  padding: 0px;
  margin: 0px;
}
.home .entry-content {
  margin: 0px;
}
.home .primary {
  margin-bottom: 20px;
}
.home .primary article {
  margin-top: 20px;
}
.home .primary .link {
  color: #263f72;
  font-weight: bold;
}
.home .primary .link:hover {
  background-color: #fffae1;
}
.blog-title {
  padding: 10px 0;
  float: left;
  width: 85%;
  border-bottom: 1px solid #263f72;
}
.postmeta {
  position: relative;
  color: #445e95;
  font-size: 1.4em;
  padding: 5px 0;
  float: left;
}
.readmore {
  font-size: 1.2em;
  color: #445e95;
  float: right;
  margin-top: 5px;
}
.datemeta {
  float: left;
  margin-right: 20px;
  zoom: 1;
}
.datemeta:before,
.datemeta:after {
  content: "";
  display: table;
}
.datemeta:after {
  clear: both;
}
.date-block {
  float: left;
}
.day {
  display: block;
  font-size: 2.5em;
  font-weight: bold;
  padding: 15px 15px;
  background-color: #263f72;
  color: #fffae1;
}
.month {
  display: block;
  font-size: 1.1em;
  padding: 5px 5px;
  background-color: #445e95;
  color: #fffae1;
}
.fullsize-thumbnail {
  clear: both;
}
.figure {
  clear: both;
  padding-top: 20px;
}
.archive .grid-2-3 .post {
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid #263f72;
}
.entry-meta {
  font-size: 1.1em;
}
/*----- Entry Meta -----*/
.entry-footer {
  font-size: 1.4em;
}
/*----- Pages -----*/
.entry-content,
.page-header {
  margin: 0 0 20px 0;
}
.type-event .entry-content p {
  width: 66.66%;
}
/*----- Main Events -----*/
.main-calendar {
  display: block;
  max-height: 680px;
  background-color: #263f72;
  margin-bottom: 20px;
}
.event-post {
  border-bottom: 1px solid #263f72;
}
.event-post header {
  padding: 20px 20px 0px 20px;
  position: relative;
}
.event-post header time {
  font-size: 1.2em;
  color: #445e95;
}
.event-post .button {
  color: #fffae1;
  font-size: 1.2em;
  font-weight: normal;
  padding: 5px 10px;
  position: absolute;
  right: 20px;
  top: 20px;
}
.event-post .button:hover {
  color: #263f72;
  border: 1px solid #263f72;
}
.event-post footer {
  padding: 20px;
  zoom: 1;
}
.event-post footer:before,
.event-post footer:after {
  content: "";
  display: table;
}
.event-post footer:after {
  clear: both;
}
/*----- Sidebar -----*/
.calendar {
  display: block;
  color: #fffae1;
  text-align: center;
  height: 250px;
  background-color: #263f72;
}
.widget {
  margin-bottom: 20px;
}
.widget #text-5 {
  width:50%;
  float: left;
}
.widget #text-7 {
  width:50%;
  float: right;
}
.widget #em_widget-2 {
  clear: both;
}
.widget #text-4 {
  width:50%;
  float: left;
}
.widget #text-3 {
  width:50%;
  float: right;
}
.widget #text-6 {
  clear: both;
}
.widget h1 {
  padding-left: 0px;
  background: none;
  color: #263f72;
  border-bottom: 1px solid #263f72;
  margin-bottom:20px;
}
.widget h3 {
  margin-bottom: 0px;
}
.widget header {
  margin-bottom: 20px;
}
.widget a {
  color: #263f72;
}
.widget a:hover {
  background-color: #fffae1;
}
.widget p {
  margin-bottom: 0px;
  font-size: 1.2em;
}
.widget .post {
  padding: 0px;
}
.widget-content {
  margin-top: 0px;
}
.widget-content p {
  margin-bottom: 0px;
}
.widget-content ul li ul li {
  font-size: 1.2em;
  line-height: 1.3;
}
.featured-post {
  background-color: #fffcec;
  zoom: 1;
}
.featured-post .readmore {
  float: left;
  text-decoration: underline;
}
.featured-post:before,
.featured-post:after {
  content: "";
  display: table;
}
.featured-post:after {
  clear: both;
}
.widget-content {
  line-height: 1.4;
}
.widget-content .textwidget {
  font-size: 1.2em;
}
.sidemeta {
  font-size: 1em;
}
.recent-posts .widget-content,
.twitter-feed .widget-content {
  padding: 0;
}
.recent-posts a,
.twitter-feed a {
  display: block;
  padding: 10px 10px;
}
.recent-posts a:hover,
.twitter-feed a:hover {
  background-color: #fffcec;
}
.twitter-feed time {
  color: #445e95;
  font-size: 1.2em;
  font-style: italic;
}
.flickr-feed {
  background-color: #fffae1;
  padding: 5px 5px 5px 10px;
  zoom: 1;
}
.flickr-feed:before,
.flickr-feed:after {
  content: "";
  display: table;
}
.flickr-feed:after {
  clear: both;
}
.flickr-feed li {
  float: left;
  margin: 5px;
}
.flickr-feed li a {
  display: block;
  max-width: 90px;
  max-height: 90px;
  background-color: #263f72;
}
.text-module .widget-content {
  background-color: #fffae1;
}
.text-module p {
  margin-bottom: 20px;
}
.text-module p:last-child {
  margin-bottom: 0px;
}
/*----- Events Manager -----*/
.event footer {
  font-size: 1.1em;
  padding-bottom: 20px;
}
.em-events-search {
  display: none;
  font-size: 1.4em;
  line-height: 1.4;
  margin-bottom: 20px;
}
.em-events-search .em-events-search-text {
  margin-bottom: 10px;
}
.events-table thead {
  font-weight: bold;
  font-size: 1.5em;
  text-align: left;
}
.events-table thead th {
  padding-bottom: 10px;
}
.events-table tbody {
  font-size: 1.2em;
  line-height: 1.4;
}
.events-table tbody td {
  padding-bottom: 20px;
}
.events-table tbody td a {
  color: #263f72;
  font-weight: bold;
}
.events-table tbody td a:hover {
  background-color: #fffae1;
}
.em-calendar-wrapper {
  font-size: 1.5em;
}
.em-calendar-wrapper .em-calendar td {
  padding: 5px 10px;
}
.em-pagination {
  font-size: 1.3em;
}
.em-pagination a {
  font-weight: normal;
}
/*----- Footer -----*/
.footer {
  color: #fffae1;
  background-color: #445e95;
  padding: 20px 0;
  clear: both;
  zoom: 1;
}
.footer:before,
.footer:after {
  content: "";
  display: table;
}
.footer:after {
  clear: both;
}
.footer .button-dark:hover {
  color: #263f72;
  background-color: #fffae1;
}
.footer .grid-1-3 {
  width: 35.83%;
  border-right: 1px solid #263f72;
}
.footer .grid-1-3 .button-dark {
  margin-right: 30px;
  width: 100px;
  text-align: center;
  line-height: 1.2;
  padding: 10px;
}
.footer .grid-1-3 a,
.footer .grid-1-3 img {
  float: left;
}
.footer .grid-2-3 {
  width: 64.16%;
  padding-right: 0px;
  padding-left: 29px;
}
.footer .grid-2-3 a,
.footer .grid-2-3 li {
  float: left;
}
.footer .newsletter {
  width: 125px;
  line-height: 1.2;
  text-align: center;
}
.footer .newsletter.button-dark {
  padding: 10px 0px;
}
.footer .footer-nav {
  float: left;
}
.footer .footer-nav ul {
  zoom: 1;
}
.footer .footer-nav ul:before,
.footer .footer-nav ul:after {
  content: "";
  display: table;
}
.footer .footer-nav ul:after {
  clear: both;
}
.footer .footer-nav li {
  font-size: 1.1em;
  margin-left: 12px;
}
.footer .footer-nav li a {
  color: #fffae1;
  text-decoration: underline;
}
.footer input.text {
  font-size: 1.1em;
  width: 150px;
  height: 22px;
  padding: 0 0 0 10px;
  border: none;
}
.footer .submit {
  color: #fffae1;
  border: none;
  padding: 6px 10px;
  background-color: #263f72;
}
.footer .submit:hover {
  color: #263f72;
  background-color: #fffae1;
}
.footer .social-search {
  margin-bottom: 18px;
  float: left;
}
.footer .social-search li {
  margin-left: 10px;
}
.footer .social-search .button-dark {
  color: #fffae1;
  padding: 6px 16px;
  font-size: 1.1em;
}
.footer .social-search .button-dark:hover {
  color: #263f72;
}
/*===================================================================
	Grid
===================================================================*/
.grid {
  max-width: 960px;
  margin: 0 auto;
}
.grid-2-3,
.grid-1-3 {
  float: left;
}
.grid-2-3 {
  width: 66.66%;
  padding-right: 20px;
}
.grid-1-3 {
  width: 33.33%;
}
.primary {
  padding-top: 20px;
/*border-top: 1px solid #263f72; */
}
/*===================================================================
	Helper Classes
===================================================================*/
/* Clearfix For modern browsers */
.cf:before,
.cf:after {
  content: "";
  display: table;
}
.cf:after {
  clear: both;
}
/* For IE 6/7 (trigger hasLayout) */
.cf {
  zoom: 1;
}
.clear {
  clear: both;
}
.left {
  float: left;
}
.right {
  float: right;
}
.visuallyhidden {
  position: absolute;
  overflow: hidden;
  clip: rect(0 0 0 0);
  height: 1px;
  width: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
}
.alignleft {
  display: block;
  float: left;
  padding-right: 20px;
  padding-bottom: 20px;
}
.alignright {
  float: right;
}
.entry-content .small-button {
  display: inline-block;
  background-color: #263f72;
  color: #fffae1;
  padding: 5px 15px;
  -moz-border-radius: 5px;
  -webkit-border-radius: 5px;
  -o-border-radius: 5px;
  border-radius: 5px;
  cursor: pointer;
}
.entry-content .small-button:hover {
  background-color: #445e95;
}
/*===================================================================
	Media Queries
===================================================================*/
@media screen and (max-width: 960px) {
  .grid {
    padding: 0 20px;
    zoom: 1;
  }
  .grid:before,
  .grid:after {
    content: "";
    display: table;
  }
  .grid:after {
    clear: both;
  }
  .primary {
    border-top: none;
    margin-top: 20px;
  }
  h1,
  figcaption {
    line-height: 1.5;
  }
  .footer .grid-1-3 {
    border-right: none;
    width: 100%;
    margin-bottom: 20px;
  }
  .footer .grid-2-3 {
    padding-left: 0px;
    width: 100%;
  }
  .footer .grid-1-3,
  .footer .grid-2-3 {
    float: none;
    zoom: 1;
  }
  .footer .grid-1-3:before,
  .footer .grid-2-3:before,
  .footer .grid-1-3:after,
  .footer .grid-2-3:after {
    content: "";
    display: table;
  }
  .footer .grid-1-3:after,
  .footer .grid-2-3:after {
    clear: both;
  }
}
@media screen and (max-width: 768px) {
  .banner {
    padding-bottom: 0px;
  }
  .banner .grid .button {
    position: static;
    float: left;
    padding: 10px 10px;
    margin-top: 7px;
  }
  .banner .grid .address {
    position: absolute;
    top: 0;
    padding: 10px 10px;
    margin-top: 7px;
    font-size: smaller;
  }
  .homepage-slider {
    margin-top: 20px;
  }
  .hero_images .slides img {
    width: 100%;
  }
  .alignleft {
    clear: both;
  }
  /*---Mobile Nav---*/
  .navigation {
    display: none;
  }
  .show-hide-navigation {
    display: block;
  }
  body.show-nav .navigation {
    display: block;
  }
  .flex-control-nav {
    display: none;
  }
  .grid-1-3,
  .grid-2-3 {
    float: none;
    width: 100%;
  }
  .grid-2-3 {
    padding-right: 0px;
  }
  h1 {
    font-size: 2.2em;
  }
  h2 {
    font-size: 2em;
  }
  .footer .newsletter {
    margin-bottom: 20px;
  }
  .footer .social-search {
    margin-bottom: 0px;
    clear: left;
  }
  .footer .social-search li {
    margin-left: 0px;
    margin-right: 10px;
    margin-bottom: 20px;
  }
  .footer .footer-nav li {
    margin-left: 0px;
    margin-right: 10px;
    line-height: 2;
  }
}
@media screen and (max-width: 480px) {
  .logo a {
    width: 168px;
    height: 55px;
    background-size: 168px 55px;
    margin: 0 auto;
  }
  .banner .grid .address {
    display: none;
  }
  .blog-title {
    margin-left: 20px;
  }
  .postmeta {
    margin-left: 20px;
    line-height: 2;
  }
  .event-post footer {
    padding-top: 0px;
  }
  footer .postmeta {
    float: none;
    margin-left: 0px;
  }
  footer .readmore {
    float: none;
  }
  .flexslider .slides div figcaption {
    font-size: 1.6em;
  }
}
@media screen and (max-width: 320px) {
  .event-post h2,
  .event-post time {
    float: left;
    clear: left;
  }
  .event-post .button {
    position: static;
    float: left;
    clear: left;
    margin-top: 15px;
  }
  h1 {
    font-size: 1.8em;
  }
  h2 {
    font-size: 1.6em;
  }
  h3 {
    font-size: 1.5em;
  }
  .footer .button-dark {
    margin-bottom: 20px;
  }
  .footer .social-search li {
    margin-bottom: 5px;
  }
}
@media only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (-moz-min-device-pixel-ratio: 2), only screen and (-o-min-device-pixel-ratio: 2/1), only screen and (min-device-pixel-ratio: 2) {
  .logo a {
    width: 168px;
    height: 55px;
    background: url(images/logo@2x.png);
    background-size: 168px 55px;
  }
}


/* .page-wrap {
  background:transparent url(http://emjc.lasolastech.com/wp-content/uploads/2013/09/emjc_bg.jpg) no-repeat center center fixed;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
} */

/*===================================================================
	Drop Down List
===================================================================*/

.main-menu ul li{position:relative;}
.main-menu ul li ul.sub-menu {background:#263f72 !important; position: absolute; top:47px; width: 150px; z-index: 9999; }
.main-menu ul li ul.sub-menu {display:none; }
.main-menu ul li ul.sub-menu li {float:none; padding:0px !important; line-height: 15px;}
.main-menu ul li:hover ul.sub-menu {display:block; }
.main-menu ul li ul.sub-menu li a{color: #FFFAE1; font-size: 12px; font-weight: normal; padding: 10px 10px; text-align: left;
text-decoration: none;}
.main-menu ul li ul.sub-menu li a:hover{background:#FFFAE1; color:#263f72; text-decoration:none;}
.main-menu ul li ul.sub-menu li ul.sub-menu {display:none;}
.main-menu ul li ul.sub-menu li:hover ul.sub-menu {display:block; left:150px; position:absolute;top:0px;}

/*==========	Media Queries    =========*/
@media screen and (max-width: 768px) {
.main-menu{text-align:left}
.main-menu ul { display: block;}
.main-menu ul li {float: none; width:100%;}
.main-menu ul li ul.sub-menu { display: block;width:100%;}
.main-menu ul li ul.sub-menu, .main-menu ul li.current-page-parent ul.sub-menu {  background: none repeat scroll 0 0 #FFFFFF !important;  padding-left: 30px; position:static;}
.main-menu ul li.current-page-parent ul.sub-menu li a {background-color:#fff;}
.main-menu ul li ul.sub-menu li a {  color: #263F72;  font-size: 12px;  font-weight: normal;  padding: 13px 10px;
  text-align: left;  text-decoration: none;}
.main-menu ul li ul.sub-menu li a:hover {  background: none repeat scroll 0 0 #263F72;  color: #FFFAE1;text-decoration: none;}
.main-menu ul li ul.sub-menu li ul.sub-menu {display:block; position:static; padding-left:20px;width:100%; }
.main-menu ul li ul.sub-menu li:hover ul.sub-menu {position:static;}
}