/*
Theme Name: Diocese of Venice
Theme URI: http://diocesan.com/
Author: Diocesan 
Author URI: http://diocesan.com/
Description: Custom WordPress theme based on _s for Diocese of Venice
Version: 1.0.2
License: GNU General Public License v2 or later
License URI: LICENSE

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.

dpi_dov is based on Underscores http://underscores.me/, (C) 2012-2016 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.

Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal http://necolas.github.io/normalize.css/

*/
/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Normalize
# Typography
# Elements
# Forms
# Header
# Navigation
	## Links
	## Menus
# Accessibility
# Alignments
# Clearings
# Widgets
# Content
	## Posts and pages
	## Comments
# Infinite scroll
# Media
	## Captions
	## Galleries
# Homepage
# Footer
# Responsive
# Find a Parish
--------------------------------------------------------------*/

/*@import url('https://fonts.googleapis.com/css?family=Lato:300,400,400i,700,700i');*/

 @font-face {
    font-family: 'Daydream Regular';
    font-style: normal;
    font-weight: normal;
    src: local('Daydream Regular'), url('fonts/daydream.woff') format('woff');
}

/*--------------------------------------------------------------
# Normalize
--------------------------------------------------------------*/
html {
	font-family: sans-serif;
	-webkit-text-size-adjust: 100%;
	-ms-text-size-adjust: 100%;
}

body {
	margin: 0;
}

article,
aside,
details,
figcaption,
figure,
footer,
header,
main,
menu,
nav,
section,
summary {
	display: block;
}

audio,
canvas,
progress,
video {
	display: inline-block;
	vertical-align: baseline;
}

audio:not([controls]) {
	display: none;
	height: 0;
}

[hidden],
template {
	display: none;
}

a {
	background-color: transparent;
}

a:active,
a:hover {

}

abbr[title] {
	border-bottom: 1px dotted;
}

b,
strong {
	font-weight: bold;
}

dfn {
	font-style: italic;
}

h1 {
	font-size: 2em;
	margin: 0.67em 0;
}

mark {
	background: #ff0;
	color: #000;
}

small {
	font-size: 80%;
}

sub,
sup {
	font-size: 75%;
	line-height: 0;
	position: relative;
	vertical-align: baseline;
}

sup {
	top: -0.5em;
}

sub {
	bottom: -0.25em;
}

img {
	border: 0;
}

svg:not(:root) {
	overflow: hidden;
}

figure {
	margin: 1em 40px;
}

hr {
	box-sizing: content-box;
	height: 0;
}

pre {
	overflow: auto;
}

code,
kbd,
pre,
samp {
	font-family: monospace, monospace;
	font-size: 1em;
}

button,
input,
optgroup,
select,
textarea {
	color: inherit;
	font: inherit;
	margin: 0;
}

button {
	overflow: visible;
}

button,
select {
	text-transform: none;
}

button,
html input[type="button"],
input[type="reset"],
input[type="submit"] {
	-webkit-appearance: button;
	cursor: pointer;
}

button[disabled],
html input[disabled] {
	cursor: default;
}

button::-moz-focus-inner,
input::-moz-focus-inner {
	border: 0;
	padding: 0;
}

input {
	line-height: normal;
}

input[type="checkbox"],
input[type="radio"] {
	box-sizing: border-box;
	padding: 0;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
	height: auto;
}

input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration {
	-webkit-appearance: none;
}

fieldset {
	border: 1px solid #c0c0c0;
	margin: 0 2px;
	padding: 0.35em 0.625em 0.75em;
}

legend {
	border: 0;
	padding: 0;
}

textarea {
	overflow: auto;
}

optgroup {
	font-weight: bold;
}

table {
	border-collapse: collapse;
	border-spacing: 0;
}

td,
th {
	padding: 0;
}

/*--------------------------------------------------------------
# Typography
--------------------------------------------------------------*/

body,
button,
input,
select,
optgroup,
textarea {
	background: #fff;
	color: #404040;
	font-family: 'Arial', sans-serif;
	font-size: 16px;
	font-size: 1rem;
	line-height: 1.5;
}

h1, h2, h3, h4, h5, h6 {
	clear: both;
	color: #1d3a57;
	/*color: #234061;*/
    font-weight: 600;
    line-height: 1.25;
    margin-bottom: 0;
}

h1 {
	font-size: 2.5em;
}

h2 {
	font-size: 2em;
}

h3 {
	font-size: 1.6em;
}

h4 {
	font-size: 1.3em;
	color: #000;
}

h5 {
	font-size: 1.2em;
	color: #000;
}

h6 {
	font-size: 1em;
	color: #000;
}

p {
	margin-bottom: 1.5em;
}

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

blockquote {
	margin: 10px 1.5em 10px 0;
	border-left: 1px solid ;
	border-left: 1px solid #999;
    padding-left: 20px;
}

address {
	margin: 0 0 1.5em;
}

pre {
	background: #eee;
	font-family: "Courier 10 Pitch", Courier, monospace;
	font-size: 15px;
	font-size: 0.9375rem;
	line-height: 1.6;
	margin-bottom: 1.6em;
	max-width: 100%;
	overflow: auto;
	padding: 1.6em;
}

code, kbd, tt, var {
	font-family: Monaco, Consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
	font-size: 15px;
	font-size: 0.9375rem;
}

abbr, acronym {
	border-bottom: 1px dotted #666;
	cursor: help;
}

mark, ins {
	background: #fff9c0;
	text-decoration: none;
}

big {
	font-size: 125%;
}

article p {
	font-size: 17px;
    line-height: 1.8;
    margin: .5em 0 1em 0;
}

.small,
p.small {
	font-size: 80%;
}

/*--------------------------------------------------------------
# Elements
--------------------------------------------------------------*/
html {
	box-sizing: border-box;
}

*,
*:before,
*:after {
	/* Inherit box-sizing to make it easier to change the property for components that leverage other behavior; see http://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/ */
	box-sizing: inherit;
}

body {
	background: #fff;
	/* Fallback for when there is no custom background color defined. */
}

hr {
    border-width: 1px #ddd;
    clear: both;
    height: 0;
    margin: 1.25em 0;
}

ul, ol {
	margin: 1.5em;
}

li {
	margin-bottom: 3px;
}

ul {
	list-style: disc;
}

ol {
	list-style: decimal;
}

li > ul,
li > ol {
	margin-bottom: 0;
	margin-left: 1.5em;
}

dt {
	font-weight: bold;
}

dd {
	margin: 0 1.5em 1.5em;
}

img {
	height: auto;
	/* Make sure images are scaled correctly. */
	max-width: 100%;
	/* Adhere to container width. */
}

