/*
Theme Name: IABA
Theme URI: http://www.iaba.ie/
Description: IABA WordPress Theme
Version: 1.0.1
Author: Barry Ferguson
Author URI: http://www.mycomedia.ie
Text Domain: iaba
*/


/******************************************************************/
/* General */
/******************************************************************/

body {
color: #2b2b2b;
  font: 300 16px "arial", Helvetica, sans-serif;
-webkit-font-smoothing: antialiased;
background-image: url('images/iaba_bg.png');
background-repeat: no-repeat;
background-position: top center;
background-size: auto;
background-color: #024B80;
border-top: 8px solid #5BC236;
}

h1,
h2,
h3 {
  font-family: "Arial", Helvetica, sans-serif;
  margin-bottom: .5em;
  font-weight: bold;
  color: #02243c;
}
h2 {
 font-size: 24px;
line-height: 1.4em;
}
h2.entry-title, .tribe-events-page-title {
	color: #e6e6e6;
}
.tribe-events-venue address.venue-address span {
	color: #e6e6e6;
    line-height: 1;
    margin: 5px 0;
}
.tribe-events-list .vevent.hentry h2 {
    font-size: 1.6em;
}
.tribe-events-list .vevent.hentry h2 a:hover {
    color: #5BC236;
}
.tribe-events-loop .tribe-events-event-meta {
	color: #e6e6e6;
    font-size: 13px;
    margin-bottom: 1em;
	margin-left: 2em;
}
.tribe-events-user-recurrence-toggle {
	color: #e6e6e6;
    font-size: 12px;
    font-style: italic;
    text-align: center;
}
h3 {
  font-size: 20px;
  line-height: 1.2em;
   color: #5195ce;
}
em {
  color: #b7b7b7;
  font-size: 14px;
  font-style: italic;
}

.page-title {
    color: #e6e6e6;
}

.margin-bottom{margin-bottom:25px;}

/******************************************************************/
/* WordPress Default Image Styles*/
/******************************************************************/
img.alignright {float:right; margin:0 0 1em 1em}
img.alignleft {float:left; margin:0 1em 1em 0}
img.aligncenter {display: block; margin-left: auto; margin-right: auto}
a img.alignright {float:right; margin:0 0 1em 1em}
a img.alignleft {float:left; margin:0 1em 1em 0}
a img.aligncenter {display: block; margin-left: auto; margin-right: auto max-width: 100%;
height: auto}
.content a img, .content img{
max-width: 100% !important;
}


/******************************************************************/
/* Header */
/******************************************************************/
.main-header {
margin-top: 3em;
}

.top-contact {
margin-top: -20px;
padding-bottom: 20px;
}

#search-container, .header-contact-details {
clear: both;
}

@media (max-width: 371px) {

.header-contact-details {
display: block;
margin-left: auto;
margin-right: auto;
float: none !important;
}
}

.header-contact-details, .header-contact-details a  {
color: #F9F9F9;
font-size: 22px;
font-weight: bold;
margin: 0.5em 0;
/* text-shadow: 1px 2px #000; */
}

@media (max-width: 371px)  and (min-width: 321px) {

.header-contact-details, .header-contact-details a {
display: block;
padding-left: 4em;
}
}

@media (max-width: 320px) {

.header-contact-details, .header-contact-details a {
display: block;
padding-left: 3em;
}
}

.header-contact-details a:hover  {
text-decoration:none;
}

@media (max-width: 371px) and (min-width: 321px) {

.search-box-wrapper {
display: block;
margin-left: auto;
margin-right: auto;
float: none !important;
}
}

@media (max-width: 320px) {

.search-box-wrapper {
display: block;
margin-left: auto;
margin-right: 1em;
}
}

.search-box > form.search-form > label{
vertical-align: top;
}

input.search-input[type="search"] {
background-color: rgba(255, 255, 255, 0.5);
border-radius: 0;
border-left: #005DB3 solid 2px;
border-right: 2px solid rgba(0, 0, 0, 0);
border-top: #005DB3 solid 2px;
border-bottom: #005DB3 solid 2px;
color: #FFF;
font-weight: 300;
}

