/*
 Theme Name:   madden.gilmour.
 Theme URI:    http://maddengilmour.co.uk
 Description:  madden.gilmour. theme
 Author:       Balazs Huszar
 Author URI:   https://graphite.hu
 Template:     twentyseventeen
 Version:      1.1.1
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  madden-gilmour
*/

/* GENERAL */

* {
	box-sizing: border-box;
	font-family: 'Merriweather', "Gill Sans", "Gill Sans MT", "Myriad Pro", "DejaVu Sans Condensed", Helvetica, Arial, "sans-serif";
	outline: 0 !important;
}

a, a img, button, i, .transition {
	-moz-transition: all .2s ease-in-out !important;
	-webkit-transition: all .2s ease-in-out !important;
	-o-transition: all .2s ease-in-out !important;
	transition: all .2s ease-in-out !important;
}

a:hover img {
	opacity: .7 !important;
}

a {
	font-weight: 600;
    text-decoration: underline;
	-webkit-box-shadow: none !important;
	box-shadow: none !important;
}

p {
	font-size: 16px;
    line-height: 1.7em;
}

h1, h2, .home.blog .entry-title {
    font-size: 34px;
    color: black;
	font-weight: 700;
}

h3 {
	color: black;
	font-weight: 600;
}

h4 {
	font-weight: 500;
}

h1, h2, h3, h4, h5, h6 {
	padding-top: 0;
}

audio, video {
	display: block;
}

.tatsu-section {
	border-style: none;
}

.wrap {
	max-width: 1200px !important;
	width: 100% !important;
	padding-left: 30px !important;
	padding-right: 30px !important;
}

.tatsu-wrap {
    max-width: 1140px;
    width: calc(100% - 60px);
}

.tatsu-row, .tatsu-medium-gutter>.tatsu-row {
	margin: 0;
}

.tatsu-row, .tatsu-column-inner, .tatsu-single-image-inner {
    border: 0;
}

.mfp-container button {
    background: transparent !important;
}

.entry-content a img, .comment-content a img, .widget a img {
	-webkit-box-shadow: none;
	box-shadow: none;
}

/* HEADER */

.custom-header {
	z-index: 1000
}

.site-branding {
	background: white;
    padding: 20px 0 !important;
	position: absolute !important;
	left: 30px !important;
}

.custom-logo-link img {
	display: block;
}

.site-header .menu-scroll-down {
	color: black;
    top: 0;
    padding: 0;
    height: 42px;
    line-height: 42px;
}

.custom-logo-link img, body.home.title-tagline-hidden.has-header-image .custom-logo-link img, body.home.title-tagline-hidden.has-header-video .custom-logo-link img  {
	max-width: 400px;
}

.scroller {
	color: white !important;
    position: absolute;
    left: 50%;
	-webkit-transform: translateX(-50%);
    transform: translateX(-50%);
    bottom: 0px;
    transform-origin: center right;
    height: 80px;
    width: 80px;
    text-align: center;
    line-height: 80px;
    background: black;
	z-index: 2;
}

.scroller svg {
	-webkit-transform: rotateZ(90deg);
	transform: rotateZ(90deg);
}

ul#top-menu {
	display: inline-block;
	float: right;
}

.main-navigation a {
	line-height: 22px;
}

.site-branding {
	display: inline-block !important;
    width: auto !important;
    margin: 0 !important;
}

#site-navigation {
	display: inline-block;
	padding: 10px 0;
	vertical-align: middle;
	text-align: right;
	width: 100%;
}

.navigation-top {
	position: static !important;
	border-color: #ccc;
	border-top: 0px;
}

.navigation-top > .wrap {
	padding: 0;
}

.custom-logo-link {
	height: 30px;
	width: 287px;
	overflow: hidden;
}

.custom-logo-link > img {
	max-height: 100% !important;
	float: right;
}

header#masthead {
	position: absolute;
    z-index: 99;
    width: 100%;
}

header#masthead.fixed {
	position: fixed;
	top: 0;
}

.menu-main-menu-container li:last-child a {
    padding-right: 0 !important;
}

/* RECENT WORKS */

#recent-projects .tatsu-section-overlay {
    background: url(/wp-content/uploads/2019/01/stripe-overlay.png) !important;
	background-attachment: fixed !important;
}

#recent-projects .tatsu-parallax-element-wrap {
	opacity: 0.4;
	/*-webkit-filter: blur(6px);
	filter: blur(6px);*/
}

#recent-projects h2, #recent-projects h3 {
	color: white !important;
	-webkit-text-shadow: 1px 2px 10px rgba(0,0,0,0.5);
	text-shadow: 1px 2px 10px rgba(0,0,0,0.5);
}

.rw-wrapper {
	-webkit-transition: all .5s ease-in-out;
	-moz-transition: all .5s ease-in-out;
	-o-transition: all .5s ease-in-out;
	transition: all .5s ease-in-out;
}

.rw-outer-wrapper {
	overflow: hidden;
}

.rw-item {
    display: inline-block;
	padding: 2px;
}

.rw-item:first-child {
    display: inline-block !important;
}

.rw-image-wrapper {
    width: 50%;
	display: inline-block;
}

.rw-image {
	vertical-align: top;
}

.rw-image-wrapper a:hover img {
	opacity: .7;
}

.rw-content {
	display: inline-block;
    width: 50%;
    padding-left: 30px;
	vertical-align: top;
}

.rw-content p, .rw-content p a {
	color: white;
}

.rw-content h3 {
    max-width: calc(100% - 140px);
}

