/*
Theme Name: Cycling Magazine
Theme URI: http://ncreative.ca
Author: Sean Rasmussen & Sean Nilsson
Author URI: http://ncreative.ca
Description: Custom magazine theme for Cycling. Built with Bootstrap front-end. 
Version: 1.0
License: Running 
License URI: http://ncreative.ca
Tags: custom, bootstrap, running, magazine

Cycling Magazine WordPress Theme © 2016 NCreative
*/

html, body { height: 100%;}
body {
	padding-top: 70px;
	/* background-color: #e7e7e7; */
}
body.admin-bar #header { top: 32px !important; }
#author-header {
	padding-bottom: 20px;
}
.current-issue-overlay {
	height: 100%;
	width: 100%;
	background:rgb(0,0,0);
    background:rgba(0,0,0,.3);
    padding: 20px;
}
.btn-section {
	color: gray;
	float: right;
	clear: both;
	}
.btn-section:hover {
	color: black;
	}	
.spr-slide-image {
	max-height: 94px;
	width: auto;
	margin-right: 3px;
}
.spr-gallery-thumb-slide .slick-slide .slick-active img {
    opacity: 0.4;
    filter: alpha(opacity=40); /* For IE8 and earlier */
    }
#bloggers-dropdown {
	margin-bottom: 20px;
}
.page-content-wrapper {
	position: relative;
	background-color: white;
	padding: 4px 20px 20px 20px;
	z-index: 2;
	max-width: 1220px;
	margin-left: auto;
	margin-right: auto;
	display: block;
}
#background-skin {
	position: fixed;
	top: 0px;
	left: 0px;
	z-index: 0;
	width: 100%;
}
.centerbg {
	position: relative;
	left: 50%;
	margin-left: -960px; /* -(width of bg ad /2) */
	z-index: 0;
}

/* BEGIN - PAGE LAYOUT */
.table-layout {
    display:table;
    width:100%;
    table-layout: fixed;
}
.table-layout .table-cell {
    display:table-cell;
}
.main-cell {
	padding-right: 30px;
	padding-top: 0px;
	vertical-align: top;
}
.main-grid-cell {
	padding-right: 0px;
	padding-top: 0px;
	vertical-align: top;	
}
.fixed-width-sidebar {
    width:300px;
}
/* END -  PAGE LAYOUT */

/* BEGIN -- Header Styles */
#header {
	background: black;
	position: fixed;
	top: 0px;
	width: 100%;
	z-index:3;
	-webkit-transition: all 600ms;
  	transition: all 600ms;
  	padding-top: 10px;
  	padding-bottom: 5px;
  	border-bottom: 1px solid #808080;
}
.mtb-header {
	background-color: #d7df23!important;
}
#header p {
	margin-top: 10px;
	margin-bottom: 0px;
	padding-bottom: 0px;
	color: gray;
}
#nav {
	position: relative;
}
.logo-wrap  {
	float: left;
	width: 20%;
}
.mtb-logo-wrap  {
	float: left;
	width: 20%;
}
.menu-wrap {
	float: right;
	width: 80%;
}
#leaderboard {
	text-align: center;
	width: 100%;
	margin: 0px 0px 4px 0px;
	z-index: 1;
}
/* END  Header Styles */