.btn-search {
border-radius: 0;
border-right: #005DB3 solid 2px;
border-top: #005DB3 solid 2px;
border-bottom: #005DB3 solid 2px;
background-color: rgba(255, 255, 255, 0.5);
margin: 0 0 0 -4px;
color: #FFF !important;
height:34px;
}

@media (max-width: 371px) {

.logo img {
display: block;
margin-left: auto;
margin-right: auto;
}
}

/******************************************************************/
/* Top Navigation */
/******************************************************************/
.nav{
border-radius:4px;
}

ul#menu-primary-navigation{
background-color: #E5E5E5;
background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJod…0iMCIgd2lkdGg9Ijk0MyIgaGVpZ2h0PSIzNiIgZmlsbD0idXJsKCNoYXQwKSIgLz4KPC9zdmc+);
background-image: -moz-linear-gradient(bottom, #e5e5e5 0%, #f9f9f9 51.25%, #e5e5e5 100%);
background-image: -o-linear-gradient(bottom, #e5e5e5 0%, #f9f9f9 51.25%, #e5e5e5 100%);
background-image: -webkit-linear-gradient(bottom, #E5E5E5 0%, #F9F9F9 51.25%, #E5E5E5 100%);
background-image: linear-gradient(bottom, #e5e5e5 0%, #f9f9f9 51.25%, #e5e5e5 100%);
}

ul#menu-secondary-navigation {
border: #005DB3 solid 2px;
background-color: rgba(255, 255, 255, 0.5);
border-radius: 0;
}

ul#menu-primary-navigation > li > a {
color: #02243C;
margin: 10px 0;
padding: 5px 0;
border-right: 1px solid #02243C;
}
ul#menu-primary-navigation > li > a:hover {
color: #5BC236;
background:transparent;
}

ul#menu-secondary-navigation > li > a {
color: #005DB3;
margin: 10px 0;
padding: 5px 0;
border-right: 1px solid #005DB3;
}

ul#menu-secondary-navigation > li > a:hover {
color: #02243C;
background:transparent;
}

ul#menu-primary-navigation > li:last-child > a , ul#menu-secondary-navigation  > li:last-child > a{
border-right: none;
}

ul#menu-primary-navigation > li {
color: #333;
}

.navbar-collapse{
background: #E5E5E5;
}

.navbar-toggle .icon-bar {
background: #FFF;
}

@media (max-width: 320px) {

.navbar-header {
display: block;
margin-left: auto;
margin-right: auto;
}
}

@media (max-width: 371px) and (min-width: 321px) {

.navbar-header {
display: block;
margin-top: -70px;
margin-left: auto;
margin-right: auto;
float: right !important;
}
}

.navbar-toggle {
border: 1px solid #FFF;
}

@media (max-width: 320px) {

.navbar-header, .navbar-toggle {
position: relative;
display: block;
margin-left: auto;
margin-right: 3.5em;
}
}

