.carousel {
    width: 100%;
    position: relative;
}

.hero-and-cta {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    width: 100%;
    position: relative;
}

.carousel-viewport {
    display: flex;
    scroll-snap-type: x mandatory;
    overflow-x: scroll;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    margin: 0 auto;
    width: 100%; /* set initial slide width to container width */
    position: relative;
}

.carousel-viewport::-webkit-scrollbar {
    display: none;
}

.carousel-slide {
    width: 100%;
    flex-shrink: 0;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    overflow-y: hidden;
}

.carousel-control {
    display: block;
    text-align: center;
    line-height: 2.75rem;
    color: white;
    font-size: 2.5rem;
    border-radius: 50%;
    width: 3rem;
    height: 3rem;

    cursor: pointer;

    position: absolute;
    top: 25%;
    z-index: 100;

    background: rgba(0,0,0,0.15);
    transition: background 0.15s ease;
}

.carousel-control--left {
    left: 0;
}

.carousel-control--right {
    right: 0;
}

.carousel-control:hover {
    background: rgba(0, 0, 0, 0.5);
}

@media(max-width: 530px) {
    .carousel-control {
        visibility: hidden;
    }
}

.carousel-thumbs {
    text-align: center;
}

.carousel-thumb {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    background: rgb(166, 166, 166);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    margin: 0.50rem;
    text-align: center;

    /* Disable highlight on press */
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

.carousel-thumb.active, .carousel-thumb.active:hover {
    background: rgb(252, 126, 71);
}

.carousel-thumb:focus {
    outline: none;
}

.carousel-thumb:hover {
    background: rgb(190, 190, 190);
}
