a.logo-header {
	text-align: center;
	display: block;
	margin-left: auto;
  margin-right: auto;
	margin-bottom: 15px;
}

/*makes images flex with screen size--in image html, width: XXpx and height: auto*/
img {
  max-width: 100%;
  height: auto;
}

#top-nav {
	margin: 0;
	width: 100%;
	text-align: center;
}

ul.main-nav {   /*removes list bullets and indents*/
	list-style-type: none;	
	margin: 0;
	padding: 0;
}

.main-nav {	
	display: inline-block;   /*puts nav list items on one line*/
	margin: 0 14px;   /*puts space between nav list items*/
}

.main-nav a {
	text-decoration: none;
	color: #8f8f8f;
	font-size: 1.2em;
	font-family: 'Nunito Sans', sans-serif;
	letter-spacing: 2px;
	transition: all 0.2s ease-in-out;
}

.main-nav a:hover {
	color: black;
}

.dropbtn, #about-nav {
	font-family: 'Nunito Sans', sans-serif;
	letter-spacing: 2px;
	margin: 0 6px;
	padding: 0;
}

.dropdown {
  float: left;
  overflow: hidden;
  font-family: 'Nunito Sans', sans-serif;
  letter-spacing: 2px;
}

.dropdown .dropbtn {
  font-size: 1.2em;   
  border: none;
  outline: none;
  color: #8f8f8f;
  background-color: inherit;
  font-family: inherit;
  transition: all 0.2s ease-in-out;
}

.dropbtn:hover {
  color: black;
	cursor: pointer;
}

.dropdown a {
  text-decoration: none;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #77b0bb;
	border: 4px solid white;
	border-radius: 6px;
	opacity: .95;
	box-shadow: 2px 2px 5px #000;
	margin-left: -38px;
}

.dropdown-content a {
  float: none;
  color: white;
  padding: 5px 10px;
  text-decoration: none;
  display: block;
  text-align: left;
  font-size: 95%;
	border-bottom: 1px solid white;
  letter-spacing: 2px;
  transition: all 0.2s ease-in-out;
}

#last-drop {
	border-bottom: none;
}

.dropdown-content a:hover {
  color: #66a3ae;
  background-color: white;
}

.dropdown:hover .dropdown-content {
  display: block;
}

/*MOBILE NAV*/
@media screen and (max-width: 800px) {
	.main-nav {
		width: 400px;
		display: block;
		clear: both;
		margin: auto;
	}
	.dropdown {
		text-align: center;
		float: none;
	}
	.dropdown-content {
		display: block;
		margin: 5px 10px 10px 10px;
		position: relative;
	}
	ul.main-nav {
		margin: auto;
	}
}
@media screen and (max-width: 420px) {
	.main-nav {
		width: 95%;
		display: block;
		clear: both;
	}
	.dropdown {
		text-align: center;
		margin: auto;
		float: none;
	}
	.dropdown-content {
		display: block;
		margin: 5px 5px 10px 5px;
		position: relative;
	}
}

.pg-nav {
	margin: auto;
	display: table;
	overflow: auto;
}

ul.page-nav {
	list-style-type: none;
	text-align: center;
	padding: 0 20px;
}

li.pagenav {
	padding: 2px 0;
}
li.pagenav a {
	text-decoration: none;
	color: #8f8f8f;
	font-family: 'Nunito Sans', sans-serif;
	font-size: 85%;
	letter-spacing: 2px;
	transition: all 0.2s ease-in-out;
}
li.pagenav:hover a {
	text-decoration: none;
	color: black;
	font-family: 'Nunito Sans', sans-serif;
	font-size: 85%;
	letter-spacing: 3px;
}

a img {
	transition: all 0.2s ease-in-out;
}
a img:hover {
	color: white;
	opacity: .65;
}

a h4:hover {
	color: black;
	opacity: 1;
}

h1.page-header {
	margin: auto;
	border-style: solid;
	border-width: thin;
	border-color: #cacaca;
	border-radius: 4px;
	display: table;
	padding: 5px 15px 5px 15px;
	overflow: auto;
	letter-spacing: 2px;
}
@media screen and (max-width: 420px) {
	h1.page-header {
		max-width: 80%;
	}
}

