/*
Theme Name: Twenty Seventeen
Description: IE8 specific style.
*/
body,
button,
input,
select,
textarea {
	font-size: 16px;
	font-size: 1rem;
	line-height: 1.5;
}

h1 {
	font-size: 30px;
	font-size: 1.875rem;
}

h2,
.page .panel-content .entry-title {
	font-size: 26px;
	font-size: 1.625rem;
}

h3 {
	font-size: 22px;
	font-size: 1.375rem;
}

h4 {
	font-size: 18px;
	font-size: 1.125rem;
}

h5 {
	font-size: 13px;
	font-size: 0.8125rem;
}

h6 {
	font-size: 16px;
	font-size: 1rem;
}

.entry-content blockquote.alignleft,
.entry-content blockquote.alignright {
	font-size: 14px;
	font-size: 0.875rem;
}

/* Fix image alignment */
img {
	width: inherit;  /* Make images fill their parent's space. */
}

img.alignleft {
	float: left;
	margin-right: 1.5em;
}

img.alignright {
	float: right;
	margin-left: 1.5em;
}

/* TABLES */

table {
	width: 100%;
}

thead {
	display: none;
}

tr:nth-of-type(2n) {
	background-color: inherit;
}

tr td:first-child {
	background: #f0f0f0;
	font-weight: bold;
	font-size: 16px;
	font-size: 1rem;
}

tbody td {
	display: block;
	text-align: center;
}

tbody td:before {
	content: attr(data-th);
	display: block;
	text-align: center;
}

tbody td:last-child {
	border-bottom: 2px solid #666;
}


/* Fixes linked images */
.entry-content a img,
.widget a img {
	filter: progid:DXImageTransform.Microsoft.DropShadow(OffX=0, OffY=5, Color=#ffffff);
}

/* Layout */

.site-content {
	padding: 6.5em 0 0;
}

.wrap {
    padding-left: 2em;
    padding-right: 2em;
}

#navbar,
.menu-mask,
#main-menu-toggle,
#main-menu-caption {
	display: none;

}

/* site header */

.small-header .site-header,
.small-header.admin-bar .site-header {
	top: 0;
}

.admin-bar .site-afbar {
	margin-top: 32px;
}

.admin-bar #audience-bar,
.small-header.admin-bar .main-menu-caption,
.admin-bar .main-menu-caption,
.small-header.admin-bar .menu-mask,
.admin-bar .menu-mask,
.small-header.admin-bar #navbar,
.admin-bar #navbar {
	top: 74px;
}

.small-header.admin-bar .main-menu-toggle,
.admin-bar .main-menu-toggle {
	top: 84px;
}

.admin-bar .site-header,
.small-header.admin-bar .site-header {
}

/* Site Branding */

.custom-header {
	overflow: hidden;
}

.has-header-image.affiliate2017-front-page .custom-header,
.has-header-image.home.blog .custom-header {
	display: block;
}

.custom-header-image {
	background-position: bottom center;
}

.site-branding {
    padding: 0;
    width: 500px;
    display: inline-block;
    width: 500px;
	margin: 5px 0 20px 60px;

	}

.site-title {
    font-size: 36px;
    font-size: 2.25rem;
    min-height: 60px;
}

.small-header .site-title {
	font-size: 30px;
	font-size: 1.875rem;
	min-height: 0;
}

.small-header .site-branding {
    width: 250.59px;
    margin: 0 0 12px 60px;
    padding-right: 83.333px;
}

.has-header-image.affiliate2017-front-page .site-branding,
.has-header-image.home.blog .site-branding {
	bottom: 0;
	display: block;
	left: 0;
	height: auto;
	padding-top: 0;
	position: absolute;
	width: 100%;
}

.has-header-image .custom-header-image img,
.has-header-image .custom-header-image video {
	left: 0;
	top: 0;
}

.site-title {
	font-size: 36px;
	font-weight: 700;
}

.site-description {
	font-size: 16px;
}

/* Main Navigation */

.navigation-top {
	background: #fff;
	position: relative;
	z-index: 10;
}

.menu-toggle {
	width: 150px;
}

