/**
    STORY
 */
#storiesRow .stories-picture {
    width: 85px;
}

#storiesRow .stories-picture-left {
    position: absolute;
    top: 0;
    left: 0;
}

#storiesRow .flickity-page-dots {
    display: none;
}

#storiesRow .flickity-button {
    display: none;
}

#storiesRow .flickity-button-icon {
    top: 35% !important;
    width: 40% !important;
    height: 40% !important;
}

#storiesRow .flickity-viewport {
    height: 134px !important;
}

#storiesRow .discover-search-shortcut .flickity-viewport {
    height: 40px !important;
}

@media (max-width: 576px) {

    #storiesRow .stories-picture {
        width: 75px;
    }

    #storiesRow .carousel-cell {
        /*width: 33%;*/
        width: 140px;
        height: 125px;
        text-align: left;
    }

    #storiesRow .flickity-button {
        background-color: transparent;
        color: #fd6565;
    }

    #storiesRow .flickity-button:hover {
        background-color: transparent;
    }

    #storiesRow .flickity-prev-next-button {
        width: 34px;
        height: 34px;
    }

    #storiesRow .flickity-prev-next-button.previous {
        left: -20px;
    }

    #storiesRow .flickity-prev-next-button.next {
        right: -20px;
    }
}

@media (min-width: 576px) and (max-width: 768px) {
    #storiesRow .carousel-cell {
        /*width: 33%;*/
        width: 140px;
        height: 150px;
        text-align: left;
    }

    #storiesRow .flickity-button {
        background-color: transparent;
        color: #fd6565;
    }

    #storiesRow .flickity-prev-next-button.previous {
        left: -20px;
    }

    #storiesRow .flickity-prev-next-button.next {
        right: -20px;
    }
}

@media (min-width: 768px) and (max-width: 992px) {
    #storiesRow .carousel-cell {
        /* width: 25%; */
        width: 140px;
        height: 150px;
        text-align: left;
    }

    #storiesRow .flickity-button {
        background-color: transparent;
        color: #fd6565;
    }

    #storiesRow .flickity-prev-next-button.previous {
        left: -20px;
    }

    #storiesRow .flickity-prev-next-button.next {
        right: -20px;
    }
}

@media (min-width: 992px) and (max-width: 1200px) {
    #storiesRow .carousel-cell {
        /* width: 20%; */
        width: 140px;
        height: 150px;
        text-align: left;
    }

    #storiesRow .flickity-button {
        background-color: transparent;
        color: #fd6565;
    }

    #storiesRow .flickity-prev-next-button.previous {
        left: -30px;
    }

    #storiesRow .flickity-prev-next-button.next {
        right: -30px;
    }
}

@media (min-width: 1200px) {
    #storiesRow .carousel-cell {
        /* width: 20%; */
        width: 140px;
        height: 150px;
        text-align: left;
    }

    #storiesRow .flickity-button {
        background-color: transparent;
        color: #fd6565;
    }

    #storiesRow .flickity-prev-next-button.previous {
        left: -30px;
    }

    #storiesRow .flickity-prev-next-button.next {
        right: -30px;
    }
}

@media (max-width: 768px) {
    #storiesRow #storiesSection {
        margin: -50px auto 0 !important;
    }

    #storiesRow .mobileArrowToDisplay .flickity-button {
        display: inherit;
    }
}

@media (min-width: 768px) {
    #storiesRow #storiesRow {
        width: 600px;
    }

    #storiesRow .desktopArrowToDisplay .flickity-button {
        display: inherit;
    }
}

/**
    PROGRESS BAR
 */
.progressTarget {
    display: flex;
    flex-direction: row;
    width: 50vw;
    padding: 10px 0;
    cursor: pointer;
    margin: -5px auto;
}

.progressItem {
    height: 2px;
    flex-grow: 1;
    border-radius: 4px;
    margin: 0 5px;
    display: flex;
    background-image: -webkit-linear-gradient(left, rgba(255,255,255,.5) 0%, rgba(255,255,255,.5) 50%, rgba(88, 89, 104,.5) 50.001%, rgba(88, 89, 104,.5) 100% );
    background-repeat: no-repeat;
    background-size: 200%;
    background-color: #666;
    background-position: 100% 50%;
    animation-timing-function: linear;
    animation-delay: .2s;
}

.progressItem.active {
    animation-name: Loader;
}

