/* static/css/carousel.css */

    .carousel-container {
        position: relative;
        overflow: hidden;
        margin: 0 auto;
    }
    .carousel-track {
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: 100%;
        transition: transform 0.5s ease;
    }
    .carousel-slide img {
        width: 100%;
        display: block;
    }
    .carousel-button {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background: rgba(255,255,255,0.85);
        border: 0;
        padding: .5rem .75rem;
        cursor: pointer;
        z-index: 10;
    }
    .carousel-button.prev { left: 10px; }
    .carousel-button.next { right: 10px; }
    .carousel-slide {
        text-align: center;
        width: 100%;
    }

    .my-carousel-caption {
        display: inline-flex;    /* shrink to content width */
        flex-direction: column;  /* stack lines */
        align-items: center;     /* center horizontally */
        gap: .25rem;
        margin: .5rem 0 0;
        text-align: center;
    }
    .my-carousel-caption strong { margin-right: .25rem; }

    /* Dots */
    .carousel-dots {
        display: flex;
        justify-content: center;
        gap: .4rem;
        margin-top: .5rem;
    }
    .carousel-dot {
        width: .7rem;
        height: .7rem;
        border-radius: 50%;
        border: 1px solid #666;
        background: #ddd;
        cursor: pointer;
    }
    .carousel-dot.active {
        background: #666;
    }
