/*
Theme Name: Design Affair
Author: Delxue Studios
Author URI: http://deluxestudios.com.au
Template: Divi
*/

/*
=============================================
Global
=============================================
*/

html {
	position: relative;
	min-height: 100%;
}

body {
	font-family: Arial, sans-serif;
	margin: 0 0 100px;
}

h2 {
	line-height: 1.2em;
}

.visible-md {
	display: none;
}

img.alignright {
	float: none;
}

/*
=============================================
Header
=============================================
*/
#main-header {
	background: -webkit-linear-gradient(to right, rgba(255, 255, 255, 0.1) 0%, #fff 75%), url('http://dsa.deluxestudios.com.au/wp-content/uploads/2016/06/Design-Affair-D1415_035-Website-update-May-2015-160608-v9.png') left top/contain no-repeat;
	background: -o-linear-gradient(to right, rgba(255, 255, 255, 0.1) 0%, #fff 75%), url('http://dsa.deluxestudios.com.au/wp-content/uploads/2016/06/Design-Affair-D1415_035-Website-update-May-2015-160608-v9.png') left top/contain no-repeat;
	background: linear-gradient(to right, rgba(255, 255, 255, 0.1) 0%, #fff 75%), url('http://dsa.deluxestudios.com.au/wp-content/uploads/2016/06/Design-Affair-D1415_035-Website-update-May-2015-160608-v9.png') left top/contain no-repeat;
	border-bottom: 2px solid #683f1b;
}

#main-header .container,
.et_pb_row {
	width: 82%;
}

.title-container {
	display: inline-block;
	position: absolute;
	top: 50%;
	-webkit-transform: translateY(-50%);
	-ms-transform: translateY(-50%);
	-o-transform: translateY(-50%);
	transform: translateY(-50%);
}

#top-menu li a,
.site-title {
	font-size: 22px !important;
}

li.current-menu-item:after {
	background: orange;
	border-radius: 2px 2px 2px 0;
	content: "";
	display: none;
	height: 10px;
	position: absolute;
	right: 1em;
	top: -1em;
	width: 10px;
}

li.current-menu-item:last-child:after {
	right: -1em;
}

.site-title {
	color: #683f1b;
	font-weight: bold;
}

.logo-container {
	left: 45%;
	position: relative;
}

.et-pb-arrow-prev,
.et-pb-arrow-next {
	background-color: #da7c37;
	border-radius: 100%;
	opacity: 1 !important;
	top: 50%;
	width: 30px;
	height: 30px;
}

.et-pb-arrow-prev::before,
.et-pb-arrow-next::before {
	font-size: 0.7em;
	left: -8%;
	top: -8%;
	position: relative;
}

.et-pb-arrow-prev {
	left: 22px;
}

.et-pb-arrow-next {
	right: 22px;
}

.et_pb_slider .et_pb_slide {
	height: calc(100vh - 162px);
}

/*
=============================================
Portfolio
=============================================
*/
.et_pb_gutters3 .et_pb_column_4_4 .et_pb_grid_item {
	width: 32%;
}

.et_pb_gutters3 .et_pb_column_4_4 .et_pb_grid_item {
	margin-right: 2%
}

/* .et_pb_gallery_grid .et_pb_gallery_items[data-per_page="1"]>div {
	height: 250px;
	width: 100%;
} */
.et_pb_gallery_grid .et_pb_gallery_items div:nth-child(3n) {
	margin-right: 0;
}

.et_pb_gallery_item.et_pb_grid_item.et_pb_bg_layout_light:last-child {
	margin-right: 0 !important;
}

.mfp-bottom-bar {
	display: none;
}

/* === Footer === */
#main-footer {
	border-top: 2px solid #683f1b;
	bottom: 0;
	height: 90px;
	left: 0;
	position: fixed;
	right: 0;
	width: 100%;
	z-index: 10;
}

#main-footer .container {
	margin: 0 auto;
	max-width: 100%;
	padding: 0;
	width: 82%;
}

#footer-widgets {
	height: 100px;
	padding: 0;
}

.footer-widget {
	color: grey !important;
	height: 45px;
	margin-bottom: 0 !important;
	position: relative;
}

.footer-widget:nth-child(2) {
	height: 42px;
}

#text-7 {
	position: absolute;
	left: 20%;
}

#text-8 {
	float: right;
}

