/* Meier-Digital simple CSS and JS carousel */
.md_carousel {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    font-family: sans-serif;
    box-sizing: border-box;
    scrollbar-color: transparent transparent; /* thumb and track color */
    scrollbar-width: 0;
}

.p_texte_carousel{
    padding-right: 4%;
    padding-left: 4%;
    margin-top: 2%;
    margin-bottom: 2%;
}

.texte_carousel{
    width: 100%;
    position: relative;
    z-index: 98;
    height: max-content;
    background: #0e0f14;
    display: flex;
    flex-flow: column wrap;
    align-items: center;
    justify-content: center;
    color: white;
}

.md_carouselViewport {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 0;
    display: flex;
    overflow-x: hidden;
}

.md_carouselSlide {
    position: relative;
    left: 0%;
    flex: 0 0 100%;
    background-color: black;
    transition: left 4s ease-in-out;
}
.md_carouselNav {
    position: absolute;
    right: 0;
    bottom: 0.2rem;
    left: 0;
    text-align: center;
}
.md_carouselNav:first-child { display: inline-block; }
.md_carouselNavButton {
    display: inline-block;
    width: 1.5rem;
    height: 1.5rem;
    margin: 0 0.15rem;
    background-color: #333;    
    background-color: rgba(51,51,51,0.50);
    background-clip: border-box;
    border: 0 solid transparent;
    outline: 0.2rem solid transparent;
    border-radius: 50%;
    font-size: 0;
    transition: transform 0.1s, outline 0.3s, background 0.3s;
    cursor: pointer;
}

.md_carouselPrevious { left: 0; }
.md_carouselNext { right: 0; }
.md_carouselPrevious,
.md_carouselNext {
    position: absolute;
    top: 0;
    width: 4rem;
    height: 100%;
    border: none;
    content: '';
    z-index: 1;    
    font-size: 2.5rem;
    line-height: 4rem;
    text-align: center;
    cursor: pointer;
    background-color: transparent;
    background-size: 2rem 2rem;
    background-repeat: no-repeat;
    background-position: center center;   
    transition: opacity 0.5s ease, border 0.5s ease;
}

.md_carouselPrevious {
    border-right: 0.2rem solid transparent;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolygon points='0,50 80,100 80,0' fill='%23ffffff' /%3E%3C/svg%3E");
}
.md_carouselNext {
    border-left: 0.2rem solid transparent;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolygon points='100,50 20,100 20,0' fill='%23ffffff' /%3E%3C/svg%3E");
}
@media (prefers-reduced-motion: reduce) {
    .md_carouselSlide { transition: left 0s; }
}