.main-slider .rev_slider_wrapper,
.main-slider .tp-banner-container,
.main-slider .tp-banner {
    height: 500px !important;
    min-height: 500px !important;
    max-height: 500px !important;
}
.main-slider .rev-slidebg {
    height: 100% !important;
    object-fit: cover;
}
.main-slider .tp-caption {
    transform: translateY(-50%) !important;
    top: 80% !important;
}

/* Pagination Container */
.custom-pagination {
    display: flex;
    justify-content: center; /* center align */
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

/* Pagination Items */
.custom-pagination .page-item {
    margin: 0 5px;
}

/* Links */
.custom-pagination .page-link {
    border: 1px solid #ddd;
    background: #fff;
    color: #333;
    padding: 8px 14px;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 14px;
}

/* Hover */
.custom-pagination .page-link:hover {
    background: #333;
    color: #fff;
    border-color: #333;
}

/* Active */
.custom-pagination .active .page-link {
    background: #f39c12; /* nice orange */
    color: #fff !important;
    border-color: #f39c12;
}

/* Prev/Next Arrows */
.custom-pagination .page-link svg,
.custom-pagination .page-link i {
    font-size: 14px; /* smaller arrows */
    vertical-align: middle;
}
/* Gallery Image Fix */
.wt-gallery-bx img {
    width: 100%;
    height: 250px; /* Adjust as per your design */
    object-fit: cover; /* keeps aspect ratio, crops overflow */
    border-radius: 10px; /* optional, for smooth look */
}
@media (max-width: 768px) {
    .main-slider .rev_slider_wrapper,
    .main-slider .tp-banner-container,
    .main-slider .tp-banner {
        height: 300px !important;
        min-height: 300px !important;
        max-height: 300px !important;
    }
}
/* Gallery Section Fixes */
.portfolio-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 0; /* Remove gaps for seamless masonry */
    margin: 0;
    padding: 0;
}
.masonry-item {
    padding: 15px; /* Consistent padding */
    box-sizing: border-box;
}
.wt-gallery-bx {
    margin: 0;
    overflow: hidden;
}
.wt-thum-bx img {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover; /* Ensure images scale properly */
    display: block;
}
.overlay-bx {
    transition: all 0.3s ease;
}
@media (max-width: 991px) {
    .masonry-item {
        flex: 0 0 50%; /* Two columns on medium screens */
        max-width: 50%;
    }
}
@media (max-width: 576px) {
    .masonry-item {
        flex: 0 0 100%; /* One column on small screens */
        max-width: 100%;
    }
}