#text-8 img {
	height: 40px;
}

#footer-bottom {
	display: none;
}

/*
=============================================
MQ
=============================================
*/
@media screen and (max-width:767px) {
	body {
		margin-bottom: 265px;
	}

	#main-header {
		background-size: 105%;
	}

	#top-menu li a,
	.site-title {
		display: none;
	}

	.logo-container {
		position: static;
	}

	.entry-title {
		font-size: 44px !important;
	}

	#portfolio-hero {
		height: 150px;
	}

	.et-pb-arrow-prev,
	.et-pb-arrow-next {
		opacity: 0 !important;
	}

	/* Footer */
	#main-footer {
		background-color: rgba(155, 155, 155, 0.5);
		position: absolute;
		height: auto;
	}

	#main-footer .container {
		margin-top: 1em;
	}

	.footer-widget {
		height: 2em;
		border-top: 1px solid #683f1b;
		padding-top: 1em;
	}

	#footer-widgets .footer-widget:nth-child(n),#footer-widgets .footer-widget .fwidget {
		margin-bottom: 1em !important;
	}

	.footer-widget:first-child {
		border: none;
	}

	#text-7 {
		position: static;
	}

	.widget_text {
		width: 100%;
	}

	.footer-widget,
	.textwidget p {
		text-align: center !important;
	}

	#text-8 {
		float: none;
	}

	.footer-widget {
		height: auto !important;
	}

}

@media (max-width:980px) {
	.footer-widget:nth-child(n) {
		width: 40.25% !important;
	}

}

@media screen and (min-width:768px) and (max-width:980px) {
	.visible-md {
		display: inline;
	}

	.et_pb_gutters3 .et_pb_column_4_4 .et_pb_grid_item {
		width: 31%;
	}

	.et_pb_gutters3 .et_pb_column_4_4 .et_pb_grid_item {
		margin-right: 3.5%
	}

	/* Footer */
	.footer-widget {
		height: auto !important;
		padding: 1em 4em 0 0;
		width: auto !important;
	}

	.footer-widget:nth-child(n) {
		margin: 0 !important;
	}

	.footer-widget:last-child {
		float: right;
		margin: 0 !important;
		padding-right: 0;
		width: auto !important;
	}

	.widget_text {
		font-size: 0.9em;
	}

	#text-7 {
		position: static;
	}

	.textwidget p {
		text-align: left !important;
	}

}

@media screen and (min-width:981px) {
	.half-heading {
		width: 75%;
	}

	/* Header */
	.et_fullwidth_nav #main-header .container {
		padding: 0 5%;
	}

	#top-menu-nav {
		display: none;
	}

	#et_mobile_nav_menu {
		display: block;
	}

	.et_pb_gutters3 .footer-widget {
		margin: 1.5% 5.5% 5.5% 0;
	}

	/* Portfolio */
	.et_pb_column_4_4 .et_pb_grid_item:nth-child(4n), 
	.et_pb_row .et_pb_column_4_4 .et_pb_grid_item:nth-child(4n) {
		margin-right: 2%;
	}
	
	.et_pb_column_4_4 .et_pb_grid_item:nth-child(3n) {
		margin-right: 0 !important;
	}

	.et_pb_column_4_4 .et_pb_grid_item:nth-child(4n+1) {
		clear: none;
	}

	/* Set the slider height */
	.myslider,
	.myslider .et_pb_container {
		height: 550px !important;
	}

	.myslider,
	.myslider .et_pb_slide {
		max-height: 550px;
	}

	.myslider .et_pb_slide_description {
		position: relative;
		top: 15%;
		padding-top: 0 !important;
		padding-bottom: 0 !important;
		height: auto !important;
	}

	/* Footer */
	.widget_text {
		font-size: 0.9em;
	}

}

@media screen and (min-width:1150px) {
	li.current-menu-item:after {
		display: block;
	}

	#top-menu-nav {
		display: block;
	}

	#et_mobile_nav_menu {
		display: none;
	}

	img.alignright {
		float: right;
	}

}

#top-header {
	background-color: #683f1b;
	color: white;
	line-height: 1.5;
	font-size: 1em;
}

h1 {
	color: #683f1b;
}

.select_page {
	display: inherit;
}

.et_pb_fullwidth_header_scroll {
	background-color: white;
}

/* //orange: #da7c39;
//brown: #683f1b; */