.main-navigation ul#top-menu {
	margin-bottom: -1px;
	padding: 0;
}

.no-svg .dropdown-toggle {
	padding: 0.25em 0 0;
}

.no-svg .dropdown-toggle.toggled-on {
	padding: 0.75em 0 0;
}

.dropdown-toggle .svg-fallback.icon-angle-down {
	-ms-filter: "progid:DXImageTransform.Microsoft.Matrix(M11=-1, M12=1.2246467991473532e-16, M21=-1.2246467991473532e-16, M22=-1, SizingMethod='auto expand')";
}

.dropdown-toggle.toggled-on .svg-fallback.icon-angle-down {
	-ms-filter: "progid:DXImageTransform.Microsoft.Matrix(M11=1, M12=0, M21=0, M22=1, SizingMethod='auto expand')";
}

/* Navigation */
.navigation-top {
	font-size: 14px;
    font-size: 0.875rem;
    z-index: 3;
    display: inline-block;
    position: absolute;
    bottom: 0;
    right: 5px;
}

.navigation-top .wrap {
	max-width: 1000px;
	/* The font size is 14px here and we need 50px padding in ems */
	padding: 0.75em 2em;
}

.navigation-top nav {
	margin-left: 0;
}

/* Main Navigation */
.js .dropdown-toggle {
	display: none;
}

.main-navigation {
	width: auto;
}

.js .main-navigation ul,
.js .main-navigation ul ul,
.js .main-navigation > div > ul {
	display: block;
}

.main-navigation ul {
	background: transparent;
	padding: 0;
}

.main-navigation > div > ul {
	border: 0;
	margin-bottom: 0;
	padding: 0;
	text-align: right;
}

.main-navigation li {
	border: 0;
	display: inline-block;
}

.main-navigation li li {
	display: block;
}

.main-navigation a {
	padding: 7px 1em;
}

.main-navigation > div > ul > li:hover > a {
    background-color: #E5E4E5;
	color: initial;
}

.main-navigation ul ul {
	background: #fff;
	border: 1px solid #bbb;
	left: -999em;
	padding: 0;
	position: absolute;
	top: 100%;
	z-index: 99999;
	-webkit-box-shadow: 0 1px 3px 0 rgba(100, 100, 100, 0.5);
	   -moz-box-shadow: 0 1px 3px 0 rgba(100, 100, 100, 0.5);
	   		box-shadow: 0 1px 3px 0 rgba(100, 100, 100, 0.5);
}

.main-navigation ul ul li:hover > ul,
.main-navigation ul ul li.focus > ul {
	left: 100%;
	right: auto;
}

.main-navigation ul ul a {
	padding: 0.75em 1.25em;
	width: 16em;
}

.main-navigation li li {
	-webkit-transition: background-color 0.2s ease-in-out;
	transition: background-color 0.2s ease-in-out;
}

.main-navigation li li:hover,
.main-navigation li li.focus {
	background: #767676;
}

.main-navigation li li a {
	-webkit-transition: color 0.3s ease-in-out;
	transition: color 0.3s ease-in-out;
}

.main-navigation li li.focus > a,
.main-navigation li li:focus > a,
.main-navigation li li:hover > a,
.main-navigation li li a:hover,
.main-navigation li li a:focus,
.main-navigation li li.current_page_item a:hover,
.main-navigation li li.current-menu-item a:hover,
.main-navigation li li.current_page_item a:focus,
.main-navigation li li.current-menu-item a:focus {
	color: #fff;
}

.main-navigation ul li:hover > ul,
.main-navigation ul li.focus > ul {
	left: -5em;
	right: auto;
}

.main-navigation .menu-item-has-children > a > .icon,
.main-navigation .page_item_has_children > a > .icon {
	display: inline;
	left: 5px;
	position: relative;
	top: -1px;
}

.main-navigation ul ul .menu-item-has-children > a > .icon,
.main-navigation ul ul .page_item_has_children > a > .icon {
	margin-top: -9px;
	left: auto;
	position: absolute;
	right: 1em;
	top: 50%;
	-webkit-transform: rotate(-90deg); /* Chrome, Safari, Opera */
	-ms-transform: rotate(-90deg); /* IE 9 */
	transform: rotate(-90deg);
}

