/*
Theme Name: Affinity
Theme URI: http://www.cogentpath.com/affinity
Author: Cogent Path, LLC
Author URI: http://www.cogentpath.com
Description: WordPress theme framework with an affinity for Bootstrap.
Version: 1.3.1
License: GNU General Public License v3.0
License URI: http://www.gnu.org/licenses/gpl-3.0.en.html
*/

/**
 * Table of Contents
 *
 * 1.0 - Repeatable
 * 2.0 - Structure
 * 3.0 - Header
 * 4.0 - Navigation
 * 5.0 - Content
 *   5.1 - Entries
 *   5.2 - Galleries
 * 6.0 - Sidebar
 *   6.1 - Widgets
 * 7.0 - Footer
 * 8.0 - Media Queries
 */

/**
 * 1.0 Repeatable
 * -----------------------------------------------------------------------------
 */

/* Make sure images are scaled correctly */

.entry-content img,
.entry-summary img,
img[class*="align"],
img[class*="wp-image-"],
img[class*="attachment-"],
.site-header img,
.widget img {
	height: auto;
	max-width: 100%;
}

img.size-full,
img.size-large {
	height: auto;
	max-width: 100%;
}

/* Make sure embeds and iframes fit their containers */

embed,
iframe,
object,
video {
	margin-bottom: 20px;
	max-width: 100%;
}

p > embed,
p > iframe,
p > object,
span > embed,
span > iframe,
span > object {
	margin-bottom: 0;
}

/* Alignment */

.alignleft {
	float: left;
}

.alignright {
	float: right;
}

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

blockquote.alignleft,
.wp-caption.alignleft,
img.alignleft {
	margin: 7px 14px 7px 0;
}

blockquote.alignright,
.wp-caption.alignright,
img.alignright {
	margin: 7px 0 7px 14px;
}

blockquote.aligncenter,
.wp-caption.aligncenter,
img.aligncenter {
	margin-top: 7px;
	margin-bottom: 7px;
}

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

.wp-caption-text {
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
	color: #999;
	font-style: italic;
	margin: 10px 0;
}

.wp-smiley {
	border: 0;
	margin-bottom: 0;
	margin-top: 0;
	padding: 0;
}

/**
 * 2.0 Structure
 * -----------------------------------------------------------------------------
 */

/**
 * 3.0 Header
 * -----------------------------------------------------------------------------
 */

/**
 * 4.0 Navigation
 * -----------------------------------------------------------------------------
 */

@media (min-width: 768px) {
	.dropdown:hover .dropdown-menu {
		display: block;
	}
}

/**
 * 5.0 Content
 * -----------------------------------------------------------------------------
 */

.page-header {
	border: none;
	margin: 0;
	padding: 0;
}

.page-title {
	margin-top: 0;
}

/**
 * 5.1 Entries
 * -----------------------------------------------------------------------------
 */

.entry-archive,
.entry-search,
.entry-static-page {
	margin-bottom: 10px;
}

.entry-title {
	margin-top: 0;
}

.entry-meta {
	color: #999;
	margin-bottom: 10px;
}

.entry-meta .glyphicon {
	font-size: 88%;
	margin-right: 5px;
}

.entry-content,
.entry-summary,
.page-content {
	word-wrap: break-word;
}

.entry-content h1:first-child,
.entry-content h2:first-child,
.entry-content h3:first-child,
.entry-content h4:first-child,
.entry-content h5:first-child,
.entry-content h6:first-child,
.entry-summary h1:first-child,
.entry-summary h2:first-child,
.entry-summary h3:first-child,
.entry-summary h4:first-child,
.entry-summary h5:first-child,
.entry-summary h6:first-child,
.page-content h1:first-child,
.page-content h2:first-child,
.page-content h3:first-child,
.page-content h4:first-child,
.page-content h5:first-child,
.page-content h6:first-child {
	margin-top: 0;
}

.entry-footer {
	margin-top: 10px;
}

/**
 * 5.2 Gallery
 * -----------------------------------------------------------------------------
 */

.gallery {
	margin-bottom: 20px;
}

