/*
Theme Name:     macchiato
Description:    Theme for Mikołaj Długosz page
Author:         MacchiatoCode
Author URI:	    http://macchiatocode.pl/
Template:       twentytwelve
*/

/** GENERAL **/

html {
    position: relative;
    min-height: 100%;
 
}
body {
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    color: #000;
    background-color: #fff;
    margin: 0 0 100px; /* bottom = footer height */
}

.mMainWrapper {
	margin: 0 auto;
	padding-left: 30px;
	padding-right: 30px;	
}

/** HEADER **/

.mHeaderImage {
	position: relative;
	display: block;
	background: url('images/main_logo.svg') no-repeat center;
	height: 91px;
	width: 618px;
	margin-top: 30px;
	margin-bottom: 30px;
	margin-left: auto;
	margin-right: auto;
}

.mHeaderLink {
	position: absolute;
	width: 100%;
	height: 100%;
}

/** MAIN MENU **/

.mNavigation {
	z-index: 1;
	margin-left: auto;
	margin-right: auto;
	padding-top: 0px;
	padding-left: 0px;
	background: #fff;
	width: 900px;
	height: 50px;
}

.mNavigation ul, .mNavigationBottom ul {
	list-style-type: none;
}

.mNavigation ul a, .mNavigationBottom ul a {
	font-size: 22px;
	text-decoration: none;
	color: #000;
}

.mNavigation ul li, .mNavigationBottom ul li {
	float: left;
	padding-right: 50px;
	border-bottom: none;
}

.mNavigation ul li a:hover, .mNavigationBottom ul li a:hover  {
	border-bottom: solid 2px;
}

.mNavigationBottom ul li:last-child {
	padding-right: 0px;
}

.current-menu-item a {
	border-bottom: solid 2px;
}

/** CONTENT SINGLE PAGE **/

.mPostContent {
	padding-top: 70px;
	width: 1000px;
	margin: 0 auto;
}

.mSingleThumbnail {
	display: block;
	margin-left: auto;
	margin-right: auto;
	padding-bottom: 60px;
}

