/*
Theme Name: Andy & Szerdi custom theme
Theme URI: http://www.andystent.com/
Description: A custom responsive Wordpress theme developed for Andy & Szerdi Photography by Andy :)
Author: Andy Stent
Author URI: http://www.andystent.com/
*/

html {
	height: 100%;
	}

body{
	margin:0;
	font-family: 'Raleway', sans-serif;
	font-size: 16px;
	font-weight: 300;
	line-height: 30px;
	color:#555;
	height: 100%;
}

h1{
	color:#333;
	font-family: 'Droid Serif', serif;
	font-size:38px;	
	font-weight: 400;
	line-height: 3rem;
}

h2{
	color:#333;
	font-family: 'Droid Serif', serif;
	font-size:15px;	
	font-weight: 400;
}

h3{
	color:#ffffff;
	font-family: 'Droid Serif', serif;
	font-size:15px;	
	font-weight: 400;
}


form h3{
	color:#333;
	font-size:15px;	
	font-weight: 400;
}

h4{
	color:#333;
	font-family: 'Droid Serif', serif;
	font-size:15px;	
	font-weight: 400;
	margin: 30px 0 10px;
}

h5{
	font-family: 'Droid Serif', serif;
	font-size: 30px;
	text-align: center;
	font-weight: 400;
	color: #333;
	line-height: 1.4em;
}

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

a:hover { 
	color:#000;
	text-decoration:none;
	cursor: pointer;
}


p a{
	font-weight: bold;	
	text-decoration:none;
}


p a:hover{
	color:#000;
	text-decoration:none;
	display: inline-block;

	-webkit-transform:scale(1.05,1.05); /* Safari and Chrome */
    -moz-transform:scale(1.05,1.05); /* Firefox */
    -ms-transform:scale(1.05,1.05); /* IE 9 */
    -o-transform:scale(1.05,1.05); /* Opera */
    transform:scale(1.05,1.05); /* W3C */

  	transition: all 0.5s ease-in-out;
	-webkit-transition: all 0.5s ease-in-out;
}

a img{
	border:none;	
}

#clear, .clear {
	clear:both;	
}

p {
	display: block;
	padding: 10px 0;
	}

small {
	font-size: smaller;
	line-height: 1.2em;
}
	
strong, b {
	font-family: 'Droid Serif', serif;
	font-weight: 700;
	}	

hr {
	border: 0;
	border-top: 1px solid rgba(0, 0, 0, 0.1);
    	border-bottom: 1px solid rgba(255, 255, 255, 0.3);
	margin-top: 30px !important;
	margin-bottom: 30px !important;
	}	

textarea:focus, input:focus{
    outline: none;
}

*:focus {
    outline: none;
}



#header-top-bar {
	display: none;
	background: #333;
	color: #eee;
	font-size: 0.8em;
	text-align: center;
	padding: 5px 2%;
	position: relative;
	z-index: 99999;
}	


#header-fullwidth {
	width: 98%;
	padding: 0 2% 0 0;
	background: url(images/header-bg-transparent-black.png) !important;
	border-bottom: 1px solid #fff;
	z-index: 999999;
	top: 0 !important;
	position: relative;
}


.home #header-fullwidth, .page-template-page-uk-eu #header-fullwidth, .page-template-flexi-page #header-fullwidth, .category #header-fullwidth, .single #header-fullwidth, .page-id-35842 #header-fullwidth, .page-id-11 #header-fullwidth, .page-id-2 #header-fullwidth {
	position: absolute;
	}


/*

.page-id-35842 #header-fullwidth a, .page-id-35842 #header-fullwidth a:visited, .page-id-11 #header-fullwidth a, .page-id-11 #header-fullwidth a:visited, .page-id-2 #header-fullwidth a, .page-id-2 #header-fullwidth a:hover {
	color: #555 !important;
}

.page-id-35842 #header-fullwidth a:hover, .page-id-11 #header-fullwidth a:hover, .page-id-2 #header-fullwidth a:hover {
	color: #333;
}*/

