/* *
 * Theme Name:     XY
 * Theme URI:      http://themes.eugeneo.com/xy/
 * Author:         EugeneO
 * Author URI:     http://themeforest.net/user/EugeneO/portfolio/
 * Description:    Lovingly created by EugeneO.
 * Version:        1.3.9
 * Tags:           dark, light, one-column, two-columns, right-sidebar, flexible-width, custom-background, custom-colors, custom-header, custom-menu, featured-images, full-width-template, post-formats,  theme-options, threaded-comments, translation-ready
 * Text Domain:    funky_theme
 * */


/* ==========================================================================
   Reset
   ========================================================================== */

@import url("css/normalize.css");


/* ==========================================================================
   Lists
   ========================================================================== */

menu,
ol,
ul {    padding: 0 0 0 20px }

/* ==========================================================================
   Media
   ========================================================================== */

iframe {    max-width: 100% }

/* ==========================================================================
   Tables
   ========================================================================== */

table {
    border-collapse: separate;
    border-spacing: 0 2px;
    font-size: 13px;
    line-height: 26px;
    margin: 40px 0;
    width: 100%;
}

th {
    background: rgba( 0, 0, 0, 0.1 );
    padding: 40px 15px;
}

td {
    background: rgba( 0, 0, 0, 0.05 );
    padding: 10px 15px;
}

	th > *:first-child,
	td > *:first-child { margin-top: 0; }

/* ==========================================================================
   Forms
   ========================================================================== */

label {
    color: #3A3A3A;
    cursor: pointer;
    display: inline-block;
    font-weight: 700;
    margin: 24px 0 8px;
}

p label {    margin-top: 0 }

input[type="text"],
input[type="email"],
input[type="search"],
input[type="password"],
textarea {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

input[type="text"],
input[type="email"],
input[type="search"],
input[type="password"],
textarea,
select {
    background-color: rgba( 0, 0, 0, 0.02 );
    border: 1px solid #999;
    border-color: rgba( 0, 0, 0, 0.05 );
    -moz-border-radius: 0;
    -webkit-border-radius: 0;
    border-radius: 0;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    display: block;
    padding: 14px;
    width: 100%;
}

input[type="text"]:focus,
input[type="password"]:focus,
textarea:focus {    background: rgba( 0, 0, 0, 0.1 ) }

select {
    cursor: pointer;
    position: relative;
}

select:focus,
select:active {
    background: #FFF !important;
    color: #000 !important;
}

textarea {
    height: 120px;
    line-height: 28px;
    resize: none;
}

input[type="radio"] {    margin: 0 16px 8px 0 }

input[type="checkbox"] {
    float: left;
    height: auto;
    margin: 8px 16px 0 0;
    width: auto;
}

.funky-button,
.funky-button:visited,
input[type="button"],
input[type="submit"],
button,
button[type="submit"],
input[type="reset"],
input[type="file"] {
    background: #DD3333; /* Default Accent Colour */
    border: none;
    -webkit-border-radius: 2px;
    -moz-border-radius: 2px;
    border-radius: 2px;
    color: #FFF;
    display: inline-block;
    font-family: helvetica, arial, sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 1em;
    margin: 24px 0 0;
    padding: 18px 40px;
    text-align: center;
    text-transform: uppercase;
    transition: all 0.3s ease-out;
}

.funky-button:hover,
.funky-button:visited:hover,
input[type="button"]:hover,
input[type="submit"]:hover,
button:hover,
button[type="submit"]:hover,
input[type="reset"]:hover
input[type="file"]:hover {
    color: #FFF;
    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";
    opacity: 0.5;
}

p > .funky-button,
p > .funky-button:visited,
p > input[type="button"],
p > input[type="submit"],
p > button,
p > button[type="submit"],
p > input[type="reset"],
p > input[type="file"] { margin-top: 0; }


/* ==========================================================================
   Typography
   ========================================================================== */

a {
    color: #000;
    text-decoration: none;
    transition: all 0.3s ease-out;
}
a:hover {    color: #999 }

.site-footer a {    color: #3A3A3A }
.site-footer a:hover {    color: #999 }


h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: helvetica, arial, sans-serif;
    font-weight: 400;
    margin: 40px 0 0;
}

h1,
h1 a,
h2,
h3 a,
h3,
h3 a,
h4 a,
h5,
h5 a,
h6,
h6 a,
.funky-toggle-title {    color: #3A3A3A }

h1,
.post-title,
.page-latest-posts-template h2 {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -1px;
    line-height: 38px;
}

.post-title {
    margin-top: 0;
    margin-bottom: 0;
    max-width: 860px;
}

.entry-header .post-title,
.page-hero-template .post-title {
    font-size: 60px;
    letter-spacing: -2px;
    line-height: 64px;
    margin-bottom: 0;
    position: relative;
}

.post-title,
.page-hero-template .post-title,
.page-latest-posts-template h2 {    margin: 0 }

h2 {
    font-size: 22px;
    font-weight: 700;
    line-height: 32px;
}

h3 {
    font-size: 18px;
    line-height: 28px;
    text-transform: uppercase;
}

h4,
.related-posts-header > *,
.back-to-top a {    text-transform: uppercase }

h4,
h4 a,
.post-subtitle,
.related-posts-header > *,
.back-to-top a,
.entry-meta time {
    color: #999;
    color: rgba( 0, 0, 0, 0.75 );
}

h4,
.post-subtitle,
.related-posts-header > *,
.back-to-top a,
blockquote p {
    font-size: 16px;
    line-height: 26px;
}

h5,
.page-latest-posts-template .post-date,
.funky-toggle-title {
    font-size: 14px;
    font-weight: 700;
    line-height: 24px;
    text-transform: uppercase;
}

h6 {
    font-size: 14px;
    line-height: 24px;
    text-transform: uppercase;
}

.post-subtitle {
    margin-top: 0;
    margin-bottom: 0;
    max-width: 800px;
}

.post-subtitle:before {
    background: #3A3A3A;
    content: "";
    display: block;
    height: 2px;
    margin: 24px 0 24px;
    width: 100px;
}

.entry-inner> .post-subtitle:first-child:before,
.entry-content > .post-subtitle:first-child:before,
.entry-content > div:first-child > .post-subtitle:first-child:before {    margin-top: 0 }

p {    margin: 24px 0 0 }

blockquote {
    color: #8A8A8A;
    font-family: helvetica, arial, sans-serif;
    font-weight: 700;
    margin: 64px 0;
    padding: 0 64px;
    text-align: center;
}

blockquote > *:first-child {    margin-top: 0 }

blockquote p {
    font-size: 24px;
    letter-spacing: -1px;
    line-height: 34px;
}

cite {
	color: #999;
    color: rgba( 0, 0, 0, 0.65 );
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 24px;
}

blockquote cite { 
	display: block; 
	margin-top: 24px;
}

pre {
    background: rgba( 0, 0, 0, 0.05 );
    font-size: 14px;
    line-height: 24px;
    padding: 16px;
}

code, kbd, pre, samp {
	color: #000;
}

.hr, hr { clear: both; }


/* ==========================================================================
   Icons
   ========================================================================== */

@font-face {
    font-family: 'icomoon';
    src: url('fonts/icomoon.eot');
    src: url('fonts/icomoon.eot?#iefix') format('embedded-opentype'), url('fonts/icomoon.ttf') format('truetype'), url('fonts/icomoon.woff') format('woff'), url('fonts/icomoon.svg#icomoon') format('svg');
    font-weight: normal;
    font-style: normal;
}

[class*="funky-icon-"] {
    font-family: 'icomoon';
    speak: none;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    /* Better Font Rendering =========== */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.funky-icon-arrow-left:before {    content: "\e600" }
.funky-icon-arrow-down:before {    content: "\e601" }
.funky-icon-arrow-up:before {    content: "\e602" }
.funky-icon-linkedin:before {    content: "\e604" }
.funky-icon-pinterest:before {    content: "\e605" }
.funky-icon-arrow-right:before {    content: "\e603" }
.funky-icon-search:before {    content: "\e60f" }
.funky-icon-list:before {    content: "\e61a" }
.funky-icon-facebook:before {    content: "\e606" }
.funky-icon-twitter:before {    content: "\e607" }
.funky-icon-google-plus:before {    content: "\e608" }
.funky-icon-youtube:before {    content: "\e609" }
.funky-icon-vimeo:before {    content: "\e60a" }
.funky-icon-flickr:before {    content: "\e60b" }
.funky-icon-dribbble:before {    content: "\e60c" }
.funky-icon-instagram:before {    content: "\e60d" }
.funky-icon-tumblr:before {    content: "\e60e" }
.funky-icon-standard:before {    content: "\e610" }
.funky-icon-status:before {    content: "\e611" }
.funky-icon-chat:before {    content: "\e612" }
.funky-icon-quote:before {    content: "\e613" }
.funky-icon-audio:before {    content: "\e614" }
.funky-icon-gallery:before {    content: "\e615" }
.funky-icon-image:before {    content: "\e616" }
.funky-icon-aside:before {    content: "\e617" }
.funky-icon-link:before {    content: "\e619" }
.funky-icon-video:before {    content: "\e618" }
.funky-icon-tag:before {    content: "\e61b" }


/* ==========================================================================
   Layout
   ========================================================================== */

html,
body,
button,
input,
select,
textarea {
    color: #858585;
    font-family: 'Open Sans', helvetica, arial, sans-serif;
    max-width: 100%;
}

html {
    font-size: 1em;
    line-height: 1.4em;
    -ms-text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
}

body {
    background: #F6F6F6;
    font-size: 13px;
    line-height: 24px;
    position: relative;
	-ms-word-wrap: break-word;
	word-wrap: break-word;
    z-index: 0;
}

/* ----- Preloader ----- */

body { }

.js body {    overflow-y: hidden }

#preloader {
    background-image: url(images/spacer.png);
    background-repeat: no-repeat;
    background-color: #FFF;
    bottom: 0;
    display: none;
    left: 0;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 999;
}

.js #preloader {    display: block }

#status {
    height: 100px;
    left: 50%;
    margin: -50px 0 0 -100px;
    position: absolute;
    top: 50%;
    width: 200px;
}

#percent-text {
    color: #999;
    color: rgba( 0, 0, 0, 0.5 );
    font-size: 70px;
    font-weight: 700;
    letter-spacing: -2px;
    line-height: 1em;
    text-align: center;
}

#bar,
#percent-bar {
    bottom: 0;
    height: 1px;
    left: 0;
    position: absolute;
}

#bar {
    background-color: rgba( 0, 0, 0, 0.1 );
    width: 100%;
    z-index: 1;
}