.mSingleThumbnail img {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.mSingleTitle, .mSingleContent {
	padding-left: 150px;
}

.mSingleTitle {
	font-size: 16px;
	font-weight: 700;
	line-height: 22px;
}

.mBack {
	margin-left: 0px;
	float: left;
	font-size: 16px;
	font-weight: 700;
}

.mBack a {
	text-decoration: none;
	color: #000;
	padding-left: 15px;
}

.mBack {
	background-image: url('images/back.jpg');
	background-repeat: no-repeat;
	background-size: 14px;
	background-position: 0 4px;
}

.mSingleContent p {
	font-size: 16px;
	font-weight: 400;
	line-height: 22px;
	padding-right: 120px;
}

.comments-link {
	display: none;
}

.mGallery {
	width: 1000px;
	padding-left: 0px;
	height: auto;
	margin: 0 auto;
	padding-top: 50px;
	padding-bottom: 50px;
}

.mPostGalleryItem {
	display: block;
	padding-left: 150px;
	margin-bottom: 20px;
}
 
.mNavigationBottom {
	z-index: 1;
	padding-top: 50px;
	padding-bottom: 50px;
	padding-left: 160px;
	background: #fff;
	width: 1000px;
	height: 50px;
	margin: 0 auto;
}


@media (max-width:1200px) {
	.mNavigationBottom {height: auto; width: auto; margin-left: -40px; padding-bottom: 70px;}
}
 
@media (max-width:1000px) {
	.mMainWrapper {margin-left: 0px;}
	.mHeaderImage {width: 100%; height: 50px; background: url('images/main_logo.svg') no-repeat; background-size: contain;}
	.mNavigation {height: auto; width: 100%; margin-left: -75px; padding-bottom: 0px;}
	.mNavigation ul li {padding-right: 30px;}
	.mNavigation ul li a {font-size: 12px;}
	.mPostContent {padding-top: 50px; width: 100%; margin: 0 auto;}
	.mSingleThumbnail {padding-bottom: 30px;}
	.mSingleThumbnail img {width: 100%; height: auto;}
	.mSingleContent p {padding-right: 0px;}
	.mSingleTitle, .mSingleContent {padding-left: 0px;}
	.mGallery {width: 100%; margin: 0 auto; padding-top: 30px; padding-bottom: 20px;}
	.mPostGalleryItem {width: 100%; padding-left: 0px;}
	.mPostGalleryItem img {width: 100% !important;}
	.mNavigationBottom {height: auto; width: auto; margin-left: -240px; padding-bottom: 70px;}
	.mNavigationBottom ul li a {font-size: 14px; margin: 0 auto;}	
	.mBack {display: none;}
} 

@media (max-width:600px) {
	.mNavigation {margin-bottom: 20px; margin-top: -10px; margin-left: -75px; padding-bottom: 0px; width: 130%;}
	.mNavigation ul li a {font-size: 10px;}
	.mNavigation ul li {padding-right: 20px;}
	.mNavigationBottom {height: auto; width: auto; margin-left: -240px; padding-bottom: 70px;}
	.mNavigationBottom ul li a {font-size: 12px; margin: 0 auto;}	
	.mNavigationBottom ul li {padding-right: 20px;}
}

@media (max-width:300px) {
	.mNavigation {margin-bottom: 60px; margin-top: -40px; margin-left: -75px; padding-bottom: 0px; padding-right: 0px; width: 150%;}
	.mNavigation ul li a {font-size: 8px;}
	.mNavigation ul li {padding-right: 5px;}
	.mNavigationBottom {height: auto; width: 120%; margin-left: -240px; padding-bottom: 70px; }
	.mNavigationBottom ul li a {font-size: 10px; margin: 0 auto;}	
	.mNavigationBottom ul li {padding-right: 5px;}
}

/** FOOTER **/

.entry-meta, .widget-area, .nav-single {
	display: none;
}

.comment-form, .comment-reply-title, .comments-area {
	display: none;
}

/** ANIMATIONS **/

.manimated {
	-webkit-animation-duration: 0.8s;
	   -moz-animation-duration: 0.8s;
	     -o-animation-duration: 0.8s;
	        animation-duration: 0.8s;
	-webkit-animation-fill-mode: both;
	   -moz-animation-fill-mode: both;
	     -o-animation-fill-mode: both;
	        animation-fill-mode: both;
}

@-webkit-keyframes fadeIn {
	0% {opacity: 0;}	
	100% {opacity: 1;}
}

@-moz-keyframes fadeIn {
	0% {opacity: 0;}	
	100% {opacity: 1;}
}

@-o-keyframes fadeIn {
	0% {opacity: 0;}	
	100% {opacity: 1;}
}

@keyframes fadeIn {
	0% {opacity: 0;}	
	100% {opacity: 1;}
}

.fadeIn {
	-webkit-animation-name: fadeIn;
	-moz-animation-name: fadeIn;
	-o-animation-name: fadeIn;
	animation-name: fadeIn;
}

/*@-webkit-keyframes fadeOut {
	10% { opacity: 1; }
	90% { opacity: 0;}
	 100% {  visibility:hidden;}
}*/

@-webkit-keyframes fadeOut {
	0% {opacity: 1;}
	100% {opacity: 0;}
}

@-moz-keyframes fadeOut {
	0% {opacity: 1;}
	100% {opacity: 0;}
}

@-o-keyframes fadeOut {
	0% {opacity: 1;}
	100% {opacity: 0;}
}

@keyframes fadeOut {
	0% {opacity: 1;}
	100% {opacity: 0;}
}

.fadeOut {
	-webkit-animation-name: fadeOut;
	-moz-animation-name: fadeOut;
	-o-animation-name: fadeOut;
	animation-name: fadeOut;
}

/** CONTENT HOMEPAGE **/

#grid .post-inner {
	position:relative;
	/** margin:0 0 50px 0;**/  /** 2015-02-12 **/
	padding-top: 70px;
}