figure {
	margin: 1em 0;
	/* Extra wide images within figure tags don't overflow the content area. */
}

table {
	margin: 0 0 1.5em;
	width: 100%;
}


/*--------------------------------------------------------------
# Forms
--------------------------------------------------------------*/
button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
	    border: 2px solid #1d3a57;
    /* border-color: #ccc #ccc #bbb; */
    /* border-radius: 3px; */
    /* background: #e6e6e6; */
    color: rgba(0, 0, 0, 0.8);
    /* font-size: 12px; */
    /* font-size: 0.75rem; */
    line-height: 1;
    padding: 10px 20px;
}

button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover {
	background: #1d3a57;
	color: #fff;
}

button:active, button:focus,
input[type="button"]:active,
input[type="button"]:focus,
input[type="reset"]:active,
input[type="reset"]:focus,
input[type="submit"]:active,
input[type="submit"]:focus {
	border-color: #aaa #bbb #bbb;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="range"],
input[type="date"],
input[type="month"],
input[type="week"],
input[type="time"],
input[type="datetime"],
input[type="datetime-local"],
input[type="color"],
textarea {
	color: #666;
	border: 1px solid #ccc;
	border-radius: 3px;
	padding: 3px;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="range"]:focus,
input[type="date"]:focus,
input[type="month"]:focus,
input[type="week"]:focus,
input[type="time"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
input[type="color"]:focus,
textarea:focus {
	color: #111;
}

select {
	border: 1px solid #ccc;
}

textarea {
	width: 100%;
}

/*--------------------------------------------------------------
# Header     
--------------------------------------------------------------*/

#masthead.site-header {
    z-index: 999;
    height: 180px;
    width: 100%;
    width: 100%;
    margin-bottom: -180px;
}

/*.admin-bar #masthead.site-header {
	top: 32px;
}*/

/*#masthead.nav-up,
.admin-bar #masthead.nav-up {
	top: -100%;
}*/

#masthead.nav-down {
	position: fixed;
    top: 0;
    background: rgba(29, 58, 87, 0.9);
    z-index: 99;
    height: 120px;
}

#masthead.nav-up {
	position: fixed;
    top: -100%;
    transition: none;
}

.admin-bar #masthead.nav-down {
	top: 32px;
}

.smoothScrollSpace {
	margin-top: 180px;
}

.mobile-menu-toggle {
	display: none;
}

body:not(.page)  #masthead.site-header {
	margin-bottom: 0;
}

body:not(.page)  header.site-header::before {
	content: '';
    z-index: -1;
    position: absolute;
    width: 100%;
    top: 0;
    height: 100%;
    background-image: url(images/default-header.jpg);
    background-size: cover;
    background-position: center 34%;
}

body:not(.page) #content.site-content {
	padding-top: 180px;
}

header.site-header::after {
/*	content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    display: block;
    z-index: -1;
    background: rgba(60, 60, 60, .7);*/
}

.home header.site-header {
	background-image: none;
}

.home header.site-header:after {
	content: none;
}

.home .site-content, .page-template-template-home2 .site-content {
	padding-bottom: 10px;
}

.header-wrap {
	/*max-width: 1100px;*/
	width: 95%;
	margin: 0 auto;
	padding: 28px 0 0;
}

header .site-branding {
	display: inline-block;
	width: 300px;
	transition: all 0.2s ease-in-out;
}

header .site-branding img {
	width: 100%;
}

header.nav-down .site-branding {
	width: 200px;
}

header.nav-down .header-wrap {
	padding: 20px 0 0;
}

header .header-right {
	float: right;
    display: inline-block;
    color: #fff;
    text-align: right;
    position: relative;
}

header.nav-down .header-right {
	padding-right: 45px;
}

header .header-right p {
	color: #fff;
}

header .header-right .social-translate {
	display: flex;
    justify-content: flex-end;
    margin: 15px 0;
}

header .header-right  .social-translate #google_language_translator {
	margin-right: 20px;
}

header.nav-down .header-right  .social-translate #google_language_translator {
	display: none;
}

header .header-right  .social-translate a {
	margin-right: 10px;
}

header.nav-down .header-right  .social-translate a {
	display: none;
}

header .header-right  .social-translate img {
	max-width: 30px;
}

.header-right .search-form input {
	display: none;
}

.header-right .search-form input.search-submit {
	width: 30px;
	height: 30px;
	display: block;
	background-color: transparent;
	border: 0;
	border-radius: 0;
	background-image: url('images/search.png');
	background-size: 30px 30px;
	background-position: center center;
	cursor: pointer;
	text-indent: -9999px;
	background-repeat: no-repeat;
}

.nav-down .header-right .search-form {
	position: absolute;
	bottom: 5px;
	right: 0;
}

.headroom {
    will-change: transform;
    background: rgba(29, 58, 87, 0.9);
    transition: transform 200ms linear;
    position: fixed;
}

.headroom--unpinned {
	transform: translateY(-100%);
}

.headroom--pinned {
	display: block;
    transform: translateY(0%);
    transition: 0.2s all;
}

.headroom--top {
	background: transparent;
}

/*--------------------------------------------------------------
# Navigation   
--------------------------------------------------------------*/
/*--------------------------------------------------------------
## Links  
--------------------------------------------------------------*/
a {
	color: #b08f62;
	text-decoration: none;

}

a:visited {

}

a:hover, a:focus, a:active {

}

.site-main a:hover, 
.site-main a:focus, 
.site-main a:active {
	text-decoration: underline;
}
 
.tg-grid-wrapper a:hover, 
.tg-grid-wrapper a:focus, 
.tg-grid-wrapper a:active {
	border-bottom: 0;
}

a:focus {

}

a:hover, a:active {

}

/*--------------------------------------------------------------
## Menus
--------------------------------------------------------------*/
.main-navigation {
	clear: both;
	display: block;
	float: right;


}

.main-navigation ul {
	/*display: none;*/
	list-style: none;
	margin: 0;
	padding-left: 0;
}

.main-navigation ul ul {
	box-shadow: 0 3px 3px rgba(0, 0, 0, 0.2);
	float: left;
	position: absolute;
	top: 100%;
	left: -999em;
	z-index: 99999;
}

.main-navigation ul ul ul {
	left: -999em;
	top: 0;
}

.main-navigation ul ul li:hover > ul,
.main-navigation ul ul li.focus > ul {
	left: 100%;
}

.main-navigation ul ul a {
	width: 200px;
}

.main-navigation ul li:hover > ul,
.main-navigation ul li.focus > ul {
	left: auto;
}

