/*
Theme Name: Cummins Photo Archive
Theme URI: 
Author: Frank Prendergast
Author URI: 
Description: 
Version: 1
*/


/*! HTML5 Boilerplate v5.2.0 | MIT License | https://html5boilerplate.com/ */

/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
    color: #222;
    font-size: 1em;
    line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * These selection rule sets have to be separate.
 * Customize the background color to match your design.
 */

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Browser Upgrade Prompt
   ========================================================================== */

.browserupgrade {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

/* apply a natural box layout model to all elements, but allowing components to change */
html {
  box-sizing: border-box;
}
*, *:before, *:after {
  box-sizing: inherit;
}

body{
	background-color: #f7f7f7;
/*	font-family: 'Crimson Text', serif;	*/
	font-family: 'Open Sans', sans-serif;
	color: #222222;
	margin: 0;
	padding: 0;
}

strong, b{
	font-weight: 700;
}

em, i{
	font-weight: 400italic;
}

img{
	max-width: 100%;
}

h1, h2, h3, h4, h5, h6{
	font-family: 'Josefin Sans', sans-serif;
	text-transform: uppercase;
	margin: 1em 0 1em 0;
	font-weight: 300;
}

p{
	margin: 0 0 1em 0;
}

.alignleft{
	float:left;
	margin: 0 15px 15px 0;
}

.alignright{
	float:right;
	margin: 0 0 15px 15px;
}

.js .js-hide{
	display:none !important;
}

/* container */
.container{
	max-width: 1900px;
}

/* categories */

.categories{
	padding: 10px 20px 0 20px;
}

.categories ul{
	display:inline;
	list-style: none;
	margin: 0;
	padding: 0;
}

.categories ul li{
	display:inline;
}

.categories ul.cats li:before{
	content: '\00a0 \00b7 \00a0';
}

.categories a{
	font-family: 'Josefin Sans', sans-serif;
	text-decoration: none;
	color: #aaaaaa;
	font-size: 12px;
	font-size: 0.75rem;
	text-transform: uppercase;
}

.categories a:hover{
	color: #ee3b33;
}

.categories .pages a{
	font-weight: 600;
}

/* header */

header{
	padding: 10px 20px;
	background-color: #ffffff;
	border-bottom: 1px solid #e6e6e6;
}

.logo{
	float:left;
}

a.back-to-site{
	display:block;
	float:right;
	margin-top: 50px;	
	width: 200px;
	border: 1px solid #e6e6e6;
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	border-radius: 5px;	
	text-align: center;
	padding: 5px;
	font-family: 'Josefin Sans', sans-serif;
	font-size: 14px;
	font-size: 0.875rem;
	text-transform: uppercase;	
	text-decoration: none;
	line-height: 1.6em;
	color: #666666;
	text-shadow: 1px 1px #ffffff;
	transition: all 0.5s ease;
	/* gradient */
/* Permalink - use to edit and share this gradient: http://colorzilla.com/gradient-editor/#ffffff+0,e6e6e6+100 */
	background-image: url('img/button-bg.png');
	background-repeat: repeat-x;
	background-position: bottom;
	clear: none;
}

a.back-to-site span{
	display:inline-block;
	width: 100%;
	border-top: 1px solid #e6e6e6;
}

a.back-to-site:hover{
	background-position: top;
	color: #ee3b33;
	border: 1px solid #ee3b33;
}

/* paging */

.paging{
	border-top: 1px solid #e6e6e6;
	padding: 20px;
}

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

.paging ul li{
	display: inline;
}

.paging ul li a{
	display:inline-block;
	padding: 5px;
	border: 1px solid #cccccc;
	background-color: #ffffff;
	font-family: 'Josefin Sans', sans-serif;
	font-size: 14px;
	font-size: 0.875rem;
	text-transform: uppercase;	
	text-decoration: none;
	text-align:center;
	min-width: 25px;
	color: #666666;
	margin-bottom: 5px;
}

.paging ul li a:hover{
	color: #ee3b33;
	border: 1px solid #ee3b33;
}

.single.paging ul{
	max-width: 1200px;
	margin: 0 auto;
}

.single.paging a{
	display:inline-block;
	margin-bottom: 20px;
	padding: 5px 15px;
}

.paging li.p-prev{
	width: 50%;
	float:left;
	text-align:left;
}

.paging li.p-next{
	width: 50%;
	float:right;
	text-align:right;
}

/* Infinite Scroll */
div#infscr-loading {
	position: fixed;
	bottom: 0;
	left: 0;
	z-index: 99;
	width: 100%;
	text-align: center;
	background: #f7f7f7;
	padding: 10px 0;
	border-top: 1px solid #d9d9d9;
}

