.treatments-images-list .filters {
    margin-bottom: 20px;
    text-align: center;
}

.treatments-images-list .filters ul {
    background-color: rgba(0, 0, 0, 0.04);
    padding: 4px;
    margin: 0 auto;
    border-radius: 64px;
    display: inline-flex;
    align-items: center;
}

.treatments-images-list .filters button {
    color: var(--primary);
    font-size: 16px;
    background-color: transparent;
    padding: 8.5px 18px;
    border: 0;
    outline: 0;
    opacity: 0.52;
    line-height: 100%;
    font-weight: 500;
    letter-spacing: -0.02em;
}

.treatments-images-list .filters button.active {
    background-color: #ffffff;
    border: 1px solid #ffffff;
    opacity: 1;
    box-shadow: rgba(0, 0, 0, 0.08) 0 1px 2px 0;
}

.treatments-images-list .items {
    display: flex;
    flex-wrap: wrap;
    row-gap: 12px;
    column-gap: 15px;
}

.treatments-images-list .item {
    background-color: #fbf7f3;
    border-radius: 32px;
    padding: 3px;
    display: flex;
    align-items: center;
    gap: 3px;
    overflow: hidden;
}

.treatments-images-list .item-before-image img,
.treatments-images-list .item-after-image img  {
    display: block;
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.treatments-images-list .item-before-image img {
    border-radius: 32px 0 0 32px;
}

.treatments-images-list .item-after-image img {
    border-radius: 0 32px 32px 0;
}

@media screen and (min-width: 1024px) {
    .treatments-images-list .item {
        flex: 0 0 calc(50% - 7.5px);
    }
}
