﻿:root {
    --primary-font: Segoe UI, Helvetica, Arial, sans-serif;
    --secondary-font: Segoe UI, Helvetica, Arial, sans-serif;
    --radio-color: #E3601C;
    --radio-disabled-color: #F4F4F4;
    --modal-label-color: #70706F;
    --scrollbar: hsla(0, 0%, 0%, 0.2);
    --bg-page: #e9eff6;
}

body{
    margin:0px;
}

.no-hover-link {
    color: inherit;
    text-decoration: none;
}

.widget-logo{
    max-height:45px;
}

@media (max-width: 700px){
    .widget-logo {
        max-width: calc((100vw - 16px) / 3);
    }
}

#publio-short-widget-content {
    font-family: var(--primary-font);
}

.short-video-header{
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    width:100%;
    margin-bottom:10px;
}
.short-video-header h3{
    margin-bottom:0px;
    margin-top:0px;
}

.short-wrapper {
    height: 100%;
    display: flex;
    justify-content: center;
}

    .short-wrapper .short-video-player {
        object-fit: cover;
        width: 100%;
        height: 100%;
        max-width: 100%;
        max-height: 100%;
    }

.short-slider-wrapper{
    display:flex;
    flex-wrap:wrap;
    flex-grow:1;
    position:relative;
    overflow:hidden;
}

.short-video-slider {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE */
    flex-grow: 1;
}

@media (max-width: 700px) {
    .short-video-slider {
        gap: 8px;
    }
}

    .short-video-slider .slider-btn {
        background-size: 20px;
        width: 55px;
        height: 55px;
        background-color: #000000C0;
        position: absolute;
        top: 50%;
        display: flex;
        z-index: 10;
        justify-content: center;
        border-radius: 50%;
        align-items: center;
        font-size: 20px;
        color: white;
    }

    @media (pointer: coarse) and (max-width: 900px) {
        .short-video-slider .slider-btn {
            display: none;
        }
    }

        .short-video-slider .slider-btn.prev {
            left: 35px;
            transform: translateY(-50%) translateX(-50%);
        }

        .short-video-slider .slider-btn.next {
            right: 35px;
            transform: translateY(-50%) translateX(50%);
        }


.short-video-card {
    position: relative;
    min-width: 225px; /*calc((100% - 70px) / 6);*/
    max-width: 225px;
    height: 345px;
    overflow: hidden;
    border-radius: 10px;
}

@media (max-width: 700px) {
    .short-video-card {
        position: relative;
        max-width: 225px;
        min-width: calc((100vw - 16px) / 3);
        max-height: 400px;
        height: calc((100vw - 16px) / 1.69);
        overflow: hidden;
        border-radius: 10px;
    }
}

.short-video-card-body {
    position: absolute;
    bottom: 0px;
    width: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.00000), rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.4));
}

.short-video-title {
    color: white;
    font-weight: bold;
    font-size: 16px;
    padding: 5px 10px;
}

.short-video-card .short-video-title {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.short-video-date {
    color: white;
    font-weight: bold;
    font-size: 12px;
    padding: 5px 10px;
}



/*Pour usage interne*/
#shortSliderWrapper {
    height: 284px;
}

#short-slider-abs-wrapper {
    min-width: 1020px;
    transform: translateX(-50%);
    left:50%;
}

@media (max-width: 1100px) {
    #short-slider-abs-wrapper {
        min-width: 680px;
    }
}

@media (max-width: 920px) {
    #short-slider-abs-wrapper {
        min-width: 100%;
        left: 0%;
        transform: none;
    }
}

#shortSliderWrapper .short-video-slider {
    gap: 12px;
}

#shortSliderWrapper .short-video-card {
    min-width: 160px; /*calc((100% - 70px) / 6);*/
    max-width: 160px;
    height: 284px;
}

@media (max-width: 920px) {
    #shortSliderWrapper .short-video-card {
        position: relative;
        max-width: 160px;
        min-width: calc((100% - 24px) / 3);
        max-height: 284px;
        height: 290px;
        overflow: hidden;
        border-radius: 10px;
    }

    #shortSliderWrapper {
        height: 290px;
    }
}


@media (max-width: 500px) {
    #shortSliderWrapper .short-video-card {
        position: relative;
        max-width: 160px;
        min-width: calc((100vw - 24px) / 3);
        max-height: 284px;
        height: calc((100vw - 24px) / 1.69);
        overflow: hidden;
        border-radius: 10px;
    }

    #shortSliderWrapper {
        height: calc((100vw - 24px) / 1.69);
    }
}