.specialists__wrapper {
    --swiper-scrollbar-drag-bg-color: rgb(var(--color-accent));
    --swiper-scrollbar-border-radius: 0;
    --swiper-scrollbar-size: 4px;
    /* --swiper-scrollbar-sides-offset: 0; */
    --swiper-scrollbar-top: auto;
    --swiper-scrollbar-bottom: 4px;
}

.specialists__header {
    margin-bottom: 32px;
}

.specialists__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px 16px;
}

.specialists__grid > * {
    flex: 0 0 calc(50% - 8px);
}


.specialists__grid .card-wrapper {
    padding: 0;
}

@media screen and (min-width: 1024px) {
    .specialists__grid {
        gap: 32px;
    }

    .specialists__grid > * {
        flex: 0 0 calc(25% - 24px);
    }    
}

.specialists__grid .grid-item .media {
    border: 8px solid white;
}

.specialists__grid {
    text-align: left;
}

@media screen and (max-width: 749px) {
    .specialists__grid .card__heading {
        font-size: 18px;
    }

    .specialists__grid p {
        font-size: 14px;
    }
}

@media screen and (min-width: 750px) {
    .specialists__grid {
        justify-content: center;
        text-align: center;
    }

    .specialists__grid .grid-item .media {
        border: 12px solid white;
    }
}

.specialists__button {
    margin-top: 36px;
}

.specialists__grid .grid-item {
    display: none;
}

.specialists__grid .grid-item:nth-of-type(1),
.specialists__grid .grid-item:nth-of-type(2),
.specialists__grid .grid-item:nth-of-type(3),
.specialists__grid .grid-item:nth-of-type(4) {
    display: block;
}

.specialists__grid.show-all .grid-item {
    display: block !important;
}

.specialists__button .collapse {
    display: none;
}

.specialists__grid.show-all + .specialists__button a span:first-of-type {
    display: none;
}

.specialists__grid.show-all + .specialists__button .collapse {
    display: inline;
}