/******************************************************************/
/* Main Area */
/******************************************************************/
h1.entry-title {
font-size: 18px;
font-weight: 700;
color: #F9F9F9;
padding: .5em 1em;
-moz-border-radius: 2px;
-webkit-border-radius: 2px;
border-radius: 2px;
background-color: #01233B;
border-top: 2px solid #E6E6E6;
border-bottom: 2px solid #02243C;
background-image: linear-gradient(#E6E6E6, #02243C), linear-gradient(#E6E6E6, #02243C);
background-size: 2px 100%;
background-position: 0 0, 100% 0;
background-repeat: no-repeat;
margin-top:0;
}

h1.entry-title > a {
color:white;
}

.entry-content {
margin: -10px 5px 20px 5px;
padding: 2.5em 1em 1em 2em;
background-color: #E5E5E5;
background-image: url("images/intro-bg.png");
background-repeat: no-repeat;
background-position: top right;
background-size: cover;
overflow: none;
}

.entry-content .wp-caption {
	max-width: 100% !important;
	height: auto;
}

.entry-content .wp-caption img {
	max-width: 100% !important;
	height: auto;
}

.entry-content .caption {
	max-width: 100% !important;
	height: auto;
}

.entry-content .caption img {
	max-width: 100% !important;
	height: auto;
}

.entry-summary {
margin: -10px 5px 0 15px;
padding: 1em;
padding-bottom: 2em;
background-color: #E5E5E5;
background-image: url("images/intro-bg.png");
background-repeat: no-repeat;
background-position: top right;
background-size: cover;
overflow: auto;
}

.center-pic {
position: relative;
margin: 0 auto; 
}

.entry-meta {
margin-bottom: 10px;
	float: left;
	padding-left: 20px;
	color: #02243C;
}

footer.entry-meta {
margin-bottom: 0;
}

.entry-meta > span {
margin-right: 15px;
border-right: 1px solid;
padding-right: 15px;
color: #02243C;
}

.entry-meta > span:last-child {
border-right: none;
padding-right: 0;
margin-right: 0;
}

.entry-meta > span > a {
color: #02243C;
}
.entry-meta > span > a:hover {
color: #5BC236;
}

nav.navigation > h1 {
color: #FFF;
font-size: 20px;
}

.nav-links a {
color: #FFF;
}

.entry-thumbnail {
margin: 0 auto;
max-width: 600px;
margin-bottom: 15px;
border: 5px solid #5BC236;
}

.entry-thumbnail > img {
width: 100%;
height: auto;
}


.feed-entry-thumbnail {
max-width: 250px;
max-height: 250px;
float: left;
margin-right: 15px;
/*border: 5px solid #5BC236;*/
}

.feed-entry-thumbnail > a > img {
width: 100%;
height: auto;
}

a.moretag {
font-weight: bold;
}

#comments {
padding: 10px;
margin: 15px 0 0;
padding: 1em;
padding-bottom: 2em;
background-color: #E5E5E5;
background-image: url("images/intro-bg.png");
background-repeat: no-repeat;
background-position: top right;
background-size: cover;
}

h3#reply-title, h2.comments-title {
margin-top: 0;
}

ol.comment-list {
list-style: none;
padding: 0;
}

ol.comment-list > li {
background:#fff;
padding:10px;
}

ol.children {
list-style: none;
background: #CCC;
padding: 10px;
margin: 0 10px;
}

.comment-metadata {
float: right;
margin-top: -30px;
}

.comment-content {
margin-top: 15px;
}

code {
white-space: normal !important;
}

.reply {
text-align: right;
font-weight: bold;
margin-bottom: 10px;
}

ol.children .reply {
margin-bottom: 0;
}

textarea#comment {
width: 100%;
}

.nav-links a[rel=next] {
float: right;
}


/******************************************************************/
/* Video Classes */
/******************************************************************/

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    padding-top: 30px; height: 0; overflow: hidden;
}
 
.video-container iframe,
.video-container object,
.video-container embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}


/******************************************************************/
/* Sidebar Area */
/******************************************************************/
#main-sidebar .widget-title {
font-size: 18px;
font-weight: 700;
color: #F9F9F9;
padding: .5em 1em;
-moz-border-radius: 2px;
-webkit-border-radius: 2px;
border-radius: 2px;
background-color: #01233B;
border-top: 2px solid #E6E6E6;
border-bottom: 2px solid #02243C;
background-image: linear-gradient(#E6E6E6, #02243C), linear-gradient(#E6E6E6, #02243C);
background-size: 2px 100%;
background-position: 0 0, 100% 0;
background-repeat: no-repeat;
}

#main-sidebar .textwidget {
min-height: 100%;
margin: -10px 3px 0 3px;
padding: 5px 15px;
background-color: #ffff99;
border-top: 2px solid #02243C;
border-bottom: 2px solid #E6E6E6;
background-image: linear-gradient(#02243C, #E6E6E6), linear-gradient(#02243C, #E6E6E6);
background-size: 2px 100%;
background-position: 0 0, 100% 0;
background-repeat: no-repeat;
}

#main-sidebar aside:first-child > .widget-title{
margin-top: 0;
}

.facebook-widget-feed > h3.widget-title {
background: #01233B url('images/facebookfeed_icon.png') no-repeat 15px center !important;
padding-left: 40px !important;
}

