.slider {
    position: relative;
    display: flex;
    align-items: center
}

.slider__scroll {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    overflow-x: scroll;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
    width: 100%;
    justify-content: stretch;
    padding-right: 1rem;
    padding-bottom: .75rem
}

.slider__item {
    width: 280px;
    flex-shrink: 0;
    scroll-snap-align: center;
    box-shadow: none;
    transition: box-shadow .3s linear
}

.slider__item:hover {
    cursor: pointer;
    box-shadow: none
}

@media only screen and (min-width: 767px) {
    .slider {
        display: flex;
        gap: 1.5rem
    }

    .slider__scroll {
        gap: 1.5rem;
        padding-right: 2rem
    }
}

@media only screen and (min-width: 1024px) {
    .slider__item {
        width: inherit
    }

    .slider--hidden-md .slider__scroll {
        display: grid;
        grid-template-columns: repeat(2, 1fr)
    }
}