main, footer {width:90%;margin:auto;} 

h1.page-header {padding:0.5% 1%;background-color:#ddd;font-size:1.6em;}

h2 {color:blue;font-style:italic;}

h3 {color:#026670;font-style:italic;font-weight:bolder;}

h4 {color:black;font-weight:bolder;}

span.dropcap {
  color:#026670;
  float: left;
  font-family:Georgia, serif;
  font-size:75px;
  line-height:60px;
  padding-top:0;
  padding-right:4px;
  padding-left:3px;
}


figure {text-align:center;color:#026670;}

footer {padding: 0.5% 1%;}

footer a {display:inline-block;}

/* avmedia rescaling */
audio, video {max-width:90%;margin:1% 0}
video{
   object-fit: inherit;
   height:auto;
}

.align-right {
    display:inline-block;
    float:right;
    margin:2% 4% 2% 2%;
}
.align-left {
    display:inline-block;
    float:left;
    margin:2% 2% 2% 4%;
}

/* Front page "slider" */
#slides{
    position:relative;
    height:350px;
    padding:0px;
    margin:0px;
    list-style-type:none;
    line-height:2em;
}

.slide{
    position:absolute;
    left:0px;
    top:0px;
    width:100%;
    height:100%;
    opacity:0;
    z-index:1;
    transition:opacity 1s;
}

.showing{
    opacity:1;
    z-index:2;
}

.slide{
    font-size:40px;
    padding:40px;
    box-sizing:border-box;
    background:#333;
    color:#fff;
	text-shadow:3px 3px 6px #000000;
	background-repeat:no-repeat;
	background-size:cover;
}

.slide:nth-of-type(1){
    background-image: url("images/slider/worship.jpg");
}
.slide:nth-of-type(2){
    background-image: url("images/slider/protest.jpg");
}
.slide:nth-of-type(3){
    background-image: url("images/slider/peace.jpg");
}
.slide:nth-of-type(4){
    background-image: url("images/slider/tolerance.jpg");
}

/* end of slider */

/* flexible 3 in a row grids */
.gridbox a:link, .gridbox a:visited {
    background-color:#0099FF;
    color:white;
    padding:2px 10px;
    text-align:center;
    text-decoration:none;
    display:inline-block;
    border-radius:8px;
}


.gridbox a:hover, .gridbox a:active {
    background-color:#0033FF;
}
.gridrow {
	clear:both;
	padding:0px;
	margin:0px;
}

.gridbox {
	float:left;
	margin:1% 0 1% 1.6%;
	width:30%;
	padding:1%;
}

.gridbox2 {
	float:left;
	margin:1% 0 1% 1.6%;
	width:61.6%;
	padding:1%;
}
.gridbox3 {
	float:left;
	margin:1% 0 1% 1.6%;
	width:47.4%;
	padding:1%;
}
.gridbox:first-child {margin-left:2%; }

.gridrow:before,
.gridrow:after {content:""; display:table; }
.gridrow:after {clear:both;}
.gridrow { zoom:1; /* fixes old IE */ }

/*  Full width grid boxes on small screens */
@media only screen and (max-width: 481px) {
	.gridbox, .gridbox2, .gridbox3 {margin: 1% 0%;width:100% }
        .gridbox:first-child {margin-left:0;}
}

/* outline and center audio and video in a gridbox */

.gridrow audio, .gridrow video {
	display: block;
	margin: 0 auto;
	outline: 2px solid black;
}

/* end of grids */

/* About us links, link buttons, Contact Us links*/

.ts-about-us main a, a.linkbtn, .ts-contact-us main a {
    background-color:#0099FF;
    color:white;
    padding:2px 10px;
    text-align:center;
    text-decoration:none;
    display:inline-block;
    border-radius:8px;
}

.ts-about-us main a:hover, a.linkbtn:hover, .ts-contact-us main a:hover {
    background-color:#0033FF;
}

/* end of About us links */

/* tables striped */
table {
    border-collapse: collapse;
    border-spacing: 0;
    width: 100%;
    border: 1px solid gray;
}

th, td {
    text-align: center;
    padding: 8px;
}

tr:nth-child(even){background-color: #eee}

/* end tables */

/* Blockquotes */

blockquote {
display: relative;
margin: auto;
font-family: Georgia, serif;
font-size: 1em;
font-style: italic;
width: 80%;
padding: 0.25em 40px;
line-height: 1.45;
position: relative;
color: #433;
}

blockquote:before {
display: block;
content: "\201C";
font-size: 4em;
position: absolute;
left: -20px;
top: -20px;
color: #7a7a7a;
}

blockquote cite {
color: #999;
font-size: 0.8em;
display: block;
margin-top: 5px;
}
 
blockquote cite:before {
content: "\2014 \2009";
}

/* end Blockquotes */

/* photo grid for worship page */

#photo-grid {
  /* Prevent vertical gaps */
  line-height:0;
   
  -webkit-column-count: 2;
  -webkit-column-gap:   0px;
  -moz-column-count:    2;
  -moz-column-gap:      0px;
  column-count:         2;
  column-gap:           0px;  
}

#photo-grid img {
  width:100% !important;
  height:auto !important;  
}


@media (max-width: 400px) {
  #photo-grid {
  -moz-column-count:    1;
  -webkit-column-count: 1;
  column-count:         1;
  }
}