.twitter-widget-feed > h3.widget-title {
background: #01233B url('images/twitterfeed_icon.png') no-repeat 15px center !important;
padding-left: 50px !important;
}

/*Ad Rotate Specific Styles*/
.g.g-1 {
margin: -10px 3px 0 3px;
padding: 5px 15px;
background-color: #E5E5E5;
border-top: 2px solid #02243C;
border-bottom: 2px solid #E6E6E6;
background-image: linear-gradient(#02243C, #E6E6E6), linear-gradient(#02243C, #E6E6E6);
background-size: 2px 100%;
background-position: 0 0, 100% 0;
background-repeat: no-repeat;
text-align: center;
max-width: none;
/*min-height: 150px;*/
}

#advertisment-footer .g-2 {
min-width: 100%;
max-width: 100%;
width: 100%;
margin: 0 20px;
}

#advertisment-footer .g-col {
display: block;
width: 22.8%;
/*min-height: 180px;*/
padding: 15px;
margin: 5px;
background-color: #E5E5E5;
border-top: 2px solid #02243C;
border-bottom: 2px solid #E6E6E6;
background-image: linear-gradient(#02243C, #E6E6E6), linear-gradient(#02243C, #E6E6E6);
background-size: 2px 100%;
background-position: 0 0, 100% 0;
background-repeat: no-repeat;
}

#advertisment-footer .g-2 > .g-col:first-child {
margin-left: 0;
}

#advertisment-footer .g-col > a > img {
width: 100%;
}

/*Posts Calendar Specific Styles*/
#calendar_wrap {
margin: -10px 3px 0 3px;
padding: 15px;
background-color: #E5E5E5;
border-top: 2px solid #02243C;
border-bottom: 2px solid #E6E6E6;
background-image: linear-gradient(#02243C, #E6E6E6), linear-gradient(#02243C, #E6E6E6);
background-size: 2px 100%;
background-position: 0 0, 100% 0;
background-repeat: no-repeat;
}

#calendar_wrap table {
width: 100%;
}

/*Facebook Feed Specific Styles*/
#ik_fb_widget {
margin: -10px 3px 0 3px;
padding: 15px;
background-color: #E5E5E5;
border-top: 2px solid #02243C;
border-bottom: 2px solid #E6E6E6;
background-image: linear-gradient(#02243C, #E6E6E6), linear-gradient(#02243C, #E6E6E6);
background-size: 2px 100%;
background-position: 0 0, 100% 0;
background-repeat: no-repeat;
overflow: auto;
}

.ik_fb_feed_window {
list-style-type: none;
padding: 0;
}

li.ik_fb_feed_item {
border-bottom: 1px solid #024b80;
margin-bottom: 15px;
padding-bottom: 5px;
}

li.ik_fb_feed_item:last-child {
border-bottom: none;
margin-bottom: 0;
padding-bottom: 0;
}

p.ik_fb_facebook_image {
border: 2px solid #024b80;
}
  
p.ik_fb_facebook_image > a > img {
width: 100%;
}

/*Twitter Feed Specific Styles*/
#reallysimpletwitterwidget-3 ul {
list-style-type: none;
margin: -10px 3px 0 3px;
padding: 15px;
background-color: #E5E5E5;
border-top: 2px solid #02243C;
border-bottom: 2px solid #E6E6E6;
background-image: linear-gradient(#02243C, #E6E6E6), linear-gradient(#02243C, #E6E6E6);
background-size: 2px 100%;
background-position: 0 0, 100% 0;
background-repeat: no-repeat;
}

#reallysimpletwitterwidget-3 .entry-content {
margin: 0;
padding: 0;
background-color: rgba(0, 0, 0, 0);
background-image: none;
background-repeat: no-repeat;
background-position: initial;
background-size: initial;
overflow: initial;
}

#reallysimpletwitterwidget-3 li {
border-bottom: 1px solid #024b80;
margin-bottom: 15px;
padding-bottom: 15px;
}

#reallysimpletwitterwidget-3 li:last-child {
border-bottom: none;
margin-bottom: 0;
padding-bottom: 0;
}

