/* ==========================
   Portfolio Wrapper
========================== */

.sp-portfolio-wrapper {
    width: 100%;
    margin: 0 auto;
}

/* ==========================
   Filter Tabs
========================== */

.sp-filter-tabs {
    text-align: center;
    margin-bottom: 40px;
}

.sp-filter-btn {
    display: inline-block;
    border: none;
    background: #f5f5f5;
    color: #333;
    padding: 12px 25px;
    margin: 5px;
    border-radius: 30px;
    cursor: pointer;
    transition: all .3s ease;
    font-size: 15px;
    font-weight: 600;
}

.sp-filter-btn:hover,
.sp-filter-btn.active {
    background: #3A6EF2;
    color: #fff;
}

/* ==========================
   Portfolio Grid
========================== */

.sp-portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* ==========================
   Portfolio Item
========================== */

.sp-portfolio-item {
    overflow: hidden;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 5px 20px rgba(0,0,0,.08);
    transition: all .3s ease;
}

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

/* ==========================
   Image
========================== */

.sp-portfolio-image {
    position: relative;
    overflow: hidden;
}

.sp-img {
    width: 100%;
    display: block;
    transition: transform .4s ease;
}

.sp-portfolio-item:hover .sp-img {
    transform: scale(1.08);
}

/* ==========================
   Overlay
========================== */

.sp-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.75);

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    opacity: 0;
    visibility: hidden;

    transition: all .3s ease;
}

.sp-portfolio-item:hover .sp-overlay {
    opacity: 1;
    visibility: visible;
}

/* ==========================
   Buttons
========================== */

.sp-preview-btn,
.sp-visit-btn {

    display: inline-block;
    padding: 12px 20px;
    margin: 8px 0;

    text-decoration: none;
    border-radius: 30px;

    font-size: 14px;
    font-weight: 600;

    transition: all .3s ease;
}

.sp-preview-btn {
    background: #ffffff;
    color: #333;
}

.sp-preview-btn:hover {
    background: #3A6EF2;
    color: #fff;
}

.sp-visit-btn {
    background: #3A6EF2;
    color: #fff;
}

.sp-visit-btn:hover {
    background: #0E0E0E;
    color: #fff;
}

/* ==========================
   Content
========================== */

.sp-content {
    padding: 20px;
    text-align: center;
}

.sp-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #0E0E0E;
}
.sp-title:hover {
    color: #3A6EF2;
}


/* ==========================
   No Portfolio
========================== */

.sp-no-portfolio {
    text-align: center;
    padding: 40px;
}

/* ==========================
   Tablet
========================== */

@media (max-width: 991px) {

    .sp-portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}

/* ==========================
   Mobile
========================== */

@media (max-width: 767px) {

    .sp-portfolio-grid {
        grid-template-columns: 1fr;
    }

    .sp-filter-btn {
        padding: 10px 18px;
        font-size: 14px;
    }

}