#header-wrap {
	width: 100%;
	margin: auto;
    font-size: 13px;
    color: #fff;
}

#header-wrap a, #header-wrap a:visited {
	color: #fff;
}	

	
#logo {
	float: left;
	background: #fff;
	padding: 10px;
	line-height: 0;
	}

#logo img {
	width: 120px !important;
	max-width: 100%;
	height: auto;
	}

.home #logo img {
	width: 120px !important;
	}

#full-menu {
	float: right;
	margin-top: 70px;
}	

#menu-left {
	float: left;
	width: 40%;
	text-align: right;
	margin-top: 75px;
}	

#menu-left ul, #full-menu ul {
	padding: 0;
	margin: 0;
	list-style: none;
}

#menu-left ul li, #full-menu ul li {
	padding: 0 30px;
	display: inline-block;
}

#menu-right {
	float: left;
	width: 40%;
	text-align: left;
	margin-top: 75px;
}

#menu-right ul {
	padding: 0;
	margin: 0;
	list-style: none;
}

#menu-right ul li {
	padding: 0 30px;
	display: inline-block;
}
	
#menu-left ul li a:hover, #menu-right ul li a:hover, #full-menu ul li a:hover {
	color:#fff;
	text-decoration:none;
	display: inline-block;

	-webkit-transform:scale(1.05,1.05); /* Safari and Chrome */
    -moz-transform:scale(1.05,1.05); /* Firefox */
    -ms-transform:scale(1.05,1.05); /* IE 9 */
    -o-transform:scale(1.05,1.05); /* Opera */
    transform:scale(1.05,1.05); /* W3C */

  	transition: all 0.3s ease-in-out;
	-webkit-transition: all 0.3s ease-in-out;
}

	
/*responsive menu*/
#responsivemenu{
	display:none;
	clear:both;
	position:relative;
	z-index:500;
	font-size:16px;
	color:#666;
	background: #eee;
}

.menubutton{
	color:#666;
	font-weight:bold;
	cursor:pointer;
	width: 90%;
	padding: 2% 5%;
	position:relative;
	z-index:5;
}

.menubutton img.menu-icon {
	padding-top:10px;
	max-height: 22px;
    height: auto;
    float: right;
}

.menubutton img.menu-logo {
	max-height: 40px;
    width: auto;
    float: left;
}

#hiddenmenu{
	display:none;
	position:relative;
	z-index:200;
	margin-top:20px;
}

#hiddenmenu ul{
	margin:0;
	padding:0;
}

#hiddenmenu ul li{
	padding: 0 6% 2%;
}

#hiddenmenu ul li a{
	color:#666;
}

#hiddenmenu ul li ul.sub-menu{
}

#hiddenmenu ul li ul.sub-menu li
{
	padding-left:20px !important;
	font-size:12px !important;
	border:0 !important;
	background-image:none !important;
	margin-bottom:0 !important;
	padding-bottom:0;
}



/*sidebar*/		
	
.sidebar-popout-button {
	position: fixed;
	width: 50px;
	height: 15px;
	right: 0;
	top: 14px;
	padding: 0 20px 20px;
	cursor: pointer;
	z-index: 999999;
	background: url(images/sidebar-button.png) no-repeat top center;
	}
	
.sidebar-wrap {
	position: absolute;
	height: 100vh;
	top: 35px;
	width: 260px;
	right: -320px;
	background: url(images/header-transparent-bg.png);
	padding: 0 30px 30px;
	color: #555555;
	z-index: 999999;
	font-size: 0.9em;
	cursor: default;
	overflow: auto;
	border-left: 1px solid #eeeeee;
	}
	
.sidebar-popout-button:hover > .sidebar-wrap {
	display: block;
	right: 0;
    transition: right 0.3s ease-in-out;
    -moz-transition: right 0.3s ease-in-out;
    -webkit-transition: right 0.3s ease-in-out;
    -o-transition: right 0.3s ease-in-out;
		}
		