div#infscr-loading div {
  font-size: 14px;
  color: #7a7a7a;
}

/* post */

.post-container{
	padding: 10px;
	width: 100%;
	max-width: 1200px;
	margin: 0 auto 40px auto;
}

.post{
	background-color: #ffffff;
	border: 1px solid #e6e6e6;
	padding: 4px;
}

.post img{
	max-width: 100%;
	height: auto !important;
}

.post-content{
	position: relative;
	padding: 40px;	
	line-height: 1.8em;
	font-size: 16px;
	font-size: 1rem;
	max-width: 800px;
	margin: 0 auto;
}

.post-content h1{
	/*color: #666666;*/
	color: #00205a;
	border-bottom: 1px solid #e6e6e6;
	padding-bottom: 20px;
	margin: 0 0 20px 0;
	line-height: 1.2em;
	font-size: 40px;
	font-size: 2.5rem;
}

.post-content h2{
	font-size: 30px;
	font-size: 1.875rem;
}


.post-content h3{
	font-size: 20px;
	font-size: 1.25rem;
}

.post-content p:nth-of-type(-n+2){
	font-size: 20px;
	font-size: 1.25rem;		
}

.post-content blockquote{
	margin: 40px;
	padding: 20px 0;
	font-size: 30px;
	font-size: 1.875rem;
	line-height: 1.2em;
	color: #00205a;	
	padding-left: 71px;
	min-height: 40px;
	max-width: 600px;
	border-top: 1px dotted #666666;
	border-bottom: 1px dotted #666666;
	position: relative;
}

.post-content blockquote:before{
	content: '';
	display:block;
	background-image: url('img/blockquote-1.png');	
	width: 56px;
	height: 40px;
	position: absolute;
	top: 20px;
	left: -10px;
}

.post-content blockquote p{
	margin: 0
	
}



/* wordpress gallery */

.wp-caption-text{
	font-size: 12px;
	font-size: 0.75rem;
	font-family: 'Open Sans', sans-serif;
	padding: 5px 15px 5px 15px;
}

.auto-gallery{
	position: absolute;
	left: -300px;
	top: 10px;
	margin-bottom: 20px;
	width: 250px;
}

.auto-gallery .gallery-caption{
	display:none;	
}

.auto-gallery div.gallery-item{
	float:none !important;
	margin-bottom: 10px;
	border: 1px solid #e6e6e6;
	padding: 5px;
	background-color: #ffffff;
}


/* masonry grid layout */

.grid-container{
	padding: 10px;
}

.grid{
	padding: 0px;
	width: 100%;
}

.grid-item, .grid-sizer{
		width: 20%;
}

.grid-item{
	float:left;
}

.js .clickable{
    cursor: pointer;
    cursor: hand;
}

.grid-item .inner{
	border: 1px solid #e6e6e6;
	padding: 4px;
	background-color:#ffffff;
	margin: 10px;
	-webkit-box-shadow: 0px 2px 4px 0px rgba(0,0,0,0.25);
	-moz-box-shadow: 0px 2px 4px 0px rgba(0,0,0,0.25);
	box-shadow: 0px 2px 4px 0px rgba(0,0,0,0.25);
	transition: all 0.2s ease;	
	-webkit-border-radius: 3px;
	-moz-border-radius: 3px;
	border-radius: 3px;			
}

.clickable img{
	max-width: 100%;
	height: auto !important;
}