.main-navigation li {
	float: left;
	position: relative;
}

.main-navigation a {
	display: block;
	text-decoration: none;
	color: #fff;
}

#primary-menu > li > a {
	font-size: 19px;
    padding: 2px 0;
    margin: 0 10px;
    font-weight: 400;
    border-bottom: 2px solid transparent;
}

#primary-menu > li > a:hover {
	border-bottom: 2px solid #fff;
}

#primary-menu > li:last-child > a {
	margin-right: 0;
}

/* Small menu. */
.menu-toggle,
.main-navigation.toggled ul {
	display: block;
}

@media screen and (min-width: 37.5em) {
	.menu-toggle {
		display: none;
	}
	.main-navigation ul {
		display: block;
	}
}

.site-main .comment-navigation, .site-main
.posts-navigation, .site-main
.post-navigation {

	overflow: hidden;
}

.comment-navigation .nav-previous,
.posts-navigation .nav-previous,
.post-navigation .nav-previous {
	float: left;
	width: 50%;
}

.comment-navigation .nav-next,
.posts-navigation .nav-next,
.post-navigation .nav-next {
	float: right;
	text-align: right;
	width: 50%;
}

/*--------------------------------------------------------------
# Accessibility
--------------------------------------------------------------*/
/* Text meant only for screen readers. */
.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	position: absolute !important;
	height: 1px;
	width: 1px;
	overflow: hidden;
	word-wrap: normal !important;
	/* Many screen reader and browser combinations announce broken words as they would appear visually. */
}

.screen-reader-text:focus {
	background-color: #f1f1f1;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	color: #21759b;
	display: block;
	font-size: 14px;
	font-size: 0.875rem;
	font-weight: bold;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
	/* Above WP toolbar. */
}

/* Do not show the outline on the skip link target. */
#content[tabindex="-1"]:focus {
	outline: 0;
}

/*--------------------------------------------------------------
# Alignments
--------------------------------------------------------------*/
.alignleft {
	display: inline;
	float: left;
	margin-right: 1.5em;
}

.alignright {
	display: inline;
	float: right;
	margin-left: 1.5em;
}

.aligncenter {
	clear: both;
	display: block;
	margin-left: auto;
	margin-right: auto;
}

/*--------------------------------------------------------------
# Clearings
--------------------------------------------------------------*/
.clear:before,
.clear:after,
.entry-content:before,
.entry-content:after,
.comment-content:before,
.comment-content:after,
.site-header:before,
.site-header:after,
.site-content:before,
.site-content:after,
.site-footer:before,
.site-footer:after {
	content: "";
	display: table;
	table-layout: fixed;
}

.clear:after,
.entry-content:after,
.comment-content:after,
.site-header:after,
.site-content:after,
.site-footer:after {
	clear: both;
}

/*--------------------------------------------------------------
# Widgets
--------------------------------------------------------------*/
.widget {
	margin: 0 0 1.5em;
	/* Make sure select elements fit in widgets. */
}

.widget select {
	max-width: 100%;
}

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

.hidden {
	display: none;
}

.search-no-results .page-content {
	clear: both;
    width: 95%;
    max-width: 1000px;
    margin: 0 auto 20px;
}

/*--------------------------------------------------------------
## Posts and pages
--------------------------------------------------------------*/

nav.posts-navigation,
nav.post-navigation {
    clear: both;
    width: 95%;
    max-width: 1000px;
    margin: .5em auto 1em;
}

ul.rss-aggregator { 
    list-style-type: none;
    margin-left: 0;
    padding-left: 0;
}

ul.rss-aggregator li.feed-item > a {
	font-size: 20px;
	margin-bottom: 5px; 
	display: block;
}

.three-column li.feed-item .wprss-feed-meta,
.two-column li.feed-item .wprss-feed-meta {
	display: none;
}

.three-column .wprss-et-social-buttons,
.two-column .wprss-et-social-buttons {
	display: none;
}

.three-column li.feed-item,
.two-column li.feed-item {
	display: flex;
	flex-direction: column-reverse;
}

li.feed-item .thumbnail-excerpt {
	overflow: visible !important;
}

li.feed-item .thumbnail-excerpt img {
	width: 100%;
	margin-right: 20px;
}

#all-news li.feed-item .thumbnail-excerpt img {
	max-width: 441px;
}

ul.rss-aggregator li.feed-item {
	border-bottom: 1px solid #eee;
    margin: 10px 0 20px 0;
    padding-bottom: 10px;
    /* display: block; */
    clear: both;
    /*min-height: 170px;*/
	overflow: auto;
}

.three-column ul.rss-aggregator li.feed-item {
	border: none;
	margin-top: 0;
	padding-bottom: 0;
}

.three-column li.feed-item .thumbnail-excerpt img {
	max-width: 100%;
	margin-right: 0;
}

.three-column ul.rss-aggregator li.feed-item > a {
	margin-top: 5px;
	margin-bottom: 0;
}

/*--------------------------------------------
### Hero header
---------------------------------------------*/

.featured-hero {
	background-image: url('images/default-header.jpg');
	background-size: cover;
	background-position: center 34%;
	background-attachment: fixed;
	height: 100vh;
	width: 100%;
	/*margin: -160px 0 0 0;*/
	padding: 27vh 0 0 0;
	position: relative;
}

.admin-bar .featured-hero {
	height: calc(100vh - 32px);
}

.featured-hero .hero-text {
	width: 95%;
	max-width: 1000px;
	margin: 0 auto;
	position: relative;
	z-index: 2;
}

.featured-hero h2 {
	color: #fff;
	font-size: 40px;
	margin: 0 0 15px 0;
	max-width: 60%;
}

.featured-hero p {
	color: #fff;
    max-width: 60%;
    font-size: 22px;
    line-height: 1.4;
    margin: 0;
}

.featured-hero .hero-text.three-row {
	text-align: center;
}

.featured-hero .hero-text.three-row h2,
.featured-hero .hero-text.three-row p {
	max-width: 100%;
	margin: 0;
	font-size: 35px;
	text-transform: uppercase;
}

.featured-hero.featured-small {
	height: 180px;
	padding: 180px 0 0 0;
	background-attachment: unset;
}


.featured-hero::after {
	content: '';
    background: rgba(20, 20, 20, .3);
    z-index: 0;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    border: 0;
    display: block;
    width: 100%;
    height: 100%;
}


.featured-hero.nofilter::after {
	background: rgba(20, 20, 20, 0.0);
}

.skip-to-content {
	position: absolute;
    z-index: 1;
    max-width: 50px;
    margin: 0 auto;
    left: calc(50% - 25px);
    bottom: 30px;
}