.sidebar-wrap .menu-main-navigation-container {
	float: none;
	}		
		
.sidebar-wrap .menu-main-navigation-container ul li {
	padding: 0;
	display: block;
	margin-bottom: 10px;
	}	

.sidebar-wrap ul {		
	padding: 0;
	}	
		
.sidebar-wrap li {		
	color: #555555;
	list-style: none;
	margin-bottom: 10px;
	}
	
.sidebar-wrap li:hover {		
	color: #000000;
	}
	

.sidebar-wrap .screen-reader-text {
	display: none;
	}
	
.sidebar-wrap input#s {
	font-family: 'Droid Serif', serif;
	font-size: 13px;
	color:#999999;
	padding: 5px;
	margin-top: 30px;
	width: 160px;
	}	
	
.sidebar-wrap input#searchsubmit {
	background: url(images/search.png) no-repeat;
	height: 27px;
	border: none;
	cursor: pointer;
	}	
	
.search-terms {
	font-weight: bold;
	}
	
h2.searchresults {
	margin-left: 1%;
	}
		

		
.banner {	
	position: relative;
	z-index: 1;
	top: 0;
	/*margin-top: -40px;*/
	width: 100%;
	height: 100%;
	overflow: hidden;
	}

/* Style the video: 100% width and height to cover the entire window */
.video-banner {
  position: absolute;
  right: 0;
  bottom: 0;
  min-width: 100%;
  min-height: 100%;
}

@media screen and (max-width: 768px) {
	video.video-banner {
		display: none;
	}
}
	
.banner .flex-viewport {
	width: 100%;
	height: 75%;
	}	
	
.banner ul {
	height: 100%;
	padding: 0;
    margin: 0;
	}		
	
.banner li {	
	list-style: none;
	height: 100%;
	background: no-repeat center center fixed;
	-webkit-background-size: cover;
	-moz-background-size: cover;
	-o-background-size: cover;
	background-size:cover;
	
	-webkit-transition: opacity 1s ease; 
	-moz-transition: opacity 1s ease;
	 transition: opacity 1s ease; 
	}
	
ul.flex-direction-nav {
	height: 20px;
	width: 98%;
	margin: 0 1% !important;
    position: absolute;
    z-index: 99999;
    top: 49%;
}	

li.flex-nav-prev {
	float: left;
}
	
li.flex-nav-next {
	float: right;
}

ul.flex-direction-nav li a {
	color: #fff;
	padding: 10px;
	font-size: 30px;
	display:inline-block;
    -webkit-transform:scale(1,2); /* Safari and Chrome */
    -moz-transform:scale(1,2); /* Firefox */
    -ms-transform:scale(1,2); /* IE 9 */
    -o-transform:scale(1,2); /* Opera */
    transform:scale(1,2); /* W3C */
	text-shadow: 1px 1px 1px #000;
	opacity: 0.2;
	-webkit-transition: opacity 0.3s ease; 
	-moz-transition: opacity 0.3s ease;
	 transition: opacity 0.3s ease; 
}

ul.flex-direction-nav li a:hover {
	opacity: 0.5;
}

.single .banner, .page .banner, .category .banner {	
	background: no-repeat center center fixed;
	-webkit-background-size: cover;
	-moz-background-size: cover;
	-o-background-size: cover;
	background-size:cover;
	}	
	

.logo-signature {
	width: 160px;
    max-width: 100%;
    margin: auto;
}

.logo-signature img {
	width: 100%;
    height: auto;
}

	
#featured-excerpt {
	position: absolute;
	width: 600px;
	left: 50%;
	top: 45%;
	margin-left: -300px;
	text-align: center;
	opacity: 0;
	z-index: 3;
	}
	
.home #featured-excerpt, .page-template-page-uk-eu #featured-excerpt {
	top: 35%;
	}		
	