.linkbox {
	margin: auto;
	border-style: solid;
	border-width: thin;
	border-color: #cacaca;
	border-radius: 4px;
	display: table;
	padding: 21px 15px 19px 15px;
	overflow: auto;
	text-decoration: none;
	font-family: 'Nunito Sans', sans-serif;
	color: #8f8f8f;
	letter-spacing: 2px;
	transition: all 0.2s ease-in-out;
}

a.linkbox:hover {
	margin: auto;
	background-color: #cacaca;
	border-style: solid;
	border-width: thin;
	border-color: #cacaca;
	border-radius: 4px;
	display: table;
	padding: 21px 15px 19px 15px;
	overflow: auto;
	text-decoration: none;
	font-family: 'Nunito Sans', sans-serif;
	color: white;
	letter-spacing: 2px;
}

#homethumbs {
	display: block;			/*keeps div wrapper centered*/
	margin: auto;
	width: 95%;
	text-align: center;		/* needed to center list item thumbnails*/
	padding-right: 40px;	/*fixes interior list items being off center*/
}

#homethumbs ul li {
  display: inline-block;		/*needed to make thumbs side by side*/
	margin: 0px 20px 0px 20px;
}

#homethumbs ul li a {
	text-decoration: none;
	line-height: 120%;
	color: #8f8f8f;
	margin: auto;
	font-family: 'Nunito Sans', sans-serif;
	border: thin dashed white;    /*needed to keep text boxes consistent height*/
}

#homethumbs h4 {
	margin-top: 5px;
	width: 280px;
	height: 30px;
	letter-spacing: .5px;
	transition: all 0.2s ease-in-out;
}

#homethumbs img:hover {
	transform: translateY(-4px);
	/*ROTATE ON HOVER
	 *-webkit-transform: rotate(-10deg);
  transform: rotate(-10deg);
	opacity: 1.0;*/
}

/*HOMETHUMBS ON MOBILE*/
@media screen and (max-width: 440px) {
	#homethumbs ul li {
		padding: 0;
		margin: auto;
	}
	#homethumbs ul {
		margin: auto;
		padding: 0;
		margin-left: 10px;
	}
	#homethumbs ul li h4 {
		border: thin solid white;
	}
}

body {
	margin: 10px 0 0 0;
}
#footer {
	margin-top: 30px;
	width: 100%;
	height: 90px;
	font-family: 'Nunito Sans', sans-serif;
	background-image: linear-gradient(rgba(255,255,255,1), rgba(148,212,217,1));
}
#copyright {
	float: left;
	display: inline;
	margin-left: 20px;
	margin-top: 20px;
	width: 30%;
	height: 30px;
	padding-top: 17px;
	vertical-align: middle;
	font-size: .7em;
	font-family: 'Nunito Sans', sans-serif;
	font-weight: normal;
}

@media screen and (max-width: 400px) {
	#copyright {
		width: 40%;
	}
}

@media screen and (max-width: 340px) {
	#copyright {
		width: 27%;
	}
}

#social-logos {
	float: right;
	display: inline;
	margin-right: 20px;
	margin-top: 20px;
	width: 65%;
	padding-top: 10px;
	text-align: right;
	vertical-align: middle;
}

@media screen and (max-width: 400px) {
	#social-logos {
		width: 40%;
	}
	#copyright {
		padding-top: 10px;
	}
}

#social-logos img {
	margin-left: 3px;
	border-radius: 50%;
}

#social-logos img:hover {
	transform: translateY(-3px);
	opacity: .75;
}

h1, h2, h3, h4, h5, h6, h7 {
	text-align: center;
	font-weight: normal;
	font-family: 'Nunito Sans', sans-serif;
}

h2 {
	color: #66a3ae;
	letter-spacing: .2px;
}

h3 {
	color: #444444;
	letter-spacing: 0px;
	letter-spacing: .2px;
}