#primary:focus {
	outline: none;
}

.page-header {
	clear: both;
    width: 95%;
    max-width: 1000px;
    margin: 0 auto;
}

/*--------------------------------------------
### Video header
---------------------------------------------*/

.featured-hero.video {
	background-color: #202020;
    height: 80vh;
    /* overflow: hidden !important; */
    /* position: relative !important; */
    width: 100%;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    overflow: hidden;
    z-index: -100;
}

.featured-hero.video video {
	position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

@media (min-aspect-ratio: 16/9) {
  .featured-hero.video video {
    width: 100%;
    height: auto;
    height: 300%;
    top: -100%;
  }
}

@media (max-aspect-ratio: 16/9) {
  .featured-hero.video video {
    height: 100%;
    width: 300%;
    left: -100%;
  }
}

.video-space {
	display: block;
	clear: both;
	margin-top: calc( 100vh - 180px);
}


.featured-hero.video .hero-text {
/*    margin: calc(160px + 10vh ) auto 0;
    position: relative;*/
}


.parent-link {
	background-color: #2d2d2d;
    background-size: 27px;
    background-image: url(images/return.png);
    background-position: 6px center;
    background-repeat: no-repeat;
    padding: 6px 7px 6px 40px;
    color: #fff;
    font-weight: 300;
    margin-top: 20px;
    display: inline-block;
    font-size: 15px;
    border: 0 !important;
}

#primary.content-area {
	clear: both;
	background: #fff;
	padding-top: 1px;
}

a.parent-link {
	color: #fff;
	text-decoration: none !important;
}

article {
	clear: both;
	width: 95%;
    max-width: 1000px;
    margin: 0 auto;
    padding-bottom: 20px;
}

.sticky {
	display: block;
}

.hentry {
}

.updated:not(.published) {
	display: none;
}

.page-links {
	clear: both;
	margin: 0 0 1.5em;
}

.site-main img {
	box-shadow: 0px 0px 4px 1px #bbb;
	padding: 5px;
	transition: 0.2s all;
}

.site-main a img {
	
}

.site-main a:hover img {
	box-shadow: 0px 0px 4px 1px #05287d;

}

ul.su-subpages {
	list-style: none;
	padding-left: 0;
    margin-left: 0;
}

ul.su-subpages li a {
	color: #1d3a57;
}

/*--------------------------------------------------------------
## ACF Button Row
--------------------------------------------------------------*/

.full-width-row {
	width: 100%;
	background-size: cover;
	background-position: center center;
	background-attachment: fixed;
	margin-bottom: 20px;
	clear: both;
}

ul.button-row {
	list-style: none;
	width: 95%;
	max-width: 800px;
	margin: 0 auto;
	display: flex;
	justify-content: space-between;
	padding: 50px 0 20px 0;
	flex-wrap: wrap;
}

.button-row li {
	background-size: cover;
	background-position: center center;
	font-size: 22px;
	display: block;
	width: 47%;
	text-align: center;
	position: relative;
	font-weight: 300;
	margin-bottom: 30px;
	transition: 0.2s all;
}

.button-row a {
	color: #fff;
	text-decoration: none;
	padding: 10px;
	display: block;
	position: relative;
	z-index: 1;
	padding: 20px;
	border: 0;
}

.button-row li::after {
	content: '';
	background: rgba(29, 57, 88, .85);
	position: absolute;
	width: 100%;
	height: 100%;
	top: 0;
    left: 0;
    z-index: 0;
    transition: 0.2s all;
}

.button-row li:hover {
	transform: scale(1.03);
	box-shadow: 0px 2px 10px 0px #444;
}

.button-row li:hover a {
	border: 0;
	text-decoration: none !important;
}

.button-row li:hover::after {
	background: rgba(177, 143, 99, .9);
}

/*--------------------------------------------------------------
## ACF Visual Editor Row
--------------------------------------------------------------*/

.two-column,
.three-column {
	display: flex;
	justify-content: space-between;
}

.two-column .column {
	width: 47.5%;
}

.three-column .column {
	width: 31.33333333%;
}

/*--------------------------------------------------------------
## ACF Masonry Row
--------------------------------------------------------------*/

.masonry-row {
	color: #fff;
	clear: both;
	padding: 10px;
}