#featured-excerpt h1, #travel-featured-excerpt h1 {
	margin-bottom: 10px;
	line-height: 1.2em;
	}	
	
#featured-excerpt p, #travel-featured-excerpt p {
	margin-top: 0;
	font-size: 20px;
	}	
	
#featured-excerpt .white, .white p, .white h1 {
	color: #fff;
	text-shadow: 1px 1px 1px #000;
	}

#featured-excerpt .grey, .grey p, .grey h1 {
	color: #555;
	text-shadow: 2px 2px 3px #fff;
	}

#featured-excerpt .black, .black p, .black h1 {
	color: #000;
	text-shadow: 2px 2px 3px #fff;
	}	
	
button {
	padding: 8px 35px;
	cursor: pointer;
	background: transparent;
	font-family: 'Droid Serif', serif;
	font-size: 20px;
	}	
	
.white button {
	color: #fff;
	border: 1px solid #fff;
	text-shadow: 1px 1px 1px #000;
	}

.grey button {
	color: #333;
	border: 1px solid #333;
	text-shadow: 2px 2px 3px #fff;
	}

.black button {
	color: #000;
	border: 1px solid #000;
	text-shadow: 2px 2px 3px #fff;
	}

.scroll-down {
	position: absolute;
	margin-top: -60px;
	left: 50%;
	margin-left: -55px;
	width: 110px;
	z-index: 999999;
	text-align: center;
	color: #fff;
	opacity: 0;
	}	
	
.scroll-down img {
	margin-top: 10px;
	}	

#trigger-banner, #trigger-travel-banner {
	position: absolute;
	top: 60%;
	}	
	

.home #content-fullwidth, .page-template-page-uk-eu #content-fullwidth, .category #content-fullwidth, .page-template-flexi-page #content-fullwidth, .page-template-flexi-page #content-fullwidth-no-margin-top {
	width: 100%;
	/*max-width: 1920px;*/
	margin: auto;
	padding: 6% 10%;
    box-sizing: border-box;
    overflow: auto;
	}		
	
#content-fullwidth {
	width: 100%;
	/*margin: 80px auto;*/
	padding: 6% 10%;
	box-sizing: border-box;
	overflow: auto;
	}	
	
#content-fullwidth-no-margin-top, .full-width-panel {
	width: 100%;
	margin: 40px auto;
	}	

	
#contentwrap, .wrapper {
	width: 1000px;
	max-width: 90%;
	margin: 80px auto;
	text-align: justify;
	overflow: auto;
	}

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

.dark-background-panel {
	background-color: #333;
}

.dark-background-panel h5, .dark-background-panel p {
	color: #fff;
}




.newsletter-signup {
	overflow: auto;
	margin: 0 !important;
}

.no-margin-top {
	margin-top: 0 !important;
}

.page-id-52524 #contentwrap {
	width: 720px;
}	

#contentwrap a, #contentwrap-wide a {
	color: #333;
	font-weight: bold;
}

#contentwrap a:hover, #contentwrap-wide a:hover {
	
}		
	
#contentwrap img {
	max-width:100%;
	height: auto;
	}	

#contentwrap.centered {
	text-align: center;
}
	
img.size-medium	{
	width: auto !important;
	max-width: 300px;
	max-height: 300px;
	}
	
#contentwrap-wide {
	width: 900px;
	max-width: 90%;
	margin: auto;
	padding: 3% 0 5%;
	clear: both;
	margin-top: 5%;
	overflow: auto;
	text-align: justify;
	}		

.home #contentwrap-wide, .page-template-page-uk-eu #contentwrap-wide {
	width: 1200px;
	margin-top: 0 !important;
}

.home figure.wp-block-image {
	margin-left: 0;
}

@media screen and (max-width: 768px) {
	.home figure.wp-block-image {
		margin-left: auto;
		margin: auto;
	}
}

	
	