/*Recent Posts Feed Specific Styles*/
#recent-posts-3 ul {
list-style-type: none;
margin: -10px 3px 0 3px;
padding: 15px;
background-color: #E5E5E5;
border-top: 2px solid #02243C;
border-bottom: 2px solid #E6E6E6;
background-image: linear-gradient(#02243C, #E6E6E6), linear-gradient(#02243C, #E6E6E6);
background-size: 2px 100%;
background-position: 0 0, 100% 0;
background-repeat: no-repeat;
}

#recent-posts-3 li {
border-bottom: 1px solid #024b80;
margin-bottom: 15px;
padding-bottom: 15px;
}

#recent-posts-3 li:last-child {
border-bottom: none;
margin-bottom: 0;
padding-bottom: 0;
}

/*Constant Contact Widget*/
#sf_widget_constantcontact_2_form {
margin: -10px 3px 0 3px;
padding: 15px;
background-color: #E5E5E5;
border-top: 2px solid #02243C;
border-bottom: 2px solid #E6E6E6;
background-image: linear-gradient(#02243C, #E6E6E6), linear-gradient(#02243C, #E6E6E6);
background-size: 2px 100%;
background-position: 0 0, 100% 0;
background-repeat: no-repeat;
}

#sf_widget_constantcontact_2_form input[type=text]{
display: inline-block;
width: 63%;
height: 34px;
margin-right: 5px;
padding: 6px 12px;
font-size: 14px;
line-height: 1.42857143;
color: #555;
background-color: #FFF;
background-image: none;
border: 1px solid #CCC;
border-radius: 4px;
-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
-webkit-transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s;
transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s;
}

#sf_widget_constantcontact_2_form input[type=submit]{
display: inline-block;
margin-bottom: 0;
font-weight: 400;
text-align: center;
vertical-align: middle;
cursor: pointer;
color: #FFF;
background-image: none;
background-color: #428BCA;
border-color: #357EBD;
border: 1px solid rgba(0, 0, 0, 0);
white-space: nowrap;
padding: 6px 12px;
font-size: 14px;
line-height: 1.42857143;
border-radius: 4px;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}

	
/*Events Calendar Widget*/
ol.hfeed.vcalendar{
margin: -10px 3px 0 3px;
padding: 15px;
background-color: #E5E5E5;
border-top: 2px solid #02243C;
border-bottom: 2px solid #E6E6E6;
background-image: linear-gradient(#02243C, #E6E6E6), linear-gradient(#02243C, #E6E6E6);
background-size: 2px 100%;
background-position: 0 0, 100% 0;
background-repeat: no-repeat;
}

p.tribe-events-widget-link {
margin: -25px 0px 25px 15px;
}
  
.tribe-mini-calendar-wrapper {
list-style-type: none;
margin: -10px 3px 0 3px;
padding: 15px;
background-color: #E5E5E5;
border-top: 2px solid #02243C;
border-bottom: 2px solid #E6E6E6;
background-image: linear-gradient(#02243C, #E6E6E6), linear-gradient(#02243C, #E6E6E6);
background-size: 2px 100%;
background-position: 0 0, 100% 0;
background-repeat: no-repeat;
width: 99% !important;
}

.tribe-mini-calendar th.tribe-mini-calendar-dayofweek {
padding: 10px 0;
}

#tribe-events-adv-list-widget-2 .upcoming-events-wrapper,#tribe-events-adv-list-widget-2 > p:not(.tribe-events-widget-link)  {
list-style-type: none;
margin: -10px 3px 0 3px;
padding: 15px;
background-color: #E5E5E5;
border-top: 2px solid #02243C;
border-bottom: 2px solid #E6E6E6;
background-image: linear-gradient(#02243C, #E6E6E6), linear-gradient(#02243C, #E6E6E6);
background-size: 2px 100%;
background-position: 0 0, 100% 0;
background-repeat: no-repeat;
}

/******************************************************************/
/* Footer Area */
/******************************************************************/
#footer {
margin-top: 1.5em;
padding-bottom: 3em;
background-color: #005db3;
border-top: 8px solid #5BC236;
}

#footer-widgets h3.widget-title {
font-size: 16px;
border-bottom: 1px solid #5BC236;
padding-bottom: 15px;
color: #e5e5e5;
}