/* end of photo grid */

/* Email contact form */

#ts-contact-form fieldset {
    width: 100%;
    max-width: 620px;
    font-size: 1.4em;
    border-radius: 10px;
    background-color: #eeeeff;
    color:#026670;
}

#ts-contact-form input, #ts-contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size:1em;
    resize: vertical;
}


#ts-contact-form label {
    padding: 12px 12px 12px 0;
    display: block;
    color:black;
}

#ts-contact-form input[type=button] {
    background-color: #0077ff;
    color: white;
    font-size:1.4em;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    float: right;
    margin-top:10px;
}

#ts-contact-form input[type=button]:hover {
    background-color: #0044dd;
}

#ts-email-response dt {
    color:#026670;
}

/* end of contact form */

/* Quiet Word archive */
.qwarchive {border-top:1px solid black;}
.qwarchive a {
  display:inline-block;
  text-decoration:none;
  background-color: #026670;
  color: white;
  padding: 2px 6px 2px 6px;
  margin:3px 0;
  border-top: 1px solid #CCCCCC;
  border-right: 1px solid #333333;
  border-bottom: 1px solid #333333;
  border-left: 1px solid #CCCCCC;
  border-radius:6px;
}

/* Amnesty Conterts */

body.tp-_amnesty-concerts {
  h2 {align:center;}
}

/* Map of Meetings */
#image-map {
  position: relative;
  padding: 0;
  margin: 2% auto 0;
  width:962px;
  max-width: 90%;
}
#meetings-map {
  width:100%;
  height:auto; 
  outline:1px solid green;
}
#map-title {
  text-align:center;
}
#map-attribution {
  display: block;
  margin:0 auto 2%;
  font-size:xx-small;
  text-align:center;
}

/* Quaker Quest */
.tp-activities #content {
  background-color:#b1ccd3;
  padding:1.4vw;
  border-radius:2vw;
  border:0.25vw solid #026670;
}
.tp-activities #content h2 {
  font-size:2em;
}

a.linkbutton {
    background-color:#0099ff;
    color:white;
    padding:2px 10px;
    text-align:center;
    text-decoration:none;
    display:inline-block;
    border-radius:8px;
}

.linkbutton:hover {
    background-color:#0033FF;
}

a.linkblock {
    background-color: white;
    color: black;
    border: 2px solid #0099ff;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
}

.linkblock:hover {
    background-color: #0099ff;
    color: white;
}