.category-block {
	position: relative;
	float: left;
	width: 31.3%;
	height: auto;
	line-height: 0;
	overflow: hidden;
	cursor: pointer;
	max-height: 416px;
	margin: 1%;
	}

.posts-2-across .category-block {
	width: 48%;
	max-height: 640px;
}

.category-block h3 {
	line-height: 20px;
}	

.category-block p {
	padding: 0;
}


.category-img {
	position: relative;
}

	
.category-block img {
	width: 100.1%;
	height: auto;
	transition: all 1s ease-in-out;
	-webkit-transition: all 1s ease-in-out;
	transform: scale3d(1, 1, 1);
	-webkit-transform: scale3d(1, 1, 1);
	}

.category-block:hover > a .category-img img {	
	transition: all 3s ease-in-out;
	-webkit-transition: all 3s ease-in-out;
	transform: scale3d(1.1, 1.1, 1);
	-webkit-transform: scale3d(1.1, 1.1, 1);     
}

.category-overlay {
	 /* FF3.6-15 */
background: -webkit-linear-gradient(rgba(0,0,0,0) 0%, rgba(0,0,0,1) 100%);
background: -o-linear-gradient(rgba(0,0,0,0) 0%, rgba(0,0,0,1) 100%);
background: linear-gradient(rgba(0,0,0,0) 0%, rgba(0,0,0,1) 100%); /* Chrome10-25,Safari5.1-6 */ /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00000000', endColorstr='#000000',GradientType=0 ); /* IE6-9 */

    height: 100%;
    width: 100%;
	position: absolute;
    top: 0;
    left: 0;
	opacity: 0;
	transition: all 1s ease-in-out;
	-webkit-transition: all 1s ease-in-out;
	z-index: 9;
}

.category-block:hover > a .category-overlay {
	opacity: 0.3;
}


.category-block-title {	
	width: 100%;
	position: absolute;
	bottom: 5px;
	left: 15px;
	text-align: left;
	color: #fff;
    text-shadow: 1px 1px 1px #000;
	font-weight: lighter;
	z-index: 99;
	}
	
.category-block:nth-child(3n+3) {
	clear:right;
	}


/*Testimonials*/
.testimonials {
	position: relative;
	overflow: hidden;
	height: 60%;
	background: #333;
	width: 100%;
	color: #fff;
}

.testimonials .flex-viewport {
	height: 100%;
}

.testimonials ul {
	padding: 0;
	margin: 0;
}

.testimonials li {
	list-style: none;
}

.testimonials h5 {	
	text-align: left;
	color: #fff;
}

.testimonial-slides {
	height: 100%;
}

.testimonial-slide {
	height: 100%;
}

.testimonial-slide-left {
	float: left;
	width: 50%;
	height: 100%;
	background: no-repeat center center;
	-webkit-background-size: cover;
	-moz-background-size: cover;
	-o-background-size: cover;
	background-size:cover;
}
	
.testimonial-slide-right {
	float: left;
	width: 40%;
	padding: 5%;
}



blockquote {
    position: relative;
    margin: 0;
    padding: 20px 80px;
    text-align: center;
    font-size: 18px;
}
blockquote:before, blockquote:after {
    position: absolute;
    width: 40px;
    height: 40px;
    font-size: 80px;
    line-height: 1;
    opacity: 0.6;
}
blockquote:before {
    top: 0;
    left: 0;
    content: "\201C";
}
blockquote:after {
    bottom: -10px;
    right: 0;
    content: "\201D";
}

blockquote p {
    margin: 0 !important;
}


.quote-names {
	font-weight: bold;
	font-style: italic;
}



/*Masonry Post Layout*/
.masonry {
	width: 95%;
	max-width: 1920px;
    margin-left: 3%;
    margin: auto;
}

.grid-sizer {
	width: 33%;
}

.masonry img {
  	width: 32%;
  	margin-bottom: 1%;
  	float: left;
  	height: auto;
}



