.header-search {
    position: relative;
}

.header-search-input {
    height: 44px;
    width: 200px;
    padding: 0 40px 0 15px;
    border-radius: 30px;
    border: 1px solid #ddd;
    outline: none;
    font-size: 14px;
}

.header-search-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #555;
    font-size: 16px;
    cursor: pointer;
}

.header-search-btn:hover {
    color: #000;
}
.swiper-slide img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s;
}

.swiper-slide img:hover {
    transform: scale(1.05);
}
.gallery-prev,
.gallery-next {
    width: 45px;
    height: 45px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    top: 50%;
    transform: translateY(-50%);
      z-index: 99;
    pointer-events: auto;
}

/* Left arrow outside */
.gallery-prev {
    left: -60px;
}
.mySwiper {
   overflow: visible !important;
}
/* Right arrow outside */
.gallery-next {
    right: -60px;
}
@media (min-width: 992px) {
    .mySwiper {
        overflow: visible;
    }
}

/* Arrow icon color */
.gallery-prev::after,
.gallery-next::after {
    font-size: 16px;
    color: #000;
}

/* Pagination spacing */
.gallery-pagination {
    margin-top: 50px !important;
    position: relative;
}
.gallery-swiper-wrap {
    position: relative;
    /*overflow: visible;*/
}
/* Hide arrows on mobile */
@media (max-width: 768px) {
    .gallery-prev,
    .gallery-next {
        display: none;
    }
    .mySwiper {
   overflow: hidden !important;
}
 .swiper-slide img {
        height: 300px;
        width:100%;
        object-fit:cover;
    }
}
@media (max-width: 991px) {
    .swiper-slide img {
        height: 220px;
    }
}

/* Mobile */
@media (max-width: 575px) {
    .swiper-slide img {
        height: 300px;
        width:100%;
        object-fit:cover;
    }
}
@media (max-width: 991px) {
    .gallery-prev,
    .gallery-next {
        display: none;
    }
}



/* Masonry Grid */
.masonry-grid {
    column-count: 4;
    column-gap: 15px;
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 15px;
}

.masonry-item img {
    width: 100%;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.4s ease;
}

.masonry-item img:hover {
    transform: scale(1.04);
}

/* Tablet */
@media (max-width: 992px) {
    .masonry-grid {
        column-count: 3;
    }
}

/* Mobile */
@media (max-width: 576px) {
    .masonry-grid {
        column-count: 3;
    }
}


#lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

#lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 12px;
}

#lightbox .close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
}


/* Masonry */
.masonry-grid {
    column-count: 4;
    column-gap: 15px;
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 15px;
}

.masonry-item img {
    width: 100%;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.masonry-item img:hover {
    transform: scale(1.05);
}

/* Responsive */
@media (max-width: 992px) {
    .masonry-grid { column-count: 3; }
}
@media (max-width: 576px) {
    .masonry-grid { column-count: 3; }
}

/* Filter buttons */
.filter-btn {
    border: none;
    background: #eee;
    padding: 8px 18px;
    margin: 5px;
    border-radius: 30px;
    cursor: pointer;
    transition: 0.3s;
}

.filter-btn.active,
.filter-btn:hover {
    background: #000;
    color: #fff;
}
#lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

#lightbox img {
    max-width: 90%;
    max-height: 90%;
    transition: transform 0.3s ease;
}

#lightbox.zoom img {
    transform: scale(1.6);
}

.close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
}

.nav {
    position: absolute;
    top: 50%;
    font-size: 50px;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
}

.prev { left: 30px; }
.next { right: 30px; }

.zoom-btn {
    position: absolute;
    bottom: 30px;
    right: 30px;
    background: #fff;
    border: none;
    padding: 8px 12px;
    border-radius: 50%;
    cursor: pointer;
}


header.header-5 .header-search {
    position: relative;
    margin-right: 30px;
    margin-left: 15px;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
}



.header-search-input {
    height: 34px;
    width: 300px !important;
    padding: 0 40px 0 15px;
    border-radius: 30px;
    border: 1px solid #ddd;
    outline: none;
    font-size: 12px;
    padding-left: 15px;
}


.header-search-input2 {
    height: 34px;
    width: 300px !important;
    padding: 0 40px 0 15px;
    border-radius: 30px;
    border: 1px solid #ddd;
    outline: none;
    font-size: 12px;
}



@media (max-width: 480px) {
    header.header-5 .header-btn-cta .theme-btn {
        display: inline-block;
    }
}


@media (max-width: 500px) {
    header.header-5 .main-header-wraper .theme-btn {
        padding: 14px 20px;
        font-size: 14px;
    }
}




/* Hide by default (medium & large screens) */
.mobile-search-only {
    display: none;
}

/* Show only on small devices */
@media (max-width: 767px) {
    .mobile-search-only {
        display: block;
    }

    .mobile-search-heading {
        font-size: 16px;
        font-weight: 600;
        margin-bottom: 8px;
        text-align: center;
    }
}




/* Default – tablet & desktop (unchanged) */
.gallery-mobile-padding {
    padding-top: 120px;
    padding-bottom: 40px;
}

/* Mobile devices only */
@media (max-width: 767px) {
    .gallery-mobile-padding {
        padding-top: 180px !important;
        padding-bottom: 150px !important;
    }
}