/* BEGIN Page Footer Styles */
#footer-widget-wrapper ul li {
	border-bottom: 0px;
	border-bottom-color: black;
	border-bottom-style: solid;
	padding-bottom: 4px;
	padding-top: 2px;
}
#footer-widget-wrapper ul {
	margin-bottom: 30px;
}
#footer-widget-wrapper a, #footer-widget-wrapper p, #footer-widget-wrapper {
	color: #F4F4F4;
}
.widget-title {
	font-size: 18px;
	text-transform: uppercase;
	font-weight: bold;
}
#footer-widget-wrapper .widget-title {
	border-bottom: 1px solid gray;
	padding-bottom: 8px;
	margin-bottom: 10px;
	margin-top: 30px;
}
#main-footer {
	border-top-width: 0px;
	border-top-style: solid;
	border-top-color: #fafafa;
	margin-top: 0px;
	z-index: 2;
	position: relative;
}
#footer-widget-wrapper .cover {
	max-height: 130px;
	margin-right: 10px;
}
#footer-widget-wrapper {
	background-color: #333333;
	padding-top: 0px;
	padding-bottom: 15px;
	border-top: 6px solid black;
	margin-top: 0px;
}
.footer-follow-icons .fa {
	padding-right: 4px;
}
.footer-follow-icons .fa:hover {
	color: #e7e7e7;
}
.timeline {
    max-width: 520px;
    margin-bottom: 10px;
    background-color: transparent !important;
    border-radius: 5px;
}
#copyright {
	padding-top:20px;
	padding-bottom: 20px;
	background-color: black;
	color: white;
}
#main-footer ul {
	list-style: none;
	padding-left: 0;
}
h3.widget-title  {
	margin-top: 0px;
}
/* END-- Page Footer Styles */


/* BEGIN  Sidebar Styles */
.sidebar-ad {
	width: 300px;
	margin-left: auto;
	margin-right: auto;
	display: block;
	margin-bottom: 20px;
	background-color: #e7e7e7;
}
.page-sidebar {
	margin-top: 30px;
}
#sidebar ul  {
	list-style: none;
	padding-left: 0;
}
#sidebar ul {
	margin-bottom: 30px;
}
#sidebar .form-control {
	margin-left: 0px;
}
#sidebar ul li {
	border-bottom: 1px;
	border-bottom-color: #e7e7e7;
	border-bottom-style: solid;
	padding-bottom: 4px;
	padding-top: 2px;
}
.pptwj-tabs-wrap ul {
	margin-bottom: 0px !important;
}
/* END - Sidebar Styles */

/* BEGIN - Single Post and Page */
.page-header .category-page-description {
	margin-top: 0px;
	margin-bottom: 20px;
}
.page-header .custom-post-excerpt {
	margin-top: -10px;
	margin-bottom: 10px;
}
.entry-meta {
	font-size: 85%;
	padding-bottom: 4px;
	padding-top: 4px;
}
.entry-footer {
	font-size: 80%;
	margin-bottom: 20px;
}
.entry-header {
	font-size: 80%;
}
.in-content-ad {
	width: 100%;
	text-align: center;
	height: auto;
	margin-top: 20px;
	margin-bottom: 20px;
	padding-top: 10px;
	padding-bottom: 10px;	
	border-color: #d3d3d3;
	border-width: 1px 0px 1px 0px;
	border-style: solid;
	clear: both;
	display: block; 
}

.show-comments {
	max-height: 400px;
	overflow: hidden;
}
.page-header {
	border-top: 6px solid black;
	margin-bottom: 10px;
	padding-bottom: 0px;
	margin-top: 0px;
	padding-top:0px;
	border-bottom: 1px solid black;
}
/* END - Single Post and Page */

/*Begin Comments Form Styling*/

#comments-list ul {
	font-size: 12px;
	color: gray;
	list-style: none;
}
#comments-list ul li {
	padding-top: 12px;
	padding-bottom: 12px;
	border-bottom: 1px solid #e7e7e7;
}
#comments-list ul ul li {
	padding-top: 12px;
	padding-bottom: 12px;
	border-bottom: 0px solid #e7e7e7;
}
.comment-reply-link {
	border: 1px solid #e7e7e7;
	padding: 4px;
	border-radius: 4px;
}

/*End Comments Form Styling*/


/*Begin Special Feature Styles*/