/* Post Video Panel */

#video-panel {
	position: relative;
	background: #f7f7f7;
	width: 100%;
	margin: 80px auto;
}

.video-wrapper {
	padding-bottom: 42.55%; /* 2.35:1 */
	/*padding-top: 25px;*/
	height: 0;
	background: #000;
}	

.video-wrapper iframe {
	z-index: 99;
    position: absolute;
	top: 0;
	left: 50%;
	transform: translate(-50%,0);
	width: 100% !important;
	max-width: 1920px;
	height: 100%;
}



	
.large-category-block {
	float: left;
	width: 48%;
	height: auto;
	margin: 1%;
	}
	
.large-category-block .category-excerpt {
	height: 69.5%;
	}	
	
.light-grey-bg {
	padding: 0;
	overflow: auto;
	width: 100%;
    max-width: 1920px;
    margin: auto;
	}	


.light-grey-bg.instagram-wrap {
	overflow: visible;
	max-width: 100%;
	}	

.large-category-block.instagram-wrap {
	float: none;
	width: 100%;
	height: auto;
	margin: 0;
	}






.home .light-grey-bg, .page-template-page-uk-eu .light-grey-bg {

	padding-top: 3%;}	
	
.mid-grey-bg {
	overflow: auto;
    clear: both;
    /*padding: 5% 2%;*/
    max-width: 1880px;
    margin: auto;
	}	

.dark-grey-bg {
	padding: 2%;
	background: #333;
	color: #999;
	font-size: 0.9em;
	overflow: auto;
	clear: both;
	}	

.dark-grey-bg a {	
	color: #f6f6f6;
	}
	
.dark-grey-bg a:hover {	
	color: #ffffff;
	}	
	
.badge {
	max-width: 100px;
	display: inline-block;
	margin: 0 20px 20px 0;
}	

.badge img {
	max-width: 100%;
	height: auto;
	}

#copyright {
	float: left;
	}
	
#social-icons {	
	float: left;
	margin: -10px 40px 0;
	}	
	
#kablooey {
	float: right;
	}	


/*	
ul.instagram-pics	{
	padding: 0;
	margin: 0;
	}
	
ul.instagram-pics li	{
	float: left;
    list-style: none;
    width:  16.5%;
	}	
	
ul.instagram-pics li img	{
	max-width: 95%;
	height: auto;
	}	*/

#commentform label{
	display: block;
	}
	
#commentform input[type=text], #commentform textarea {
	width: 50%;
	}	
	
.form-allowed-tags	{
	display:none;
	}
	
input[type=submit] {
	padding: 10px 30px;
	border: 0;
	cursor: pointer;
	background: #b5b5b5;
	color: #333;
	}
	
input[type=submit]:hover {	
	background: #333;
	color: #f6f6f6;
	}
	
#comments img {
	width: auto !important;
	height: auto !important;
	}
	
.gform_heading {
	/*display: none;*/
	}	
	
.gform_wrapper .gfield_required {
		color: #b5b5b5 !important;
		}
		
.gform_wrapper input[type="text"], .gform_wrapper input[type="url"], .gform_wrapper input[type="email"], .gform_wrapper input[type="tel"], .gform_wrapper input[type="number"], .gform_wrapper input[type="password"], .gform_wrapper textarea	{
	font-size: 15px !important;
	padding: 5px !important;
	color: #b5b5b5 !important;
	width: 100% !important;
	border: 1px solid #dddddd;
	}
	
.gform_confirmation_message_1 {
	font-size: 1.2em;
	color: #000;
	padding-top: 60px !important;
	overflow: auto;
	}
	
.page-id-11 img	{
	width: auto !important;
	}
	

/* Alignment */

.alignleft {
	float: left;
}

.alignright {
	float: right;
}

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

blockquote.alignleft,
figure.wp-caption.alignleft,
img.alignleft {
	margin: 7px 24px 7px 0;
}

