/*
Theme Name: Sergei Fridman Photography
Author: Sergei Fridman
Author URI: http://sergeifridman.com
Version: 2.0
*/

@font-face {
	font-family: 'BodoniBT';
	src: url('fonts/bodoni.eot');
	src: url('fonts/bodoni.eot?#iefix') format('embedded-opentype'),
		url('fonts/bodoni.woff') format('woff'),
		url('fonts/bodoni.ttf') format('truetype'),
		url('fonts/bodoni.svg#bodoni_btroman') format('svg');
	font-weight: normal;
	font-style: normal;
}

html{color:#000;}
body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,code,form,fieldset,legend,input,textarea,p,blockquote,th,td{margin:0;padding:0;}
table{border-collapse:collapse;border-spacing:0;}
fieldset,img{border:0;}
address,caption,cite,code,dfn,em,strong,th,var{font-style:normal;font-weight:normal;}
li{list-style:none;}
caption,th{text-align:left;}
h1,h2,h3,h4,h5,h6{font-size:100%;font-weight:normal}
q:before,q:after{content:'';}
abbr,acronym {border:0;font-variant:normal;}
sup {vertical-align:top;}
sub {vertical-align:bottom;}
input,textarea,select{font-family:inherit;font-size:inherit;font-weight:inherit;}
img { vertical-align: top; }
strong { font-weight: bold; }
em { font-style: italic;}
.clear {clear: both;}
* { outline: 0;  outline-color: transparent; outline-style: none; outline-width: 0; }

body {
	background: #fff;
	color: #000;
	font: 13px/20px Arial, sans-serif;
	overflow-y: scroll;
}

a {
	color: #535353;
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

a span {
	cursor: pointer;
}

input, textarea, button {
	font: 16px/20px Arial, sans-serif;
	background: #fff;
	color: #000;
}

img, object, embed, iframe {
	vertical-align: top;
}

#wrap {
	padding: 95px 0 5px;
}

#header {
	background: #fff;
	left: 0;
	padding: 0 0 5px;
	position: fixed;
	top: 0;
	width: 100%;
	z-index: 103;
}

body.admin-bar #header {
	top: 28px;
}

#header .logo {
	background: #fff;
	margin: 0 5px;
	padding: 18px 0 0 45px;
	height: 41px;
}

.menu {
	background: #3b3b3b;
	font-size: 12px;
	height: 36px;
	margin: 0 5px;
	padding: 0 45px 0 0;
	text-align: right;
	white-space: nowrap;
}

.menu ul,
.menu li {
	display: inline;
	margin: 0;
	padding: 0;
}

.menu li {
	position: relative;
}

.menu a {
	color: #fff;
	display: inline-block;
	height: 36px;
	line-height: 36px;
	margin: 0 0 0 20px;
	text-transform: uppercase;
}

.menu .items-parent a {
	background: url(images/menu-arrow.png) no-repeat 100% 15px;
	padding: 0 15px 0 0;
}

.menu ul ul {
	background: #3b3b3b;
	display: none;
	left: 0;
	position: absolute;
	padding: 5px 0;
	text-align: left;
	top: 25px;
	width: 140px;
}

.menu li:hover ul {
	display: block;
}

.menu li li {
	float: none;
	display: block;
	margin: 0;
	padding: 0 0 0 20px;
}

.menu .items-parent li a {
	background: none;
	display: block;
	height: auto;
	min-height: 26px;
	line-height: 26px;
	margin: 0;
	padding: 0;
}

#photos {
	margin: auto;
}

.grid-sizer {
	width: 200px;
}

.item {
	cursor: pointer;
	height: 270px;
	overflow: hidden;
	width: 200px;
}

.item.w2 {
	width: 400px;
}

.item .inner {
	background: no-repeat 50% 50%;
	background-size: cover;
	height: 260px;
	overflow: hidden;
	position: relative;
	margin: 10px 5px 0;
}

.item.w2 .inner {
}

.item img {
	height: auto;
	width: 100%;
}

.item .desc {
	background: rgba(0, 0, 0, .7);
	background: url(images/desc-bg.png) repeat 0 0;
	bottom: 0;
	color: #fff;
	opacity: 0;
	position: absolute;
	-webkit-transition-duration: .5s;
	transition-duration: .5s;
	transition-timing-function: ease-out;
	width: 100%;
}

.item:hover .desc {
	opacity: 1;
}

.item .desc a {
	color: #fff;
}

.item .desc a:hover {
	text-decoration: none;
}

.item .desc h4 {
	border-bottom: 1px solid #fff;
	font-size: 18px;
	font-weight: bold;
	line-height: 22px;
	margin: 0 15px;
	max-width: 520px;
	padding: 25px 0 8px;
}