@media (min-width:800px) {
  /**#grid .post-inner {margin-right:85px}**/ /** 2015-02-12 **/
 /**#grid .post-inner {margin-right:35px}**/
}

@media (min-width:1000px) {
#grid .post,#grid .grid-sizer {width:50%}
#grid .post.size-2, #grid .grid-sizer.size-2 {width:50%}
}

@media (min-width:1200px) {
#grid .post, #grid .grid-sizer {width:33.3%};
#grid .post.size-2, #grid .grid-sizer.size-2 {width:50%}
}

@media (min-width:1600px) {
#grid .post,#grid .grid-sizer {width:25%}
#grid .post.size-2, #grid .grid-sizer.size-2 {width:50%}
}

@media (min-width:2000px) {
#grid .post,#grid .grid-sizer {width:20%}
#grid .post.size-2, #grid .grid-sizer.size-2 {width:40%}
}

@media (min-width:2400px) {
#grid .post,#grid .grid-sizer {width:16%}
#grid .post.size-2, #grid .grid-sizer.size-2 {width:32%}
}

.post-preview {
	position:relative
}

.post-preview .image {
	position: relative;
	margin:0 0 10px 0
}

.click-area { 
	cursor:pointer !important;
	position:relative
}
	
.slogan a, .h2 a, .click-area:hover .post-title .inner {
	/** MS 2015-02-17
	background: -webkit-gradient(linear, left top, left bottom, color-stop(0, rgba(0,0,0,0)), color-stop(84%, rgba(0,0,0,0)), color-stop(85%, #000), color-stop(95%, #000), color-stop(96%, rgba(0,0,0,0)), color-stop(100%, rgba(0,0,0,0)));
	background:-webkit-linear-gradient(top, rgba(0,0,0,0) 0, rgba(0,0,0,0) 84%, #000 85%, #000 95%, rgba(0,0,0,0) 96%, rgba(0,0,0,0) 100%);
	background:-webkit-gradient(linear, left top, left bottom, color-stop(0, rgba(0,0,0,0)), color-stop(84%, rgba(0,0,0,0)), color-stop(85%, #000), color-stop(95%, #000), color-stop(96%, rgba(0,0,0,0)), to(rgba(0,0,0,0)));
	background:-o-linear-gradient(top, rgba(0,0,0,0) 0, rgba(0,0,0,0) 84%, #000 85%, #000 95%, rgba(0,0,0,0) 96%, rgba(0,0,0,0) 100%);
	background:linear-gradient(to bottom, rgba(0,0,0,0) 0, rgba(0,0,0,0) 84%, #000 85%, #000 95%, rgba(0,0,0,0) 96%, rgba(0,0,0,0) 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#00000000', endColorstr='#00000000', GradientType=0);
	**/
	text-shadow:0 -1px #fff,1px 0 #fff,0 1px #fff,-1px 0 #fff;
	border-bottom: solid 2px;
	text-indent:-2px
}

.click-area:hover .image.loaded .overlay,.image.loaded a:hover .overlay,.module-video:hover .image .overlay,.big-play-btn:hover .back {
	-webkit-transition:opacity 0.5s !important;
	-o-transition:opacity 0.5s !important;
	transition:opacity 0.5s !important;
	opacity:0.7 !important;
	-moz-opacity: 0.7 !important;
	filter:alpha(opacity=30) !important 
}

.post-title {
	margin:0 50px 10px 0;
	position:relative
}

