.gallery-tabs {
    display: flex;
    align-items: center;
    gap: 12px;

    margin: 24px 0;
    padding: 16px;

    background: #fff;
    border-radius: 16px;

    overflow-x: auto;
    scroll-behavior: smooth;

    scrollbar-width: none;
}

.gallery-tabs::-webkit-scrollbar {
    display: none;
}

.gallery-tabs button {
    cursor: pointer;

    border: 1px solid #929292;
    border-radius: 100px;

    padding: 10px 16px;

    background: transparent;
    color: #929292;

    font-weight: 800;
    font-size: 14px;
    text-transform: uppercase;
    white-space: nowrap;

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

    transition: all 0.3s ease;
}

.gallery-tabs button:hover,
.gallery-tabs button.active {
    background-color: #1c1c1c;
    color: #fff;
    border-color: #1c1c1c;
}

.gallery-grid {
    margin-left: -10px;
    margin-right: -10px;
    transition: opacity .18s ease;
}

.gallery-grid.is-switching {
    opacity: .35;
}
.gallery-item {
    width: 25%;
    padding: 10px;
    box-sizing: border-box;

    transition: opacity .25s ease, transform .25s ease;

    opacity: 1;
    transform: scale(1);
}

.gallery-item.is-hidden {
    opacity: 0;
    transform: scale(0.8);

    pointer-events: none;
}

.gallery-item.hide {
    opacity: 0;
    transform: scale(0.9);
}

.gallery-item.show {
    opacity: 0;
    transform: scale(0.9);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    transition: transform .2s ease;
}

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

.gallery-card {
    position: relative;
    overflow: hidden;
}

.gallery-card img {
    width: 100%;
    display: block;
    border-radius: 10px;
}

.gallery-overlay {
    position: absolute;
    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    background: rgba(0,0,0,0.25);

    opacity: 0;
    visibility: hidden;

    transition: all .3s ease;
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
    visibility: visible;
}

.gallery-btn {
    width: 52px;
    height: 52px;

    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FFFFFF;
    cursor: pointer;
    transition: all .3s ease;
}

.gallery-btn:hover {
    background: #FF6F36;
}

.gallery-btn svg {
    width: 20px;
    height: 20px;
    fill: #000;

    transition: all .3s ease;
}

.gallery-btn:hover svg {
    fill: #fff;
}

.gallery.is-loading {
    opacity: 0;
    visibility: hidden;
}

.gallery.is-ready {
    opacity: 1;
    visibility: visible;
    transition: opacity .3s ease;
}

.gallery-grid {
    opacity: 0;
    transition: opacity .3s ease;
}

.gallery-grid.is-ready {
    opacity: 1;
}

.gallery-grid .gallery-item {
    opacity: 0;
}

.gallery-grid.is-ready .gallery-item {
    opacity: 1;
}
.gallery-loader {
    position: absolute;
    inset: 0;

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

    pointer-events: none;
    opacity: 0;
    transition: opacity .2s ease;
}

.gallery-grid.is-switching .gallery-loader {
    opacity: 1;
}

.gallery-loader::after {
    content: "";
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 3px solid #ccc;
    border-top-color: #1c1c1c;
    animation: gallerySpin .8s linear infinite;
}
.gallery-subtabs {
    display: flex;
    gap: 10px;
    flex-direction: row;
    margin-bottom: 10px;
}
.gallery-subtabs button {
    font-family: "Montserrat",sans-serif;
    width: max-content;
    padding: 0.2rem 1rem;
    background-color: #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,.08);
    border-radius: 18px;
    color: #262626;
    font-weight: 600;
    outline: none;
    border: none;
    cursor: pointer;
    transition: background-color .2s,box-shadow .2s,border .2s,color .2s,opacity .2s;
}

.gallery-subtabs button.active {
    background-color: #1c1c1c;
    color: #fff;
}
.
@keyframes gallerySpin {
    to {
        transform: rotate(360deg);
    }
}
@media (max-width: 768px) {
    .gallery-item {
        width: 50%;
    }
    .gallery-overlay {
        visibility: visible;
        opacity: 1;
        background: transparent;
    }
    .gallery-btn:hover {
        background: transparent;
    }
    .gallery-tabs {
        padding: 12px;
        gap: 8px;
    }
    .gallery-btn {
        width: 100%;
        height: 100%;
        border-radius: 0;
        background: transparent;
    }
    .gallery-btn svg {
        display: none;
    }
    .gallery-tabs button {
        font-size: 12px;
        padding: 8px 12px;
    }
}