h4 {
	font-size: 110%;
	letter-spacing: .5px;
}

p {
	text-align: center;
	font-family: 'Nunito Sans', sans-serif;
	letter-spacing: .2px;
}

p.about {
	text-align: left;
	line-height: 180%;
	font-size: 110%;
	color: #444444;
	font-family: 'Nunito Sans', sans-serif;
}

#about {
	width: 800px;
	margin: auto;
	display: table;
	overflow: auto;
}

/*MOBILE ABOUT PAGE*/
@media screen and (max-width: 800px) {
	#about {
		width: 90%;
		margin: auto;
	}
}

h3.smallprint, span.smallprint {
	font-size: 12px;
	font-style: italic;
	text-align: center;
	max-width: 720px;
	margin: auto;
}

div.thin-grey-rule {
	border-style: solid;
	border-top-width: thin;
	border-right-style: none;
	border-left-style: none;
	border-bottom-style: none;
	width: 90%;
	height: 5px;
	border-color: #cacaca;
	margin: auto;
	display: table;
}

div.short-thin-grey-rule {
	border-style: solid;
	border-top-width: thin;
	border-right-style: none;
	border-left-style: none;
	border-bottom-style: none;
	width: 10%;
	height: 5px;
	border-color: #cacaca;
	margin: auto;
}

#my-mug {
	display: block;
	margin: auto;
	width: 250px;
	height: 250px;
}

/* MODALS */
 /* Style the Image Used to Trigger the Modal */
#logos1-popup, #logos2-popup, #next-popup, #outreach-popup, #retreat-popup, #yir-popup, #guide-popup, #newsletter-popup, #booklets-popup, #flyers-popup, #CMads-popup, #CBQads-popup, #OTHERads-popup, #factsheets-popup, #broch01-popup, #broch02-popup, #broch03-popup, #proposals-popup, #music-popup, #sermon01-popup, #sermon02-popup, #sermon03-popup, #sermon04-popup, #sermon05-popup, #sermon06-popup, #sermon07-popup, #ancmt01-popup, #ancmt02-popup, #evite01-popup, #enews01-popup, #enews02-popup, #LPCweb01-popup, #LPCweb02-popup, #BTCamps-popup, #ashes-popup, #romans7-popup, #MM-popup, #LH-popup, #Exp-popup {
  cursor: zoom-in;
  transition: 0.3s;
}

#logos1-popup:hover, #logos2-popup:hover, #next-popup:hover, #outreach-popup:hover, #retreat-popup:hover, #yir-popup:hover, #guide-popup:hover, #newsletter-popup:hover, #booklets-popup:hover, #flyers-popup:hover, #CMads-popup:hover, #CBQads-popup:hover, #OTHERads-popup:hover, #factsheets-popup:hover, #broch01-popup:hover, #broch02-popup:hover, #broch03-popup:hover, #proposals-popup:hover, #music-popup:hover, #sermon01-popup:hover, #sermon02-popup:hover, #sermon03-popup:hover, #sermon04-popup:hover, #sermon05-popup:hover, #sermon06-popup:hover, #sermon07-popup:hover, #ancmt01-popup:hover, #ancmt02-popup:hover, #evite01-popup:hover, #enews01-popup:hover, #enews02-popup:hover, #LPCweb01-popup:hover, #LPCweb02-popup:hover, #BTCamps-popup:hover, #ashes-popup:hover, #romans7-popup:hover, #MM-popup:hover, #LH:hover, #Exp-popup:hover {
	opacity: 0.65;
	}

/* The Modal (background) */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  padding-top: 30px; /* Location of the box */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.2); /* Black w/ opacity */
}

/* Modal Content (Image) */
.modal-content {
  margin: auto;
  display: block;
  width: 100%;
  max-width: 100%;
	height: auto;
	box-shadow: 0px 0px 10px 5px rgba(0,0,0,0.4);
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	-khtml-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;		/*prevent right-click*/
}

/* Add Animation - Zoom in the Modal */
.modal-content {
	-webkit-animation-name: zoom;
  -webkit-animation-duration: 0.6s;
  animation-name: zoom;
  animation-duration: 0.6s;
}

