:root {
    --zippy-blue: #3B82F6;
    --zippy-accent: #ff4569;
}

.zippy-carousel {
    position: relative;
    width: 100%;   
    overflow: hidden;
    border-radius: 14px;
}

.slides {
    display: flex;
    height: 100%;
    transition: transform 0.6s ease;
}

.slide {
    min-width: 100%;
    position: relative;
}

    .slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.caption {
    position: absolute;
    top: 50%;
    left: 8%;
    transform: translateY(-50%);
    /* background: rgba(0,0,0,0.45);*/
    padding: 22px 26px;
    border-radius: 12px;
    color: #fff;
    max-width: 420px;
}

    .caption h1 {
        margin: 0 0 8px;
        font-size: 32px;
    }

    .caption p {
        margin-bottom: 14px;
    }

.btn {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

    .btn.primary {
        background: var(--zippy-blue);
    }

    .btn.accent {
        background: var(--zippy-accent);
    }

    .btn.success {
        background: #2ecc71;
    }

.nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.4);
    color: #fff;
    border: none;
    font-size: 28px;
    padding: 6px 14px;
    cursor: pointer;
    border-radius: 50%;
}

    .nav.prev {
        left: 15px;
    }

    .nav.next {
        right: 15px;
    }

.dots {
    position: absolute;
    bottom: 12px;
    width: 100%;
    text-align: center;
}

    .dots span {
        display: inline-block;
        width: 10px;
        height: 10px;
        background: #ccc;
        margin: 0 4px;
        border-radius: 50%;
        cursor: pointer;
    }

        .dots span.active {
            background: var(--zippy-accent);
        }

/* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 600px) {
    .zippy-carousel {
        width: 100%;
    }

    .caption h1 {
        font-size: 22px;
    }
}

/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (min-width: 600px) {
    .zippy-carousel {
        width: 100%;
    }

    .caption h1 {
        font-size: 22px;
    }
}

/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 768px) {
    .zippy-carousel {
        width: 100%;
    }

    .caption h1 {
        font-size: 22px;
    }
}

/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (min-width: 992px) {
    .zippy-carousel {
        width: 100%;
    }

    .caption h1 {
        font-size: 22px;
    }
}

/* Extra large devices (large laptops and desktops, 1200px and up) */
@media only screen and (min-width: 1200px) {
    .zippy-carousel {
        width: 100%;
    }

    .caption h1 {
        font-size: 22px;
    }
}