.js .clickable:hover .inner{
	border: 1px solid #cccccc;
	-webkit-box-shadow: 0px 4px 6px 0px rgba(0,0,0,0.35);
	-moz-box-shadow: 0px 4px 6px 0px rgba(0,0,0,0.35);
	box-shadow: 0px 4px 6px 0px rgba(0,0,0,0.35);	
}

.js .clickable img{
	opacity: 0.9;
}

.js .clickable:hover img{
	opacity: 1;
}

.info{
	background-color: #00205a !important;
	color: #ffffff;
}

.info img{
	width: 80px;
	height: auto !important;
	float:left;
	margin: -25px 20px 20px -30px;
	padding: 2px;
	background-color: #ffffff;
	border: 1px solid #cccccc;
}

.grid-item .content{
	padding: 10px 20px;
	font-size: 14px;
	font-size: 0.875rem;
}

.grid-item .content p{
	line-height: 1.4em;
	/*text-align: justify;*/
	text-align: left;
	color: #999999;
}

.js .clickable:hover .content p{
	color: #222222;
}

.grid-item .info .content p{
	color: #ffffff;
}

.grid-item a{
	text-decoration:none;
	color: #000000;
}

.grid h2{
	margin-bottom: 10px;
	margin-top: 5px;
	font-size: 18px;
	font-size: 1.125rem;
}

.grid-item h2 a {
	color: #00205a;
}

.grid-item h2 a:hover,
.js .grid-item:hover h2 a{
	color: #ee3b33;
}

.readmore{
	display: inline-block;
	padding: 5px;
	border: 1px solid #e6e6e6;
	font-family: 'Josefin Sans', sans-serif;
	font-size: 12px;
	font-size: 0.75rem
	text-transform: uppercase;	
	transition: all 0.2s ease;
}

.readmore:hover{
	border: 1px solid #ee3b33;
	color: #ee3b33;
}

/* end masonry grid layout */


#colorbox:focus {outline:none !important;}
#cboxWrapper:focus {outline:none !important;}


/* Blog Post Comment Styles */
/* Base Styles */
ol.children, ol.comment-list {list-style:none;margin:0 0 1em;padding:0;text-indent:0;border: 1px solid #e6e6e6;}
ol.comment-list li.comment {border-bottom: 1px solid #d0d0d0;padding: 1.5em 3em;}
ol.comment-list li.comment div.vcard cite.fn { font-style:normal; }
ol.comment-list li.comment div.vcard img.avatar { border:5px solid #ccc; float:right; margin:0 0 1em 1em; }
ol.comment-list li.comment div.comment-meta {font-size: 11px;margin: 5px 0 15px;}
ol.comment-list li.comment div.comment-meta a {color: #919191;}
ol.comment-list li.comment p {font-size: 14px;margin:0 0 1em;}
ol.comment-list li.comment ul { font-size:11px; list-style:square; margin:0 0 1em 2em; }
ol.comment-list li.comment div.reply {font-size: 11px;text-transform: uppercase;}
ol.comment-list li.comment div.reply a { font-weight:bold; }
ol.comment-list li.comment ul.children { list-style:none; margin:1em 0 0; text-indent:0; }
ol.comment-list li.comment ul.children li.depth-2 { border-left:5px solid #555; margin:0 0 .25em .25em; }
ol.comment-list li.comment ul.children li.depth-3 { border-left:5px solid #999; margin:0 0 .25em .25em; }
ol.comment-list li.comment ul.children li.depth-4 { border-left:5px solid #bbb; margin:0 0 .25em .25em; }
ol.comment-list li {background:#fff;}
ol.comment-list ol.children li.odd { background:#f6f6f6; }
ol.comment-list li.parent {border-left: 3px solid #002e6c;}

/* Custom Comment Styles */
ol.comment-list li.comment cite {
  font-size: 20px;
  text-transform: capitalize;
}
#respond a,
ol.comment-list li.comment a {
  color: #002e6c;
}
#respond a:hover,
ol.comment-list li.comment a:hover {
  color: #0d51ab;
  text-decoration: none;
}
ol.children {
  margin-top: 20px;
}
ol li.comment:last-child {
  border-bottom: none;
}
#respond{
	background-color:#ffffff;
	border: 1px solid #e6e6e6;
	padding: 15px;
	margin-bottom: 30px;
	margin-top: 60px;
}
#respond ol{
	list-style: none;
	margin: 0;
	padding: 0;
}
#respond ol li{
	margin-bottom: 25px;
}
#respond label{
	display:block;
	line-height: 1em;
	padding-bottom: 0.4em;
	font-size: 14px;
}
#respond input, #respond textarea{
	padding: 10px;
	border: 1px solid #cccccc;
	display:block;
	width: 100%;	
}
#respond input#submit{
	color: #ffffff;
	background-color: #002e6c;
	border: none;
	cursor: pointer;
	text-transform: uppercase;
	font-size: 14px;
}
#respond textarea{
	min-height: 200px;
	margin-top: 1.4em;	
}
#respond small{
	font-size: 0.8em;
	color: #4d5c71;
}
#respond .col-1-b,#respond .col-2-b {
  float: left;
  width: 50%;
}
#respond .col-1-b {
  padding-right: 10px;
}
#respond .col-2-b {
  padding-left: 10px;
}
p.leave-reply {
  font-size: 22px;
  text-align: center;
  padding-bottom: 15px;
  border-bottom: 1px solid #e6e6e6;
}
#respond input#submit:hover {
  background-color: #0d51ab;
}
#respond .col-2-b ol li {
  margin-bottom: 15px;
}
.cancel-comment-reply {
  margin-bottom: 15px;
  text-align: center;
}