.rw-meta {
	border-top: 1px solid #555;
	border-bottom: 1px solid #555;
	margin-bottom: 15px;
}

.rw-meta h5 {
	color: #bbb
}

.rw-organisation, .rw-location-date {
    display: inline-block;
	margin: 0;
	padding: 5px 0 !important;
}

.rw-location-date {
	float: right;
}

.rw-navigation-dot {
    display: inline-block;
    height: 15px;
    width: 15px;
    background: #ddd;
	-webkit-border-radius: 50%;
    border-radius: 50%;
    margin: 5px !important;
    vertical-align: top;
	cursor: pointer;
}

.rw-navigation-dot:not(.active):hover {
	-webkit-transform: scale(1.2);
	transform: scale(1.2);
	/*background-color: black;*/
}

.rw-navigation-dot.active {
    background-color: black;
}

.rw-more-link {
	display: none;
    text-align: center;
}

.rw-more-link i {
    position: relative;
    bottom: 2px;
}

.rw-navigation {
    position: absolute;
    top: 0;
	right: -10px;
	background: transparent;
	height: 33px;
	color: #dddddd;
}

.rw-navigation a {
    text-decoration: none !important;
	display: inline-block;
	width: 30px;
	text-align: center;
	vertical-align: top;
}

.rw-navigation a h3 {
    color: #ddd;
}

.rw-navigation a:hover h3 {
    color: black;
}

.rw-navigation p {
	display: inline-block;
	vertical-align: top;
	line-height: 33px;
}  

.rw-navigation a i {
    font-size: 30px;
}

@media only screen and (max-width: 767px) {

	.rw-navigation {
		width: 100%;
		text-align: center;
	}
	
	.rw-image-wrapper {
		width: 100%;
		display: block;
		margin-top: 40px;
	}
	
	.rw-content {
		display: inline-block;
		width: 100%;
		padding-left: 0;
		vertical-align: top;
		margin-top: 10px;
	}
	
	.rw-module .the-brief, .rw-module .the-challenge, .rw-module .the-outcome {
		opacity: 1 !important;
	}
	
	.rw-location-date {
		float: none;
	}
	
	span#stories-that:before {
		display: block;
		width: 100%;
		content: '';
	}
	
	#recent-projects .tatsu-column {
		margin-bottom: 15px;
	}
	
	#recent-projects .tatsu-section-overlay {
		background: none !important;
	}

	#recent-projects .tatsu-parallax-element-wrap {
		opacity: 0 !important;
	}
}


/* FOOTER */

.site-footer {
	margin-top: 0 !important;
	border: 0 !important;
}

.site-info {
	display: block;
	text-align: center;
	width: 100%;
	padding: 0;
	margin: 0;
}

.site-footer .wrap {
    padding-bottom: 15px;
    padding-top: 15px;
}

.site-info p {
    font-size: 12px;
    color: #777;
}


/* RESPONSIVE */

@media only screen and (max-width: 767px) {
	
	h1, h2 {
		font-size:25px;
	}
	
	.wrap {
		padding-right: 15px !important;
		padding-left: 15px !important;
	}
	
	.tatsu-wrap {
		width: calc(100% - 30px);
	}
	
	.tatsu-animate {
		-webkit-animation: none !important;
		animation: none !important;
		visibility: visible !important;
		-webkit-transform: none !important;
		transform: none !important;
	}
	
	.navigation-top .wrap {
		padding-right: 0px !important;
		padding-left: 0px !important;
	}
	
	.custom-logo-link {
		overflow: hidden;
    	max-width: 27px;
	}
	
	.custom-logo-link > img {
		float: none;
	}
	
	#site-navigation {
		padding: 0;
		max-height: 44px;
		overflow: hidden;
		-webkit-transition: all .4s ease-in-out;
		-moz-transition: all .4s ease-in-out;
		-o-transition: all .4s ease-in-out;
		transition: all .4s ease-in-out;
	}
	
	#site-navigation.toggled-on {
		padding: 0;
		max-height: 100vh;
	}
	
	.main-navigation a {
		font-weight: 500;
	}
	
	button.menu-toggle {
		margin: 0;
		float: right;
		padding: 10px 0;
		outline: none !important;
		position: relative;
		right: 15px;
	}
	
	button.menu-toggle span {
		font-size: 16px !important;
		text-transform: lowercase;
	}
	
	.site-branding {
		padding: 10px 0 !important;
		left: 15px !important;
		background: transparent;
	}
	
	.menu-toggle .icon {
		top: -1px !important;
	}
	
	/*.menu-main-menu-container {
		width: 100%;
		position: absolute;
		left: 0;
		top: 51px;
		-webkit-transform: translateY(-100%);
		transform: translateY(-100%);
    	z-index: -1;
		-webkit-transition: all .3s ease-in-out;
		-moz-transition: all .3s ease-in-out;
		-o-transition: all .3s ease-in-out;
		transition: all .3s ease-in-out;
		border-bottom: 1px solid #ccc;
	}
	
	.toggled-on .menu-main-menu-container {;
		-webkit-transform: translateY(0%);
		transform: translateY(0%);
	}*/
	
	.main-navigation.toggled-on {
		border-color: transparent;
	}
	
	ul#top-menu {
		display: block;
		width: 100%;
		text-align: right;
		padding: 0;
		border-bottom: 1px solid #ccc;
	}
	
	.fixed ul#top-menu {
		border-bottom: 0;
	}
	
	ul#top-menu > li {
		padding: 0 15px;
	}

}