.wp-caption.alignleft {
	margin: 7px 14px 7px 0;
}

blockquote.alignright,
figure.wp-caption.alignright,
img.alignright {
	margin: 7px 0 7px 24px;
}

.wp-caption.alignright {
	margin: 7px 0 7px 14px;
}

blockquote.aligncenter,
img.aligncenter,
.wp-caption.aligncenter {
	margin-top: 7px;
	margin-bottom: 7px;
}

.site-content blockquote.alignleft,
.site-content blockquote.alignright {
	border-top: 1px solid rgba(0, 0, 0, 0.1);
	border-bottom: 1px solid rgba(0, 0, 0, 0.1);
	padding-top: 17px;
	width: 50%;
}

.site-content blockquote.alignleft p,
.site-content blockquote.alignright p {
	margin-bottom: 17px;
}

.wp-caption {
	margin-bottom: 24px;
}

.wp-caption img[class*="wp-image-"] {
	display: block;
	margin: 0;
}

.wp-caption {
	color: #767676;
}

.wp-caption-text {
	-webkit-box-sizing: border-box;
	-moz-box-sizing:    border-box;
	box-sizing:         border-box;
	font-size: 12px;
	font-style: italic;
	line-height: 1.5;
	margin: 9px 0;
}

div.wp-caption .wp-caption-text {
	padding-right: 10px;
}

div.wp-caption.alignright img[class*="wp-image-"],
div.wp-caption.alignright .wp-caption-text {
	padding-left: 10px;
	padding-right: 0;
}

.wp-smiley {
	border: 0;
	margin-bottom: 0;
	margin-top: 0;
	padding: 0;
}
	
	
.pibfi_pinterest:hover img {
	opacity: 1 !important;
	}	


