/*  
 * Ape Gallery			
 * Author:            	Wp Gallery Ape 
 * Author URI:        	https://wpape.net/
 * License:           	GPL-2.0+
 */

.wpape-img {
    display: none;
    float: left;
}

.wpape-img-hidden,
.not-loaded-before-search {
    display: none;
}

.wpape-imges-container {
    margin-right: 0 !important;
    margin-bottom: 0 !important;
}

.wpape-img-loaded {
    display: block;
}

.wpape-img-image {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.wpape-img-image div[data-width][data-height] {
    position: relative;
    overflow: hidden;
}

.wpape-img-image div[data-width][data-height] img {
    position: absolute;
    top: -100%;
    left: 0;
    right: 0;
    bottom: -100%;
    margin: auto;
}

.wpape-img .wpape-img-image img {
    width: 100%;
    max-width: 100%;
    display: block;
    -webkit-border-radius: 0px;
    -moz-border-radius: 0px;
    border-radius: 0px;
    border: none !important;
}

.wpape-img img {
    max-width: 100%;
}

.wpape-img-image div[data-thumbnail],
.wpape-img-image div[data-popup] {
    background-position: center center;
    background-repeat: no-repeat;
}

.image-with-dimensions {
    background-color: black;
    background-image: url('icons/loading-image.gif');
}

.broken-image-here {
    background-color: #BE3730;
    background-image: url('icons/broken-image.png');
}

.broken-image-here:not([data-height]) {
    min-height: 150px;
}

.wpape-img-container {
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.wpape-img-container:hover {
    z-index: 2;
}

.thumbnail-overlay {
    position: absolute;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    width: 100%;
}

.position-reveal-effect .wpape-img-thumbnail-container {
    z-index: 2;
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
}

.position-reveal-effect .thumbnail-overlay {
    z-index: 1;
    position: absolute;
    left: 0;
}

.overlay-always-visible {
    display: block !important;
    zoom: 1 !important;
    filter: alpha(opacity=100) !important;
    opacity: 1 !important;
}

.overlay-text-left>.aligment>.aligment {
    text-align: left !important;
}

.overlay-text-right>.aligment>.aligment {
    text-align: right !important;
}

.mfp-arrow:focus {
    opacity: 0.65;
    filter: alpha(opacity=65);
}

.mfp-arrow:hover {
    opacity: 1 !important;
    filter: alpha(opacity=100) !important;
}

.my-mfp-slide-bottom .mfp-figure {
    opacity: 0;
    -webkit-transition: all 0.2s ease-out;
    -moz-transition: all 0.2s ease-out;
    -o-transition: all 0.2s ease-out;
    transition: all 0.2s ease-out;
    -webkit-transform: scale(0.8);
    -moz-transform: scale(0.8);
    -ms-transform: scale(0.8);
    -o-transform: scale(0.8);
    transform: scale(0.8);
}

.my-mfp-slide-bottom.mfp-ready .mfp-figure {
    opacity: 1;
    -webkit-transform: scale(1);
    -moz-transform: scale(1);
    -ms-transform: scale(1);
    -o-transform: scale(1);
    transform: scale(1);
}

.my-mfp-slide-bottom.mfp-removing .mfp-figure {
    opacity: 0;
    -webkit-transform: scale(0.8);
    -moz-transform: scale(0.8);
    -ms-transform: scale(0.8);
    -o-transform: scale(0.8);
    transform: scale(0.8);
}

.my-mfp-slide-bottom.mfp-bg {
    opacity: 0;
    -webkit-transition: opacity 0.3s ease-out;
    -moz-transition: opacity 0.3s ease-out;
    -o-transition: opacity 0.3s ease-out;
    transition: opacity 0.3s ease-out;
}

.my-mfp-slide-bottom.mfp-ready.mfp-bg {
    opacity: 0.9;
}

.my-mfp-slide-bottom.mfp-removing.mfp-bg {
    opacity: 0;
}

.my-mfp-slide-bottom .image-source-link {
    color: #DDD;
    background-color: transparent;
    background-image: url('icons/download.png');
    background-repeat: no-repeat;
    width: 23px;
    height: 23px;
    display: inline-block;
    text-decoration: none;
    margin-bottom: -5px;
    margin-left: 10px;
}

.mfp-img-mobile .mfp-title {
    text-align: center;
    padding: 6px 0;
}

.mfp-img-mobile .image-source-link {
    color: #DDD;
    background-color: transparent;
    background-image: url('icons/download.png');
    background-repeat: no-repeat;
    width: 23px;
    height: 23px;
    display: inline-block;
    text-decoration: none;
    margin-bottom: -5px;
    margin-left: 10px;
}

.mfp-img-mobile .mfp-counter {
    top: 0px;
    right: 5px;
    font-size: 10px;
}

.mfp-img-mobile .wpape-imges-social-container {
    position: absolute;
    right: 0px;
    bottom: 0px;
    margin-right: 0;
}

.mfp-img-mobile .mfp-image-holder {
    padding-left: 0;
    padding-right: 0;
}

.mfp-img-mobile img.mfp-img {
    padding: 0;
}

.mfp-img-mobile .mfp-figure {
}

.mfp-img-mobile .mfp-figure:after {
    top: 0;
    bottom: 0;
}

.mfp-img-mobile .mfp-figure small {
    display: inline;
    margin-left: 5px;
}

.mfp-img-mobile .mfp-bottom-bar {
    background: rgba(0, 0, 0, 0.6);
    bottom: 0;
    margin: 0;
    top: auto;
    padding: 3px 5px;
    position: fixed;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

.mfp-img-mobile .mfp-bottom-bar:empty {
    padding: 0;
}

.mfp-img-mobile .mfp-close {
    top: 0;
    right: 0;
    width: 35px;
    height: 35px;
    line-height: 35px;
    background: rgba(0, 0, 0, 0.6);
    position: fixed;
    text-align: center;
    padding: 0;
}


/* menu  */

.wpape_gallery_button.wpape_gallery_align_right {
    text-align: right;
}

.wpape_gallery_button.wpape_gallery_align_center {
    text-align: center;
}

/*     */

.wpape_gallery .wpape-img-container div a,
.wpape_gallery .wpape-img-container div a:link,
.wpape_gallery .wpape-img-container div a:focus,
.wpape_gallery .wpape-img-container div a:hover{
	border-bottom: none;
	box-shadow: none;
}
	
.wpape_gallery_button_bottom .wpape-imges-no-more-entries{
	display: none !important;
}
.wpape_gallery_button_bottom{
	margin-top: 10px;
}

.wpape_gallery .wpape-img-container img{
	box-shadow: none !important;
}
.wpape_gallery .wpapeTitle{
	padding: 0 0 4px 0;
}

.wpape_gallery .wpapeIcons{
	text-align: center;
	padding: 0 0 4px 0;
}

.wpape_gallery .wpapeIcons .wpapeZoomIcon,
.wpape_gallery .wpapeIcons .wpapeLinkIcon {
	line-height: 0.9 ;
}
