.portfolio-filters {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    /* border-bottom: 1px solid #eee; */
    padding-bottom: 1rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    /* Smooth scrolling on iOS */
    /* Hide scrollbar in Firefox */
    scrollbar-width: none;
    /* Hide scrollbar in IE/Edge */
    -ms-overflow-style: none;
}

/* Hide scrollbar in Chrome/Safari */
.portfolio-filters::-webkit-scrollbar {
    display: none;
}

.filters-list {
    display: flex;
    align-items: center;
    gap: 1rem;
    /* Prevent filter buttons from wrapping */
    white-space: nowrap;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 1rem;
    color: #666;
    transition: color 0.3s;
    /* Prevent text from wrapping */
    white-space: nowrap;
}

.filter-btn.active {
    color: #000;
    font-weight: 500;
    border-bottom: 2px solid #8cc63f;
    /* Highlight active filter */
}

.view-all {
    margin-left: auto;
    text-decoration: none;
    color: #000;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.portfolio-item {
    opacity: 1;
    transition: opacity 0.3s;
    height: 100%;
    transition: transform 0.3s;
}

.portfolio-item.hide {
    opacity: 0;
    display: none;
}

.portfolio-item:hover {
    transform: translateY(-5px);
}

.category {
    border: 1px solid #8cc63f;
    color: #8cc63f!important;
    border-radius: 1rem;
    padding: 0.25em 0.75em;
    background: transparent;
    font-weight: 500;
    display: inline-block;
}

/* .portfolio-image { */
/* aspect-ratio: 16/9; */
/* height:100%!important;
    overflow: hidden;
} */
.first-item-portfolio img {
    object-fit: cover;
    width: 100%;
    aspect-ratio: 12/5;
    /* width: 100%!important; */
}

/* .portfolio-image img {
    object-fit: cover;
    height: 100%;
} */


/* Featured item specific styles */
.col-12 .portfolio-image {
    /* aspect-ratio: 21/9; */
}

/* .portfolio-slider .owl-dots {
    margin-top: 15px;
    text-align: center;
}

.portfolio-slider .owl-dot {
    display: inline-block;
    margin: 0 5px;
}

.portfolio-slider .owl-dot span {
    width: 10px;
    height: 10px;
    background: #ccc;
    border-radius: 50%;
    display: block;
}

.portfolio-slider .owl-dot.active span {
    background: #000;
} */

/* mobile  */
@media (max-width: 991.98px) {
    .portfolio-info {
        background: linear-gradient(0deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
        position: absolute;
        left: 0;
        bottom: 0;
        padding: 1rem;
        width: 100%;
    }

    .first-item-portfolio {
        height: 500px !important;
    }

    .first-item-portfolio img {
        object-fit: cover;
        height: 100%;
        /* width: 100%!important; */
    }

    .portfolio-slider {
        /* margin: 15px -15px;
        padding: 0 15px; */
    }
}

/* desktop */
@media (min-width: 992px) {
    .portfolio-info {
        background: linear-gradient(90deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 100%);
        position: absolute;
        left: 0;
        top: 0;
        padding: 5rem;
        width: 50%;
        height: 100%;
    }
}

#portfolio-loading.fixed-center {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
  pointer-events: none;
}