#feature-content p {
	margin-bottom: 40px;
	font-size: 18px;
}
#feature-content .wp-caption {
	max-width: 100% !important;
	width: auto !important;
	margin-top: 20px;
	margin-bottom: 30px !important;
}
#feature-content .wp-caption p {
		text-align: left;
		font-size: 14px;
		margin-top: 10px;
		margin-bottom: 10px;
		line-height: 1.3;
		padding-left: 6px;
		padding-right: 6px;
}
#feature-content .wp-caption img {
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 10px;
	display: block;
	max-width: 100% !important;
	height: auto !important;
}
#feature-content:first-child:first-letter {
    font-size: 5em;
    float: left;
    padding: 0px 10px 0px 0px;
    font-weight: bold;
    text-align: top;
    line-height: .7;
    font-family: "Roboto Slab"
}
#feature-content hr {
    padding: 0;
    border: none;
    border-top: medium double #333;
    color: #333;
    text-align: center;
}
#feature-content hr:after {
    content: "§";
    display: inline-block;
    position: relative;
    top: -0.7em;
    font-size: 1.5em;
    padding: 0 0.25em;
    background: white;
}
#feature-content blockquote {
	border-top: 5px solid black;
	border-bottom: 5px solid black;
	border-left: none;
	padding-left: 0px;
	padding-right:0px;
	padding-top: 25px;
	padding-bottom: 0px;
	width: 80%;
	margin-right: auto;
	margin-left: auto;
}
#feature-content blockquote p {
	font-size: 24px;
	padding-left: 20px;
	padding-right: 20px;
	padding-bottom: 0px;
	font-family: "Roboto Slab";
	text-align: center;
}
.intro-header {
  background-color: #808080;
  background: no-repeat center center;
  background-attachment: scroll;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  background-size: cover;
  -o-background-size: cover;
  margin-bottom: 50px;
}
.intro-header .site-heading,
.intro-header .post-heading,
.intro-header .page-heading {
  padding: 200px 0 200px;
  color: white;
}
.header-overlay {
	height: 100%;
	width: 100%;
	background:rgb(0,0,0);
    background:rgba(0,0,0,.5);
}

.subheading {
	font-size: 20px;
	font-weight: 300;
}
@media (max-width: 768px) { 
	#special-feature .container{
	padding-right: 20px;
	padding-left: 20px;
	padding-top: 10px;
	padding-bottom: 10px;
	}
}
/*End Special Feature Styles*/




/* new bg grids with backgrounds */

.bg-grid-item { 
   	position: relative; 
   	height: 250px; 
   	margin-bottom: 5px;
   	width: auto;
   	background-color: gray;
   	background-size:cover;
   	background-position: center center;
}
.bg-grid-item:hover {
	opacity: 0.8;
}
.bg-grid-item-text { 
	background-image:
    linear-gradient(to top,	black, transparent);
	padding: 40px 10px 10px 10px;
 	position: absolute; 
 	bottom: 0px; 
   	left: 0px; 
   	width: 100%; 
   	color: white;
}
.bg-grid-item-text a {
   	color: white;
}
.bg-grid-anchor {
	width: 100%;
	height: 100%;
	position: absolute; 
 	bottom: 0px; 
   	left: 0px; 
}
/* BEGIN - Blog Grid Layout Styles */
.grid-item { 
   	position: relative; 
   	max-width: 100%; /* for IE 6 */
   	margin-bottom: 5px;
   	overflow: hidden;
}
.grid-item-text { 
	background-image:
    linear-gradient(to top,	black, transparent);
	padding: 40px 10px 10px 10px;
 	position: absolute; 
 	bottom: 0px; 
   	left: 0; 
   	width: 100%; 
   	color: white;
}
.grid-item-text a {
   	color: white;
}
.responsive-thumb img {
	width: 100%;
	height:auto;
	opacity: 1;
   	transition: opacity .5s ease-in-out;
   	-moz-transition: opacity .5s ease-in-out;
   	-webkit-transition: opacity .5s ease-in-out;
}
.grid-item img {
	width: auto;
	height: 250px;
	overflow: hidden;
}
.responsive-thumb:hover {
	opacity: 0.75;
}
.horizontal-grid {
	margin-top: 20px;
	margin-bottom:20px;
}
.row.no-gutter {
  	margin-left: 0;
  	margin-right: 0;
}

#sticker {
	width: 300px;
}
.row.no-gutter [class*='col-']:not(:first-child),
.row.no-gutter [class*='col-']:not(:last-child) {
  	padding-right: 2px;
  	padding-left: 2px;
}

