/*
Theme Name: WP Xnunes
Theme URI: http://xaviernunes.pt/wptheme
Author: Xavier Nunes
Author URI: http://xaviernunes.pt
Description: Costum theme for an easy project start
Version: 1.0
Text Domain: wpxnunes

Bootstrap v3.3.7, Font Awesome v4.6.3, OWL Carousel v1.3.2 & Fancybox v2.1.5
*/

.modal-backdrop { z-index: -1; }
.modal-dialog { margin-top: 4em; }

.logged-in #wp-admin-bar-wp-logo { display: none; visibility: hidden; }

img { max-width: 100%; }

h1, h2, h3, h4 {
	padding: 0;
	margin: 0 0 0.5em 0;
	font-family: 'Zilla Slab', serif;
}

h1 { font-size: 24px; line-height: 30px; }
h2 { font-size: 20px; line-height: 26px; }
h3 { font-size: 18px; line-height: 24px; }
h4 { font-size: 16px; line-height: 22px; }

img { max-width: 100%; }

body {
	background: #fafafa;
	font-family: 'Droid Sans', sans-serif;
	font-size: 16px;
}

#header-wrapper {
	background: #fff;
	border-bottom: 1px solid #f0f0f0;
}

#header {
	padding-top: 1em;
	padding-bottom: 1em;
}

#header h1 {
	font-size: 24px;
	margin: 0;
}

#header ul {
	margin: 0;
	padding: 0;
}

#header ul li > a, #header ul li > a:visited, #header ul li > a:active, #header ul li > a:focus {
	color: #222;
	text-decoration: none;
}

#header ul li > a:hover {
	color: #666;
	text-decoration: none;
}

#main-nav, .social-networks { margin-top: 5px; }

#main-nav ul > li { padding-right: 10px; }

#main-nav ul > li:last-child { padding-right: 0; }

#content-wrapper { margin-top: 2em; }

.content-wrapper {
	padding-top: 2em;
	padding-bottom: 2em;
}

.brown { background: antiquewhite; }

.content-wrapper p {
	line-height: 24px;
	margin-bottom: 1.5em;
}

.boletim-paroquial ul, .content-right ul, .single-boletim .content ul {
	padding: 0;
	margin: 0;
	list-style: none;
}

.boletim-paroquial ul > li, .content-right ul > li, .single-boletim .content ul > li {
	padding: 0.5em;
	margin-bottom: 0.5em;
	background: #fff;
	color: #111;
	border-bottom: 2px solid #ededed;
	font-size: 14px;
}

.boletim { min-height: 280px; }

.descarregar-boletim .btn { margin-bottom: 0.5em; }

.links  { 
	list-style: none;
	padding: 0;
}

.links .item { display: inline; }

.links .item a { 
	display: inline-table;
	margin: 0 0.4em 1em 0.4em;
}

.links .item a, .links .item a:visited, .links .item a:focus, .links .item a:active, .links .item a:hover  {
	color: #333;
	text-decoration: none;
}

.links .item a img { max-width: 200px; }

/*.item-link, item-paroquia { min-height: 200px; }*/

.descarregar-boletim { padding: 0.5em 0 0 0; }

.widget-container { margin-bottom: 1em; }

.content-right h3, .paroquia h3, .boletim h3, .movimento h3 {
	text-align: center;
	font-size: 16px;
	line-height: 20px;
	background: #111;
	color: #fff;
	margin: 0;
	padding: 0.3em 0.5em;
}

#footer-wrapper {
	margin-top: 3em;
	margin-bottom: 1em;
}

#footer { font-size: 14px; }

#footer a, #footer a:visited, #footer a:active, #footer a:focus, #footer a:hover { 
	color: #222;
	text-decoration: none;
}

label { margin: 0.3em 0; }
.form-output { margin: 0.5em 0; }

/* Images */
.entry-content img,
.comment-content img,
.widget img {
	max-width: 97.5%;
}
img[class*=”align”],
img[class*=”wp-image-“] {
	height: auto !important; 
}

img.size-full {
	max-width: 97.5%;
	width: auto !important;
}

.gallery { margin: 2em 0; }

#title-wrapper h1 {
	margin: 0.8em 0;
	font-size: 40px;
	color: #703b3b;
}

.interior-igreja { 
	position: relative;
	text-align: center;
}

.interior-igreja a {
	text-decoration: none;
	color: #fff;
	display: block;
}

.interior-igreja h2 {
	color: #fff;
    background: rgba(0,0,0, .7);
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 0.2em 0;
}

.activities div {
	padding: 1em;
	background: #ededed;
}

/*

.photo-album a { display: block; }

.photo-album .col-md-4 p { margin: 0; }

.photo-album .col-md-4 img {
	padding: 1em;
    background: #fff;
	border-left: 1px solid #ededed;
	border-right: 1px solid #ededed;
	border-top: 1px solid #ededed;
}

.gallery .col-md-3 img {
	padding: 0.5em;
    background: #fff;
	border: 1px solid #ededed;	
}


.photo-album .col-md-4 h2 {
	padding: 0 1em 1em 1em;
    background: #fff;
	text-align: center;
	border-left: 1px solid #ededed;
	border-right: 1px solid #ededed;
	border-bottom: 1px solid #ededed;	
}
*/

.photo-albums .item {
	width: auto;
	max-height: 200px;
	background-position: center;
	background-repeat: no-repeat;
	background-size: 88%;
	z-index: 9998;
	display: inline-block;
}

.photo-albums .item a {
	font-size: 13px;	
	width: 165px;
	padding-top: 168px;
	height: 200px;
	display: inline-table;
	background-image: url('img/polaroid-frame.png');
	background-position: top center;
	background-repeat: no-repeat;
	background-size: 100%;
	text-align: center;
	z-index: 9999;
}

#events-sidebar .event { min-height: 400px; }

@media only screen and (max-width: 991px) {
	#events-sidebar .event { min-height: 340px; }
}

@media only screen and (max-width: 768px) {
	.social-networks, .default-nav { display: none; }
	.mobile-nav { display: block !important; }
	.text-left, .text-right, #footer-wrapper { text-align: center; }
	#header .text-center { text-align: left; }
}