﻿
.section_page-gallery {
    /*background-color: #fff;*/
    padding-top: 40px;
    padding-bottom: 120px;
}

.gallery .heading {
    margin-bottom: 40px;
}

.gallery.no-padding .gallery-cat {
    padding-left: 15px;
    padding-right: 15px;
}

.gallery.no-padding .gallery-content {
    margin-top: 40px;
}

    .gallery.no-padding .gallery-content .row {
        margin-left: 0;
        margin-right: 0;
    }

    .gallery.no-padding .gallery-content [class*="col-"] {
        padding-left: 0;
        padding-right: 0;
        margin-top: 0;
    }

    .gallery.no-padding .gallery-content .item {
        margin-top: 0;
    }

.gallery.gallery-3 .gallery-content [class*="col-"] {
    margin-top: 30px;
}

.gallery-content {
    margin-top: 20px;
}

    .gallery-content .gallery_item {
        position: relative;
        overflow: hidden;
    }

        .gallery-content .gallery_item img {
            width: 100%;
        }

        .gallery-content .gallery_item .icon {
            pointer-events: none;
            position: absolute;
            top: 50%;
            left: 50%;
            color: #fff;
            line-height: 1;
            font-size: 0;
            -webkit-transform: translate(-50%, -50%);
            -moz-transform: translate(-50%, -50%);
            -ms-transform: translate(-50%, -50%);
            -o-transform: translate(-50%, -50%);
            background: url(../images/icon-galery.png) no-repeat;
            width: 64px;
            height: 64px;
        }

        .gallery-content .gallery_item:before {
            bottom: 0;
            left: 0;
            right: 0;
            top: 50%;
            position: absolute;
            content: '';
            opacity: 0;
            pointer-events: none;
            -webkit-transition: all .3s ease-out;
            -moz-transition: all .3s ease-out;
            -ms-transition: all .3s ease-out;
            -o-transition: all .3s ease-out;
            background-color: transparent;
            background: -webkit-gradient(linear, left top, left bottom, from(transparent), to(#11033e));
            background: -webkit-linear-gradient(top, transparent, #11033e);
            background: -moz-linear-gradient(top, transparent, #11033e);
            background: -ms-linear-gradient(top, transparent, #11033e);
            background: -o-linear-gradient(top, transparent, #11033e);
        }

        .gallery-content .gallery_item .text {
            position: absolute;
            bottom: 10px;
            left: 15px;
            right: 15px;
            color: #fff;
            z-index: 10;
            font-family: 'Poppins', sans-serif;
            font-size: 16px;
            pointer-events: none;
            font-weight: normal;
            opacity: 0;
            visibility: hidden;
            -webkit-transform: translate(0, 50%);
            -moz-transform: translate(0, 50%);
            -ms-transform: translate(0, 50%);
            -o-transform: translate(0, 50%);
            -webkit-transition: all .3s ease-out;
            -moz-transition: all .3s ease-out;
            -ms-transition: all .3s ease-out;
            -o-transition: all .3s ease-out;
            max-width: 280px;
        }

        .gallery-content .gallery_item:hover .text {
            opacity: 1;
            visibility: visible;
            -webkit-transform: translate(0, 0);
            -moz-transform: translate(0, 0);
            -ms-transform: translate(0, 0);
            -o-transform: translate(0, 0);
        }

        .gallery-content .gallery_item:hover:before {
            top: 0;
            opacity: .9;
        }

    .gallery-content .our-gallery {
        margin-top: 30px;
    }

        .gallery-content .our-gallery .awe-btn {
            min-width: 180px;
        }

    .gallery-content.hover-img .gallery_item:before {
        background: none;
    }

    .gallery-content.hover-img .gallery_item img {
        -webkit-transition: all .5s ease;
        -moz-transition: all .5s ease;
        -ms-transition: all .5s ease;
        -o-transition: all .5s ease;
    }

    .gallery-content.hover-img .gallery_item:hover img {
        transform: scale(1.1);
    }

.gallery-isotope .item-isotope {
    float: left;
    margin-top: 20px;
    padding-left: 10px;
    padding-right: 10px;
}

.gallery-isotope.pd-0 .item-isotope {
    padding: 0;
    margin-top: 0;
}

.gallery-isotope.col-3 .item-isotope, .gallery-isotope.col-3 .item-size {
    width: 33.333333%;
}

.gallery-isotope.col-4 .item-isotope, .gallery-isotope.col-4 .item-size {
    width: 25%;
}

    .gallery-isotope.col-4 .item-isotope.larger {
        width: 50%;
    }

.gallery-isotope.col-6 .item-isotope, .gallery-isotope.col-6 .item-size {
    width: 16.66666667%;
}

.gallery-cat ul {
    margin-bottom: 0;
    font-size: 0;
}

    .gallery-cat ul li {
        font-size: 16px;
    }

        .gallery-cat ul li a {
            color: #232323;
            text-transform: uppercase;
            font-weight: 500;
            display: block;
            padding: 7px 15px;
            -webkit-transition: all .2s ease;
            -moz-transition: all .2s ease;
            -ms-transition: all .2s ease;
            -o-transition: all .2s ease;
            margin: 3px;
        }

        .gallery-cat ul li:hover a, .gallery-cat ul li.active a {
            background-color: #004b2a;
            color: #fff;
        }
@media screen and (max-width:1199px) {
    .gallery-isotope.col-6 .item-isotope, .gallery-isotope.col-6 .item-size {
        width: 25%;
    }

    .gallery-isotope.col-4 .item-isotope, .gallery-isotope.col-4 .item-size, .gallery-isotope.col-4 .item-isotope.larger {
        width: 33.33333%;
    }
}
@media screen and (max-width:991px) {
    .gallery-isotope.col-6 .item-isotope, .gallery-isotope.col-6 .item-size {
        width: 33.33333%;
    }
}
@media screen and (max-width:767px) {
    .section-gallery {
        padding: 50px 0;
    }

    .gallery-isotope.col-6 .item-isotope, .gallery-isotope.col-6 .item-size {
        width: 50%;
    }

    .gallery-isotope.col-4 .item-isotope, .gallery-isotope.col-3 .item-isotope, .gallery-isotope.col-4 .item-size, .gallery-isotope.col-3 .item-size, .gallery-isotope.col-4 .item-isotope.larger, .gallery-isotope.col-3 .item-isotope.larger {
        width: 50%;
    }

    .gallery-cat ul li a {
        font-size: 14px;
        padding: 5px 10px;
    }
}
@media screen and (max-width:480px) {
    .gallery-isotope.col-6 .item-isotope, .gallery-isotope.col-4 .item-isotope, .gallery-isotope.col-3 .item-isotope, .gallery-isotope.col-6 .item-size, .gallery-isotope.col-4 .item-size, .gallery-isotope.col-3 .item-size, .gallery-isotope.col-6 .item-isotope.larger, .gallery-isotope.col-4 .item-isotope.larger, .gallery-isotope.col-3 .item-isotope.larger {
        width: 100%;
    }

    .gallery-content .gallery_item .text {
        font-size: 13px;
    }
}

/* Video Modal Styles */
.mfp-video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    overflow: auto;
}

.mfp-video-container {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    margin: auto;
    top: 50%;
    transform: translateY(-50%);
    background: #000;
}

.mfp-video-player {
    width: 100%;
    max-width: 1200px;
    height: auto;
    display: block;
}

.mfp-video-modal .mfp-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    font-size: 32px;
    cursor: pointer;
    padding: 0 8px;
    line-height: 1;
    color: #000;
    border-radius: 3px;
    z-index: 10000;
    transition: all 0.3s ease;
}

.mfp-video-modal .mfp-close:hover {
    background: #fff;
    color: #000;
}

@media (max-width: 768px) {
    .mfp-video-container {
        max-width: 95%;
        max-height: 95vh;
    }
    
    .mfp-video-player {
        max-width: 100%;
    }
}