#footer-widgets ul{
list-style-type:none;
padding:0;
}

#footer-widgets ul > li > a{
color: #f7f7f7;
text-decoration: none;
}

#footer-widgets .textwidget{
color: #f7f7f7;

}

#footer-widgets ul > li > a:hover{
color: #5bc236;
}

#footer-widgets ul > li > a:active {
color: #e6e6e6;
}

#footer-links{
margin-top:1.5em;
}

span.wpcf7-not-valid-tip {
color: #5BC236;
}

/******************************************************************/
/* Social Icons for Footer & Header */
/******************************************************************/

@media (max-width: 371px) {

.social-icons {
margin-top: 40px;
display: block;
margin-left: auto;
margin-right: auto;
float: left !important;
}
}

.social-icons aside{
display:inline-block;
margin: 0 0 0 1.5em;
}

@media (max-width: 320px) {

.social-icons aside {
display:inline-block;
margin: 0 0 0 1.8em;
}
}

@media (max-width: 371px) and (min-width: 321px) {

.social-icons aside {
display:inline-block;
margin: 0 0 0 2.5em;
}
}

/******************************************************************/
/* Main Slider */
/******************************************************************/
.metaslider {
margin-bottom: 25px;
border: 1px solid #004077;
background-color: #01233B;
padding: 15px 5px;
}

.nivo-directionNav a {
display: block !important;
width: 60px !important;
height: 60px !important;
border-radius: 50px;
background: #02243C !important;
color: #5BC236;
text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.3);
font-size: 60px !important;
text-indent: 12px !important;
line-height: 60px;
}

.nivo-directionNav a.nivo-nextNav {
text-indent: 16px !important;
}

.nivo-directionNav a:hover{
text-decoration: underline;
}

.nivo-caption {
text-align: center;
font-weight: bold;
font-size: 22px;
text-transform: uppercase;
padding: 15px 0 !important;
}

/******************************************************************/
/* Homepage Boxes */
/******************************************************************/
.hp-box > h3 {
background-color: #E5E5E5;
color: #024C80;
font-size: 18px;
padding: 8px 0 8px 15px;
margin-bottom:0;
margin-top: 0;
border: 3px solid #02243C;
}

.hp-box > h3 > img {
height: 22px;
width:auto;
vertical-align: middle;
}

.hp-box > .box-image-wrapper {
position:relative;
background-color: #01233B;
border-bottom: 2px solid #005DB3;
background-image: linear-gradient(#E6E6E6, #005DB3), linear-gradient(#E6E6E6, #005DB3);
background-size: 1px 100%;
background-position: 0 0, 100% 0;
background-repeat: no-repeat;
width:98%;
padding:15px;
margin-left: 1%;
}

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

.hp-box > .box-image-wrapper > a{
position: absolute;
bottom: 15px;
background: rgba(0, 0, 0, 0.65);
display: block;
width: 92%;
padding: 10px;
color: #5BC236;
}

.hp-content-area{
margin-top: 25px;
}

/******************************************************************/
/* Contact Page */
/******************************************************************/
.contact-form-wrapper {
width: 90%;
margin: 0 auto;
background-color: rgba(255, 255, 255, 0.5);
border: #005DB3 solid 2px;
padding: 2em;
}
.contact-form-wrapper input[type="text"], .contact-form-wrapper input[type="email"], .contact-form-wrapper input[type="number"], .contact-form-wrapper textarea {
padding: 26px;
margin-bottom: 10px;
border: #02243C solid 1px;
border-radius: 0;
}

.contact-form-wrapper select {
margin-bottom: 10px;
border: #02243C solid 1px;
border-radius: 0;
}
.contact-form-wrapper p {
margin-top: 20px;
color: #02243C;
font-size: 16px;
font-weight: bold;
}

#mapConElem_1 {
width: 100% !important;
padding: 0 40px;
}

.wp-caption {
position: relative;
margin: 0 auto;
}