.masonry-row a {
	color: #fff;
	text-decoration: none;
	position: absolute;
    background-image: linear-gradient(-180deg, rgba(25,25,25,0) 20%, #111 110%);
    cursor: pointer;
    overflow: hidden;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: all .2s ease-in-out;
}

.masonry-row ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.masonry-row ul li {
	margin: 1%;
	padding: 0;
	display: inline-block;
    position: relative;
    box-sizing: border-box;
    background-size: cover;
    background-position: center;
	width: 31.3333%;
	float: left;
}

.masonry-row ul li::after {
	display: inline-block;
    position: relative;
    content: '';
    padding-top: 56%;
    width: 100%;
}

/* 4 tiles */
/*
.masonry-row ul.masonry-4 li:nth-child(1) {
	width: calc(50%);
	float: left;
}

.masonry-row ul.masonry-4 li:nth-child(2) {
	width: calc(50%);
	float: left;
}

.masonry-row ul.masonry-4 li:nth-child(2)::after {
	padding-top: 27%;
}

.masonry-row ul.masonry-4 li:nth-child(3) {
	width: calc(25%);
	float: left;
}

.masonry-row ul.masonry-4 li:nth-child(4) {
	width: calc(25%);
	float: left;
}
*/
/* 5 tiles */
/*
.masonry-row ul.masonry-5 li:nth-child(1) {
	width: calc(57.142857142%);
    float: left;
}

.masonry-row ul.masonry-5 li:nth-child(2) {
	width: calc(42.857142857%);
    float: right;
}

.masonry-row ul.masonry-5 li:nth-child(3) {
	width: calc(42.857142857%);
	float: right;
}

.masonry-row ul.masonry-5 li:nth-child(4) {
	width: calc(28.571428571%);
    float: right;
}

.masonry-row ul.masonry-5 li:nth-child(5) {
	width: calc(28.571428571%);
    float: right;
}*/

/* 6 tiles */
/*
.masonry-row ul.masonry-6 li:nth-child(1) {
	width: calc(50%);
    float: left;
}

.masonry-row ul.masonry-6 li:nth-child(1)::after {
	padding-top: 66%;
}

.masonry-row ul.masonry-6 li:nth-child(2) {
	width: calc(25%);
    float: right;
}

.masonry-row ul.masonry-6 li:nth-child(3) {
	width: calc(25%);
	float: right;
}

.masonry-row ul.masonry-6 li:nth-child(4) {
	width: calc(50%);
    float: right;
}

.masonry-row ul.masonry-6 li:nth-child(4)::after {
	padding-top: 66%;
}

.masonry-row ul.masonry-6 li:nth-child(5) {
	width: calc(25%);
    float: left;
}

.masonry-row ul.masonry-6 li:nth-child(6) {
	width: calc(25%);
    float: left;
}
*/
/* 7 tiles */
/*
.masonry-row ul.masonry-7 li:nth-child(1) {
	width: calc(50%);
    float: left;
}

.masonry-row ul.masonry-7 li:nth-child(1)::after {
	padding-top: 48%;
}

.masonry-row ul.masonry-7 li:nth-child(2) {
	width: calc(50%);
    float: right;
}

.masonry-row ul.masonry-7 li:nth-child(2)::after {
	padding-top: 33%;
}

.masonry-row ul.masonry-7 li:nth-child(3) {
	width: calc(25%);
    float: left;
}

.masonry-row ul.masonry-7 li:nth-child(4) {
	width: calc(25%);
    float: right;
}

.masonry-row ul.masonry-7 li:nth-child(5) {
	width: calc(25%);
    float: right;
}

.masonry-row ul.masonry-7 li:nth-child(6) {
	width: calc(25%);
    float: right;
}

.masonry-row ul.masonry-7 li:nth-child(7) {
	width: calc(50%);
    float: left;
}

.masonry-row ul.masonry-7 li:nth-child(7)::after {
	padding-top: 33%;
}
*/
.masonry-row li .tile-content {
	padding: 0 20px 20px 20px;
    transform: translateY(100%);
    transition: all .3s ease-in-out;
}

.masonry-row li:hover .tile-content {
	transform: translateY(0%);
}

.masonry-row li:hover a {
	text-decoration: none;
}

.masonry-row h2 {
	color: #fff;
	margin: 0;
	padding: 0;

	position: absolute;
    bottom: 100%;
    padding-right: 50px;
    padding-bottom: 20px;
}

.masonry-row p {
	font-size: 18px;
	color: #fff;
	margin: 0;
	padding: 0;
}

/*--------------------------------------------------------------
## Comments
--------------------------------------------------------------*/
.comment-content a {
	word-wrap: break-word;
}

.bypostauthor {
	display: block;
}

/*--------------------------------------------------------------
# Infinite scroll
--------------------------------------------------------------*/
/* Globally hidden elements when Infinite Scroll is supported and in use. */
.infinite-scroll .posts-navigation,
.infinite-scroll.neverending .site-footer {
	/* Theme Footer (when set to scrolling) */
	display: none;
}

/* When Infinite Scroll has reached its end we need to re-display elements that were hidden (via .neverending) before. */
.infinity-end.neverending .site-footer {
	display: block;
}

/*--------------------------------------------------------------
# Media
--------------------------------------------------------------*/
.page-content .wp-smiley,
.entry-content .wp-smiley,
.comment-content .wp-smiley {
	border: none;
	margin-bottom: 0;
	margin-top: 0;
	padding: 0;
}

/* Make sure embeds and iframes fit their containers. */
embed,
iframe,
object {
	max-width: 100%;
}

/* Make sure logo link wraps around logo image. */
.custom-logo-link {
	display: inline-block;
}

/*--------------------------------------------------------------
## Captions
--------------------------------------------------------------*/
.wp-caption {
	margin-bottom: 1.5em;
	max-width: 100%;
}

.wp-caption img[class*="wp-image-"] {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.wp-caption .wp-caption-text {
	margin: 0.8075em 0;
	font-size: 0.8em;
}

.wp-caption-text {
	text-align: center;
}

/*--------------------------------------------------------------
## Galleries
--------------------------------------------------------------*/
.gallery {
	margin-bottom: 1.5em;
}

.gallery-item {
	display: inline-block;
	text-align: center;
	vertical-align: top;
	width: 100%;
}

.gallery-columns-2 .gallery-item {
	max-width: 50%;
}

.gallery-columns-3 .gallery-item {
	max-width: 33.33%;
}

.gallery-columns-4 .gallery-item {
	max-width: 25%;
}

.gallery-columns-5 .gallery-item {
	max-width: 20%;
}

.gallery-columns-6 .gallery-item {
	max-width: 16.66%;
}

.gallery-columns-7 .gallery-item {
	max-width: 14.28%;
}

.gallery-columns-8 .gallery-item {
	max-width: 12.5%;
}

.gallery-columns-9 .gallery-item {
	max-width: 11.11%;
}

.gallery-caption {
	display: block;
}

/*--------------------------------------------------------------
# Homepage    
--------------------------------------------------------------*/

.featured-links {
	background: rgba(29, 58, 87, 1);
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	clear: both;

}

.featured-links a.featured-link {
	color: #fff;
	text-decoration: none;
	text-align: center;
	font-size: 20px;
	font-weight: 400;
	flex: 1;
	max-width: 230px;
	background-size: cover;
	background-position: center center;
	transition: 0.2s all;
}

.featured-links a.featured-link:hover {
	padding: 10px;
}

.featured-links a.featured-link .background-hover {
	padding: 25px;
	background: rgba(29, 58, 87, 1);
	transition: 0.2s all;
	height: 100%
}

.featured-links a.featured-link:hover .background-hover {
	padding: 15px;
	background: rgba(176, 143, 98, .8);
}

.featured-links .featured-link img.link-icon {
	max-height: 65px;
}


.learn-more {
	position: relative;
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    clear: both;
}

.learn-more::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(29, 58, 87, 0.8);
    z-index: 0;
}

.learn-more h3 {
	color: #fff;
    margin: 0;
    padding: 0;
    font-size: 26px;
    font-weight: 400;
    width: 50%;
    text-align: right;
}

.learn-more-wrap {
	width: 95%;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    padding: 20px 0;
    z-index: 2;
    position: relative;
}

#upClick,
#downClick {
	display: block;
    margin: 0 auto;
    width: 38px;
    cursor: pointer;
}

.fancy-scroll-area {
	margin-left: 20px;
    /*height: 300px;*/
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 50%;
    overflow: hidden;
}

.mobile-scroller {
	margin-left: 20px;
	display: none;
}

ul.fancy-scroller {
	height: 42px;
	overflow: auto;
	-webkit-transition: all .25s cubic-bezier(0.47, 0, 0.745, 0.715);
	-moz-transition: all .25s cubic-bezier(0.47, 0, 0.745, 0.715);
	transition: all .25s cubic-bezier(0.47, 0, 0.745, 0.715); 
	list-style: none;
	padding: 0;
	margin: 0;
	width: 105%;
	padding-right: 20px;
}