#percent-bar {
    background-color: rgba( 0, 0, 0, 0.5 );
    width: 0;
    z-index: 2;
}

#preloadImages {    display: none }

/* ----- Header ----- */

.site-header-wrapper {
    margin: 0 auto;
    position: relative;
    width: 100%;
    z-index: 998;
	transition: none;
}

.header-fixed .site-header-wrapper {    position: fixed }

.site-header {
    height: 80px;
    position: relative;
    margin: 0 auto;
    z-index: 1;
}

.header-bg {
    background-color: #FFF;
    border-bottom: 1px solid #999;
    border-color: rgba( 0, 0, 0, 0.05 );
    bottom: 0;
    display: block;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    transition: opacity 0.3s ease-out;
    z-index: 1;
}

.header-animate .header-bg {
    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";
    opacity: 0.5;
}

.header-animate .site-header:hover .header-bg {
    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
    opacity: 1;
}

.site-header > div {
    padding: 0 0 0 40px;
    position: relative;
    z-index: 2;
}

.site-header h1 {
	margin: 0;
    max-width: 33.34%;
	float: left;
}

.site-header > div.site-width { padding: 0 40px; }

.site-header nav { 
	float: right;
	max-width: 66.66%; 
}

.logo {
    bottom: 15px;
    color: #3A3A3A;
    display: block;    
    height: 80px;
    transition: opacity 0.3s ease-out;
}

.logo:hover {
    color: #3A3A3A;
    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=75)";
    opacity: 0.75;
}

.text-logo {
    display: block;
    font-family: helvetica, arial, sans-serif;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -1px;
	line-height: 40px;
	padding: 20px 0;
}

.image-logo {
    max-height: 100%;
    width: auto;
}

/* ----- Navigation ----- */

#primary-nav {
    float: right;
    height: 100%;
    margin: 0;
    
}

#primary-nav li {    position: relative }

#primary-nav > li {
    border: none;
    border-color: #999;
    border-color: rgba( 0, 0, 0, 0.04 );
    display: inline-block;
    margin-left: -4px;
    line-height: 30px;
}

#primary-nav > li:hover {    background: #FFF }

#primary-nav > li > a { font-size: 11px; }

#primary-nav a {
    color: #3A3A3A;
    display: block;
    font-family: helvetica, arial, sans-serif;
    font-size: 12px;
    font-weight: 700;
    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=65)";
    opacity: 0.65;
    transition: opacity 0.3s;
}

#primary-nav > li > a {
    line-height: 30px;
    padding: 25px 20px;
    text-transform: uppercase;
}

#primary-nav > li:hover > a {    background-color: rgba( 0, 0, 0, 0.1 ) }

#primary-nav li:hover > a,
#primary-nav > li a:hover {
    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
    opacity: 1;
}

#primary-nav > .menu-item-has-children > a {    padding-right: 40px }

#primary-nav > .menu-item-has-children > a:after {
    content: "\e601";
    font-family: 'icomoon';
    font-size: 8px;
    position: absolute;
    right: 15px;
    top: 25px;
}

/* ----- Sub menus ----- */

#primary-nav ul {
    background: #FFF;
    margin: 0;
    padding: 0;
    position: absolute;
    width: 200px;
    z-index: 999;
}

#primary-nav > li.float-left > ul {
    left: auto;
    right: 0;
}

#primary-nav > li > ul {
    left: 0;
    top: 80px;
}

#primary-nav li li {
    background-color: rgba( 0, 0, 0, 0.1 );
    border-top: 1px solid #999;
    border-color: rgba( 0, 0, 0, 0.04 );
}

#primary-nav > li li:first-child {    border-top-width: 0 }

#primary-nav > li > ul a {
    line-height: 20px;
    padding: 15px 20px;
}

#primary-nav > li > ul ul {
    left: 200px;
    top: 0;
}

#primary-nav > li li.float-left ul {
    left: -200px;
    right: auto;
}

#primary-nav ul,
#primary-nav li:hover ul ul,
#primary-nav li:hover ul ul ul,
#primary-nav li:hover ul ul ul ul {    display: none }

#primary-nav li:hover ul,
#primary-nav li li:hover ul,
#primary-nav li li li:hover ul,
#primary-nav li li li li:hover ul {    display: block }

.mobile-logo,
.mobile-nav-close {    display: none }

.mobile-logo {
    background: #FFF;
    height: 80px;
    line-height: 80px;
    padding: 0 40px;
    position: relative;
    z-index: 2;
}

.mobile-logo .logo {
	margin-right: 80px;
	max-width: 100%;
}

.mobile-nav-open {
    cursor: pointer;
    font-size: 30px;
    line-height: 80px;
    position: absolute;
    right: 40px;
    top: 0;
}

.mobile-nav-close {
    cursor: pointer;
    float: right;
    font-size: 42px;
    line-height: 80px;
    margin: 0 0 0 60px;
}

.mobile-nav-open,
.mobile-nav-close {
    color: #3A3A3A;
    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";
    opacity: 0.50;
    transition: opacity 0.3s;
}

.mobile-nav-open:hover,
.mobile-nav-close:hover {
    color: #3A3A3A;
    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
    opacity: 1;
}

/* ----- Content ----- */

.site-header,
.wrapper,
.site-footer-wrapper,
.site-footer-content {
    max-width: 980px;
    z-index: 2;
}

.wrapper {
    background: #FFF;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.header-fixed .wrapper {    padding-top: 80px }

.header-fixed.header-animate .wrapper {    padding-top: 0 }

.wrapper > .hentry {
    overflow: hidden;
    position: relative;
	width: 100%;
	z-index: 0;
}

/* ----- Background ----- */

.background,
.background .background-image {
    left: 0;
    position: absolute;
    top: 0;
}

.background {
    height: 100%;
    overflow: hidden;
    width: 100%;
    z-index: 0;
}

.background .background-video {
	position: relative;
    min-height: 100%;
    min-width: 100%;
    z-index: -1;
}

.background .video-overlay {
    background: url(images/spacer.png);
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 0;
}

.background .background-image {
    background-position: 50% 50%;
    background-repeat: no-repeat;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
    height: 100%;
    width: 100%;
    z-index: 1;
}

.background .video-overlay + .background-image {    display: none }

.background .background-image.parallax { background-attachment: fixed; }

/* Content */

.entry-header {
    background-color: transparent;
    padding: 200px 0;
    position: relative;
    z-index: 2;
}

.header-animate .wrapper > div:first-child > .entry-header,
.header-animate .wrapper > section:first-child > .entry-header {    padding-top: 280px }

.header-animate .wrapper > div:first-child > .entry-body:first-child,
.header-animate .wrapper > section:first-child > .entry-body:first-child,
.header-animate .wrapper > div:first-child > .hidden + .entry-body,
.header-animate .wrapper > section:first-child > .hidden + .entry-body {    padding-top: 200px }

.entry-header .site-width {
    position: relative;
    z-index: 1;
}

.hentry > .entry-body {
    overflow: hidden;
    padding-bottom: 120px;
    padding-top: 120px;
    position: relative;
}

.entry-body > .entry-inner {
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.entry-content {    margin-top: 24px }

.post-title + .entry-content,
.post-subtitle + .entry-content {    margin-top: 40px }

.hidden + .entry-content,
.entry-content:first-child {    margin-top: 0 }

.entry-content > *:first-child {    margin-top: 0 }

.entry-content img {
    height: auto;
    max-width: 100%;
}

.sidebar {    margin-left: 20px }

/* ----- single.php ----- */

.main .entry-content > blockquote:first-child {	margin-top: 64px }

.page-links {    margin: 40px 0 0 }

/* next/prev post links  */

.tagcloud + .nav-links {    margin-top: 40px }

.nav-links {
    border-top: 1px solid #DDD;
    border-color: rgba( 0, 0, 0, 0.1 );
    margin-top: 120px;
    padding: 30px 0;
}

.nav-links > div {    width: 50% }

.nav-links .nav-next {
    float: left;
    text-align: left;
}

.nav-links .nav-previous {
    float: right;
    text-align: right;
}

.nav-links  a {
    display: block;
    color: #3A3A3A;
    font-weight: 400;
    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=75)";
    opacity: 0.75;
    position: relative;
    transition: opacity 0.3s ease-out;
}

.nav-links  a:hover {
    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
    opacity: 1;
}

.nav-links span[class*="funky-icon-"] {
    font-size: 18px;
    line-height: 60px;
    position: absolute;
    top: 50%;
    margin-top: -30px;
}

.nav-links .nav-next span[class*="funky-icon-"] {    left: 0 }

.nav-links .nav-previous span[class*="funky-icon-"] {    right: 0 }

.nav-links-title {
    font-size: 12px;
    line-height: 20px;
    padding: 0 40px;
}

/* ----- index.php ----- */

.post-header {    position: relative }

.post-header span[class*="funky-icon-"] {
    color: #999;
    color: rgba( 0, 0, 0, 0.1 );
    font-size: 26px;
    line-height: 1em;
    position: absolute;
    left: -38px;
    text-align: right;
    top: 6px;
}

.sticky span[class*="funky-icon-"] {
    color: #DD3333; /* Default Accent Colour */
}

.main {
    float: left;
    width: 66%;
}

.main > article:first-child {
    margin-top: 0;
    padding-top: 0;
}

.main article {
    margin-top: 60px;
    margin-right: 20px;
    padding-top: 60px;
}

.show-post-format-icons article.type-post {    padding-left: 60px }

.single article {    padding-bottom: 0 }

.post-list article + article {
    border-top: 1px solid #DDD;
    border-color: rgba( 0, 0, 0, 0.1 );
}

.main * + .post-title {    margin-top: 24px }

.post-meta.post-date {    margin: 16px 0 0 }

.post-meta:first-letter {    text-transform: uppercase }

.post-meta a {
    border-bottom: 1px dotted #3A3A3A;
    color: #3A3A3A;
    font-weight: 400;
}

.post-meta a:hover {
    border-bottom: none;
    color: #3A3A3A;
}

.more-link {
    display: block;
    font-weight: 700;
    margin-top: 24px;
}

/* Mobile pagination */

.mobile-pagination {
	display: none; 
	margin-top: 60px;
	overflow: hidden;
}

.mobile-pagination > div {
	line-height: 60px;
	text-align: center;
	width: 50%;
}

.mobile-pagination .nav-next { float: left; }
.mobile-pagination .nav-previous { float: right; }

.mobile-pagination > div a {
	display: block;
	font-size: 18px;
}

/* Pagination */

.pagination {
	padding: 48px 0;
	text-align: center;
}

.pagination span,
.pagination a,
.pagination a:hover,
.page-links span,
.page-links a span:hover,
.mobile-pagination a,
.mobile-pagination a:hover {
    color: #3A3A3A;
    font-weight: 400;
    margin: 0 3px;
    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=75)";
    opacity: 0.75;
}