/** MS 2015-02-17 
.post-title .inner:hover {
	background: -webkit-gradient(linear, left top, left bottom, color-stop(0, rgba(0,0,0,0)), color-stop(84%, rgba(0,0,0,0)), color-stop(85%, #000), color-stop(95%, #000), color-stop(96%, rgba(0,0,0,0)), color-stop(100%, rgba(0,0,0,0)));
	background: -webkit-linear-gradient(top, rgba(0,0,0,0) 0, rgba(0,0,0,0) 84%, #000 85%, #000 95%, rgba(0,0,0,0) 96%, rgba(0,0,0,0) 100%);
	background: -webkit-gradient(linear, left top, left bottom, color-stop(0, rgba(0,0,0,0)), color-stop(84%, rgba(0,0,0,0)), color-stop(85%, #000), color-stop(95%, #000), color-stop(96%, rgba(0,0,0,0)), to(rgba(0,0,0,0)));
	background: -o-linear-gradient(top, rgba(0,0,0,0) 0, rgba(0,0,0,0) 84%, #000 85%, #000 95%, rgba(0,0,0,0) 96%, rgba(0,0,0,0) 100%);
	background: linear-gradient(to bottom, rgba(0,0,0,0) 0, rgba(0,0,0,0) 84%, #000 85%, #000 95%, rgba(0,0,0,0) 96%, rgba(0,0,0,0) 100%);
	filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#00000000', endColorstr='#00000000', GradientType=0);
	text-shadow:0 -1px #fff,1px 0 #fff,0 1px #fff,-1px 0 #fff;
	text-indent:-2px
}
**/
 
.image img { 
	display:block;
	width:100%;
	height:100%;
	z-index:-1
}

.image .overlay, .big-play-btn .back {
	background:#000;
	position:absolute;
	top:0;
	left:0;
	width:100%;
	height:100%;
	opacity:1;
	z-index:1
} 

.image.loaded .overlay,.no-js .image .overlay,.big-play-btn .back {
	-webkit-transition:opacity .5s;
	-o-transition:opacity .5s;
	transition:opacity .5s;
	opacity:0 
}

.image {
	overflow:hidden
}

.image a { 
	position:absolute;
	overflow:hidden;
	width:100%;
	height:100%;
	display:block 
}
 
.image a .grf {
	display:block;
	position:absolute;
	top:0px;
	right:0px;
	width:120px;
	height:120px;
	background:url(http://mikolajdlugosz.com/wp-content/themes/macchiato/link-corner.png) no-repeat 0 0;z-index:3
}

.image.loaded a:hover .overlay {
	opacity:0.3;
	-moz-opacity:0.3;
	filter:alpha(opacity=30)
}

.image a:hover .grf {
	background:url(http://mikolajdlugosz.com/wp-content/themes/macchiato/link-corner.png) no-repeat 0 -120px
}

#grid .permalink {
	display:block;
	position:absolute;
	top:0;
	left:0;
	width:100%;
	height:100%;
	z-index:3
}

#grid .excerpt {
	padding:1px
} 

p {margin:0 0 2px 0}

.post .module-text,.post .excerpt,.post .module .caption {
	max-width:800px;
	#font-size:1.1em;
	#line-height:1.6em;
	font-weight: 400;
}

/** RANDOM TOP AND RIGHT MARGIN SIZE ON HOMEPAGE **/

.right-1 {
	padding-right: 30px;
}

.right-2 {
	padding-right: 50px;
}

.right-3 {
	padding-right: 70px;
}

.right-4 {
	padding-right: 90px;
}

.left-1 {
	padding-left: 30px;
}

.left-2 {
	padding-left: 50px;
}

.left-3 {
	padding-left: 70px;
}

.left-4 {
	padding-left: 90px;
}

.top-0 {
	margin-top: 0px;
}

.top-1 {
	margin-top: 30px;
}

.top-2 {
	margin-top: 50px;
}

.top-3 {
	margin-top: 70px;
} 

.top-4 {
	margin-top: 90px;
}