.main-navigation ul ul ul {
	left: -999em;
	margin-top: -1px;
	top: 0;
}

.main-navigation ul ul li.menu-item-has-children.focus:before,
.main-navigation ul ul li.menu-item-has-children:hover:before,
.main-navigation ul ul li.menu-item-has-children.focus:after,
.main-navigation ul ul li.menu-item-has-children:hover:after,
.main-navigation ul ul li.page_item_has_children.focus:before,
.main-navigation ul ul li.page_item_has_children:hover:before,
.main-navigation ul ul li.page_item_has_children.focus:after,
.main-navigation ul ul li.page_item_has_children:hover:after {
	display: none;
}

/* Gallery Columns */

.gallery-item {
	max-width: 25%;
}

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

.gallery-columns-2 .gallery-item {
	max-width: 50%;
}

.gallery-columns-3 .gallery-item {
	max-width: 33.33%;
}

.gallery-columns-4 .gallery-item {
	max-width: 25%;
}

.gallery-columns-5 .gallery-item {
	max-width: 20%;
}

.gallery-columns-6 .gallery-item {
	max-width: 16.66%;
}

.gallery-columns-7 .gallery-item {
	max-width: 14.28%;
}

.gallery-columns-8 .gallery-item {
	max-width: 12.5%;
}

.gallery-columns-9 .gallery-item {
	max-width: 11.11%;
}

/* Site Header Carousel */

.flex-control-nav {
    margin: 0 28px 2px 0;
	bottom: 8px;
    right: calc( 50% - 544px );
}

.flex-direction-nav .flex-prev {
	opacity: 1;
	left: 10px;
}

.flex-direction-nav .flex-next {
	opacity: 1;
	right: 10px;
}

#homepage-carousel .homepage-carousel-text {
	position: absolute;
	bottom: 0;
	width: 100%;
	padding: 0;
}

#homepage-carousel .homepage-carousel-text::before {
    z-index: -1;
    display: block;
    position: absolute;
    content: ' ';
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-position: bottom center;
    background-size: cover;
    opacity: 0.4;
	/* Prefix free isn't picking up this one */
	-webkit-filter: url('#blur');
			filter: url('#blur');
	-webkit-filter: blur(10px);
			filter: blur(10px);
}

#homepage-carousel .homepage-carousel-desc,
#homepage-carousel .homepage-carousel-title {
    padding-left: 32px;
	padding-right:150px;
    max-width: 1088px;
}

#homepage-carousel .homepage-carousel-desc {
    margin-bottom: 18px;
}

/* Site Header Text Only */
#homepage-text {
    background-color: #e5e4e5;
    	padding: 70px 0;
}

#homepage-text .homepage-text-inside {
    width:1024px;
    margin: auto;
    padding-right:290.5px;
}

#homepage-text .homepage-text-title {
    color: #a51c30;
    font-weight: 700;
    margin: 0 0 5px 0;
    font-size: 58px;
    font-size: 3.625rem;
    line-height: 1.15;
}

#homepage-text .homepage-text-subtitle {
    font-size: 26px;
    font-size: 1.625rem;
    line-height: 1.4;
	margin-top: 8px;
}

#homepage-text .homepage-text-link {
    font-size: 16px;
    font-size: 1rem;
    margin-top: 15px;
}

/* boxes */
#boxes .box .box-title {
    font-size: 18px;
    font-size: 1.125rem;
}

#boxes .box {
    margin-bottom: 32px;
}

#boxes.content-boxes-4 .box {
    width:24%;
}

#boxes.content-boxes-3 .box {
    width: 32%;
}

#boxes.content-boxes-2 .box {
    width:49%;
}

