/* SLIDER CONTAINER */
@media screen and (max-width: 749px) {
    .slider-container {
        --slider-padding: 0;
        --slider-column-width: 100%;
        --slide-border-radius: 0;
        --slide-padding: 0.1px;
        --svg-width: 20px;
    }
}

@media screen and (min-width: 750px) {
    .slider-container {
        --slider-padding: 16px 8px;
        --slider-column-width: 46%;
        --slide-border-radius: 8px;
        --slide-padding: 8px;
        --svg-width: 36px;
    }
}


.slider-container {
    /* background-color: lightseagreen; */
    --slider-control-button-width: 40px;
    font-family: Helvetica, serif;
    width: 100%;
    position: relative;
    padding: var(--slider-padding);
    display: grid;
    grid-template-columns: var(--slider-control-button-width) auto var(--slider-control-button-width);
}

/* SLIDER LIST */
.smooth-scroll {
    scroll-behavior: smooth;
}

.snap-align {
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.slider-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
    grid-column: 1/4;
    grid-row: 1/2;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: var(--slider-column-width);
    overflow-x: auto;
    overflow-y: hidden;
    /* background-color: lightgrey; */
}

.slider-list::-webkit-scrollbar {
    display: none;
}

.slider-slide {
    position: relative;
}

.slider-slide img {
    border-radius: var(--slide-border-radius);
}

.slider-slide span {
    background-color: white;
    font-size: 40px;
    position: absolute;
    top: 32px;
    left: 32px;
}

.snap-inline {
    scroll-snap-type: inline mandatory;
}

.snap-inline > .slider-slide {
    padding-inline: var(--slide-padding);
}

.slider-slide:nth-child(even) {
    /* background-color: lightpink; */
}

.slider-slide:nth-child(odd) {
    /* background-color: lightblue; */
}

/* SLIDER CONTROL BUTTONS */
.slider-control {
    z-index: 4;
}

.slider-control--prev {
    grid-column: 1/2;
    grid-row: 1/2;
}

.slider-control--next {
    grid-column: 3/4;
    grid-row: 1/2;
}

.btn-slide {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-slide svg {
    width: var(--svg-width);
    stroke-width: 0.6;
    transition: ease-in 80ms;
    stroke: #000; 
}

.btn-slide:hover svg {
    stroke-width: 0.8;
}

.slider-control--prev .btn-slide:hover svg {
    margin-right: 2px;
}

.slider-control--next .btn-slide:hover svg {
    margin-left: 2px;
}

.btn-slide:disabled {
    pointer-events: none;
}

.btn-slide:disabled svg {
    stroke: lightgrey;
}

/* SLIDER COUNT */
.slider-indicator {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 4px 8px;
    border-radius: 40px;
    font-size: 12px;
    line-height: 1;
    letter-spacing: -0.4px;
    color: #f2f2f2;
    background-color: rgba(0, 0, 0, 0.4);
}

/* Custom scroll bar */
.slider-scrollbar {
    grid-column: 1/4;
    height: 24px;
    width: 72%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    margin-top: 16px;
    /* background-color: lightgreen; */
}

.slider-scrollbar .scrollbar-track {
    height: 2px;
    width: 100%;
    background-color: #ccc;
    position: relative;
    border-radius: 40px;
}

.slider-scrollbar:hover .scrollbar-track {
    height: 4px;
}

.slider-scrollbar .scrollbar-thumb {
    position: absolute;
    background-color: #000;
    width: 30%;
    height: 100%;
    left: 0;
    cursor: grab;
    border-radius: inherit;
}

.slider-scrollbar .scrollbar-thumb:active {
    cursor: grabbing;
    height: 200%;
    transform: translateY(-25%);
}

.slider-scrollbar .scrollbar-thumb::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -10px;
    bottom: -10px;
}