@-webkit-keyframes zoom {
  from {-webkit-transform:scale(0)} 
  to {-webkit-transform:scale(1)}
}

@keyframes zoom {
  from {transform:scale(0)}
  to {transform:scale(1)}
}

/* The Close Button */
.logos1-close, .logos2-close, .next-close, .outreach-close, .retreat-close, .yir-close, .guide-close, .newsletter-close, .booklets-close, .flyers-close, .CMads-close, .CBQads-close, .OTHERads-close, .factsheets-close, .broch01-close, .broch02-close, .broch03-close, .proposals-close, .music-close, .sermon01-close, .sermon02-close, .sermon03-close, .sermon04-close, .sermon05-close, .sermon06-close, .sermon07-close, .ancmt01-close, .ancmt02-close, .evite01-close, .enews01-close, .enews02-close, .LPCweb01-close, .LPCweb02-close, .LPCweb01-close, .BTCamps-close, .ashes-close, .romans7-close, .MM-close, .LH-close, .Exp-close {
  position: absolute;
  top: 40px;
  right: 20px;
  color: #e4e3e3;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
}

.logos1-close:hover, .logos1-close:focus,
.logos2-close:hover, .logos2-close:focus,
.next-close:hover, .next-close:focus,
.outreach-close:hover, .outreach-close:focus,
.retreat-close:hover, .retreat-close:focus,
.yir-close:hover, .yir-close:focus,
.guide-close:hover, .guide-close:focus,
.newsletter-close:hover, .newsletter-close:focus,
.booklets-close:hover, .booklets-close:focus,
.flyers-close:hover, .flyers-close:focus,
.CMads-close:hover, .CMads-close:focus,
.CBQads-close:hover, .CBQads-close:focus,
.OTHERads-close:hover, .OTHERads-close:focus,
.factsheets-close:hover, .factsheets-close:focus,
.broch01-close:hover, .broch01-close:focus,
.broch02-close:hover, .broch02-close:focus,
.broch03-close:hover, .broch03-close:focus,
.proposals-close:hover, .proposals-close:focus,
.music-close:hover, .music-close:focus,
.sermon01-close:hover, .sermon01-close:focus,
.sermon02-close:hover, .sermon02-close:focus,
.sermon03-close:hover, .sermon03-close:focus,
.sermon04-close:hover, .sermon04-close:focus,
.sermon05-close:hover, .sermon05-close:focus,
.sermon06-close:hover, .sermon06-close:focus,
.sermon07-close:hover, .sermon07-close:focus,
.ancmt01-close:hover, .ancmt01-close:focus,
.ancmt02-close:hover, .ancmt02-close:focus,
.evite01-close:hover, .evite01-close:focus,
.enews01-close:hover, .enews01-close:focus,
.enews02-close:hover, .enews02-close:focus,
.LPCweb01-close:hover, .LPCweb01-close:focus,
.LPCweb02-close:hover, .LPCweb02-close:focus,
.BTCamps-close:hover, .BTCamps-close:focus,
.ashes-close:hover, .ashes-close:focus,
.romans7-close:hover, .romans7-close:focus,
.MM-close:hover, .MM-close:focus,
.LH-close:hover, .LH-close:focus,
.Exp-close:hover, .Exp-close:focus {
  color: #afaeae;
  text-decoration: none;
  cursor: pointer;
}

/* 100% Image Width on Smaller Screens */
@media only screen and (max-width: 700px){
  .modal-content {
    width: 100%;
    }
}

#backtotop {
	text-align: right;
	margin-right: 20px;
	position: sticky;
	position: -webkit-sticky; /* Safari */
  top: 45%;
}
#backtotop img {
	border-radius: 50%;
}

#backtotop img:hover {
	transform: translateY(-3px);
}
@media screen and (max-width: 400px) {
	#backtotop {
		display: none;
	}
}

/*CALAMEO EMBEDS ON MOBILE*/
@media screen and (max-width: 440px) {
	iframe {
		width: 100%;
		margin: auto;
	}
}