/******************************************************************/
/* Media Queries */
/******************************************************************/

@media (max-width:1200px) and (min-width:991px) {

#advertisment-footer .g-col {
width: 22.4%;
}

	.entry-content .wp-caption {
	max-width: 610px !important;
	height: auto;
}

.entry-content .wp-caption img {
	max-width: 100% !important;
	height: auto;
}
	
}
	
@media (max-width:991px) and (min-width:767px) {

.tribe-mini-calendar {
font-size: 85%;
}
	
.tribe-mini-calendar-nav .prev-month, .tribe-mini-calendar-nav .next-month {
margin: 0 !important;
}

#menu-primary-navigation > li > a {
font-size: 12px;
}

.entry-content .wp-caption {
	max-width: 100% !important;
	height: auto;
}

.entry-content .wp-caption img {
	max-width: 100% !important;
	height: auto;
}

  
@media (max-width: 991px) {

.g-dyn > a > img {
width: 100%;
max-width: 250px;
}
	
#sf_widget_constantcontact_2_form input[type=text]{
display: block;
width: 100%;
}
	
#sf_widget_constantcontact_2_form input[type=submit] {
display: block;
width: 100%;
margin-top: 5px;
}
	
#advertisment-footer .g-col {
width: 21.6%;
}

.comment-metadata {
float: none;
font-size: 12px;
margin-top: 12px;
font-style: italic;
}	

.nav-links a[rel=next] {
float: none;
display: block;
margin-top: 10px;
}
	
}

@media (max-width: 767px){
	
.container.main-body > .row {
margin-left: 5px;
margin-right: 5px;
}
		  
.hp-box > .box-image-wrapper {
margin-bottom: 25px;
}
			  
.row > .col-sm-6:last-child .hp-box > .box-image-wrapper{
margin-bottom: 0;
}
	
.g-1 { 
max-height:none !important;
}

.top-contact {
/*margin-top: 20px;*/
}

.dropdown-menu {
position: relative;
width: 100%;
background: rgba(0, 0, 0, 0);
box-shadow: none;
border: none;
}

.nav-justified {
border-radius:0;
}

.nav-justified > li > a {
text-align: left;
padding: 0 10px !important;
}

ul#menu-primary-navigation > li > a , ul#menu-secondary-navigation  > li > a{
border-right: none;
}

#advertisment-footer {
margin: 15px 0;
}

#advertisment-footer .g-col {
width: 22.6%;
}	

}

@media (max-width: 700px){
  
#advertisment-footer .g-col {
width: 22.2%;
}	

}

@media (max-width: 632px){
  
#advertisment-footer .g-col {
width: 22.0%;
}	

}

@media (max-width: 575px){
  
#advertisment-footer .g-col {
width: 21.6%;
}	

.col-xxs{
width: 100% !important;
}

.col-xxs > a > img {
margin: 0 auto 20px auto;
display: block;
}

.col-xxs > div {
float: none !important;
}

.top-contact {
margin-top: 0px;
padding-bottom: 0;
text-align: center;
}

.social-icons aside {
margin: 0 10px;
}

.main-header {
margin-top: 1em;
}

.navbar-toggle {
float: none;
}

.navbar-header {
text-align: center;
}
	
}

@media (max-width: 516px){
  
#advertisment-footer .g-col {
width: 21.0%;
}	

}


@media (max-width: 479px){

#mapConElem_1 {
padding: 0;
}

}

@media (max-width: 456px){
  
#advertisment-footer .g-col {
width: 20.1%;
}	

}

@media (max-width: 400px) { 
 
#advertisment-footer .g-col {
width: 88%;
margin-left: 0;
}

}

@media (max-width: 350px) { 
 
#advertisment-footer .g-col {
width: 85%;
margin-left: 0;
}

}
  
@media (min-width: 768px){

.navbar-collapse.collapse, .navbar-collapse1.collapse1 {
padding: 0;
border-radius: 4px;
}

}
	

.nav-links{ width: 40em; display: inline-block;}
.nav-previous { margin-right: 2em; max-width: 15em; float:left;}
.nav-next { margin-left: 2em; max-width: 15em;}