/* Front Page */
.page .panel-content .entry-title,
.page-title,
.page .entry-title {
	font-size: 14px;
	font-size: 0.875rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

/* Posts */

.blog .site-main > article,
.archive .site-main > article,
.search .site-main > article {
	padding-bottom: 4em;
}

time.updated {
	display: none;
}

time.published {
	display: inline-block;
}

.blog .entry-title {
	padding-top: 0;
}

.single-post .entry-title,
.page .entry-title,
.entry-meta + .entry-title {
	font-size: 26px;
	font-weight: 400;
	letter-spacing: normal;
	padding-top: 0;
	text-transform: none;
}

.entry-footer .cat-links,
.entry-footer .tags-links {
	padding-left: 0;
}

.comment-author .avatar {
	z-index: -1;
}

ol.children .children {
	padding-left: 2em;
}

/* Blog Index, Archive, Search */

.taxonomy-description {
	font-size: 14px;
	font-size: 0.875rem;
}

/* Sticky posts */

.sticky .icon-thumb-tack {
	font-size: 32px;
	font-size: 2rem;
	height: 22px;
	left: -1.25em;
	top: 0.75em;
	width: 32px;
}

/* Pagination */

.page-numbers {
	display: inline-block;
}

.page-numbers.current {
	font-size: 16px;
	font-size: 1rem;
}

.page-numbers.current .screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	height: 1px;
	overflow: hidden;
	position: absolute !important;
	width: 1px;
}

/* 404 page */

.error404 .page-content {
	padding-bottom: 9em;
}

/* Comments */

#comments {
	padding-top: 5em;
}

.comments-title {
	margin-bottom: 2.5em;
}

ol.children .children {
	padding-left: 2em;
}

.comment-body {
	margin-left: 0;
}

/* Widgets */
h2.widget-title {
    font-size: 18px;
    font-size: 1.125rem;
}

/* Footer */
.site-footer {
	font-size: 14px;
	font-size: 0.875rem;
	line-height: 1.6;
	margin-top: 3em;
}

.site-footer-logo {
    height:50px;
    width: 270px;
    margin-top: 33px;
}

.site-footer-logo a {
    width: 271px;
    height: 48px;
    background-position: 0 -185px;
}

.site-footer .site-info {
    max-width: 450px;
}

.site-footer .vcard {
	max-width: 160px;
    padding: 0;
    margin: 32px auto 0 27px;
}

.no-footer-branding .site-footer .vcard {
	max-width: none;
}

.footer-menu {
    text-align:center;
    width: 90%;
    margin: auto;
}

.footer-menu-wrap {
    margin: 22px auto 30px auto;
}

.site-footer .widget-column.footer-widget-1 {
	float: left;
	width: 36%;
}

.site-footer .widget-column.footer-widget-2 {
	float: right;
	width: 58%;
}

/* RTL Styles */

.rtl .has-header-image.affiliate2017-front-page .site-branding,
.rtl .has-header-image.home.blog .site-branding {
	left: auto;
	right: 0;
}

.rtl .entry-footer .cat-links,
.rtl .entry-footer .tags-links {
	padding-right: 0;
}

.rtl ol.children .children {
	padding-left: 0;
	padding-right: 2em;
}



.entry-content blockquote.alignleft,
.entry-content blockquote.alignright {
	font-size: 13px;
	font-size: 0.8125rem;
}

/* Layout */
.has-sidebar:not(.error404) #primary {
	float: left;
	width: 67%;
}

.has-sidebar #secondary {
	float: right;
	padding-top: 0;
	width: 28%;
}

.home.page.has-sidebar #primary {
	width: 60%;
}

.home.page.has-sidebar #secondary {
	width: 34%;
}

.error404 #primary {
	float: none;
}

/* Front Page - Recent Posts */
.panel-content .recent-posts article {
	margin-bottom: 4em;
}

/* Posts */
.comments-pagination,
.post-navigation {
	clear: both;
}

.post-navigation .nav-previous {
	float: left;
	width: 50%;
}

.post-navigation .nav-next {
	float: right;
	text-align: right;
	width: 50%;
}

.nav-next,
.post-navigation .nav-next {
	margin-top: 0;
}

/* Blog, archive, search */

.sticky .icon-thumb-tack {
	height: 23px;
	left: -2.5em;
	top: 1.5em;
	width: 32px;
}

