﻿* {
    box-sizing: border-box
}

body {
    margin: 0;
    font-family: system-ui,Segoe UI,Roboto,Arial,sans-serif
}

.slider {
    max-width: 100%;
    margin: 0px;
    position: relative;
    overflow: hidden;
 
 }

.slides {
    display: flex;
    transition: transform .45s ease;
    will-change: transform;
}

.slide {
    min-width: 100%;
    user-select: none
}

    .slide img {
        width: 100%;
        height: 420px;
        object-fit: cover;
        display: block
    }

@media (max-width:640px) {
    .slide img {
        height: 240px
    }
}

/* arrows */
.nav {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: none;
}

.btn {
    pointer-events: auto;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(0,0,0,.45);
    color: #fff;
    font-size: 18px;
    display: grid;
    place-items: center;
    cursor: pointer;
    margin: 0 8px;
}

    .btn:hover {
        background: rgba(0,0,0,.65)
    }

    .btn:active {
        transform: scale(.96)
    }

/* dots */
.dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 10px;
    display: flex;
    gap: 8px;
    justify-content: center;
}

.dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #ffffff77;
    border: 1px solid #fff;
    cursor: pointer;
}

    .dot.active {
        background: #fff
    }