@media (max-width:1000px) {
	.left-1, .left-2, .left-3, .left-4, .right-1, .right-2, .right-3, .right-4 {
		padding-left: 0px;
		padding-right: 0px; }
	.top-1, .top-2, .top-3, .top-4 {
		margin-top: 0px; }
}

/** FOOTER **/

.mFooter {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 100px;
}

.mFooter .mIconEmail {
	float: left;
	display: block;
	left: 0px;
	width: 60px;
	height: 22px;
	padding-left: 30px;
	padding-right: 40px;
	margin-top: 50px;
	background-image: url('images/email_icon.svg'); 
	background-repeat: no-repeat;
	background-position: 30px 1.5px;
	background-size: 22px;
} 

.mFooter .mIconEmail a {
	height: 100%;
	width: 100%;
	padding-left: 27px;
	text-decoration: none;
	color: #000;
}

.mFooter .mIconVimeo {
	float: left;
	display: block;
	left: 100px;
	width: 55px;
	height: 22px;
	margin-top: 50px;
	background-image: url('images/vimeo_icon.svg');
	background-repeat: no-repeat;
	background-position: 0px 0px;
	background-size: 20px;
}

.mFooter .mIconVimeo a {
	height: 100%;
	width: 100%;
	padding-left: 24px;
	text-decoration: none;
	color: #000;
}

.mFooter .mIconMamsam {
	display: block;
	float: right;
	padding-right: 80px;
	width: 80px;
	height: 22px;
	margin-top: 50px;
	background-image: url('images/mamsam_icon.svg');
	background-repeat: no-repeat;
	background-position: 5px 1px;
	background-size: 19px;
}

.mFooter .mIconMamsam a {
	height: 100%;
	width: 100%;
	padding-left: 27px;
	text-decoration: none;
	color: #000;
}

@media (max-width:1000px) {
	.mFooter .mIconEmail {padding-right: 10px;}
	.mFooter .mIconVimeo {float: none; margin-left: auto; margin-right: auto;}
	.mFooter .mIconVimeo a {padding-left: 22px; }
	.mFooter .mIconMamsam {float: right; padding-right: 40px; margin-top: -22px;}

	.mHeader {height: 50px;}
	#grid {margin-top: 80px;}

}

@media (max-width:400px) {
	.mFooter .mIconEmail {font-size: 10px; width: 40px; height: 22px; padding-left: 25px; padding-right: 40px; background-position: 30px 0px; background-size: 16px; } 
	.mFooter .mIconEmail a {padding-left: 27px; }
	.mFooter .mIconVimeo {font-size: 10px; float: none; margin-left: auto; margin-right: auto; width: 35px; height: 22px; background-position: 0px -1px; background-size: 16px; }
	.mFooter .mIconVimeo a {padding-left: 20px; }
	.mFooter .mIconMamsam {font-size: 10px; float: right; padding-right: 20px; width: 60px; height: 22px; margin-top: -22px; background-position: 5px 0px; background-size: 14px; }
	.mFooter .mIconMamsam a {padding-left: 22px;}
}

/** ABOUT ME PAGE **/

.mAbout {
	padding-top: 70px;
	width: 800px;
	margin: 0 auto;
}

.mAboutContent {
	padding: 40px;
	text-align: center;
	line-height: 1.5em;
}

.mAboutContent span {
	color: #757575;
}

/** FADE IN ON PAGE LOADING **/

#mStartDim {
	position:fixed;
	top: 0px;
	right: 0px;
	bottom: 0px;
	left: 0px;
	background:#fff;
	z-index:10000;
}

/** FANCYBOX **/

.fancybox-default a.fancybox-close {
   background-image: url('images/mCross.svg');
} 

a.fancybox-nav span {
	width: 41px;
	height: 65px;
}

a.fancybox-prev span {
	background-image: url('images/mArrowLeft.png');
	background-position: 0px 0px;
}

a.fancybox-next span {
	background-image: url('images/mArrowRight.png');
	background-position: 0px 0px;
}

a.fancybox-close {
	right: -46px;
}