.item .desc p {
	margin: 0 15px;
	max-width: 520px;
	padding: 10px 0 20px;
}

#overlay {
	background: #fff;
	border-bottom: 5px solid #fff;
	display: none;
	height: 100%;
	left: 5px;
	position: fixed;
	top: 95px;
	width: 100%;
	overflow: hidden;
	z-index: 100;
}

#overlay .browse {
	background: rgba(255, 255, 255, .8) url(images/big-arrows.png) no-repeat 0 0;
	cursor: pointer;
	height: 60px;
	left: 5%;
	margin: -30px 0 0;
	position: absolute;
	top: 50%;
	width: 60px;
	z-index: 100;
	-webkit-transform: scale(.8);
	-ms-transform: scale(.8);
	-o-transform: scale(.8);
	transform: scale(.8);
}

#overlay .browse.next {
	background-position: 0 -70px;
	left: auto;
	right: 5%;
}

body.single #overlay .browse,
body.single #overlay .close {
	display: none !important;
}

.big-image {
	background: url(images/loading.gif) no-repeat 50% 50%;
	height: 100%;
	text-align: center;
}

.big-image img {
	height: 100%;
	display: none;
	width: auto;
}

.image-info {
	left: 0;
	position: absolute;
	top: 0;
	width: 100%;
	z-index: 101;
}

body.admin-bar .image-info {
	top: 28px;
}

.image-info .label {
	background: rgba(255, 255, 255, .8) url(images/image-info-arrow.png) no-repeat 178px 10px;
	cursor: pointer;
	font: 16px/35px 'BodoniBT', serif;
	height: 34px;
	margin: 22px 0 0;
	padding: 0 45px 0 0;
	width: 165px;
	text-align: right;
	text-transform: uppercase;
}

.image-info.expanded .label {
	background-position: 178px -240px;
}

.image-info .content {
	background: rgba(255, 255, 255, .8);
	color: #000;
	display: none;
	line-height: 24px;
	padding: 0;
	width: auto;
}

.image-info .inner {
	width: 900px;
}

.image-info h4 {
	border-bottom: 1px solid #000;
	font-size: 22px;
	font-weight: bold;
	line-height: 26px;
	margin: 0 15px;
	padding: 25px 0 8px;
}

.image-info .content p {
	margin: 0 15px;
	padding: 10px 0 20px;
}

#overlay .close {
	background: rgba(255, 255, 255, .8) url(images/big-close-arrow.png) no-repeat 15px 10px;
	cursor: pointer;
	font: 16px/35px 'BodoniBT', serif;
	height: 34px;
	padding: 0 0 0 38px;
	position: absolute;
	right: 5px;
	top: 22px;
	width: 180px;
	z-index: 102;
	text-transform: uppercase;
}

body.admin-bar #overlay .close {
	top: 56px;
}

#home .section {
	max-width: 1860px;
}

#home .section .inner {
	background: no-repeat 55% 0;
	height: 790px;
	max-width: 1890px;
	margin: 5px;
}

@media only screen and (min-width: 1893px) {
	#home .section,
	#home .section .inner {
		max-width: none;
	}

	#home .section .inner {
		background-size: cover;
	}

	#home .section-about .inner {
		background-position: 0 0;
	}
}

#home .section-about .inner {
	background-attachment: fixed;
	overflow: hidden;
}

#home .section-contact .inner {
	height: 790px;
	margin-bottom: 0;
}

.content {
	color: #fff;
	font: 14px/30px 'Helvetica Neue', 'Helvetica', Arial, sans-serif;
	padding: 0 0 0 5%;
	width: 40%;
}

.content h2 {
	font: 40px/44px 'BodoniBT', serif;
	padding: 145px 0 0;
	text-transform: uppercase;
}

.content p {
	margin: 30px 0 0;
}

.section-contact .content {
	color: #020202;
	font-size: 16px;
	line-height: 20px;
}

.section-contact .content a {
	color: #020202;
}

.contact-form {
	margin: 30px 0 0;
}

.form-item {
	margin: 15px 0;
}

.form-text,
textarea {
	background: #fff;
	border: 0;
	height: 20px;
	resize: none;
	padding: 5px;
	width: 90%;
}

textarea {
	height: 300px;
}

.form-text.error,
textarea.error {
	background: #fff7fc;
}

label.error {
	display: none !important;
}

.form-actions {
	text-align: right;
	width: 90%;
}

