/*
Theme Name: Beaver Builder Child Theme
Theme URI: http://www.wpbeaverbuilder.com
Version: 1.0
Description: An example child theme that can be used as a starting point for custom development.
Author: The Beaver Builder Team
Author URI: http://www.fastlinemedia.com
template: bb-theme
*/


.row,[class*=gallery-columns-] {
    clear: both;
    overflow: hidden;
    zoom:1;}

.row:before,.row:after,[class*=gallery-columns-]:before,[class*=gallery-columns-]:after {
    content: "";
    display: table;
}

.row:after,[class*=gallery-columns-]:after {
    clear: both;
}

.row.with_borders > [class^=col_],[class*=gallery-columns-].with_borders > [class^=col_] {
    border-right: 1px solid #ececec;
    margin-bottom: -500px;
    margin-right: 10px;
    padding-bottom: 500px;
    padding-right: 9px;
}

.row.with_borders > .col_last,.row.with_borders > :last-child,[class*=gallery-columns-].with_borders > .col_last,[class*=gallery-columns-].with_borders > :last-child {
    border-right: 0;
    margin-right: 0;
    padding-right: 0;
}

.row + .row,.row + [class*=gallery-columns-],[class*=gallery-columns-] + .row,[class*=gallery-columns-] + [class*=gallery-columns-] {
    margin-top: 40px;
}

.row img,[class*=gallery-columns-] img {
    display: block;
}

.col,[class^=col_],[class*=gallery-columns-] .gallery-item {
    float: left;
}

.col_last {
    margin-right: 0;
}

.col_half,.col_1_2 {
    width: 520px;
}

.col_1_3rd,.col_1_3 {
    width: 340px;
}

.col_2_3rds,.col_2_3 {
    width: 700px;
}

.col_1_4th,.col_1_4,.gallery-columns-4 .gallery-item {
    width: 250px;
}

.col_2_4ths,.col_2_4 {
    width: 520px;
}

.col_3_4ths,.col_3_4 {
    width: 790px;
}

.col_1_6th,.col_1_6,.gallery-columns-6 .gallery-item {
    width: 160px;
}

.col_2_6ths,.col_2_6 {
    width: 340px;
}

.col_3_6ths,.col_3_6 {
    width: 520px;
}

.col_4_6ths,.col_4_6 {
    width: 700px;
}

.col_5_6ths,.col_5_6 {
    width: 880px;
}

.col_1_9th,.col_1_9 {
    width: 100px;
}

.col_2_9ths,.col_2_9 {
    width: 220px;
}

.col_3_9ths,.col_3_9 {
    width: 340px;
}

.col_4_9ths,.col_4_9 {
    width: 460px;
}

.col_5_9ths,.col_5_9 {
    width: 580px;
}

.col_6_9ths,.col_6_9 {
    width: 700px;
}

.col_7_9ths,.col_7_9 {
    width: 820px;
}

.col_8_9ths,.col_8_9 {
    width: 940px;
}

[class*=gallery-columns-] {
    margin-bottom: -5px;
/*     width: 1080px; */
}

[class*=gallery-columns-]:last-child {
    margin-bottom: -20px;
}

[class*=gallery-columns-] .gallery-item {
    margin-bottom: 20px;
    margin-top: 0;
}

[class*=gallery-columns-] .wp-caption-text {
    margin-top: 10px;
    padding: 0 20px;
}

[class*=gallery-columns-] img {
    display: block;
    margin: 0 auto;
}

.gallery-columns-4 .gallery-item {
    text-align: center;
}

.gallery-columns-4 .gallery-icon {
    display: inline-block;
}

.gallery-columns-6 {
    background: #ededed;
}

.gallery-columns-6 .gallery-item {
    padding: 5px;
    width: 150px;
}

.gallery-icon {
    position: relative;
}

.gallery-icon img {
    display: block;
}

.gallery-icon .purchase-link {
    background: rgba(0,0,0,0.5) !important;
    background: #000;
    bottom: 0;
    color: #fff;
    display: block !important;
    display: none;
    left: 0;
    opacity: 0;
    padding: 5px;
    margin: 3px;
    position: absolute;
    right: 0;
    text-align: right;
    -webkit-transition: all 0.2s ease-in-out;
    -moz-transition: all 0.2s ease-in-out;
    -ms-transition: all 0.2s ease-in-out;
    -o-transition: all 0.2s ease-in-out;
    transition: all 0.2s ease-in-out;
}

.gallery-icon .purchase-link:active,.gallery-icon .purchase-link:focus,.gallery-icon .purchase-link:hover {
    text-decoration: underline;
}

.gallery-icon:hover .purchase-link {
    display: block;
    opacity: 1;
}

.gallery-icon .pinterest {
    opacity: 0;
    position: absolute;
    right: 10px;
    top: 10px;
}

.gallery-icon:hover .pinterest {
    opacity: 1;
}

.mobile .gallery-columns-4 .gallery-icon {
    background: #2a2a2a;
    padding-top: 5px;
    width: 100%;
}

.mobile .gallery-columns-4 .gallery-icon .purchase-link {
    background: #2a2a2a !important;
    opacity: 1;
    position: static;
}

.mobile .gallery-columns-4 .gallery-icon .pinterest {
    opacity: 1;
}

#gallery-1 {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.pinterest {
/*     background: url(../images/button-pin.png); */
    background-size: 100%;
    display: block;
    height: 20px;
    width: 40px;
}

[class*=wp-image] + .pinterest {
    float: right;
    position: relative;
    right: 20px;
    top: -40px;
    z-index: 20;
}

.gallery-icon img {
    width: 100%;
    height: 16vw;
    object-fit: cover;
}

@media (min-width: 1400px) {
	
	.gallery-icon img {
		height: 200px; 
	}
}

@media (max-width: 768px) {
	.gallery-icon .purchase-link {
		position: relative;
		opacity: 1;
		background: #8d8979 !important;
		text-align: center;
		margin: 2px;
	}
	.gallery-item {
		width: 50% !important;
	}
	.gallery-icon {
		width: 100% !important;
	}
	.gallery-icon img {
		width: 100%;
		height: 32vw;
	}
	
	
}

.gallery .gallery-caption {
    font-size: 16px;
    font-weight: 500 !important;
    padding: 0 5px;
    line-height: 1.5;
    color: #595959;
}

.gallery .gallery-description {
    font-size: 14px;
    margin-top: 5px;
    color: #757575;
}
.mfp-title {
    text-align: center;
    margin: 10px 0;
    font-size: 14px;
}

.gallery-icon img {
    border-color: #fff !important;
}


div#purchase_caption {
    margin: 15px 10px 10px;
    font-size: 1.5rem;
    font-weight: 600;
}

div#purchase_description {
    font-size: 1.4rem;
}


.frm_pro_form img.frm_ajax_loading {
	display: none;
}

.frm_pro_form.frm_loading_form img.frm_ajax_loading {
	display: block;
}

.frm_submit {
    margin-top: 20px;
}


.mfp-cta {
    margin: 40px 20px;
    text-align: center;
    box-sizing: border-box;
}

.mfp-cta a {
    background: #fff;
    padding: 12px 20px;
    color: #111;
    border: 1px solid #555;
    transition: all .3s;
    text-decoration: none !important;
}
.mfp-cta a:hover {

    background: #000000;
    color: #fff;
}