.pagination a:hover,
.page-links a span:hover,
.mobile-pagination a:hover {
    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
    opacity: 1;
}

.pagination .current,
.page-links span + span,
.page-links a + span {
    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";
    opacity: 0.5;
}

.tagcloud {    margin-top: 60px }

.secondary {
    float: left;
    width: 34%;
}

/* ----- page-latest-posts.php ----- */

.page-latest-posts-template .entry-body {    padding-top: 0 }

.page-latest-posts-template .entry-inner {    padding-top: 120px }

.page-latest-posts-template .entry-inner + article {    margin-top: 40px }

.page-latest-posts-template article {
    overflow: hidden;
    padding: 40px;
    position: relative;
    transition: all 0.3s ease-out;
	z-index: 2;
}

.page-latest-posts-template article + article,
.page-latest-posts-template.text-color-dark article + article {
    border-top: 1px solid #DDD;
    border-color: rgba( 0, 0, 0, 0.1 );
}

.page-latest-posts-template article:hover { background: rgba( 0, 0, 0, 0.05 ); }

.page-latest-posts-template h2 {
    float: left;
    margin: 0;
    text-transform: none;
    width: 75%;
}

.page-latest-posts-template .post-permalink {
    height: 100%;
    left: 0;
    position: absolute;
    text-indent: -9999px;
    top: 0;
    width: 100%;
}

.page-latest-posts-template .post-date {
    color: #DD3333; /* Default Accent Colour */
    float: left;
    margin: 7px 0 0;
    text-align: right;
    text-transform: uppercase;
    width: 25%;
}

.page-latest-posts-template .funky-button-center {
    clear: both;
	position: relative;
    text-align: center;
	z-index: 2;
}

.page-latest-posts-template .funky-button-center a {    margin: 60px 0 0 }

/* ----- page-archive.php ----- */

.post-title + .main,
.post-title + .main + .secondary,
.post-subtitle + .main,
.post-subtitle + .main + .secondary {    margin-top: 40px }

.latest-post-list .post-date {    margin: 24px 0 8px }

.latest-post-list a {    display: block }

/* ----- page-contact.php ----- */

.google-map {
    height: 400px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.google-map > div {
    height: 100%;
    position: absolute;
    width: 100%;
}

/* ----- page-hero.php ----- */

.wrapper .page-hero-template > .entry-body {
    background: none;
    padding-bottom: 240px;
    padding-top: 240px;
}

.header-animate .wrapper > .page-hero-template:first-child > .entry-body:first-child,
.header-animate .wrapper > .page-hero-template:first-child > .hidden + .entry-body {    padding-top: 240px }

.page-hero-template .entry-content:before {
    background: none;
    height: 0;
    margin: 0;
}

.page-hero-template .entry-content {
    font-size: 18px;
    font-weight: 400;
    line-height: 32px;
    margin: 0;
}

.page-hero-template .post-title + .entry-content {    margin: 40px 0 0 }

.hero-scroll-link {    display: none }

.no-js .hero-scroll-link,
.wrapper > section:only-of-type .hero-scroll-link {    display: none !important }

.wrapper > section:first-child > .hero-scroll-link {
    display: block;
    bottom: 60px;
    left: 50%;
    margin-left: -30px;
    position: absolute;
    width: 60px;
    z-index: 2;
}

.hero-scroll-link span,
.portfolio-ajax-close span {
    border: 2px solid #3A3A3A;
    color: #3A3A3A;
    border-radius: 100%;
    display: block;
    line-height: 36px;
    margin: 10px;
    text-align: center;
    width: 36px;
    transition: all 0.3s ease-out;
}

.hero-scroll-link:hover span,
.portfolio-ajax-close:hover span {
    border-color: transparent !important;
    margin: 0;
    padding: 10px;
}

/* ------ Portfolio Grid ------ */

.portfolio-ajax-wrapper.loading {    background: url(images/loader-bg-light.gif) center center no-repeat }

.portfolio-ajax-wrapper {
    display: none;
    min-height: 400px;
    transition: height 0.3s ease-out;
}

.portfolio-ajax-content {
    display: none;
    position: relative;
}

.portfolio-ajax-close {
    height: 42px;
    position: absolute;
    right: 34px;
    top: 14px;
    text-align: center;
    width: 42px;
    z-index: 3;
}

.portfolio-ajax-close span,
#cancel-comment-reply-link {
    border-color: #3A3A3A;
    color: #3A3A3A;
    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";
    opacity: 0.50;
    cursor: pointer;
    font-size: 32px;
    transition: all 0.3s ease-out;
}

.portfolio-ajax-close span:hover,
#cancel-comment-reply-link:hover {
    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
    opacity: 1;
}

/* Portfolio Filters */

.filter {
    list-style: none;
    margin: 0;
    padding: 45px 40px;
    text-align: center;
}

.filter li { display: inline-block; }

.filter li  + li {    margin-left: 5px }

.filter li a {
    background: transparent;
	-webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
    color: #999;
    color: rgba( 0, 0, 0, 0.5 );
	display: block;
    font-family: helvetica, arial, sans-serif;
    font-size: 12px;    
    padding: 3px 9px;
	text-transform: uppercase;
    transition: all 0.3s ease-out;
}

.filter li a:hover {
    color: #666;
    color: rgba( 0, 0, 0, 0.75 );
}

.filter .selected,
.filter .selected:hover {
    background: #DD3333; /* Default Accent Colour */
    color: #3A3A3A;
}

.portfolio-grid {
    margin: 0;
    overflow: hidden;
}

.portfolio-grid.site-width { margin: 120px auto; }

.filter + .portfolio-grid.site-width { margin-top: 0; }

.entry-inner + .portfolio-grid {    margin-top: 120px }

.portfolio-grid .hentry {
    float: left;
    overflow: hidden;
    transition: opacity 0.3s ease-out;
    width: 25%;
}

.portfolio-grid .hentry.disabled {
    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=25)";
    opacity: 0.25;
}

.portfolio-grid .hentry .entry-inner {
    background: #FFF;
	padding-bottom: 64px;
    position: relative;
}

.entry-image {
    display: block;
    height: 0;
    padding-bottom: 74%;
    position: relative;
    z-index: 1;
}

.blank .entry-image {
    background-color: rgba( 0, 0, 0, 0.1 );
    background-image: url(images/portfolio-grid-blank-dark-text.png);
    background-size: cover;
}

.blank + .blank .entry-image {
    border-left: 1px solid #E6E6E6;
    border-color: rgba( 0, 0, 0, 0.08 );
}

.entry-image img {
    height: auto;
    width: 100%;
}

.portfolio-grid .entry-excerpt {
    background: #FFF;
    bottom: 0;
    left: 0;
    height: 68px;
    position: absolute;
    right: 0;
    text-align: left;
    text-align: center;
    transition: height 0.3s ease-out;
    z-index: 2;
}

.portfolio-grid .entry-excerpt:before,
.single-portfolio .portfolio-grid .entry-excerpt:before {
    border-style: solid;
    border-width: 0 15px 15px 15px;
    border-color: transparent transparent #FFF transparent;
    content: "";
    height: 0;
    left: 50%;
    margin-left: -10px;
    position: absolute;
    top: -15px;
    width: 0;
}

.portfolio-grid .hentry:hover .entry-excerpt {    height: 50% }

.portfolio-grid .entry-excerpt h3,
.portfolio-grid .entry-excerpt h4,
.single-portfolio .portfolio-grid .entry-excerpt h3,
.single-portfolio .portfolio-grid .entry-excerpt h4 {
    color: #999;
    color: rgba( 0, 0, 0, 0.5 );
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 28px;
    margin: 20px 20px 0;
    text-transform: uppercase;
}

.portfolio-grid a {
    bottom: 0;
    left: 0;
    overflow: hidden;
    position: absolute;
    text-indent: -999px;
    right: 0;
    top: 0;
    z-index: 2;
}

/* ------ Portfolio Item ------ */

.portfolio-item-video .portfolio-media-holder { max-width: 860px; }

.portfolio-media-holder {    width: 64% }

.portfolio-content-holder {
    overflow: hidden;
    width: 32%;
}

.portfolio-align-right .portfolio-content-holder,
.portfolio-align-left  .portfolio-content-holder {    margin-top: 8px }

.portfolio-content-holder .entry-content {    margin-top: 40px }


.entry-meta,
.entry-meta +.entry-content,
.entry-content:first-child {    margin-top: 0 }