.form-submit,
.section-contact .content a.form-submit {
	background: #000;
/*	-moz-border-radius: 10px;
	-o-border-radius: 10px;
	-webkit-border-radius: 10px;
	border-radius: 10px;*/
	color: #fff;
	display: inline-block;
	height: 32px;
	line-height: 31px;
	margin: 0 0 0 0;
	text-transform: lowercase;
	text-align: center;
	width: 100px;
}

#thanks {
	display: none;
}

.mobile,
.collapse-menu {
	display: none;
}

#scroll-up {
	background: rgba(255, 255, 255, .8) url(images/scroll-up-smaller.png) no-repeat 50% 8px;
	bottom: 0;
	cursor: pointer;
	height: 0;
	left: 0;
	overflow: hidden;
	position: fixed;
	width: 100%;
	z-index: 100;
}

#scroll-up.visible {
	height: 42px;
}

@media only screen and (min-width: 769px) and (max-width: 980px) {

}

@media only screen and (min-width: 601px) and (max-width: 768px) {

}

@media only screen and (max-width: 600px) {
	body {
		font: 12px/16px Arial,sans-serif
	}

	#wrap {
		padding: 0 0 5px;
	}

	#header {
		position: relative;
		padding: 0;
	}

	#header .logo {
		height: auto;
		margin: 0;
		padding: 10px 10px 5px;
	}

	#header .logo img {
		width: 90%;
		max-width: 400px;
	}

	.menu {
		background: #383838;
		font-size: 10px;
		height: 35px;
		line-height: 35px;
		margin: 0;
		padding: 0;
		position: relative;
		text-align: left;
		white-space: nowrap;
	}

	.collapse-menu {
		color: #fff;
		display: block;
		padding: 0 0 0 18px;
		text-transform: uppercase;
	}

	.collapse-menu span {
		display: inline-block;
		vertical-align: top;
	}

	.collapse-menu span.label {
		margin: 0 10px 0 0;
	}

	.collapse-menu span.current {
		margin: 0 0 0 10px;
	}

	.collapse-menu span.arrow {
		background: url(images/menu-collapse.png) no-repeat 100% 50%;
		height: 35px;
		-webkit-transition-duration: 0.3s;
		transition-duration: 0.3s;
		width: 7px;
	}

	.menu.expanded .collapse-menu span.arrow {
		-webkit-transform: rotate(90deg);
		-moz-transform: rotate(90deg);
		-ms-transform: rotate(90deg);
		-o-transform: rotate(90deg);
		transform: rotate(90deg);
	}

	.menu ul {
		background: none;
		display: block;
		position: absolute;
		left: 0;
		top: 35px;
		width: 100%;
	}

	.menu li {
		display: none;
		padding: 0 0 0 18px;
	}

	.menu li li {
		padding: 0;
	}

	.menu.expanded li {
		display: block;
	}

	.menu ul ul {
		background: none;
		display: block;
		left: auto;
		padding: 0;
		position: relative;
		top: auto;
		width: auto;
	}

	.menu li li {
		padding: 0;
	}

	.menu a,
	.menu li a,
	.menu .items-parent li a {
		background: #383838;
		border-top: 1px solid #000;
		border-bottom: 1px solid #4d4d4d;
		display: block;
		height: 30px;
		line-height: 30px;
		margin: 0;
		padding: 0 13px;
		width: 104px;
	}

	.menu .items-parent a {
		display: none;
	}

	.menu .items-parent li a {
		display: block;
	}

	.menu .item-last {
		display: block;
		position: absolute;
		right: 0;
		top: -35px;
	}

	.menu .item-last a {
		border: 0;
		height: 35px;
		line-height: 35px;
		padding: 0 15px 0 10px;
		width: auto;
	}

	.item,
	.item.w2 {
		width: 100%;
		height: auto;
	}

	.item .inner {
		height: auto;
		margin-top: 5px
	}

	.item img {
		height: auto;
		width: 100%;
	}

	.item .desc {
		display: none;
	}

	#home .section {
		display: none;
	}

	#home .mobile {
		background: no-repeat 0 0;
		-webkit-background-size: cover;
		background-size: cover;
		display: block;
		height: 420px;
		border: 5px solid #fff;
		border-bottom: 0;
	}

	#home .mobile .content p {
		margin: 0;
	}

	#home .mobile .content {
		color: #fff;
		font: 14px/18px 'Helvetica Neue', 'Helvetica', Arial, sans-serif;
		padding: 60px 0 0 10px;
		width: 70%;
	}

	#home .mobile a {
		color: #fff;
	}

	.mobile .contacts {
		font-size: 20px;
		line-height: 30px;
		padding: 0 10px 10px;
	}

	.mobile .about {
		background: rgba(0, 0, 0, .7);
		border-top: 1px solid rgba(255, 255, 255, .7);
		padding: 10px 12px 12px;
	}

}