.grid-ad-right {
	width: 300px;
	margin-left: auto;
	margin-right: auto;
	display: block;
	margin-bottom: 5px;
	background-color: #e7e7e7;

}
.grid-ad-left {
	width: 300px;
	margin-left: auto;
	margin-right: auto;
	display: block;
	margin-bottom: 5px;
	background-color: #e7e7e7;
}
.fixed-width-sidebar-grid-left {
    width:300px;
    margin-right:4px;
}

/* END Blog Grid Layout Styles */

/* Begin Custom Image Gallery Slider */
.spr-slide-image {
	max-height: 94px;
	width: auto;
	margin-right: 3px;
}
.slick-center img{
	border: 1px solid white !important;
}
.spr-gallery-thumbs .slick-active img {
	border: 3px solid gray;
}
.spr-gallery-thumbs img:hover {
	opacity: .8;
}
.spr-gallery-thumbs {
	cursor: pointer;
}
.spr-gallery-wrapper {
	background-color: white;
	padding: 10px 10px 0px 10px;
	border: 1px solid #e7e7e7;
	margin-bottom: 20px;
}
.spr-gallery {
	height: 520px;
}
.spr-gallery-slide {
	height: 520px;
}
.spr-gallery-img-wrap {
	height: 520px;
	position: relative;
	background-color: #e7e7e7;
}
.spr-gallery-img-wrap img {
	max-height: 100%;
	width: auto;
	margin-right: auto;
	margin-left: auto;
}
.spr-gallery h3 {
	font-size: 14px;
	font-weight: lighter;	
	position: absolute;
	bottom: 0px;
	margin: 0px;
	color: black;
	padding: 8px;
	background-color:rgba(255,255,255, 0.8);
	width: 100%;
	display: block;
	border: 1px solid #e7e7e7;
}
.spr-gallery .slick-dots {
    bottom: 25px !important;
}
.spr-gallery .slick-dots li button:before {
    color: black;
}
.spr-gallery .slick-dots li.slick-active button:before {
    color: black;
}
@media (max-width: 768px) { 
	.spr-gallery {
	height: 250px;
	}
	.spr-gallery-slide {
	height: 250px;
	}
	.spr-gallery-img-wrap {
	height: 250px;
	}
	.spr-gallery-thumbs {
	display: none;
	}
}	
/* END custom image gallery slider */



/* BEGIN Wordpress IMG classes */
img.alignright {float:right; margin:0 0 1em 1em}
img.alignleft {float:left; margin:0 1em 1em 0}
img.aligncenter {display: block; margin-left: auto; margin-right: auto}
img.size-full {width: 100%; margin-top: 0px;}
img.alignnone {width: 100%;  margin-top: 0px;}
a img.alignright {float:right; margin:0 0 1em 1em}
a img.alignleft {float:left; margin:0 1em 1em 0}
a img.aligncenter {display: block; margin-left: auto; margin-right: auto}

.wp-caption {
    max-width: 96% !important;
    width: auto !important;
    font-size: 10px !important;
    line-height: 10.5px !important;
    margin-bottom: 20px !important;
    padding: 5px 3px 5px !important;
    /* border-width: 1px !important;
    border-style: solid !important;
    border-color: #d4d4d4 !important;
    text-align: center !important;  */
}
.wp-caption alignnone {
	max-width: 96% !important;
	width: auto !important;
}
.wp-caption img {
	margin-bottom: 0px !important;
}
.wp-caption-text {
	margin-top: 5px;
}

figure.wp-caption.alignleft {float:left; margin:0 1em 1em 0}
figure.wp-caption.alignright {float:right; margin:0 1em 1em 0}
.entry-content img {
	max-width: 100%;
	height: auto;
	margin-top: 0px;
	margin-bottom: 20px;
}
/* END Wordpress image classes */