* + .entry-meta,
* + .entry-meta + .entry-content {    margin-top: 40px }

.entry-meta .portfolio-tag {
    display: block;
    padding: 8px 0;
    margin-top: 16px;
}

.entry-meta .portfolio-tag:first-child {    padding-top: 0 }

.entry-meta .portfolio-tag + .portfolio-tag {
    border-top: 1px solid #DDD;
    border-color: #999;
    border-color: rgba( 0, 0, 0, 0.1 );
    margin: 0;
}

.entry-meta .portfolio-tag > span {    margin-right: 10px }

.entry-meta a {    color: #000 }

.entry-meta a:hover {
    color: #000;
    -ms-filter: 'progid:DXImageTransform.Microsoft.Alpha(Opacity=50)';
    opacity: 0.5;
}

.portfolio-permalink {
    display: inline-block;
    margin: 16px 0 0;
}

.portfolio-permalink span {    margin-right: 10px }

.portfolio-align-center .entry-meta + .entry-content {
    margin-right: 4%;
    width: 64%;
}

.portfolio-align-center .entry-meta {    width: 32% }

.entry-meta > *:first-child {    margin: 0 }

/* Left align */

.portfolio-media-holder {
    float: right;
    margin: 0 0 0 4%;
    min-height: 1px;
}

.portfolio-media-holder img {    max-width: 100% }

.portfolio-content-holder {    float: right }

.portfolio-align-left .portfolio-content-holder > *:first-child {    margin-top: 0 }

/* Left align */

.portfolio-align-left .portfolio-media-holder {
    float: left;
    margin: 0 4% 0 0;
}

.portfolio-align-left .portfolio-content-holder {
    float: left;
    text-align: left;
}

.portfolio-align-left .portfolio-content-holder > *:first-child {    margin-top: 0 }

/* Centre align */

.portfolio-align-center .portfolio-media-holder,
.portfolio-align-center .portfolio-content-holder {
    float: none;
    margin: 0 auto;
    width: 100%;
}

.portfolio-align-center .entry-meta + .entry-content,
.portfolio-align-center .entry-meta {    float: right }

.portfolio-align-center .portfolio-media-holder + .portfolio-content-holder {    margin-top: 64px }


/* ----- Gallery (Vertical) ----- */

.portfolio-media-holder img {
    display: block;
    height: auto;
    margin: 0 auto;
    max-width: 100%;
}

.portfolio-media-holder .gallery-image + .gallery-image {    margin-top: 4px }

/* Left align */

.portfolio-item-gallery-v.portfolio-align-right .portfolio-media-holder {
    float: left;
    margin: 0 0 0 4%;
}

.portfolio-item-gallery-v.portfolio-align-right .portfolio-content-holder {    float: left }

/* Right align */

.portfolio-item-gallery-v.portfolio-align-left .portfolio-media-holder {
    float: right;
    margin: 0 4% 0 0;
}

.portfolio-item-gallery-v.portfolio-align-left .portfolio-content-holder {    float: right }

/* Centre align */

.portfolio-item-gallery-v.portfolio-align-center {    padding-bottom: 0 }

.portfolio-item-gallery-v.portfolio-align-center .portfolio-media-holder {
    padding-bottom: 40px;
    width: auto;
}

.portfolio-item-gallery-v.portfolio-align-center .entry-inner + .portfolio-media-holder {
    margin-top: 120px;
    max-width: 1600px;
}

.portfolio-item-gallery-v.portfolio-align-center .gallery-image {
    margin-left: 40px;
    margin-right: 40px;
}

.gallery-image {    position: relative }

.gallery-image .caption {
    background-color: rgba( 0, 0, 0, 0.5 );
    color: #FFF;
    max-width: 50%;
    padding: 20px;
    position: absolute;
    right: 24px;
    top: 24px;
}

/* ----- Gallery (Horizontal) ----- */

.gallery-horizontal {
	position: relative;
	z-index: 2;
}

.entry-inner + .gallery-horizontal {    margin-top: 60px }

.gallery-horizontal img {
    display: block;
    float: left;
}

.gallery-horizontal img + img {    margin-left: 4px }

.mCSB_horizontal>.mCSB_container {    margin-bottom: 0 }

.mCSB_horizontal.mCustomScrollBox>.mCSB_scrollTools {
    height: 4px;
    left: 0;
    top: 0;
    opacity: 1;
    filter: "alpha(opacity=100)";
    -ms-filter: "alpha(opacity=100)";
    overflow: visible;
    right: 0;
}

.mCSB_horizontal>.mCSB_scrollTools .mCSB_buttonLeft,
.mCSB_horizontal>.mCSB_scrollTools .mCSB_buttonRight {
    height: 40px;
    opacity: 1;
    filter: "alpha(opacity=100)";
    -ms-filter: "alpha(opacity=100)";
    position: absolute;
    top: 230px;
    width: 40px;
}

.mCSB_horizontal>.mCSB_scrollTools .mCSB_buttonLeft {    left: 20px }

.mCSB_horizontal>.mCSB_scrollTools .mCSB_buttonRight {    right: 20px }

.mCSB_horizontal .mCSB_scrollTools .mCSB_draggerContainer {
    display: none;
    left: 40px;
    right: 40px;
}

.mCSB_horizontal > .mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar {
    height: 100%;
    -webkit-border-radius: 0;
    -moz-border-radius: 0;
    border-radius: 0;
    margin: 0 auto;
}

.mCSB_horizontal>.mCSB_scrollTools .mCSB_draggerRail {
    height: 100%;
    margin: 0;
    -webkit-border-radius: 0;
    -moz-border-radius: 0;
    border-radius: 0;
}

.gallery-horizontal + .entry-inner {
    clear: both;
    padding-top: 60px;
}

/* -----  Related Work ----- */

.back-to-top,
.related-posts-header {
    background: #FFF;
    display: block;
    height: 120px;
    text-align: center;
}

.back-to-top a {
    font-size: 18px;
    width: 100px;
}

.back-to-top a:hover {    color: #3A3A3A }

.back-to-top a,
.related-posts-header > * {
    color: #999;
    color: rgba( 0, 0, 0, 0.5 );
    border: none;
    display: block;
    margin: 0 auto;
    padding: 47px 0;
    position: relative;
}

.related-posts-header > * {
    font-family: helvetica, arial, sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
}

/* ------ Footer ------ */

.site-footer-wrapper {
    margin: 0 auto;
    position: relative;
    z-index: -2;
}

.site-footer {
    bottom: 0;
    position: relative;
    z-index: -1;
    width: 100%;
}

.site-footer-content {
    background: #F6F6F6;
    color: #666;
    padding-top: 1px;
}

.site-footer-content > div {    padding-top: 1px }

.site-footer .widget-area {    padding: 64px 0 24px }

.site-footer .widget-area:empty {    display: none }

.site-footer .widget {
    float: left;
    width: 25%;
}

.site-footer .widget:first-of-type,
.site-footer .widget:nth-of-type(5) {    clear: both }

.site-footer .widget-inner {    margin: 0 10px 40px }

.site-footer .widget:first-of-type .widget-inner,
.site-footer .widget:nth-of-type(5) .widget-inner {
    margin-left: 0;
    margin-right: 10px;
}

.site-footer .widget:nth-of-type(4) .widget-inner {
    margin-left: 10px;
    margin-right: 0;
}

.site-footer .widget-title {
    color: #999;
    color: rgba( 0, 0, 0, 0.5 );
}

.copyright {
    margin-top: 64px;
    padding-bottom: 64px;
}

.widget-area + .copyright {
    margin-top: 0;
    padding-top: 24px;
}

.copyright .half {    
	min-height: 1px;
	float: right;
}

.copyright .social-buttons { text-align: right }

.site-footer .social-buttons a {
    color: #999;
    color: rgba( 0, 0, 0, 0.5 );
    display: inline-block;
    margin: 0 0 0 10px;
}

.site-footer .social-buttons a:hover {
    color: #999;
    color: rgba( 0, 0, 0, 0.25 );
}

.social-buttons span {    font-size: 16px }

.site-footer .widget ul > li,
.site-footer .widget li > ul > li,
.site-footer .widget li > ul > li:first-child {
    border-color: #999;
    border-color: rgba( 0, 0, 0, 0.08 );
}

.site-footer .widget ul a {    color: #000 }

.site-footer .widget ul a:hover {
    color: #000;
    -ms-filter: 'progid:DXImageTransform.Microsoft.Alpha(Opacity=50)';
    opacity: 0.5;
}

.site-footer input[type="text"],
.site-footer input[type="email"],
.site-footer input[type="search"],
.site-footer input[type="password"],
.site-footer textarea,
.site-footer select {
    background-color: rgba( 0, 0, 0, 0.02 );
    border-color: #999;
    border-color: rgba( 0, 0, 0, 0.05 );
    color: #858585;
}

.site-footer .searchform ::-webkit-input-placeholder {
    color: #858585;
    color: rgba( 0, 0, 0, 0.5 );
}

.site-footer .searchform ::-moz-placeholder {
    color: #858585;
    color: rgba( 0, 0, 0, 0.5 );
}

.site-footer .searchform ::-moz-placeholder {
    color: #858585;
    color: rgba( 0, 0, 0, 0.5 );
}

.site-footer .searchform :-ms-input-placeholder {
    color: #858585;
    color: rgba( 0, 0, 0, 0.5 );
}

.site-footer .searchsubmit:hover {    color: #000 }

/* ----- Widgets ----- */

.sidebar .widget + .widget {    margin-top: 40px }

.widget-title {
    color: #3A3A3A;
    font-family: helvetica, arial, sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 24px;
    margin: 0 0 16px;
}

.entry-content .widget-title { margin-top: 40px; }

.widget ul {
    margin: 0;
    padding: 0;
}

.widget li {
    margin: 8px 0 0;
    padding: 8px 0 0;
    list-style-type: none;
}

.widget ul > li,
.widget li > ul > li,
.widget li > ul > li:first-child {
    border-top: 1px solid #DDD;
    border-color: #999;
    border-color: rgba( 0, 0, 0, 0.08 );
}

.widget ul > li:first-child {
    border: none;
    padding-top: 0;
}

.widget li > ul > li:first-child {    padding-top: 8px }

.widget li > ul {
    margin: 8px 0 0;
    padding-left: 20px;
}

.widget li > ul > li:before {
    content: "- ";
    margin-right: 5px;
}

.widget ul a {    color: #000 }

.widget ul a:hover {
    color: #000;
    -ms-filter: 'progid:DXImageTransform.Microsoft.Alpha(Opacity=50)';
    opacity: 0.5;
}

.post-date {
    display: block;
    font-family: helvetica, arial, sans-serif;
    font-size: 12px;
    line-height: 20px;
    margin: 0 0 16px;
    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=75)";
    opacity: 0.75;
}

/* Calendar */

#wp-calendar {    margin: 0 }

/* tag cloud */

.widget .tagcloud {    margin: 0 }

.tagcloud a,
.tagcloud a:hover {
    background: #DD3333; /* Default Accent Colour */
    color: #3A3A3A;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
    display: inline-block;
    font-family: helvetica, arial, sans-serif;
    font-size: 11px !important;
    margin: 0 0 3px;
    padding: 3px 9px;
    text-transform: uppercase;
}

.tagcloud a:hover {
    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";
    opacity: 0.5;
}

/* Search */

.searchform fieldset {    position: relative }

.searchform .s {    padding-right: 55px }

.searchform ::-webkit-input-placeholder {
    color: #858585;
    color: rgba( 0, 0, 0, 0.5 );
    text-overflow: ellipsis;
}

.searchform ::-moz-placeholder {
    color: #858585;
    color: rgba( 0, 0, 0, 0.5 );
    text-overflow: ellipsis;
}

.searchform ::-moz-placeholder {
    color: #858585;
    color: rgba( 0, 0, 0, 0.5 );
    text-overflow: ellipsis;
}

.searchform :-ms-input-placeholder {
    color: #858585;
    color: rgba( 0, 0, 0, 0.5 );
    text-overflow: ellipsis;
}

.searchsubmit {
    height: 47px;
    position: absolute;
    right: 0;
    text-align: center;
    top: 1px;
    width: 47px;
}

.searchsubmit:hover {    color: #000 }

.searchsubmit span {
    font-size: 16px;
    left: 0;
    line-height: 47px;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 1;
}

.searchsubmit input[type="submit"] {
    background: transparent;
    border-left: 1px solid #999;
    border-color: rgba(0, 0, 0, 0.1);
    border-radius: 0;
    color: #3A3A3A;
    height: 100%;
    margin: 0;
    text-indent: -999px;
    padding: 0;
    position: relative;
    width: 100%;
    z-index: 2;
}

.searchsubmit input[type="submit"]:hover {    background: transparent !important }

/* Recent Posts */

.widget_recent_entries ul li {
    border: none;
    padding: 0;
}

/* RSS */

.widget_rss li {
    margin: 16px 0 0;
    padding-top: 16px;
}

.widget_rss .rss-date {
    display: block;
    margin: 8px 0;
}

.widget_rss cite {
    display: block;
    font-size: 12px;
    margin: 8px 0 0;
}

/* ----- COMMENTS ----- */

#comments-wrapper {
    border-top: 1px solid #DDD;
    border-color: rgba( 0, 0, 0, 0.1 );
    clear: both;
    margin-top: 60px;
    padding-top: 60px;
    text-align: left;
}

.nav-links + #comments-wrapper {    margin-top: 0 }

#comments-holder > p {    margin-bottom: 40px }

.comments-header {    overflow: hidden }

#comments-title {    margin: 0 }

#comments-wrapper:first-child  #comments-title {    margin-top: 0 }

.comment-navigation {
    background: none;
    height: auto;
    overflow: hidden;
}

.comment-navigation .comment-nav-links {
    border-top: 1px solid #DDD;
    border-color: rgba( 0, 0, 0, 0.1 );
    margin-top: 40px;
    padding: 30px 0 0;
}

.comment-navigation .comment-nav-links > div {
    font-size: 26px;
    height: 30px;
    line-height: 30px;
    width: 50%;
}

.comment-nav-links a {
    color: #3A3A3A;
    font-weight: 400;
    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=75)";
    opacity: 0.75;
    transition: all 0.3s ease-out;
}

.comment-nav-links a:hover {
    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
    opacity: 1;
}

.comment-navigation .nav-next,
.comment-navigation .nav-previous {
    float: left;
    width: auto;
}

.comment-navigation .nav-next {    text-align: left }

.comment-navigation .nav-previous {    text-align: right }

.comment-nav-links span {    font-size: 18px }

#comments {    clear: both }

#comments {
    margin: 0;
    padding: 0;
}

.comment,
.pingback {
    list-style-type: none;
    margin: 0;
}

.comment-holder {
    border-top: 1px solid #DDD;
    border-color: rgba( 0, 0, 0, 0.1 );
    clear: both;
    display: block;
    overflow: hidden;
    padding: 40px 0 40px;
    position: relative;
}

.comment > .comment-holder { padding: 40px 0 40px 75px; }

.pingback footer { display: none; }

#comments > li:first-child > .comment-holder {    border: none }

.comment-holder .avatar {
    border-right: 1px solid #DDD;
    border-color: rgba( 0, 0, 0, 0.1 );
    left: 0;
    padding-right: 20px;
    position: absolute;
    top: 40px;
}

.comment footer {
    font-size: 11px;
    line-height: 1em;
    font-weight: 700;
    margin: 24px 0 0;
    text-align: right;
    text-transform: uppercase;
}

.comment footer li {
    display: inline-block;
    margin: 0 5px 0 0;
}

/* ===[ Nested comments ]=== */

#comments .children {
	margin: 0;
	padding-left: 55px;
}

.comment-meta {
    font-size: 12px;
    line-height: 1em;
    overflow: hidden;
    text-transform: uppercase;
}

.comment-author {
    color: #505050;
    display: inline-block;
    font-family: helvetica, arial, sans-serif;
    font-size: 12px;
    font-weight: 700;
    margin: 0;
    text-transform: uppercase;
    word-wrap: break-word;
}

.comment-date {
    display: inline-block;
    font-size: 11px;
    line-height: 1em;
    margin-top: 1px;
}

.comment-author a,
.comment-date a,
.comment-reply-link {
    border-bottom: 1px dotted #3A3A3A;
    color: #3A3A3A;
    font-weight: 400;
    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=75)";
    opacity: 0.75;
    transition: all 0.3s ease-out;
}

