#page_caption.single_gallery
{
	margin-bottom: 0;
	border: 0;
}
.overlay_gallery_content .page_tagline
{
	margin-bottom: 20px;
	max-width: 90%;
}
.gallery_img_slides
{
	z-index: 2;
	visibility:hidden;
	margin: 0 !important;
	position: absolute;
	width: 100%;
	height: 100%;
	list-style: none !important;
	
	transition: all 0.3s ease;
	-webkit-transition: all 0.3s ease;
	-moz-transition: all 0.3s ease;
}
gallery_img_slides li, .gallery_img_slides li img
{
	max-width: 100% !important;
	width: 100% !important;
}

.gallery_img_slides.active
{
	visibility: visible;
}
.two_cols.gallery .element
{
	width: calc(50% - 15px);
	margin-right: 0;
	margin-bottom: 30px;
	box-sizing: border-box;
	float: left;
}

.two_cols.gallery .element:nth-child(2n)
{
	float: right;
	margin-right: 0;
}

.two_cols.gallery .element:nth-child(2n+1)
{
	clear: both;
}

.two_cols.gallery.wide .element
{
	width: 50%;
	margin: 0;
}

.two_cols.gallery.wide .element img
{
	width: 100%;
	height: auto;
}

.two_cols.gallery .element img
{
	width: 100%;
	height: auto;
	
	-webkit-transition-duration: 0.2s;
    -moz-transition-duration: 0.2s;
    -o-transition-duration: 0.2s;
    transition-duration: 0.2s;
}

.one_half.gallery2
{
	width: 100%;
	height: 100%;
	float: left;
	margin: 0;
	position: relative;
	
	-webkit-animation-duration: .2s;
    -moz-animation-duration: .2s;
    animation-duration: .2s;
}

.one_half.gallery2.filterable.portfolio_type
{
	margin: 0;
}
.gallery_a_title
{
	text-align: center;
}

.three_cols.gallery .element
{
	width: calc(33.33% - 20px);
	margin-right: 30px;
	margin-bottom: 30px;
	box-sizing: border-box;
	float: left;
}

.three_cols.gallery .element:nth-child(3n)
{
	float: right;
	margin-right: 0;
}

.three_cols.gallery .element:nth-child(3n+1)
{
	clear: both;
}

.portfolio_mixed_filter_wrapper.three_cols.gallery .element:nth-child(3n)
{
	float: left;
}
.portfolio_mixed_filter_wrapper.three_cols.gallery .element.double_size
{
	width: calc(66.66% - 33px);
}

.portfolio_mixed_filter_wrapper.three_cols.gallery .element
{
	width: calc(33.33% - 34px);
}

.three_cols.gallery.wide .element
{
	width: 33.33%;
	margin: 0;
}

.portfolio_mixed_filter_wrapper .three_cols.gallery.wide .element
{
	width: calc(33.33% - 0.5px);
}

.three_cols.gallery.wide .element.double_size
{
	width: calc(66.66% - 0.5px);
	margin: 0;
}

.portfolio_mixed_filter_wrapper.three_cols.gallery.wide .element
{
	margin: 0 -1px 0 0;
}

.portfolio_mixed_filter_wrapper.three_cols.gallery .element
{
	margin: 0 0 30px 0;
}

.three_cols.gallery .element img
{
	width: 100%;
	height: auto;
}

.classic.gallery .element .portfolio_type img
{
	border-radius: 0;
	-webkit-border-top-left-radius: 5px;
	-webkit-border-top-right-radius: 5px;
	-moz-border-radius-topleft: 5px;
	-moz-border-radius-topright: 5px;
	border-top-left-radius: 5px;
	border-top-right-radius: 5px;
}
.grid.gallery .element .grid
{
	border-radius: 5px;
	background-size: cover;
	background-position: center center;
	position: relative;
	background-color: #f9f9f9;
}

.grid.gallery .element .grid:after
{
	content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: transparent;
    background-image: -webkit-gradient(linear,left top,left bottom,from(transparent),color-stop(60%,transparent),color-stop(66%,rgba(0,0,0,0.1)),color-stop(93%,rgba(0,0,0,0.5)),to(rgba(0,0,0,0.49)));
    background-image: -webkit-linear-gradient(transparent 0%,transparent 60%,rgba(0,0,0,0.1) 66%,rgba(0,0,0,0.5) 93%,rgba(0,0,0,0.49) 100%);
    background-image: linear-gradient(transparent 0%,transparent 60%,rgba(0,0,0,0.1) 66%,rgba(0,0,0,0.5) 93%,rgba(0,0,0,0.49) 100%);
	border-radius: 5px;
}

.grid.gallery .element .grid.gallery3
{
	min-height: 330px;
}

.sidebar_content:not(.full_width) .grid.gallery .element .grid.gallery3
{
	min-height: 270px;
}

.sidebar_content:not(.full_width) .grid.gallery .element .grid.gallery2
{
	min-height: 320px;
}

.grid.gallery .element .grid.gallery2
{
	min-height: 400px;
}

.grid.gallery .element .grid.gallery4
{
	min-height: 230px;
}

.grid.gallery.portrait .element .grid.gallery4
{
	min-height: 300px;
}

.grid.gallery .element .grid .portfolio_info_wrapper
{
	position: absolute;
	left: 0;
	bottom: 0;
	width: 100%;
	box-sizing: border-box;
	color: #fff;
	z-index: 1;
}

.grid.gallery.portrait .element .grid .portfolio_info_wrapper
{
	bottom: -5px;
}