.fancy-scroll-area:hover ul.fancy-scroller {
	height: 210px;
}

.fancy-scroller li {
    font-size: 26px;
    font-weight: 400;
    padding: 0;
    margin: 0;
    line-height: 42px;
}

.fancy-scroller li a {
	text-decoration: none;
	color: #b08f62;
	display: block;
}

.fancy-scroller li a:hover {
	text-decoration: underline;
}

.fancy-scroller li.search  {
	position: relative;
}

.fancy-scroller li.search input {
	display: none;
}

.fancy-scroller li.search input.search-submit {
	position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: block;
    background-color: transparent;
    border: 0;
    border-radius: 0;
    width: 100%;
    background-size: 30px 30px;
    background-position: center center;
    cursor: pointer;
    text-indent: -9999px;
}
/*}*/

.fancy-scroller li.search form {

}

.home-social-feed {
	clear: both;
	width: 100%;
	background: #fff;
	margin: 0;
	padding: 0;
}

.home-social-feed .wrap {

}

#ff-stream-4 {
	min-height: auto !important;
}

/*--------------------------------------------------------------
# Tri Column Features     
--------------------------------------------------------------*/

.allinone_bannerRotator {
    position: relative;
    top: 0;
	height: 80vh;
}

.allinone_bannerRotator:after {
	content: '';
    display: block;
	position: absolute;
	width: 100%;
	height: 100%;
	background-image: linear-gradient(360deg, rgba(25,25,25,0) 20%, #111 110%);
	z-index: 2;
}

.allinone_bannerRotator.classic .bannerControls {
	z-index: 3;
}

.allinone_bannerRotator_texts {
    z-index: 5;
}

#allinone_bannerRotator_4 + .bottomNav {
	display: none !important;
}

/*--------------------------------------------------------------
# Tri Column Features     
--------------------------------------------------------------*/

.tri-column-contain {
	background: #fff;
	margin-bottom: 0;
}

.tri-column-features {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	padding: 30px;
}

.tri-column-features a {
	width: 30vw;
}

feature {
	display: flex;
	position: relative;
	height: 20vw;
	background-size: cover;
	justify-content: center;
    align-items: center;
	transition: all 1s;
	padding: 3.5vw;
    text-align: center;
    font-size: 2.4vw;
    color: black;
    text-shadow: 1px 1px white;
	overflow: hidden;
	margin-bottom: 30px;
}

.feature-bg {
	position: absolute;
	background-size: cover;
	width: 100%;
	height: 100%;
	transition: all 1s;
}

.feature-title {
	position: relative;
	z-index: 20;
}

feature:hover .feature-bg {
   transform: scale(1.2);
}


/*--------------------------------------------------------------
# Footer       
--------------------------------------------------------------*/
.footer-buttons {
	display: flex;
    justify-content: space-evenly;
    overflow: hidden;
    background: red;
    width: 100%;
	flex-grow: 1;
}

.footer-buttons a {
	width: 100%;
}

panel {
	display: flex;
	position: relative;
	height: 20vw;
	background-size: cover;
	justify-content: center;
    align-items: center;
	transition: all 1s;
	padding: 3.5vw;
    text-align: center;
    font-size: 2.4vw;
    color: black;
    text-shadow: 1px 1px white;
	overflow: hidden;
}

.footer-banner {
	display: flex;
	width: 100%;
	text-align: center;
}

.footer-banner h3 {
	color: #fff;
	margin: 0 0 15px 0;
	font-size: 28px;
    font-weight: 400;
}

.footer-banner a.button {
	font-size: 19px;
    padding: 10px;
    display: block;
    border: 2px solid #fff;
    color: #fff;
    font-weight: 300;
    width: 80%;
    margin: 0 auto;
    transition: 0.2s;
}

.footer-banner .left-banner a.button:hover {
	color: #b08f62;
	background: #fff;
}

.footer-banner .right-banner a.button:hover {
	color: #223a53;
	background: #fff;
}

.footer-banner .left-banner {
	flex: 1;
	background-color: #b08f62;
	background-position: -1% center;
    padding: 80px;
    background-repeat: no-repeat;
    background-size: 50%;
}

.footer-banner .left-banner .wrap {
	width: 50%;
	float: right;
}

.footer-banner .right-banner {
	flex: 1;
	background-color: #223a53;
	background-size: 50%;
    background-position: 84% center;
    padding: 80px;
    background-repeat: no-repeat;
}

.footer-banner .right-banner .wrap {
	width: 50%;
}

footer.site-footer {
	background: rgba(29, 58, 87, 1);
	color: #fff;
}

footer.site-footer p {
	color: #fff;
	font-weight: 300;
	line-height: 18px;
}

footer.site-footer a {
	color: #fff;
	text-decoration: none;
}

footer .footer-menu {
	display: block;
	width: 95%;
	margin: 30px auto 25px;
}

footer .footer-menu ul {
	margin: 0;
	padding: 0;
	list-style: none;
	text-align: center;
}

footer .footer-menu ul li {
	display: inline-block;
	margin: 0 1.5%;
}

footer .footer-menu ul li a {
	font-size: 19px;
    padding: 2px 0;
    font-weight: 400;
}

footer .footer-menu ul li a:hover {
	border-bottom: 2px solid #fff;
}

footer .footer-social {
	text-align: center;	
}

footer .footer-social a {
	display: inline-block;
	margin: 0 10px;
}

footer .footer-social img {
	max-width: 30px;
}

footer .footer-contact-info {
	display: flex;
	justify-content: center;
	font-weight: 400;
	font-size: 15px;
	margin: 10px 0;
}

footer .footer-contact-info .footer-contact {
	margin: 0 15px;
}

footer .footer-contact-info .alignleft {
	margin-right: 1em;
}

footer.site-footer .site-info {
	text-align: center;
	font-size: 15px;
	font-weight: 300;
}

footer .copy-hearts {
	color: #c65049;
}

/*--------------------------------------------------------------
# Rotator    
--------------------------------------------------------------*/