.comment-author a:hover,
.comment-date a:hover,
.comment-reply-link:hover {
    border: none;
    color: #3A3A3A;
}

.comment-content {
    clear: both;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

/* .bypostauthor > .comment-holder > .comment-content,
.admin-comment .comment-content{} */

.comment-login {
    border-top: 1px solid #DDD;
    border-color: rgba( 0, 0, 0, 0.1 );
    margin: 0;
    padding-top: 60px;
}

#respond {
    border-top: 1px solid #DDD;
    border-color: rgba(0,0,0,0.1);
    margin-top: 60px;
    padding-top: 60px;
}

#comments #respond {
    margin: 0;
    padding-top: 40px;
}

li #respond {    padding-bottom: 20px }

#cancel-comment-reply-link {
    float: right;
    font-family: 'Open Sans', helvetica, arial, sans-serif;
    font-weight: 400;
    text-decoration: none;
}

.comment-reply-title {    margin: 0 }

.comment-notes {    margin-bottom: 24px }

.comment-form-comment {
    display: inline-block;
    width: 100%;
}

.form-submit {    text-align: center }

span.required {
    color: #DD3333; /* Default Accent Colour */
}

label.error {
    font-weight: 400;
    color: #FF0000;
}

/* ==================================================
   GALLERY SHORTCODE
   ================================================== */

.gallery {
    margin: 40px 0 40px -4px;
    overflow: hidden;
}

.gallery:last-child {    margin-bottom: 0 }

.gallery .gallery-item {
    float: left;
    margin: 0 0 4px;
    overflow: hidden;
    position: relative;
}

.gallery-columns-1 .gallery-item {    width: 100% }
.gallery-columns-2 .gallery-item {    width: 50% }
.gallery-columns-3 .gallery-item {    width: 33.333% }
.gallery-columns-4 .gallery-item {    width: 25% }
.gallery-columns-5 .gallery-item {    width: 20% }
.gallery-columns-6 .gallery-item {    width: 16.666% }
.gallery-columns-7 .gallery-item {    width: 14.285% }
.gallery-columns-8 .gallery-item {    width: 12.5% }
.gallery-columns-9 .gallery-item {    width: 11.111% }

.gallery-item dt {    margin: 0 0 0 4px }

.gallery-item a {
    background: #DD3333; /* Default Accent Colour */
    display: block;
    text-align: center;
}

.gallery-item img {
    height: auto;
    max-width: 100%;
    transition: opacity 0.3s ease-out;
    width: 100%;
}

.gallery-item a:hover img {
    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=25)";
    opacity: 0.25;
}

.gallery-caption {
    background-color: rgba( 0, 0, 0, 0.5 );
    bottom: 0;
    left: 4px;
    margin: 0;
    padding: 16px;
    pointer-events: none;
    position: absolute;
    right: 0;
}

.gallery-caption.wp-caption-text {
    color: #FFF;
    line-height: 16px;
    margin: 0;
    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
    opacity: 1;
    text-align: center;
}

/* ===[ Disable captions when columns are too narrow ]=== */


.main .gallery-columns-3 .gallery-caption,
.main .gallery-columns-4 .gallery-caption,
.gallery-columns-5 .gallery-caption,
.gallery-columns-6 .gallery-caption,
.gallery-columns-7 .gallery-caption,
.gallery-columns-8 .gallery-caption,
.gallery-columns-9  .gallery-caption {    display: none }