/*columns - column widths for categories, galleries, blog feeds, etc.*/
.full.post {
  padding-bottom: 40px;
  margin-bottom: 40px;
  border-bottom: 1px solid #eee;
}
.full.post:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}
.full.gallery {
  margin-bottom: 1%;
}
.half {
  float: left;
}
.half.post {
  width: 46%;
  margin-right: 8%;
  margin-bottom: 40px;
}
.half.post:nth-child(2n+2) {
  margin-right: 0;
}
.half.gallery {
  width: 49.5%;
  margin-right: 1%;
  margin-bottom: 1%;
}
.half.gallery:nth-child(2n+2) {
  margin-right: 0;
}
.third {
  float: left;
}
.third.post {
  width: 28%;
  margin-right: 8%;
  margin-bottom: 40px;
}
.third.post:nth-child(3n+3) {
  margin-right: 0;
}
.third.gallery {
  width: 32.666%;
  margin-right: 1%;
  margin-bottom: 1%;
}
.third.gallery:nth-child(3n+3) {
  margin-right: 0;
}
.quarter {
  float: left;
}
.quarter.post {
  width: 19%;
  margin-right: 8%;
  margin-bottom: 40px;
}
.quarter.post:nth-child(4n+4) {
  margin-right: 0;
}
.quarter.gallery {
  width: 24.25%;
  margin-right: 1%;
  margin-bottom: 1%;
}
.quarter.gallery:nth-child(4n+4) {
  margin-right: 0;
}
.fifth {
  float: left;
}
.fifth.gallery {
  width: 19.2%;
  margin-right: 1%;
  margin-bottom: 1%;
}
.fifth.gallery:nth-child(5n+5) {
  margin-right: 0;
}
.sixth {
  float: left;
}
.sixth.gallery {
  width: 15.833%;
  margin-right: 1%;
  margin-bottom: 1%;
}
.sixth.gallery:nth-child(6n+6) {
  margin-right: 0;
}
.gallery {
  position: relative;
  overflow: hidden;
  line-height: 0;
}
.gallery img {
  width: 100%;
  height: auto;
  transition: all 0.5s ease-in-out;
  -webkit-transition: all 0.5s ease-in-out;
  transform: scale3d(1, 1, 1);
  -webkit-transform: scale3d(1, 1, 1);
}
.gallery:hover > a img {
  transition: all 1.5s ease-in-out;
  -webkit-transition: all 1.5s ease-in-out;
  transform: scale3d(1.1, 1.1, 1);
  -webkit-transform: scale3d(1.1, 1.1, 1);
}
.gallery:hover > a .overlay {
  opacity: 1;
  transition: all 0.5s ease-in-out;
  -webkit-transition: all 0.5s ease-in-out;
}
.overlay {
  position: absolute;
  opacity: 0;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  line-height: 1.6em;
  color: #fff;
  text-align: center;
  font-size: 0.9em;
  transition: all 0.2s ease-in-out;
  -webkit-transition: all 0.2s ease-in-out;
}
.overlay p {
  margin: 0;
  width: 80%;
  height: auto;
  max-height: 80%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
@media only screen and (max-width: 1100px) {
  .quarter {
    float: left;
  }
  .quarter.post {
    width: 28%;
    margin-right: 8%;
    margin-bottom: 40px;
  }
  .quarter.post:nth-child(4n+4) {
    margin-right: 8%;
  }
  .quarter.post:nth-child(3n+3) {
    margin-right: 0;
  }
}
@media only screen and (max-width: 900px) {
  .quarter.gallery,
  .fifth.gallery,
  .sixth.gallery {
    width: 32.666%;
    margin-right: 1%;
    margin-bottom: 1%;
  }
  .quarter.gallery:nth-child(6n+6),
  .fifth.gallery:nth-child(6n+6),
  .sixth.gallery:nth-child(6n+6),
  .quarter.gallery:nth-child(5n+5),
  .fifth.gallery:nth-child(5n+5),
  .sixth.gallery:nth-child(5n+5),
  .quarter.gallery:nth-child(4n+4),
  .fifth.gallery:nth-child(4n+4),
  .sixth.gallery:nth-child(4n+4) {
    margin-right: 1%;
  }
  .quarter.gallery:nth-child(3n+3),
  .fifth.gallery:nth-child(3n+3),
  .sixth.gallery:nth-child(3n+3) {
    margin-right: 0;
  }
}
@media only screen and (max-width: 768px) {
  .third.post,
  .quarter.post {
    width: 46%;
    margin-right: 8%;
    margin-bottom: 40px;
  }
  .third.post:nth-child(3n+3),
  .quarter.post:nth-child(3n+3),
  .third.post:nth-child(4n+4),
  .quarter.post:nth-child(4n+4) {
    margin-right: 8%;
  }
  .third.post:nth-child(2n+2),
  .quarter.post:nth-child(2n+2) {
    margin-right: 0;
  }
}
@media only screen and (max-width: 600px) {
  .half.post,
  .third.post,
  .quarter.post {
    float: none;
    width: 100%;
    margin-right: 0;
  }
  .third.gallery,
  .quarter.gallery,
  .fifth.gallery,
  .sixth.gallery {
    width: 49.5%;
    margin-right: 1%;
    margin-bottom: 1%;
  }
  .third.gallery:nth-child(3n+3),
  .quarter.gallery:nth-child(3n+3),
  .fifth.gallery:nth-child(3n+3),
  .sixth.gallery:nth-child(3n+3) {
    margin-right: 1%;
  }
  .third.gallery:nth-child(2n+2),
  .quarter.gallery:nth-child(2n+2),
  .fifth.gallery:nth-child(2n+2),
  .sixth.gallery:nth-child(2n+2) {
    margin-right: 0;
  }
}
@media only screen and (max-width: 400px) {
  .half.gallery,
  .third.gallery,
  .quarter.gallery,
  .fifth.gallery,
  .sixth.gallery {
    width: 100%;
    margin-right: 0;
    margin-bottom: 1%;
  }
}	