/* HOME Page Styles */
.grid-header-link {
	color: black;
}
.grid-header-link:hover:after {
   font-family: FontAwesome;
   content: "\f0da";
   display: inline-block;
   padding-left: 6px;
   vertical-align: middle;
   font-size: 50%;
   text-decoration: none;
}
.homepage-category {
	padding-top: 20px;
	padding-bottom:0px;
	margin-top: 0px;
}
.homepage-category h2 {
	border-bottom: 6px solid black;
	padding-bottom: 3px;
	margin-bottom: 4px;
}
.homepage-category h3 {
	font-size: 20px;
}
#homepage-social {
	padding-top: 20px;
	padding-bottom: 30px;
	background-color:#F5F5F5;
	text-align: center;
}
#homepage-social h2{
	margin-bottom: 20px;
}
a.socialicons  {
	margin: 20px;
}
a.socialicons:hover {
}
#homepage-slider {
	padding-top: 10px;
	padding-bottom: 5px;
}
.home-carousel {
	visibility: hidden;
}
.slick-initialized  { visibility: visible; }

.homeslider {
	border-top: 0px solid black;
	height: 520px;
	position: relative;
	background-color: gray;
}
.homeslider p {
	padding-left: 0px;
	color: white;
}
.homeslider h3 {
	width: 100%;
	position: absolute;
	bottom: -10px;
	left: 0px;
	padding: 20px 20px 10px 20px;
	background-image:linear-gradient(to top, black, transparent);
    font-size: 28px;
	color: white;
}
.homeslider h3 a {
	color: white;
}
.homeslider small {
	color: white;
	padding-top: 10px;
	font-family: "Roboto";
	line-height: auto;
}
.homeslider img {
	height: auto;
	width: 100%;
	vertical-align: middle;
	overflow: hidden;
}
.slide-anchor {
	width: 100%;
	height: 100%;
	display: block;
}
.slider-excerpt {
	font-size: 14px;
	font-weight: 400;
}
.homepage-hr {
	width: 100%;
	border-top:6px solid black;
	margin: 0px 0px -5px 0px;
	padding: 0px;
	height: 0px;
}
.underlined-header {
	border-bottom: 6px solid black;
	padding-bottom: 3px;
	margin-bottom: 8px;
	margin-top: 10px;
}
.news-list li {
	margin: 10px 0px 10px 0px;
	border-bottom: 1px solid gray;
	padding-bottom: 10px;
}
.news-list a {
	color: black;
}

/* END - Front Page Styles */

/* CURRENT ISSUE STYLES */
#current-issue {
	margin-top: 20px;
	margin-bottom: 50px;
}
.issue-wrapper {
	padding: 0px;
	border-color: black;
	border-style: solid;
	border-width: 0px 0px 6px 0px;
	background-size:cover;
	background-position: center center;
}
.issue-wrapper h1, .issue-wrapper h2, .issue-wrapper h3, .issue-wrapper p, .issue-wrapper a {
 	text-shadow: 1px 1px #000000;
	color: white;
}
.issue-wrapper h1 {
	font-size: 52px;
}
.issue-wrapper p {
	font-size: 26px;
}
.issue-cover {
	max-height: 350px;
	margin-left: auto;
	margin-right: auto;
	-webkit-box-shadow: 10px 10px 5px 0px rgba(0,0,0,0.75);
	-moz-box-shadow: 10px 10px 5px 0px rgba(0,0,0,0.75);
	box-shadow: 10px 10px 5px 0px rgba(0,0,0,0.75);
}
/* END - CURRENT ISSUE STYLES */
/* BEGIN - MISC. CLASSES */
.author-page-pic {
	float: left;
	margin-right: 10px;
	margin-bottom: 5px;
}
.infinite-loader {
	position: fixed;
	bottom: 100px;
	left: 40%;
}
#infinite-footer { 
    display: none;
}

/* Scroll to top button styles */
.scroll-top-wrapper {
    position: fixed;
	opacity: 0;
	visibility: hidden;
	overflow: hidden;
	text-align: center;
    background-color: #777777;
	color: #eeeeee;
	width: 50px;
	height: 48px;
	line-height: 48px;
	right: 30px;
	bottom: 30px;
	padding-top: 2px;
	border-top-left-radius: 10px;
	border-top-right-radius: 10px;
	border-bottom-right-radius: 10px;
	border-bottom-left-radius: 10px;
	-webkit-transition: all 0.5s ease-in-out;
	-moz-transition: all 0.5s ease-in-out;
	-ms-transition: all 0.5s ease-in-out;
	-o-transition: all 0.5s ease-in-out;
	transition: all 0.5s ease-in-out;
}
.scroll-top-wrapper:hover {
	background-color: #888888;
}
.scroll-top-wrapper.show {
    visibility:visible;
    cursor:pointer;
	opacity: 1.0;
}
.scroll-top-wrapper i.fa {
	line-height: inherit;
}

