.gallery .filters__button {
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 9px;
    max-width: 1200px;
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
}
.gallery h2{
    font-weight: 500;
}
.gallery .filters__button::-webkit-scrollbar {
    display: none;
}
.gallery .filters__button .active {
    background-color: var(--yellow);
}
.gallery .filters__button .active:hover {
    background-color: #ffd22f;
}
.gallery .filters__button li {
    display: flex;
    margin-bottom: 0;
    justify-content: center;
    align-items: center;
    //max-width: 142px;
    width: 100%;
    cursor: pointer;
    padding: 20px 10px;
    border-radius: 200px;
    background-color: #f5f5f5;
    font-size: 15px;
    font-weight: 400;
    line-height: 17px;
    color: #000;
    white-space: nowrap;
    transition: background var(--time);
}
.gallery .filters__button li.active {
    background-color: var(--yellow);
}
.slider-arrow:hover {
    background-color: #058dc7;
    transform: scale(1.05);
}
.slider-arrow:focus {
    outline: 2px solid #fff; /* Добавляет обводку при фокусе */
}
.gallery .filters__button li:hover {
    background-color: #d8d8d8;
}
.gallery .filters__button li:before {
    content: '';
    display: none;
}
.gallery__page-block {
    margin: 30px 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 25px;
}
.wrapper .content .gallery__page-block img{
    margin-bottom: 0;
    height: 342px;
    object-fit: cover;
}
.gallery__page-block.active {
    display: grid;
}
.gallery__page-block.gallery__slider-hide {
    display: none;
}
@media (max-width: 374.5px) {
    .wrapper .content .gallery__page-block img{
        height: 295px;
    }
}

.slider-container {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
}

.filters-wrapper {
    flex: 1;
    overflow: hidden;
}

.filters__button {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 0;
    margin: 0;
    list-style: none;
    scrollbar-width: none;
}

.filters__button::-webkit-scrollbar {
    display: none;
}

.slider-arrow {
    background-color: #009fe3;
    border: none;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s, visibility 0.3s;
    flex-shrink: 0; /* Предотвращает сжатие стрелок */
}
.slider-arrow svg path{
    stroke: #fff;
}
.slider-arrow.right-arrow svg{
    transform: rotate(180deg);
    margin-left: 4px;
}
.slider-arrow.left-arrow svg{
    margin-right: 4px;
}
.slider-arrow.hidden {
    display: none;
}

.left-arrow {
    margin-right: 10px;
}

.right-arrow {
    margin-left: 10px;
}

@media (max-width: 460px) {
    .gallery .filters__button li{
        padding: 10px;
    }
    .gallery .filters__button{
        gap: 5px;
    }
    .slider-arrow{
        width: 25px;
        height: 25px;
    }
    .left-arrow {
        margin-right: 5px;
    }

    .right-arrow {
        margin-left: 5px;
    }
}