.progressItem.passed {
    background-position: 0 0;
}

@-webkit-keyframes Loader {
    0%   { background-position: 100% 0; }
    100% { background-position: 0 0; }
}

.storiesLightbox__video:hover {
    cursor: wait;
}

/*
.storiesLightbox__video:hover .progressItem {
    animation-play-state: paused;
}
*/

/**
    LIGHTBOX
 */
.storiesLightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 999999999;
    /*overflow: auto;*/
    animation: storiesLightboxIn .5s;
    transition: opacity .3s;
}

/**
    CLOSE
 */
.storiesLightbox .fadeOut {
    opacity: 0;
}

.storiesLightbox__close {
    width: 25px;
    height: 25px;
    border: none;
    background: url(../../front/img/storiesLightbox/cross.svg) center center / 100% 100% no-repeat transparent;
    position: fixed;
    top: 10px;
    right: 12px;
    z-index: 9999999999;
}

/**
    ARROWS
 */
.storiesLightbox__previous,
.storiesLightbox__next {
    border: none;
    background: url(../../front/img/storiesLightbox/arrow.svg) center center / 16px 28px no-repeat;
    width: 50px;
    height: 100%;
    position: fixed;
    top: 0;
    right: 0;
    margin-top: -14px;
    z-index: 999999999;
}

.storiesLightbox__previous {
    right: auto;
    left: 0;
    transform: rotate(180deg);
}

/* LOADER */
.storiesLightbox__loader {
    width: 38px;
    height: 38px;
    /*opacity: .5;*/
    background: url(../../front/img/storiesLightbox/loader.svg) center center no-repeat;
    margin-top: -30px;
}

/**
    OTHERS
 */

/* Buttons */
.storiesLightbox button {
    opacity: .5;
    cursor: pointer;
    transition: opacity .3s;
    text-indent: -3000px;
}

.storiesLightbox button:hover {
    opacity: 1;
}

/* Images */
.storiesLightbox__container img {
    max-width: 100%;
    /*height: auto;*/
    height: 70vh;
    /*margin-top: 50px;*/
    animation: storiesLightboxIn .5s;
}

/* Videos */
.storiesLightbox__container iframe {
    max-width: 100%;
    height: 70vh;
    /*margin-top: 50px;*/
    animation: storiesLightboxIn .5s;
}

.storiesLightbox__container video {
    max-width: 100%;
    height: 70vh;
    /*margin-top: 50px;*/
    animation: storiesLightboxIn .5s;
}

/* Container */
.storiesLightbox__container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 50px;
    margin-right: 50px;
    min-height: 100vh;
}

/* Infos */
.storiesLightbox__infos {
    position: absolute;
    top: 20px;
    left: 70px;
}

.storiesLightbox__infos div:nth-child(1) {
    display: flex;
}

.storiesLightbox__infos div:nth-child(1) div img {
    width: 50px;
    height: 50px;
    border: 2px solid #fd6565;
    border-radius: 50%;
}

.storiesLightbox__infos div:nth-child(1) div:nth-child(2) {
    margin-left: 10px;
}

.storiesLightbox__infos div:nth-child(1) div:nth-child(2) span {
    display: block;
    color: white;
}

.storiesLightbox__time {
    margin-top: -5px;
    font-size: 0.75rem;
}

.storiesLightbox__author {
    font-size: 1.1rem;
}

.storiesLightbox__infos div:nth-child(2) {
    margin-top: 10px;
}

.storiesLightbox__infos div:nth-child(2) h2 {
    color: white;
}

.storiesLightbox__button {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translate(-50%, 0);
}

.storiesLightbox__button a {
    margin-top: 5px;
    color: white;
    font-family: "ProximaNovaBold", Arial, sans-serif;
    font-size: 0.9rem;
    border-color: #fd6565;
    background-color: #fd6565;
    opacity: 0.9;
}

.storiesLightbox__button a:hover {
    border-color: #fd6565;
    background-color: #fd6565;
    opacity: 1;
}

/**
    MEDIA QUERIES
 */
@media (max-width: 576px) {
    .storiesLightbox__infos {
        top: 10px;
        left: 30px;
    }

    .storiesLightbox__infos div:nth-child(2) {
        max-width: 300px;
    }
}

/**
    ANIMATIONS
 */
@keyframes storiesLightboxIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}