/* ==========================================================================
   Funky Shortcodes
   ========================================================================== */
   
/* ---------- Accordion ---------- */

.funky-toggle-item  {
	background: none;
	margin-top: 40px;
}

.funky-toggle-item + .funky-toggle-item  { margin-top: 0; }

.funky-toggle-button {
	border-top: 1px solid rgba(0,0,0,0.1);
	border-bottom: 1px solid rgba(0,0,0,0.1);
	padding: 24px 0;
}

.funky-toggle-item + .funky-toggle-item > .funky-toggle-button { border-top: none; }

.funky-toggle-content {
	border-bottom: 1px solid rgba(0,0,0,0.1);
	font-size: 13px;
	line-height: 26px;
	margin: 0;
	padding: 40px;
}

.funky-toggle-content > *:first-child { margin-top: 0; }
	
/* ---------- Box ---------- */

.funky-box {
	background-color: #FFF;
	font-size: 13px;
	line-height: 26px;
	margin: 24px 0 0;
	padding: 20px;
}
	
	
.funky-box > *:first-child { margin-top: 0; }

.funky-box a {
	border: none;
	color: #000 !important;
}

.funky-box p { margin: 20px 0 0; }

/* ---------- Button ---------- */

.funky-button.button-large {
	font-size: 18px;
	line-height: 1.5em;
	font-weight: 400;
}

/* ---------- Columns ---------- */

.fourth,
.third,
.half,
.two-thirds,
.three-fourths {
	float: left;
	margin-right: 2%;
	min-height: 1px;
}

.end {	margin-right: 0 }

.fourth {    width: 23.5% }

.third {    width: 32% }

.half {    width: 49% }

.two-thirds {     width: 66% }

.three-fourths {    width: 74.5% }

.entry-content > .fourth:first-child > *:first-child,
.entry-content > .third:first-child > *:first-child,
.entry-content > .third:first-child > *:first-child,
.entry-content > .half:first-child > *:first-child {    margin-top: 0 }

/* ---------- Divider ---------- */

.hr, hr {
	border-color: #DDD;
	border-color: rgba( 0, 0, 0, 0.1 );
	margin: 40px 0 0; 
}

hr.thick { border-width: 4px; }
	