.blog .site-main > article,
.archive .site-main > article,
.search .site-main > article {
	padding-bottom: 3em;
}

.navigation.pagination {
	clear: both;
	float: right;
	width: 58%;
}

.has-sidebar .navigation.pagination,
.archive:not(.has-sidebar) .navigation.pagination {
	float: none;
	width: 100%;
}

.entry-footer {
	display: table;
	width: 100%;
}

.entry-footer .cat-tags-links {
	display: table-cell;
	vertical-align: middle;
	width: 100%;
}

.entry-footer .edit-link {
	display: table-cell;
	text-align: right;
	vertical-align: middle;
}

.entry-footer .edit-link a.post-edit-link {
	margin-top: 0;
	margin-left: 1em;
}

/* Entry content */

/* without sidebar */

:not(.has-sidebar) .entry-content blockquote.alignleft {
	margin-left: -17.5%;
	width: 48%;
}

:not(.has-sidebar) .entry-content blockquote.alignright {
	margin-right: -17.5%;
	width: 48%;
}

/* with sidebar */

.has-sidebar .entry-content blockquote.alignleft {
	margin-left: 0;
	width: 34%;
}

.has-sidebar .entry-content blockquote.alignright {
	margin-right: 0;
	width: 34%;
}

.has-sidebar #primary .entry-content blockquote.alignright.below-entry-meta {
	margin-right: -72.5%;
	width: 62%;
}

/* blog and archive */

.blog:not(.has-sidebar) .entry-content blockquote.alignleft,
.archive:not(.has-sidebar) .entry-content blockquote.alignleft {
	margin-left: -72.5%;
	width: 62%;
}

.blog:not(.has-sidebar) .entry-content blockquote.alignright,
.archive:not(.has-sidebar) .entry-content blockquote.alignright {
	margin-right: 0;
	width: 36%;
}

/* Post formats */

.format-quote blockquote .icon {
	left: -1.5em;
}

/* Pages */
body:not(.single) .has-post-thumbnail.format-standard .entry-header,
body:not(.single) .has-post-thumbnail.format-standard .entry-content,
body:not(.single) .has-post-thumbnail.format-standard .entry-footer {
    width: calc( 100% - 170px );
}

body:not(.single) .has-post-thumbnail.format-standard .post-thumbnail {
	max-width: 150px;
}


/* Posts pagination */

.nav-links .nav-title {
	position: relative;
}

.nav-title-icon-wrapper {
	position: absolute;
	text-align: center;
	width: 2em;
}

.nav-links .nav-previous .nav-title .nav-title-icon-wrapper {
	left: -2em;
}

.nav-links .nav-next .nav-title .nav-title-icon-wrapper {
	right: -2em;
}


/* Secondary */

#secondary {
	font-size: 14px;
	font-size: 0.875rem;
	line-height: 1.6;
}

#site-header-menu {
	display: block;
}

#site-utility-menu {
	display: inline-block;
}

.admin-bar .site-afbar {
	margin-top: 0;
}


/* Navigation */


.search-utility-wrap {
	display: inline-block;
}

.has-sidebar .entry-content blockquote.alignleft {
	margin-left: -20%;
}


body:not(.single) article.has-post-thumbnail.format-standard {
	overflow: hidden;
}

body:not(.single) article.post,
body:not(.single) article.hentry {
	clear: both;
	display: block;
}

body:not(.single) .has-post-thumbnail.format-standard .entry-header,
body:not(.single) .has-post-thumbnail.format-standard .entry-content,
body:not(.single) .has-post-thumbnail.format-standard .entry-footer {
	float: right;
    width: calc( 100% - 197px );
    display: inline-block;
}

body:not(.single) .has-post-thumbnail.format-standard .post-thumbnail {
	max-width: 177px;
    display: inline-block;
    float: left;
}

.blog:not(.has-sidebar) .entry-content blockquote.alignright,
.archive:not(.has-sidebar) .entry-content blockquote.alignright,
.affiliate2017-front-page .entry-content blockquote.alignright {
	margin-right: -20%;
}

.search-utility-wrap,
.navigation-top {
	width: calc( 100% - 500px );
}