.allinone_bannerRotator.classic .bottomNav {
	display: flex !important;
	flex-direction: column;
	top: 40% !important;
	right: 10px;
	bottom: auto !important;
	left: auto !important;
	width: auto !important;
	height: auto !important;
	padding-right: 1px;
	padding-bottom: 7px;
	background:url(https://dioceseofvenice.diocesanweb.com/wp-content/plugins/all_in_one_bannerRotator/bannerRotator/skins/classic/bottomNavBg.png) 0 0 repeat;
}

.allinone_bannerRotator.classic .bottomNavButtonOFF {
	margin-top: 7px !important;
}

/*--------------------------------------------------------------
# Eucharistic Congress addition 2022    
--------------------------------------------------------------*/

img.size-profile-circle {
	border-radius: 200px;
	-webkit-border-radius: 200px;
	width: 100%;
	max-width: 400px;
}

/*--------------------------------------------------------------
# Responsive    
--------------------------------------------------------------*/

@media(max-width: 1200px) {
	.footer-banner .right-banner, 
	.footer-banner .left-banner {
		padding: 40px;
	}
}

@media(max-width: 800px) {
	#masthead.site-header {
		background: #2d2d2d;
		margin-bottom: 0;
	}

	.mobile-menu-toggle {
		display: block;
		cursor: pointer;
		width: 36px;
    	margin-top: 13px;
	}

	header .site-branding {
		width: 150px;
	}

	/*#site-navigation {
		display: none;
	}*/

	header .header-right .social-translate {
		justify-content: center;
		flex-wrap: wrap;
	}

	header .header-right .social-translate #google_language_translator {
		margin-right: 0;
		width: 100%;
	}

	select.goog-te-combo {
		float: none !important;
		margin: 0 auto 20px !important;
		display: block;
	}

	.main-navigation ul {
		text-align: center;
	}

	#site-navigation.expanded {
		display: block;
		text-align: center;
		width: 100%;
	}

/*	header .header-right {
		display: inline-flex;
	}*/

	.header-wrap {
		display: flex;
		justify-content: space-between;
		flex-wrap: wrap;
	}

	header .header-right {
		float: none;
		display: none;
		width: 100%;
	}

	.main-navigation {
		float: none;
	}

	header .header-right.expanded {
		display: block;
	}

	/*.social-translate form.search-form {
		display: none;
	}*/

	.main-navigation li {
		float: none;
	}

	#masthead.site-header {
		height: auto;
	}

	.header-wrap {
		padding: 10px 0 5px;
	}

	.featured-links a.featured-link {
		flex: auto;
		width: 50%;
		max-width: 50%;
	}


	/* 4 tiles */

	.masonry-row ul.masonry-4 li:nth-child(1) {
		width: 100%;
	}

	.masonry-row ul.masonry-4 li:nth-child(2) {
		width: 100%;
	}

	.masonry-row ul.masonry-4 li:nth-child(3) {
		width: 100%;
	}

	.masonry-row ul.masonry-4 li:nth-child(4) {
		width: 100%;
	}

	/* 5 tiles */

	.masonry-row ul.masonry-5 li:nth-child(1) {
		width: 100%;
	}

	.masonry-row ul.masonry-5 li:nth-child(2) {
		width: 100%;
	}

	.masonry-row ul.masonry-5 li:nth-child(3) {
		width: 100%;
	}

	.masonry-row ul.masonry-5 li:nth-child(4) {
		width: 100%;
	}

	.masonry-row ul.masonry-5 li:nth-child(5) {
		width: 100%;
	}

	/* 6 tiles */

	.masonry-row ul.masonry-6 li:nth-child(1) {
		width: 100%;
	}

	.masonry-row ul.masonry-6 li:nth-child(2) {
		width: 100%;
	}

	.masonry-row ul.masonry-6 li:nth-child(3) {
		width: 100%;
	}

	.masonry-row ul.masonry-6 li:nth-child(4) {
		width: 100%;
	}

	.masonry-row ul.masonry-6 li:nth-child(5) {
		width: 100%;
	}

	.masonry-row ul.masonry-6 li:nth-child(6) {
		width: 100%;
	}

	/* 7 tiles */

	.masonry-row ul.masonry-7 li:nth-child(1) {
		width: 100%;
	}

	.masonry-row ul.masonry-7 li:nth-child(2) {
		width: 100%;
	}

	.masonry-row ul.masonry-7 li:nth-child(3) {
		width: 100%;
	}

	.masonry-row ul.masonry-7 li:nth-child(4) {
		width: 100%;	
	}

	.masonry-row ul.masonry-7 li:nth-child(5) {
		width: 100%;
	}

	.masonry-row ul.masonry-7 li:nth-child(6) {
		width: 100%;
	}

	.masonry-row ul.masonry-7 li:nth-child(7) {
		width: 100%;
	}

	.footer-banner {
		flex-direction: column;
	}

	.footer-banner .right-banner, 
	.footer-banner .left-banner {
		padding: 60px;
	}

	footer .footer-contact-info {
		flex-direction: column;
		align-items: center;
	}

	footer .footer-contact-info .footer-contact {
		max-width: 300px;
	}

	.two-column, 
	.three-column {
		display: block;
	}

	.two-column .column,
	.three-column .column {
		width: auto;
	}
	.site-main a img {
		width: 100%;
	}

	.featured-hero.video {
		position: relative;
		width: 100%;
		height: auto;
		padding: 0;
		margin: 0;
	}

	.featured-hero.video video {
		width: 100%;
		height: auto;
		position: static;
	}

	.video-space {
		display: none;
		margin: 0;
	}

	.featured-hero .hero-text {
	/*	position: absolute;
		top: calc(50% - 65px);*/
	}

	.featured-hero {
		height: 70vh;
		padding: 100px 0 0;
		background-attachment: scroll;
	}
	
	.fancy-scroll-area {
		display: none;
	}
	
	.mobile-scroller {
		display: block;
		width: 50%;
	}
	#mobile-learn-more {
		max-width: 50vw;
	}
	.allinone_bannerRotator.classic .bottomNav {
		top: 32% !important;
	}

}

@media(max-width: 600px) {
	.footer-banner .right-banner, 
	.footer-banner .left-banner {
		padding: 60px 20px;
	}

	.featured-hero .hero-text.three-row h2, 
	.featured-hero .hero-text.three-row p {
		font-size: 25px;
	}

	footer .footer-menu ul li a {
		font-size: 16px;
	}
}

/*--------------------------------------------------------------
# Find a Parish    
--------------------------------------------------------------*/

#dpi_modules_parishes_view .parish {

}

#dpi_modules_parishes_view > div {
	flex: 1;
}

h3#resultsCount {
	margin: 20px 0;
}

#dpi_modules_parishes_list .information h4 {
	margin-top: 0;
}

#dpi_modules_parishes_list fieldset.filters,
#dpi_modules_priests_list fieldset.filterResults,
#dpi_modules_schools_list fieldset.filterResults,
#dpi_modules_deacons_list fieldset.filterResults{
	border: 0;
    margin: 20px 40px 0 0;
    padding: 0;
}


