
/* Gallery Filter Buttons */
.gallery-filter {
    margin-bottom: 40px;
}

.filter-btn {
    background: #fff;
    border: 2px solid #ddd;
    color: #666;
    padding: 10px 25px;
    margin: 5px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 13px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: #CF3822;
    color: #CF3822;
}

.filter-btn.active {
    background: #CF3822;
    border-color: #CF3822;
    color: #fff;
}

/* ======= Gallery Scroll style ======= */
.galleryscroll {
    position: relative;
}
.galleryscroll .item {
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    border-radius: 5px;
    isolation: isolate;
}
.galleryscroll .item .img {
    position: relative;
    overflow: hidden;
    transition: 700ms cubic-bezier(0.17, 0.67, 0, 1.01);
    isolation: isolate;
}
.galleryscroll .item .img:after {
    content: " ";
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    transition: all 0.27s cubic-bezier(0.3, 0.1, 0.58, 1);
    overflow: hidden;
    -webkit-transition: all .5s;
    transition: all .5s;
}
.galleryscroll .item .img > img {
    transition: all 0.3s cubic-bezier(0.3, 0.1, 0.58, 1);
    border-radius: 0;
    -webkit-transition: all .5s;
    transition: all .5s;
}
.galleryscroll .item:hover .img > img {
    -webkit-filter: none;
    filter: none;
    -webkit-transform: scale(1.03, 1.03);
    transform: scale(1.03, 1.03);
    -webkit-transition: all 1s ease;
    -moz-transition: all 1s ease;
    -o-transition: all 1s ease;
    -ms-transition: all 1s ease;
    transition: all 1s ease;
}

/* Gallery Overlay */
.galleryscroll .item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(207, 56, 34, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.galleryscroll .item:hover .overlay {
    opacity: 1;
}

.galleryscroll .item .overlay-content {
    text-align: center;
    color: #fff;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.galleryscroll .item:hover .overlay-content {
    transform: translateY(0);
}

.galleryscroll .item .overlay-content i {
    font-size: 30px;
    margin-bottom: 15px;
    display: block;
}

.galleryscroll .item .overlay-content h4 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Gallery Item Styling */
.gallery-item {
    margin-bottom: 30px;
}

.gallery-item .item {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
}

.gallery-item:hover .item {
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}
/* magnific popup custom */
.mfp-counter {
    display: none;
}
.mfp-figure button {
    border: 0px solid transparent;
}
button.mfp-close,
button.mfp-arrow {
    border: 0px solid transparent;
    background: transparent;
}
.mfp-bg,
body.mfp-zoom-out-cur {
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 100% !important;
}



.video-gallery {
    position: relative;
}
.video-gallery .item {
    position: relative;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 30px;
    isolation: isolate;
}
.video-gallery .item img {
    width: 100%;
    transform: scale(1);
    transition: transform 500ms ease;
}
.video-gallery .item:hover img {
    transform: scale(1.05);
}
.video-gallery .item .title {
    position: absolute;
    bottom: 0px;
    padding: 20px;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
    text-align: left;
}
.video-gallery .item .title h4 {
    color: #fff;
    font-size: 20px;
    margin-bottom: 0;
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}
.video-gallery .item .vieo-butn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    text-align: center;
    z-index: 2;
}
.video-gallery .item .vieo-butn .vid {
    position: absolute;
    top: 20px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    border-radius: 100%;
    background: transparent;
    color: #fff;
}
.video-gallery .item .vieo-butn .br-left-top {
    position: absolute;
    top: -24px;
    left: -1px;
    -webkit-transform: rotate(270deg);
    -ms-transform: rotate(270deg);
    transform: rotate(270deg);
    line-height: 1;
}
.video-gallery .item .vieo-butn .br-left-top svg {
    width: 24px;
    height: 24px;
}
.video-gallery .item .vieo-butn .br-right-bottom {
    position: absolute;
    bottom: -1px;
    right: -24px;
    -webkit-transform: rotate(270deg);
    -ms-transform: rotate(270deg);
    transform: rotate(270deg);
    line-height: 1;
}
.video-gallery .item .vieo-butn .br-right-bottom svg {
    width: 24px;
    height: 24px;
}
.video-gallery .item .vieo-butn .icon {
    width: 70px;
    height: 70px;
    line-height: 70px;
    font-size: 24px;
    color: #fff;
    border: 3px solid rgba(255,255,255,0.8);
    background-color: rgba(207, 56, 34, 0.9);
    border-radius: 100%;
    align-items: center;
    justify-content: center;
    display: flex;
    transition: all 0.3s ease;
    cursor: pointer;
}
.video-gallery .item:hover .vieo-butn .icon {
    background-color: #CF3822;
    border: 3px solid #fff;
    transform: scale(1.1);
    color: #fff;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .gallery-filter {
        margin-bottom: 30px;
    }

    .filter-btn {
        display: block;
        width: 100%;
        margin: 5px 0;
    }

    .gallery-item {
        margin-bottom: 20px;
    }

    .galleryscroll .item .overlay-content i {
        font-size: 24px;
        margin-bottom: 10px;
    }

    .galleryscroll .item .overlay-content h4 {
        font-size: 14px;
    }

    .video-gallery .item {
        margin-bottom: 20px;
    }

    .video-gallery .item .title h4 {
        font-size: 16px;
    }

    .video-gallery .item .vieo-butn .icon {
        width: 60px;
        height: 60px;
        line-height: 60px;
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .gallery-item {
        margin-bottom: 15px;
    }

    .galleryscroll .item .overlay-content {
        padding: 10px;
    }
}