.wrapper .top a,
.wrapper .top a:visited,
.wrapper .top a:hover, 
.wrapper .top a:visited:hover { color: #999; }


/* ---------- Drop cap ---------- */

.funky-dropcap:first-letter {
	color: #6A6A6A;
	padding: 5px 24px 0;
}


/* ---------- Pages ---------- */

.funky-pages-image { margin-top: 24px; }


/* ---------- Posts ---------- */

.funky-posts { margin-top: 40px; }


/* ---------- Quotes ---------- */

blockquote.alignleft,
blockquote.alignright {
	margin: 64px 0;
	padding: 0 64px;
	text-align: left;
}
   
   
   /* ==========================================================================
   Styling
   ========================================================================== */

/* Apply accent colour */

.accent-color-text {
    color: #DD3333; /* Default Accent Colour */
}

.accent-color-bg {
    background-color: #DD3333; /* Default Accent Colour */
}

.accent-text-color {    color: #3A3A3A }

/* Remove padding / margin */

.no-padding-top {    padding-top: 0 }

.no-padding-bottom {    padding-bottom: 0 }

.no-margin-top {    margin-top: 0 }

.no-margin-bottom {    margin-bottom: 0 }

.site-width {
    margin: 0 auto;
    max-width: 980px;
    padding-left: 40px;
    padding-right: 40px;
}

.list-style-none {
    list-style: none;
    padding: 0;
}

.list-style-none ul {    padding-left: 20px }

/* ----- Contact Form 7 ----- */

input.wpcf7-not-valid {    border: 2px solid #FF0000 !important }

span.wpcf7-not-valid-tip {
    background: none;
    border: none;
    left: 0;
    position: relative;
    top: 0;
}

div.wpcf7 img.ajax-loader {
    display: block;
    margin: 0 auto;
}

div.wpcf7-mail-sent-ok {    border: none }

/* ----- Slider Revolution ----- */

.rev_slider_wrapper { text-align: left; }

.tp-bullets.simplebullets.round .bullet {
    background: #000;
    -webkit-border-radius: 100%;
    -moz-border-radius: 100%;
    border-radius: 100%;
    height: 14px;
    margin-left: 10px;
    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";
    opacity: 0.5;
    width: 14px;
}

.tp-bullets.simplebullets.round .bullet.last {    margin-right: 10px }

.tp-bullets.simplebullets.round .bullet:hover {
    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=75)";
    opacity: 0.75;
}

.tp-bullets.simplebullets.round .bullet.selected {    background: #DD3333 /* Default Accent Colour */ }

.mCSB_horizontal>.mCSB_scrollTools .mCSB_buttonLeft,
.mCSB_horizontal>.mCSB_scrollTools .mCSB_buttonRight,
.tp-leftarrow.default,
.tp-rightarrow.default {
    background: rgba( 0, 0, 0, 0.7 );
    -webkit-border-radius: 2px;
    -moz-border-radius: 2px;
    border-radius: 2px;
}

.mCSB_horizontal>.mCSB_scrollTools .mCSB_buttonLeft:hover,
.mCSB_horizontal>.mCSB_scrollTools .mCSB_buttonRight:hover,
.tp-leftarrow.default:hover,
.tp-rightarrow.default:hover {    background: #000 }

.mCSB_horizontal>.mCSB_scrollTools .mCSB_buttonLeft:before,
.mCSB_horizontal>.mCSB_scrollTools .mCSB_buttonRight:before,
.tp-leftarrow.default:before,
.tp-rightarrow.default:before {
    color: #FFF;
    display: block;
    font-family: 'icomoon';
    position: absolute;
    top: 0;
    height: 100%;
    left: 0;
    line-height: 40px;
    text-align: center;
    width: 100%;
}

.mCSB_horizontal>.mCSB_scrollTools .mCSB_buttonRight:before,
.tp-rightarrow.default:before {    content: "\e603" }

.mCSB_horizontal>.mCSB_scrollTools .mCSB_buttonLeft:before,
.tp-leftarrow.default:before {    content: "\e600" }

/* ----- MediaElement ----- */

.media-wrapper > .wp-video,
.portfolio-media-holder > .wp-video {
	height: auto !important;
	width: auto !important; 
}

.mejs-audio { height: 51px !important; }

.mejs-audio,
.wp-video { margin-top: 40px; }

.feature-content .mejs-audio,
.feature-content .wp-video{ margin: 0; }

.portfolio-media-holder .wp-audio,
.portfolio-media-holder .wp-video { margin-top: 0; }

.mejs-container.mejs-video {
	height: auto !important;
	padding-top: 56.3%;
	width: 100% !important;
}

.mejs-overlay, .mejs-poster {
	height: 100% !important;
	width: 100% !important;
}
.mejs-mediaelement video {
	height: 100% !important;
	position: absolute;
	top: 0;	left: 0; right: 0; bottom: 0;
	width: 100% !important;
}

.mejs-container, .mejs-embed, .mejs-embed body {
	background: transparent !important;
}

.mejs-container .mejs-overlay-play { background: rgba(0,0,0,0.5); }

.mejs-container .mejs-inner .mejs-controls { background: #171717; }

	/* Fix for last item dropping below the controls. */
	
	.mejs-container .mejs-controls > div:last-of-type {
		position: relative;
		clear: both;
		float: right;
		top:   -31px;
	}

	.mejs-inner .mejs-controls .mejs-time-rail .mejs-time-loaded,
	.mejs-inner .mejs-controls .mejs-horizontal-volume-slider .mejs-horizontal-volume-current {	background: #999; }
	
	.mejs-inner .mejs-controls .mejs-time-rail .mejs-time-current {    background: #FFF; }

	.mejs-inner .mejs-controls .mejs-volume-button .mejs-volume-slider {    background: #171717; }

	.mejs-controls button { 
		-webkit-transition: none;
		-moz-transition: none;
		-ms-transition: none;
		-o-transition: none;
		transition: none;
	}
	
	
/* ----- Image Alignment ----- */

.alignleft {    float: left }

.wp-caption.alignleft {
    margin-top: 33px;
    margin-right: 24px;
}

img.alignleft {    margin: 10px 24px 16px 0 }

.alignleft img { }

.alignright {    float: right }

.wp-caption.alignright {
    margin-left: 24px;
    margin-top: 29px;
}

img.alignright {    margin: 5px 0 16px 24px }

.alignright img { }

.alignnone,
.wp-caption.alignnone,
.wp-caption.none {    margin: 0 }

.alignnone .wp-caption-text {    width: 100% }

.aligncenter {
    clear: both;
    display: block;
    margin: 40px auto;
}

.aligncenter img {    margin: 0 auto }

p > a > .aligncenter {
    margin-bottom: 24px;
    margin-top: 24px;
}

.wp-caption {    margin-top: 10px }

p + .wp-caption {    margin-top: 24px }

p + .wp-caption.aligncenter {    margin-top: 40px }

.wp-caption-text {
    font-size: 12px;
    line-height: 1em;
    margin: 16px 0;
    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=75)";
    opacity: 0.75;
}

div.wp-caption {    max-width: 100% }

/* ----- Text Align ----- */

/* Left */

.text-align-left {    text-align: left }

.text-align-left .post-title,
.text-align-right .text-align-left .post-title,
.text-align-center .text-align-left .post-title,
.text-align-left.post-subtitle:before,
.text-align-right .text-align-left.post-subtitle:before,
.text-align-center .text-align-left.post-subtitle:before,
.text-align-left.post-title,
.text-align-right .text-align-left.post-title,
.text-align-center .text-align-left.post-title,
.text-align-left .post-subtitle,
.text-align-right .text-align-left .post-subtitle,
.text-align-center .text-align-left .post-subtitle,
.text-align-left.post-subtitle,
.text-align-right .text-align-left.post-subtitle,
.text-align-center .text-align-left.post-subtitle,
.text-align-left .post-subtitle:before,
.text-align-right .text-align-left .post-subtitle:before,
.text-align-center .text-align-left .post-subtitle:before {
    margin-left: 0;
    margin-right: auto;
}

/* Right */

.text-align-right {    text-align: right }

.text-align-right .post-title,
.text-align-left .text-align-right .post-title,
.text-align-center .text-align-right .post-title,
.text-align-right.post-title,
.text-align-left .text-align-right.post-title,
.text-align-center .text-align-right.post-title,
.text-align-right .post-subtitle:before,
.text-align-left .text-align-right .post-subtitle:before,
.text-align-center .text-align-right .post-subtitle:before,
.text-align-right .post-subtitle,
.text-align-left .text-align-right .post-subtitle,
.text-align-center .text-align-right .post-subtitle,
.text-align-right.post-subtitle:before,
.text-align-left .text-align-right.post-subtitle:before,
.text-align-center .text-align-right.post-subtitle:before,
.text-align-right.post-subtitle,
.text-align-left .text-align-right.post-subtitle,
.text-align-center .text-align-right.post-subtitle {
    margin-left: auto;
    margin-right: 0;
}

/* Center */

.text-align-center {    text-align: center }

.text-align-center .post-title,
.text-align-left .text-align-center .post-title,
.text-align-right .text-align-center .post-title,
.text-align-center.post-title,
.text-align-left .text-align-center.post-title,
.text-align-right .text-align-center.post-title,
.text-align-center .post-subtitle:before,
.text-align-left .text-align-center .post-subtitle:before,
.text-align-right .text-align-center .post-subtitle:before,
.text-align-center .post-subtitle,
.text-align-left .text-align-center .post-subtitle,
.text-align-right .text-align-center .post-subtitle,
.text-align-center.post-subtitle:before,
.text-align-left .text-align-center.post-subtitle:before,
.text-align-right .text-align-center.post-subtitle:before,
.text-align-center.post-subtitle,
.text-align-left .text-align-center.post-subtitle,
.text-align-right .text-align-center.post-subtitle {
    margin-left: auto;
    margin-right: auto;
}

/* ----- Text Colour ----- */

/* Light */

.text-color-light,
.text-color-dark .text-color-light {    color: #EEE }

.text-color-light .post-title,
.text-color-light h1,
.text-color-light h2,
.text-color-light h3,
.text-color-light h5,
.text-color-light h6,
.text-color-light blockquote p,
.text-color-dark .text-color-light .post-title,
.text-color-dark .text-color-light h1,
.text-color-dark .text-color-light h2,
.text-color-dark .text-color-light h3,
.text-color-dark .text-color-light h5,
.text-color-dark .text-color-light h6,
.text-color-dark .text-color-light blockquote p,
.text-color-light .widget-title,
.text-color-light label,
.text-color-light .funky-dropcap:first-letter,
.text-color-light .funky-toggle-title {    color: #FFF }

.text-color-light .post-subtitle:before,
.text-color-dark .text-color-light .post-subtitle:before {    background: #FFF }

.text-color-light h4,
.text-color-light h4 a,
.text-color-light .post-subtitle,
.text-color-dark .text-color-light h4,
.text-color-dark .text-color-light h4 a,
.text-color-dark .text-color-light .post-subtitle,
.text-color-light .entry-meta time,
.text-color-dark .text-color-light .entry-meta time,
.text-color-light cite {
    color: #D6D6D6;
    color: rgba( 255, 255, 255, 0.75 );
}

.text-color-light h1 a,
.text-color-light h2 a,
.text-color-light h3 a,
.text-color-light h4 a,
.text-color-light h5 a,
.text-color-light h6 a,
.text-color-dark .text-color-light h1 a,
.text-color-dark .text-color-light h2 a,
.text-color-dark .text-color-light h3 a,
.text-color-dark .text-color-light h4 a,
.text-color-dark .text-color-light h5 a,
.text-color-dark .text-color-light h6 a {    color: #FFF }

.text-color-light code,
.text-color-dark .text-color-light code,
.text-color-light kbd,
.text-color-dark .text-color-light kbd,
.text-color-light pre,
.text-color-dark .text-color-light pre,
.text-color-light samp,
.text-color-dark .text-color-light samp {	color: #FFF }

body.text-color-light .header-bg {
    border-color: #999;
    border-color: rgba( 255, 255, 255, 0.05 );
}

.text-color-light #portfolio-ajax-wrapper.loading {    background: #FFF url(images/loader-bg-dark.gif) center center no-repeat }

section.text-color-light .hero-scroll-link span,
.text-color-light .portfolio-ajax-close span,
.text-color-dark .text-color-light .portfolio-ajax-close span,
.entry-header.text-color-light .portfolio-ajax-close span,
.entry-body.text-color-light .portfolio-ajax-close span {
    border-color: #FFF;
    color: #FFF;
}

body.text-color-light .filter li a {
	color: #999;
	color: rgba( 255, 255, 255, 0.5 ); }

body.text-color-light .filter li a:hover {
	color: #CCC;
	color: rgba( 255, 255, 255, 0.75 ); }

body.text-color-light .portfolio-grid .entry-excerpt h3,
body.text-color-light .portfolio-grid .entry-excerpt h4 {
    color: #999;
    color: rgba( 255, 255, 255, 0.5 );
}

.text-color-light .blank .entry-image {    background-image: url(images/portfolio-grid-blank-light-text.png) }

.text-color-light .blank + .blank .entry-image {    border-color: rgba( 255, 255, 255, 0.08 ) }

.text-color-light .nav-links,
.text-color-light #comments-wrapper,
.text-color-light .comment-holder,
.text-color-light .comment-holder .avatar,
.text-color-light #respond,
.text-color-light .page-latest-posts-template article + article,
.text-color-light .post-list article + article,
.text-color-light .comment-navigation .comment-nav-links {    border-color: rgba( 255, 255, 255, 0.1 ) }

.text-color-light .comment-author a,
.text-color-light .comment-date a,
.text-color-light .comment-reply-link {
    border-color: #FFF;
    color: #FFF;
}

.text-color-light .comment-author a:hover,
.text-color-light .comment-date a:hover,
.text-color-light .comment-reply-link:hover {    color: #FFF }

.text-color-light .nav-links a,
.text-color-light .comment-nav-links a,
.text-color-light .pagination span,
.text-color-light .pagination a,
.text-color-light .pagination a:hover,
.text-color-light .page-links span,
.text-color-light .page-links a span:hover,
.text-color-light .mobile-pagination a,
.text-color-light .mobile-pagination a:hover {    color: #999 }

.text-color-light .post-meta a {
    border-color: #999;
    color: #999;
}

.text-color-light .post-meta a:hover {    color: #999 }

.text-color-light .comment-author {    color: #D6D6D6 }

.text-color-light .post-header span[class*="funky-icon-"] {    color: rgba( 255, 255, 255, 0.1 ) }

.text-color-light th {    background: rgba( 255, 255, 255, 0.05) }

.text-color-light td {    background: rgba( 255, 255, 255, 0.1 ) }

.text-color-light .portfolio-ajax-wrapper.loading {    background: url(images/loader-bg-dark.gif) center center no-repeat }

.text-color-light.page-latest-posts-template article:hover {    background: rgba( 255,255,255,0.05 ) }

/* ----- FORMS / WIDGETS ----- */

.text-color-light input[type="text"],
.text-color-light input[type="email"],
.text-color-light input[type="search"],
.text-color-light input[type="password"],
.text-color-light textarea,
.text-color-light select {
    background-color: rgba( 255, 255, 255, 0.1 );
    border-color: rgba( 0, 0, 0, 0.3 );
    color: #D6D6D6;
    color: rgba( 255, 255, 255, 0.5 );
}

.text-color-light .widget ul > li,
.text-color-light .widget li > ul > li,
.text-color-light .widget li > ul > li:first-child,
.text-color-light .entry-meta .portfolio-tag,
.text-color-dark .text-color-light .entry-meta .portfolio-tag {    border-color: rgba( 255, 255, 255, 0.08 ) }

.text-color-light .widget ul a,
.text-color-light .entry-meta a,
.text-color-dark .text-color-light .entry-meta a {    color: #FFF }

.text-color-light .widget ul a:hover,
.text-color-light .entry-meta a:hover,
.text-color-dark .text-color-light .entry-meta a:hover {
    color: #FFF;
    -ms-filter: 'progid:DXImageTransform.Microsoft.Alpha(Opacity=50)';
    opacity: 0.5;
}

.text-color-light .searchsubmit:hover {    color: #FFF }

.text-color-light .searchsubmit input[type="submit"] {    border-color: rgba( 0, 0, 0, 0.3 ) }

.text-color-light .searchform ::-webkit-input-placeholder {
    color: #D6D6D6;
    color: rgba( 255, 255, 255, 0.5 );
}

.text-color-light .searchform ::-moz-placeholder {
    color: #D6D6D6;
    color: rgba( 255, 255, 255, 0.5 );
}

.text-color-light .searchform ::-moz-placeholder {
    color: #D6D6D6;
    color: rgba( 255, 255, 255, 0.5 );
}

.text-color-light .searchform :-ms-input-placeholder {
    color: #D6D6D6;
    color: rgba( 255, 255, 255, 0.5 );
}

/* ----- SHORTCODES ------ */

.text-color-light pre{    background: rgba( 255, 255, 255, 0.1 ) }

.text-color-light .funky-toggle-button,
.text-color-light .funky-toggle-content,
.text-color-light .hr,
.text-color-light hr {    border-color: rgba( 255, 255, 255, 0.1 ) }

.text-color-light .wrapper .top a,
.text-color-light .wrapper .top a:visited,
.text-color-light .wrapper .top a:hover,
.text-color-light .wrapper .top a:visited:hover {    color: #333 }

.text-color-light .funky-pages-image,
.text-color-light .funky-portfolio-image {    background: rgba( 255, 255, 255, 0.1 ) }

.text-color-light .funky-box {
	background: #222;
	color: #EEE;
}


/* Dark */

.text-color-dark,
.text-color-light .text-color-dark,
.text-color-dark blockquote p,
.text-color-light.text-color-dark blockquote p {    color: #858585 }

.text-color-dark .post-title,
.text-color-dark h1,
.text-color-dark h2,
.text-color-dark h3,
.text-color-dark h5,
.text-color-dark h6,
.text-color-light .text-color-dark .post-title,
.text-color-light .text-color-dark h1,
.text-color-light .text-color-dark h2,
.text-color-light .text-color-dark h3,
.text-color-light .text-color-dark h5,
.text-color-light .text-color-dark h6,
.text-color-light .text-color-dark blockquote p,
.text-color-dark .widget-title,
.text-color-dark label,
.text-color-dark .funky-dropcap:first-letter,
.text-color-dark .funky-toggle-title {    color: #3A3A3A }

.text-color-dark .post-subtitle:before,
.text-color-light .text-color-dark .post-subtitle:before {    background: #3A3A3A }

.text-color-dark h4,
.text-color-dark h4 a,
.text-color-dark .post-subtitle,
.text-color-light .text-color-dark h4,
.text-color-light .text-color-dark h4 a,
.text-color-light .text-color-dark .post-subtitle,
.text-color-dark .entry-meta time,
.text-color-light .text-color-dark .entry-meta time,
.text-color-dark cite {
    color: #999;
    color: rgba( 0, 0, 0, 0.75 );
}

.text-color-dark h1 a,
.text-color-dark h2 a,
.text-color-dark h3 a,
.text-color-dark h4 a,
.text-color-dark h5 a,
.text-color-dark h6 a,
.text-color-light .text-color-dark h1 a,
.text-color-light .text-color-dark h2 a,
.text-color-light .text-color-dark h3 a,
.text-color-light .text-color-dark h4 a,
.text-color-light .text-color-dark h5 a,
.text-color-light .text-color-dark h6 a {    color: #3A3A3A }

.text-color-dark code,
.text-color-light .text-color-dark code,
.text-color-dark kbd,
.text-color-light .text-color-dark kbd,
.text-color-dark pre,
.text-color-light .text-color-dark pre,
.text-color-dark samp,
.text-color-light .text-color-dark samp {	color: #000 }

body.text-color-dark .header-bg {
    border-color: #999;
    border-color: rgba( 0, 0, 0, 0.05 );
}

.text-color-dark .portfolio-ajax-wrapper.loading {    background: url(images/loader-bg-dark.gif) center center no-repeat }

section.text-color-dark .hero-scroll-link span,
.text-color-dark .portfolio-ajax-close span,
.text-color-light .text-color-dark .portfolio-ajax-close span,
.entry-header.text-color-dark .portfolio-ajax-close span,
.entry-body.text-color-dark .portfolio-ajax-close span {
    border-color: #3A3A3A;
    color: #3A3A3A;
}

body.text-color-dark .filter li a {
	color: #999;
    color: rgba( 0, 0, 0, 0.5 );
}

body.text-color-dark .filter li a:hover {
     color: #666;
    color: rgba( 0, 0, 0, 0.75 );
}

body.text-color-dark .portfolio-grid .entry-excerpt h3,
body.text-color-dark .portfolio-grid .entry-excerpt h4 {
    color: #999;
    color: rgba( 0, 0, 0, 0.5 );
}

.text-color-dark .blank .entry-image {    background-image: url(images/portfolio-grid-blank-light-text.png) }

.text-color-dark .blank + .blank .entry-image {
    border-color: #E6E6E6;
    border-color: rgba( 0, 0, 0, 0.08 );
}

.text-color-dark .nav-links,
.text-color-dark #comments-wrapper,
.text-color-dark .comment-holder,
.text-color-dark .comment-holder .avatar,
.text-color-dark #respond,
.text-color-dark .page-latest-posts-template article + article,
.text-color-dark .post-list article + article,
.text-color-dark .comment-navigation .comment-nav-links {
    border-color: #DDD;
    border-color: rgba( 0, 0, 0, 0.1 );
}

.text-color-dark .comment-author a,
.text-color-dark .comment-date a,
.text-color-dark .comment-reply-link {
    border-color: #3A3A3A;
    color: #3A3A3A;
}

.text-color-dark .comment-author a:hover,
.text-color-dark .comment-date a:hover,
.text-color-dark .comment-reply-link:hover {    color: #3A3A3A }

.text-color-dark .nav-links a,
.text-color-dark .comment-nav-links a,
.text-color-dark .pagination span,
.text-color-dark .pagination a,
.text-color-dark .pagination a:hover,
.text-color-dark .page-links span,
.text-color-dark .page-links a span:hover,
.text-color-dark .mobile-pagination a,
.text-color-dark .mobile-pagination a:hover {    color: #3A3A3A }

.text-color-dark .post-meta a,
.text-color-light .text-color-dark .post-meta a {
    border-color: #3A3A3A;
    color: #3A3A3A;
}

.text-color-dark .post-meta a:hover,
.text-color-light .post-meta a:hover {    color: #3A3A3A }

.text-color-dark .comment-author {    color: #505050 }

.text-color-dark .post-header span[class*="funky-icon-"] {
    color: #999;
    color: rgba( 0, 0, 0, 0.1 );
}

.text-color-dark th {    background: rgba( 0, 0, 0, 0.1 ) }

.text-color-dark td {    background: rgba( 0, 0, 0, 0.05 ) }

.text-color-dark .portfolio-ajax-wrapper.loading {    background: url(images/loader-bg-light.gif) center center no-repeat }

.text-color-dark.page-latest-posts-template article:hover {    background: rgba( 0, 0, 0, 0.05 ) }

/* ----- FORMS / WIDGETS ----- */

.text-color-dark input[type="text"],
.text-color-dark input[type="email"],
.text-color-dark input[type="search"],
.text-color-dark input[type="password"],
.text-color-dark textarea,
.text-color-dark select {
    background-color: rgba( 0, 0, 0, 0.02 );
    border-color: #999;
    border-color: rgba( 0, 0, 0, 0.05 );
    color: #858585;
}

.text-color-dark .widget ul > li,
.text-color-dark .widget li > ul > li,
.text-color-dark .widget li > ul > li:first-child,
.text-color-dark .entry-meta .portfolio-tag,
.text-color-light .text-color-dark .entry-meta .portfolio-tag {
    border-color: #999;
    border-color: rgba( 0, 0, 0, 0.08 );
}

.text-color-dark .widget ul a,
.text-color-dark .entry-meta a {    color: #000 }

.text-color-dark .widget ul a:hover,
.text-color-dark .entry-meta a:hover {
    color: #000;
    -ms-filter: 'progid:DXImageTransform.Microsoft.Alpha(Opacity=50)';
    opacity: 0.5;
}

.text-color-dark .searchsubmit:hover {    color: #000 }

.text-color-dark .searchsubmit input[type="submit"] {
    border-color: #999;
    border-color: rgba(0, 0, 0, 0.1);
    color: #3A3A3A;
}

.text-color-dark .searchform ::-webkit-input-placeholder {
    color: #858585;
    color: rgba( 0, 0, 0, 0.5 );
}

.text-color-dark .searchform ::-moz-placeholder {
    color: #858585;
    color: rgba( 0, 0, 0, 0.5 );
}

.text-color-dark .searchform ::-moz-placeholder {
    color: #858585;
    color: rgba( 0, 0, 0, 0.5 );
}

.text-color-dark .searchform :-ms-input-placeholder {
    color: #858585;
    color: rgba( 0, 0, 0, 0.5 );
}

/* ----- SHORTCODES ------ */

.text-color-dark pre {    background: rgba( 0, 0, 0, 0.05 ) }

.text-color-dark .funky-toggle-button,
.text-color-dark .funky-toggle-content,
.text-color-dark .hr,
.text-color-dark hr {    border-color: rgba( 0, 0, 0, 0.1 ) }

.text-color-dark .funky-pages-image,
.text-color-dark .funky-portfolio-image {    background: rgba( 0, 0, 0, 0.1 ) }

.text-color-dark .funky-box {
	background: #FFF;
	color: #858585;
}

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Image replacement
 */

.ir {
    background-color: transparent;
    border: 0;
    overflow: hidden;
    /* IE 6/7 fallback */
    *text-indent: -9999px;
}

.ir:before {
    content: "";
    display: block;
    width: 0;
    height: 150%;
}

/*
 * Hide from both screenreaders and browsers: h5bp.com/u
 */

.hidden {
    display: none !important;
    visibility: hidden;
}

/*
 * Hide only visually, but have it available for screenreaders: h5bp.com/v
 */

.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: h5bp.com/p
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

/*
 * Hide visually and from screenreaders, 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 }

/*
 * For IE 6/7 only
 * Include this rule to trigger hasLayout and contain floats.
 */

.clearfix {    *zoom: 1 }

/* ==========================================================================
   Print styles.
   ========================================================================== */

@media print { 
	* {
	    background: transparent !important;
	    color: #000 !important;
	    /* Black prints faster: h5bp.com/s */
	    box-shadow: none !important;
	    text-shadow: none !important;
	}

	a {    text-decoration: underline }

	a[href]:after {    content: " (" attr(href) ")" }

	abbr[title]:after {    content: " (" attr(title) ")" }

	/*
	 * Don't show links for images, or javascript/internal links
	 */

	.ir a:after,
	a[href^="javascript:"]:after,
	a[href^="#"]:after {    content: "" }

	pre,
	blockquote {
	    border: 1px solid #999;
	    page-break-inside: avoid;
	}

	thead {
	    display: table-header-group;
	    /* h5bp.com/t */
	}

	tr,
	img {    page-break-inside: avoid }

	img {    max-width: 100% !important }

	p,
	h2,
	h3 {
	    orphans: 3;
	    widows: 3;
	}

	h2,
	h3 {    page-break-after: avoid }
}