.ug-gallery{
    width:100%;
    max-width:1400px;
    margin:60px auto;
}

.ug-header{
    text-align:center;
    margin-bottom:32px;
}

.ug-header h2{
    margin:0;
    font-size:34px;
    font-weight:700;
    color:#111;
}

.ug-header p{
    margin:12px 0 0;
    color:#777;
    font-size:16px;
}

/* =====================================================
   FILTER
===================================================== */

.ug-filter{

    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    align-items:center;

    gap:12px;

    margin:0 0 30px;

}

.ug-filter-list{

    display:flex;
    flex-wrap:wrap;
    justify-content:center;

    gap:12px;

}

.ug-filter-btn{

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

    gap:8px;

    height:42px;

    padding:0 18px;

    border:1px solid #e5e5e5;

    border-radius:30px;

    background:#fff;

    color:#333;

    font-size:14px;

    font-weight:600;

    line-height:1;

    cursor:pointer;

    transition:all .25s ease;

}

.ug-filter-btn:hover{

    border-color:#111;

    transform:translateY(-2px);

    box-shadow:0 8px 18px rgba(0,0,0,.08);

}

.ug-filter-btn.active{

    background:#111;

    color:#fff;

    border-color:#111;

}

.ug-color-dot{

    width:16px;

    height:16px;

    border-radius:50%;

    border:1px solid rgba(0,0,0,.15);

    flex-shrink:0;

}

.ug-filter-btn.active .ug-color-dot{

    border-color:rgba(255,255,255,.45);

}

/* =====================================================
   TABLET
===================================================== */

@media(max-width:1024px){

    .ug-filter{

        gap:10px;

        margin-bottom:24px;

    }

    .ug-filter-list{

        gap:10px;

    }

}

/* =====================================================
   MOBILE
===================================================== */

@media(max-width:768px){

    .ug-filter{

        justify-content:flex-start;

        gap:8px;

        margin-bottom:20px;

    }

    .ug-filter-list{

        display:flex;

        flex-wrap:wrap;

        justify-content:flex-start;

        gap:8px;

        width:100%;

    }

    .ug-filter-btn{

        height:36px;

        padding:0 14px;

        font-size:13px;

        border-radius:20px;

    }

    .ug-color-dot{

        width:14px;

        height:14px;

    }

}

/* =====================================================
   SMALL MOBILE
===================================================== */

@media(max-width:480px){

    .ug-filter{

        gap:6px;

    }

    .ug-filter-list{

        gap:6px;

    }

    .ug-filter-btn{

        height:34px;

        padding:0 12px;

        font-size:12px;

    }

    .ug-color-dot{

        width:12px;

        height:12px;

    }

}

.ug-slider{
    position:relative;
    width:100%;
    display:flex;
    align-items:center;
}

.ug-track{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:18px;
}

.ug-item{
    position:relative;
    overflow:hidden;
    border-radius:18px;
    background:#f7f7f7;
    cursor:pointer;
    box-shadow:0 4px 14px rgba(0,0,0,.06);
    transition:.25s;
    animation:ugFade .25s ease;
}

.ug-item:hover{
    transform:translateY(-4px);
    box-shadow:0 18px 40px rgba(0,0,0,.15);
}

.ug-item img{
    display:block;
    width:100%;
    aspect-ratio:4/5;
    object-fit:cover;
    transition:.35s;
}

.ug-item:hover img{
    transform:scale(1.05);
}

.ug-arrow{

position:absolute;

top:50%;

transform:translateY(-50%);

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

width:56px !important;
height:56px !important;

min-width:56px !important;
min-height:56px !important;
max-width:56px !important;
max-height:56px !important;

padding:0 !important;
margin:0 !important;

border:none;

border-radius:50% !important;

appearance:none;
-webkit-appearance:none;

background:#fff;

box-sizing:border-box;

font-size:28px;
line-height:1;

cursor:pointer;

box-shadow:0 10px 24px rgba(0,0,0,.15);

z-index:20;

}

.ug-arrow:hover{
    transform:translateY(-50%) scale(1.08);
}

.ug-prev{
    left:-35px;
}

.ug-next{
    right:-35px;
}

.ug-arrow:disabled{
    opacity:.35;
    cursor:not-allowed;
    pointer-events:none;
}

.ug-loading{
    grid-column:1/-1;
    display:flex;
    justify-content:center;
    align-items:center;
    min-height:260px;
    color:#888;
    font-size:16px;
}

@media(max-width:1024px){

    .ug-track{
        grid-template-columns:repeat(3,1fr);
        gap:16px;
    }

    .ug-header h2{
        font-size:30px;
    }

    .ug-prev{
        left:-20px;
    }

    .ug-next{
        right:-20px;
    }

}

@media(max-width:768px){

    .ug-gallery{
        margin:30px auto;
        padding:0 15px;
    }

    .ug-header{
        margin-bottom:20px;
    }

    .ug-header h2{
        font-size:24px;
    }

    .ug-header p{
        font-size:14px;
    }

    .ug-track{
        grid-template-columns:repeat(2,1fr);
        gap:12px;
    }

    .ug-item{
        border-radius:14px;
    }

    .ug-arrow{

display:flex !important;
align-items:center !important;
justify-content:center !important;

width:44px !important;
height:44px !important;

min-width:44px !important;
min-height:44px !important;
max-width:44px !important;
max-height:44px !important;

padding:0 !important;
margin:0 !important;

border-radius:50% !important;

appearance:none;
-webkit-appearance:none;

box-sizing:border-box;

font-size:22px;
line-height:1;

background:rgba(255,255,255,.95);

}

    .ug-prev{
        left:4px;
    }

    .ug-next{
        right:4px;
    }

}

@media(max-width:480px){

    .ug-gallery{
        padding:0 10px;
    }

    .ug-track{
        gap:10px;
    }

}

@keyframes ugFade{

    from{
        opacity:0;
        transform:translateY(10px);
    }

    to{
        opacity:1;
        transform:none;
    }

}