#dpi_modules_parishes_list fieldset.filters legend,
#dpi_modules_schools_list fieldset.filterResults legend {
	margin: 0 0 5px 0;
}

#dpi_modules_parishes_list fieldset.filters div,
#dpi_modules_priests_list fieldset.filterResults div,
#dpi_modules_schools_list fieldset.filterResults div,
#dpi_modules_deacons_list fieldset.filterResults div {
	margin-bottom: 3px;
}

#dpi_modules_parishes_list fieldset.filters fieldset {
	border: 0;
	background: #eee;
	padding: 5px 0 5px 10px;
}

.gm-style-iw img, #googleMap img {
	box-shadow: none;
}

.evcal_evdata_row i.fa {
	display: inline-block !important;
}

td.day {
	display: inline-block;
    max-width: 20%;
    float: left;
    margin-right: 10px;

}

.masstimes td,
.masstimes th,
.confessiontimes td {
	display: inline-block;
    max-width: 80%;
    float: left;
}

select.goog-te-combo option {
	color: #000 !important;
}

#dpi_modules_parishes_list .filters label,
#dpi_modules_schools_list .filterResults label,
#dpi_modules_deacons_list .filterResults label,
#dpi_modules_priests_list .filterResults label {
	width: 120px;
}
@media screen and (max-width: 768px) {
	.learn-more {
		background-attachment: scroll;
	}
}

/*** Eucharistic Congress ***/
.single-eucharistic_congress span,
.single-eucharistic_congress p,
.single-eucharistic_congress div {
	line-height: 1.5;
}

/*** Maintenance ***/
body.maintenance-mode {
	/*background-image: url(images/sunset.jpg);
    background-size: cover;
    background-position: center 100%;
	filter: grayscale(100%);*/
}

body.maintenance-mode::before {
	content: "";
	position: absolute;
	top: 0; left: 0;
	width: 100%; 
	height: 100%;
	background-image: url(images/sunset.jpg);
	background-size: cover;
	background-position: center 100%;
	filter: brightness(75%);
}

.maintenance-mode header .site-branding {
    display: block;
    margin: 0 auto;
}

.maintenance-mode #content {
	height: 100vh;
    overflow: hidden;
}

.maintenance-mode footer {
	position: absolute;
    bottom: 0;
    width: 100%;
	padding-top: 20px;
}

.maintenance-mode #maintenance-box {
    margin: 30vh auto;
    width: 70%;
	max-width: 700px;
    color: white;
    text-align: center;
    border: 5px solid white;
	font-weight: bold;
	font-size: 2rem;
	/*padding: 20px;*/
	display: table;	
	border-top: 0px;
	position: relative;
}

.maintenance-mode #maintenance-box p {
	margin-bottom: 1em;
	padding: 0 20px;
}

.maintenance-mode #maintenance-box::before {
    border-bottom: 5px solid #fff;
    content: '';
    display: block;
    width: 38%;	
}

.maintenance-mode #maintenance-box::after {
    border-bottom: 5px solid #fff;
    content: '';
    display: block;
    width: 38%;
    top: 0;
    right: 0;
    position: absolute;
    float: right;
}

.maintenance-mode #maintenance-icon {
	background-image: url(images/maintenance_icon.png);
	background-size: cover;
    display: flex;
    width: 6vw;
    height: 6vw;
    margin: -3vw auto 0;
}

.maintenance-mode footer.site-footer p {
    margin-bottom: .5em;
}

@media (max-width: 1350px) {
	.maintenance-mode #maintenance-icon {
		width: 8vw;
		height: 8vw;
		margin: -4vw auto 0;
	}
}

@media (max-width: 800px) {
	.maintenance-mode #masthead.site-header {
		background: none;
	}
	.maintenance-mode #maintenance-icon {
		width: 10vw;
		height: 10vw;
		margin: -5vw auto 0;
	}
	.maintenance-mode #maintenance-box {
		margin: 25vh auto;
		font-size: 1.5rem;
		border: 3px solid white;
		border-top: none;
	}
	.maintenance-mode #maintenance-box::before, .maintenance-mode #maintenance-box::after  {
		border-bottom: 3px solid #fff;
	}
}

@media (max-width: 540px) {
	.maintenance-mode #maintenance-icon {
		width: 12vw;
		height: 12vw;
		margin: -6vw auto 0;
	}
	.maintenance-mode #maintenance-box {
		margin: 20vh auto;
		font-size: 1.2rem;
	}
}

@media only screen 
  and (min-device-width: 375px) 
  and (max-device-width: 667px) 
  and (-webkit-min-device-pixel-ratio: 2)
  and (orientation: landscape) { 
	.maintenance-mode footer {
		position: relative;
	}
}

@media only screen 
  and (min-device-width: 414px) 
  and (max-device-width: 736px) 
  and (-webkit-min-device-pixel-ratio: 3)
  and (orientation: landscape) { 
	.maintenance-mode footer {
		position: relative;
	}
}

@media only screen 
  and (min-device-width: 375px) 
  and (max-device-width: 812px) 
  and (-webkit-min-device-pixel-ratio: 3)
  and (orientation: landscape) { 
	.maintenance-mode footer {
		position: relative;
	}
}

@media screen 
  and (device-width: 360px) 
  and (device-height: 640px) 
  and (-webkit-device-pixel-ratio: 4) 
  and (orientation: landscape) {
	.maintenance-mode footer {
		position: relative;
	}
}

@media screen 
  and (device-width: 320px) 
  and (device-height: 640px) 
  and (-webkit-device-pixel-ratio: 3) 
  and (orientation: landscape) {
	.maintenance-mode footer {
		position: relative;
	}
}

@media screen 
  and (device-width: 320px) 
  and (device-height: 640px) 
  and (-webkit-device-pixel-ratio: 2) 
  and (orientation: landscape) {
	.maintenance-mode footer {
		position: relative;
	}
}

/*** 404 ***/
.error404 .page-content img {
	box-shadow: none;
	width: 60%;
	margin: 40px auto;
	display: block;
}

.error-404 {
	text-align: center;
	color: #223a53;
}

#buttons-404 button {
	background: #1d3a57;
	color: #fff;
	padding: 15px 30px;
	font-size: 22px;
	margin: 20px;
}

@media (max-width: 800px) {
	body.error404 #content.site-content {
		padding-top: 80px;
	}
	.error404 .page-content img {
		width: 80%;
	}
}

.allinone_bannerRotator.classic:nth-of-type(6) .bottomNav,
.allinone_bannerRotator.classic:nth-of-type(5) .bottomNav{
	display: none !important;
}