.grid.gallery .element .grid .portfolio_info_wrapper h3,
.grid.gallery .element .grid .portfolio_info_wrapper h4,
.grid.gallery .element .grid .portfolio_info_wrapper h5
{
	color: #fff;
}

.one_third.gallery3
{
	position: relative;
	width: 100%;
	margin: 0;
}
.one_third.gallery3 .one_third_img
{
	position: absolute;
}

.one_third.filterable.gallery3.portfolio_type
{
	margin: 0;
}
.four_cols.gallery .element
{
	width: calc(25% - 22.5px);
	margin-right: 30px;
	margin-bottom: 25px;
	box-sizing: border-box;
}

.four_cols.gallery .element:nth-child(4n)
{
	float: right;
	margin-right: 0;
}

.four_cols.gallery .element:nth-child(4n+1)
{
	clear: both;
    height: fit-content !important;
}

.four_cols.gallery.wide .element
{
	width: 25%;
	margin: 0 ;
}

.four_cols.gallery.wide .element img
{
	width: 100%;
	height: auto;
}

.four_cols.gallery .element img
{
	width: 100%;
	height: auto;
	border-radius: 5px;
	
	-webkit-transition-duration: 0.2s;
    -moz-transition-duration: 0.2s;
    -o-transition-duration: 0.2s;
    transition-duration: 0.2s;
}

.four_cols.gallery .element:hover img
{
	-webkit-transform: translateY(-4px);
    -moz-transform: translateY(-4px);
    -o-transform: translateY(-4px);
    -ms-transform: translateY(-4px);
    transform: translateY(-4px);
    -webkit-box-shadow: 0 22px 40px rgba(0, 0, 0, 0.15);
    -moz-box-shadow: 0 22px 40px rgba(0, 0, 0, 0.15);
    box-shadow: 0 22px 40px rgba(0, 0, 0, 0.15);
}

.one_fourth.gallery4
{
	position: relative;
    width: 100%;
    margin: 0;
}

.one_fourth.gallery4 a
{
	position: relative;
}
.one_fourth.gallery4 .one_fourth_img
{
	position: absolute;
}
.image_caption, .gallery_image_caption
{
	padding: 30px 0 30px 0;
}
.single_portfolio_gallery
{
	width: 100%;
	height: 400px;
	overflow: hidden;
	position: relative;
	z-index: 0;
	top: -35px;
	background: #f0f0f0;
}

.single_portfolio_gallery i.fa
{
	font-size: 30px;
	position: absolute;
	top: 43%;
	left: 49%;
}
#portfolio_filter_wrapper.gallery, .portfolio_filter_wrapper.gallery
{
	width: 100%;
	margin: 0;
	box-sizing: border-box;
	clear: both;
}

#portfolio_filter_wrapper.gallery.two_cols, .portfolio_filter_wrapper.gallery.two_cols, #portfolio_filter_wrapper.gallery.three_cols, .portfolio_filter_wrapper.gallery.three_cols, #portfolio_filter_wrapper.gallery.four_cols, .portfolio_filter_wrapper.gallery.four_cols
{
	width: 100%;
	margin: 0;
	box-sizing: border-box;
}

#portfolio_filter_wrapper.gallery.wide, .portfolio_filter_wrapper.gallery.wide
{
	width: 100%;
	margin: 0;
}

#portfolio_filter_wrapper.gallery.wide.five_cols, .portfolio_filter_wrapper.gallery.wide.five_cols
{
	width: calc(100% + 5px);
}

#portfolio_filter_wrapper.gallery.wide.five_cols.justified, .portfolio_filter_wrapper.gallery.wide.five_cols.justified
{
	width: 100%;
	box-sizing: border-box;
	padding: 10px 0 0 10px;
}

.page_content_wrapper.fullwidth #portfolio_filter_wrapper.gallery, #page_content_wrapper.fullwidth #portfolio_filter_wrapper.gallery, .page_content_wrapper.fullwidth .portfolio_filter_wrapper.gallery, #page_content_wrapper.fullwidth .portfolio_filter_wrapper.gallery
{
	width: 100%;
	box-sizing: border-box;
}

body.single-attachment p.attachment 
{
	display: none;
}

.gallery_img
{
	opacity: 0;
	-webkit-animation-fill-mode:forwards; 
    -moz-animation-fill-mode:forwards;
    animation-fill-mode:forwards;
}
.ppb_gallery_grid .one_third.gallery3 img, 
.ppb_gallery_grid .one_half.gallery2 img, 
.ppb_gallery_grid .one_fourth.gallery4 img
{
	max-width: 100%;
    display: block;
    position: relative;
    border-radius: 5px;
    -webkit-transition-duration: 0.2s;
    -moz-transition-duration: 0.2s;
    -o-transition-duration: 0.2s;
    transition-duration: 0.2s;
}

.ppb_gallery_grid .one_third.gallery3:hover img, 
.ppb_gallery_grid .one_half.gallery2:hover img, 
.ppb_gallery_grid .one_fourth.gallery4:hover img
{
	-webkit-transform: translateY(-4px);
    -moz-transform: translateY(-4px);
    -o-transform: translateY(-4px);
    -ms-transform: translateY(-4px);
    transform: translateY(-4px);
    -webkit-box-shadow: 0 22px 40px rgba(0, 0, 0, 0.15);
    -moz-box-shadow: 0 22px 40px rgba(0, 0, 0, 0.15);
    box-shadow: 0 22px 40px rgba(0, 0, 0, 0.15);
}
.fancy-gallery
{
	cursor: pointer;
}
.woocommerce div.product div.images .woocommerce-product-gallery__image:nth-child(n+2)
{
	padding: 5px;
	box-sizing: border-box;
	margin-top: 5px;
}