/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers:
 */

.hidden {
    display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * http://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 */

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

/*
 * Extends the .visuallyhidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
    visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix:before,
.clearfix:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.clearfix:after {
    clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (max-width: 1400px) {
	/* grid columns */
	.grid-item, .grid-sizer{
		width: 25%;
	}
	/* auto gallery */
	.auto-gallery{
		position: relative;
		left: auto;
		top: auto;
		margin-bottom: 20px;
		width: 100%;
	}
	
	.auto-gallery div.gallery-item{
		float:left !important;
		margin-bottom: 0px;
		width: 25%;
	}
}

@media only screen and (max-width: 1024px) {
	/* grid columns */
	.grid-item, .grid-sizer{
		width: 33.3333%;
	}	
	/* post headers */
	.post-content h1{
		font-size: 20px;
		font-size: 1.25rem;
	}
}

@media only screen and (max-width: 768px) {
	/* grid columns */
	.grid-item, .grid-sizer{
		width: 50%;
	}	
}

@media only screen and (max-width: 550px) {
	/* grid columns */
	.grid-item, .grid-sizer{
		width: 100%;
	}
	/* header */
	header{
		text-align: center;
	}	
	.logo{
		float:none;
	}
	a.back-to-site{
		float:none;
		margin: 10px auto 0 auto;
	}
	/* single post - remove padding to make easier to read on phones */
	.post-container{
		padding: 0;
		margin-bottom: 0;
	}
	.post{
		border: none;	
	}
	.post-content{
		padding: 20px;	
	}
	
	ol.comment-list {
    border-left: none;
    border-right: none;
	}

	ol.comment-list li.comment {
		padding: 20px;
	}

	#respond .col-1-b, #respond .col-2-b {
		float: none;
		width: 100%;
		padding: 0;
	}
	
	
}

@media print,
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 1.25dppx),
       (min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   http://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
    *,
    *:before,
    *:after {
        background: transparent !important;
        color: #000 !important; /* Black prints faster:
                                   http://www.sanbeiji.com/archives/953 */
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    /*
     * Don't show links that are fragment identifiers,
     * or use the `javascript:` pseudo protocol
     */

    a[href^="#"]:after,
    a[href^="javascript:"]:after {
        content: "";
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    /*
     * Printing Tables:
     * http://css-discuss.incutio.com/wiki/Printing_Tables
     */

    thead {
        display: table-header-group;
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}
