/**
 * @version     1.0.0
 * @package     Zolly Gallery
 *
 * @copyright   Copyright (C) 2017. Zolly Solutions. All rights reserved.
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 * @author      Asfaque Ali Ansari <info@zollysolutions.com> - http://www.zollysolutions.com
 */

.grid-gallery, .masonry-gallery {
    margin-bottom: 30px;
}

.gallery-box {
    text-align: center;
    margin: 10px 0;
}

.gallery-box img {
    width: auto;
    margin: auto;
}

.masonry-gallery .item .item-inner{
    position: relative;
    display: block;
    margin-bottom: 30px;
}

.grid-gallery.popup-gallery .gallery-item {
    display: block;
    margin-bottom: 30px;
    height: 230px;
    position: relative;
}

.gallery-single .gallery-item:before,
.masonry-gallery .item .item-inner:before{
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: linear-gradient(-180deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.48) 100%);
    z-index: 1;
    transition: 0.3s;
    opacity: 0;
}

.gallery-single:hover .gallery-item:before,
.masonry-gallery .item:hover .item-inner:before{
    opacity: 1;
}

.gallery-single .gallery-item a.zolly-popup-icon,
.masonry-gallery .item .item-inner a.zolly-popup-icon{
    position: absolute;
    color: #fff;
    text-decoration: none;
    display: none;
    width: 36px;
    font-size: 28px;
    height: 36px;
    line-height: 36px;
    text-align: center;
    top: 50%;
    left: 50%;
    margin-left: -18px;
    margin-top: -18px;
    background: #5590f7;
    z-index: 11;
    border-radius: 40px;
    -webkit-transition: .3s;
    transition: .3s;
    animation: zoomIn .2s;
}

.gallery-single:hover .gallery-item a.zolly-popup-icon,
.masonry-gallery .item:hover .item-inner a.zolly-popup-icon{
    display: block;
}

.grid-gallery.popup-gallery .gallery-item img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center;
}

.mfp-gallery.mfp-img-mobile figcaption {
    display: none;
}

.mfp-gallery.mfp-img-mobile .mfp-figure {
    height: calc(100vh - 170px);
}

.mfp-gallery.mfp-img-mobile .mfp-figure figure {
    height: 100%;
}

.mfp-gallery.mfp-img-mobile .mfp-figure:after {
    display: none;
}

.mfp-gallery.mfp-img-mobile .mfp-figure img.mfp-img {
    padding: 0;
    height: 100%;
}

.carousel-gallery {
    margin-bottom: 30px;
    padding: 0 30px;
}

.carousel-gallery .owl-dots {
    position: absolute;
    bottom: -30px;
    width: 100%;
    text-align: center;
}
.carousel-gallery .owl-dots .owl-dot {
    width: 12px;
    height: 12px;
    background: rgba(54,54,54,0.6);
    border-radius: 100%;
    display: inline-block;
    margin: 0 4px;
    cursor: pointer;
}

.carousel-gallery .owl-dots .owl-dot.active {
    background: rgba(54,54,54,1);
}


.carousel-gallery .owl-prev, 
.carousel-gallery .owl-next {
    position: absolute;
    top: calc(50% - 20px);
    height: 36px;
    width: 30px;
    color: #333;
    font-size: 32px;
    text-align: center;
    line-height: 36px;
    cursor: pointer;
}

.carousel-gallery .owl-prev{
    left: -30px;
}
.carousel-gallery .owl-next {
    right: -30px;
}

.centered-carousel .owl-stage-outer .owl-stage {
    margin: 0 auto;
}

.centered-carousel .owl-stage-outer .owl-stage .item img {
    padding: 5px;
    border: 1px solid #eeee;
}