.carousel-wrap
{
    display: block;
    overflow: hidden;
}

.carousel
{
    white-space: nowrap;
    list-style-type: none;
    font-size: 0px;  
    transition: transform 0.5s cubic-bezier(.1,.7,.3,0.9);
    position: relative;
    left: 0;
    margin: 0;
    padding: 0; 
    line-height: 1;
    cursor: ew-resize;           
    cursor: grab;
}    
    
.carousel>*
    {
        list-style-type: none;
        font-size: 1rem;
        display: inline-block;
        white-space: normal;
        vertical-align: text-top;
        line-height: 1.5;
        margin: 0;
    }

    .carousel>*>img
    {
        width: 100%;
        height: auto;
        display: block;
    }

    .carousel.dragging
    {
        transition: none;

        .carousel,.carousel *
        {
            cursor: ew-resize;        
            cursor: grabbing;
        }
    }    

.fixed-aspect>.carousel-wrap, .fixed-aspect>.carousel-wrap>.carousel.loop
{
    position: absolute;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;    
}







a.car-next, a.car-prev 
{
    left: 0;
    color: #fff !important;
    display: block;
    font-size: 3rem;
    line-height: 1;
    width: 1.5em;
    margin-top: -1em;
    padding: 0.5em 0 0.5em 0;
    position: absolute;
    text-align: center;
    top: 50%;
    cursor: pointer;
    user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;  
}
    
a.car-next:before,
a.car-prev:before
{
    background-color: a-adjust(color-hyperlink, -70);
}

a.car-next:hover:before,
a.car-prev:hover:before
{
    background-color: a-adjust(color-hyperlink, -20); 
}
    
    
    a.car-next .sd,
    a.car-prev .sd
    {
        position: relative;
        z-index: 1;
    }



a.car-next {
    left: auto;
    right: 0;
}

[data-status="allvisible"] ~ a.car-next,
[data-status="allvisible"] ~ a.car-prev
{
    display: none;
}

[data-status="start"] ~ a.car-prev
{
    display: none;
}

[data-status="end"] ~ a.car-next
{
    display: none;
}

.car-thumbs 
{
    position: absolute;
    z-index: 10;
    bottom: 0rem;
    left: 0px;
    width: 100%;
    height: 2rem;
    line-height: 2rem;
    margin: 0px;
    text-align: center;
    background: radial-gradient(ellipse farthest-side at bottom center, b30, transparent);
}


.car-thumbs > * 
{
    display: inline-block;
    width: 8px;
    height: 8px;
    margin: 0px 1px;
    border-radius: 50%;
    border: 1px solid #fff;
}

[data-current-slide="0"] ~ .car-thumbs > :nth-child(0),
[data-current-slide="10"] ~ .car-thumbs > :nth-child(10),
[data-current-slide="20"] ~ .car-thumbs > :nth-child(20) {
    background-color: #fff;
    }
[data-current-slide="1"] ~ .car-thumbs > :nth-child(1),
[data-current-slide="11"] ~ .car-thumbs > :nth-child(11),
[data-current-slide="21"] ~ .car-thumbs > :nth-child(21) {
    background-color: #fff;
    }
[data-current-slide="2"] ~ .car-thumbs > :nth-child(2),
[data-current-slide="12"] ~ .car-thumbs > :nth-child(12),
[data-current-slide="22"] ~ .car-thumbs > :nth-child(22) {
    background-color: #fff;
    }
[data-current-slide="3"] ~ .car-thumbs > :nth-child(3),
[data-current-slide="13"] ~ .car-thumbs > :nth-child(13),
[data-current-slide="23"] ~ .car-thumbs > :nth-child(23) {
    background-color: #fff;
    }
[data-current-slide="4"] ~ .car-thumbs > :nth-child(4),
[data-current-slide="14"] ~ .car-thumbs > :nth-child(14),
[data-current-slide="24"] ~ .car-thumbs > :nth-child(24) {
    background-color: #fff;
    }
[data-current-slide="5"] ~ .car-thumbs > :nth-child(5),
[data-current-slide="15"] ~ .car-thumbs > :nth-child(15),
[data-current-slide="25"] ~ .car-thumbs > :nth-child(25) {
    background-color: #fff;
    }
[data-current-slide="6"] ~ .car-thumbs > :nth-child(6),
[data-current-slide="16"] ~ .car-thumbs > :nth-child(16),
[data-current-slide="26"] ~ .car-thumbs > :nth-child(26) {
    background-color: #fff;
    }
[data-current-slide="7"] ~ .car-thumbs > :nth-child(7),
[data-current-slide="17"] ~ .car-thumbs > :nth-child(17),
[data-current-slide="27"] ~ .car-thumbs > :nth-child(27) {
    background-color: #fff;
    }
[data-current-slide="8"] ~ .car-thumbs > :nth-child(8),
[data-current-slide="18"] ~ .car-thumbs > :nth-child(18),
[data-current-slide="28"] ~ .car-thumbs > :nth-child(28) {
    background-color: #fff;
    }
[data-current-slide="9"] ~ .car-thumbs > :nth-child(9),
[data-current-slide="19"] ~ .car-thumbs > :nth-child(19),
[data-current-slide="29"] ~ .car-thumbs > :nth-child(29) {
    background-color: #fff;
    }

@media $(screen-sml-dn)
{
    .carousel-wrap ~ .car-thumbs
    {
        display: none;
    }
    
    .carousel-wrap:after
    {
        position: absolute;
        bottom: 0;
        background-color: rgba(0,0,0,0.4);
        left: 50%;
        width: 3rem;
        margin-left: -1.5rem;
        text-align: center;
        color: #fff;
        font-weight: bold;
        font-size: 0.8rem;
        text-shadow: 1px 1px 0px #000;
        content: attr(data-current-slide) " / " attr(data-slide-count);
        pointer-events: none;
        border-radius: 3px 3px 0 0;
    }
    
}

.bg-contain
{
    background-size: contain;
    background-position: center center;
    background-repeat: no-repeat;
}