
/* HERO IMAGE SLIDER */

.hero-slider {
    width: 100%;
    position: relative;
    overflow: hidden;
    border: 1px solid #434a44;
    background: #111;
    aspect-ratio: 1 / 1;
}

.slider-track {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity .7s ease, visibility .7s ease;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

/* Navigation arrows */

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: rgba(0,0,0,.65);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    transition: background .3s;
}

.slider-arrow:hover {
    background: var(--sage);
    color: var(--ink);
}

.slider-arrow.prev {
    left: 15px;
}

.slider-arrow.next {
    right: 15px;
}

/* Slider dots */

.slider-dots {
    position: absolute;
    bottom: 18px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 3;
}

.slider-dots .dot {
    width: 10px;
    height: 10px;
    border: 1px solid #fff;
    border-radius: 50%;
    background: transparent;
    padding: 0;
    cursor: pointer;
}

.slider-dots .dot.active {
    background: var(--sage);
    border-color: var(--sage);
}

/* Mobile responsive */

@media(max-width:800px) {
    .hero-slider {
        aspect-ratio: 1 / 1;
    }

    .slider-arrow {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
}