.gallery-item {
	float: left;
	margin: 0 7px 7px 0;
	overflow: hidden;
	position: relative;
}

.gallery-columns-1 .gallery-item {
	max-width: 100%;
}

.gallery-columns-2 .gallery-item {
	max-width: 48%;
	max-width: -webkit-calc(50% - 4px);
	max-width:         calc(50% - 4px);
}

.gallery-columns-3 .gallery-item {
	max-width: 32%;
	max-width: -webkit-calc(33.3% - 4px);
	max-width:         calc(33.3% - 4px);
}

.gallery-columns-4 .gallery-item {
	max-width: 23%;
	max-width: -webkit-calc(25% - 4px);
	max-width:         calc(25% - 4px);
}

.gallery-columns-5 .gallery-item {
	max-width: 19%;
	max-width: -webkit-calc(20% - 4px);
	max-width:         calc(20% - 4px);
}

.gallery-columns-6 .gallery-item {
	max-width: 15%;
	max-width: -webkit-calc(16.7% - 4px);
	max-width:         calc(16.7% - 4px);
}

.gallery-columns-7 .gallery-item {
	max-width: 13%;
	max-width: -webkit-calc(14.28% - 4px);
	max-width:         calc(14.28% - 4px);
}

.gallery-columns-8 .gallery-item {
	max-width: 11%;
	max-width: -webkit-calc(12.5% - 4px);
	max-width:         calc(12.5% - 4px);
}

.gallery-columns-9 .gallery-item {
	max-width: 9%;
	max-width: -webkit-calc(11.1% - 4px);
	max-width:         calc(11.1% - 4px);
}

.gallery-columns-1.gallery-size-medium figure.gallery-item:nth-of-type(1n+1),
.gallery-columns-1.gallery-size-thumbnail figure.gallery-item:nth-of-type(1n+1),
.gallery-columns-2.gallery-size-thumbnail figure.gallery-item:nth-of-type(2n+1),
.gallery-columns-3.gallery-size-thumbnail figure.gallery-item:nth-of-type(3n+1) {
	clear: left;
}

/**
 * 6.0 Sidebar
 * -----------------------------------------------------------------------------
 */

/**
 * 6.1 Widgets
 * -----------------------------------------------------------------------------
 */

.widget-title {
	margin-top: 0;
}

.widget {
	margin-bottom: 20px;
	word-wrap: break-word;
}

.widget:last-of-type {
	margin-bottom: 0;
}

/* Text Widget */

.widget_text > div > :last-child {
	margin-bottom: 0;
}

/* Page Hierarchy Widget */

.list-group-item.small {
	padding-left: 25px;
}

/**
 * 7.0 Footer
 * -----------------------------------------------------------------------------
 */

/**
 * 8.0 Media Queries
 * -----------------------------------------------------------------------------
 */

/* Does the same thing as <meta name="viewport" content="width=device-width">,
 * but in the future W3C standard way. -ms- prefix is required for IE10+ to
 * render responsive styling in Windows 8 "snapped" views; IE10+ does not honor
 * the meta tag. See http://core.trac.wordpress.org/ticket/25888.
 */
@-ms-viewport {
	width: device-width;
}

@viewport {
	width: device-width;
}

@media (max-width: 767px) {
	.text-right-xs {
		text-align: right;
	}

	.text-left-xs {
		text-align: left;
	}

	.text-center-xs {
		text-align: center;
	}
}

@media (min-width: 768px) and (max-width: 991px) {
	.text-right-sm {
		text-align: right;
	}

	.text-left-sm {
		text-align: left;
	}

	.text-center-sm {
		text-align: center;
	}
}

@media (min-width: 992px) and (max-width: 1199px) {
	.text-right-md {
		text-align: right;
	}

	.text-left-md {
		text-align: left;
	}

	.text-center-md {
		text-align: center;
	}

}

@media (min-width: 1200px) {
	.text-right-lg {
		text-align: right;
	}

	.text-left-lg {
		text-align: left;
	}

	.text-center-lg {
		text-align: center;
	}

}