/* END -- Scroll to top button styles */

.mediabox .sharedaddy {
	display: none;
}



/* MEDIA QUERIES */
/* Extra small devices (phones, less than 768px) */
/* No media query since this is the default in Bootstrap */

/* Small devices (tablets, 768px and up) */
@media (min-width: 768px) { 
 }

/* Medium devices (desktops, 992px and up) */
@media (min-width: 992px) { 
	.grid-item { 
   		max-height: 250px;
	}
}

/* Large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) { 

}

/* Max width Small devices */
@media (max-width: 768px) { 

	a img.alignleft {float:none; margin:0 1em 1em 0; width: 100%;}
	
	.homeslider h3 {
		font-size: 18px;
	}

	.homeslider {
		height: 250px;
	}	
	.slider-excerpt {
		display: none;
	}
	.current-issue-featured {
		text-align: center;
	}
	.page-content-wrapper {
		padding-left: 5px;
		padding-right: 5px;
	}
	.container {
		padding-right: 0px;
		padding-left: 0px;
		padding-top: 0px;
		padding-bottom: 0px;
	}

}
@media (max-width: 992px) { 
	.main-cell {
		padding-right: 0px;
		margin-bottom: 50px;
	}
	.table-layout .table-cell {
	    display:block;
	    width: 100%
	}
	#sticker {
		position: static !important;
	} 
		.bg-grid-item { 
   height: 320px; 
   }
}
@media (max-width: 1199px) { 
	.third-post {
		display: none;
	}
	#background-skin {
		display: none;
	}
}
@media (max-width: 1000px) { 
	.menu-wrap {
		width: 100%;
	}
	.logo-wrap {
		display: none;
	}
	.mtb-logo-wrap {
		display: none;
	}
	.mtb-menu-wrap .mobile-logo {
		display: none !important;
	}
	.main-menu-wrap .mtb-mobile-logo {
		display: none !important;
	}

	body {
	padding-top: 63px;
	}

}
@media (min-width: 1001px) { 
	.mobile-logo {
		display: none;
	}
	.mtb-mobile-logo {
		display: none;
	}		
}
@media (max-width: 620px) { 
	.bg-grid-item { 
	height: 220px; 
  	}
}

.gform_wrapper .top_label input.medium, .gform_wrapper .top_label select.medium {
	width: 100% !important;
	color: #555 ;
	padding: 8px 16px;
	border: 1px solid #ccc;
}

.mc4wp-form-fields {
	width: 100% !important;
}

#gform_wrapper_2 .gfield_required {
	display: none;
}

.gform_wrapper .top_label input[type="submit"] {
    color: #fff !important;
    background-color: #444 !important;
    border-color: #1e1e1e;
	padding: 8px 16px !important;
	border: 1px solid transparent !important;
}
.btn-default {
	color: #333!important;
}

/* Begin AJAX LOAD MORE STYLE UPDATES */
.repeater-header {
	border-top: 5px solid black;
	border-bottom: 1px solid black;
	margin-bottom: 20px;
	margin-top: 10px;
}
.repeater-header .entry-title {
	margin-top: 30px;
}
.repeater-bottom-leaderboard {
	padding-top: 5px;
	padding-bottom: 5px;
	text-align: center;
	background-color: #f3f3f3;
}
.entry-title a {
	text-decoration: none;
	color: black;
}
h1.entry-title {
	margin-bottom: 0px;
}
.repeater-header .custom-post-excerpt {
	margin-top: 0px;
	font-size: 24px;
	color: #808080;
}
.gripped-single-ajax-load {
	margin-bottom: 50px;
}
	@media screen and (max-width:900px){
		#sidebar {
			display: none;
		}
}