/**
 * List of chapters
 * .videoCourseChapters
 */

.videoCourseChapters {
    display: -webkit-box;  /* OLD - iOS 6-, Safari 3.1-6, BB7 */
    display: -ms-flexbox;  /* TWEENER - IE 10 */
    display: -webkit-flex; /* NEW - Safari 6.1+. iOS 7.1+, BB10 */
    display: flex;         /* NEW, Spec - Firefox, Chrome, Opera */
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    padding: 0;
}

.videoCourseChapters__item {
    position: relative;
    width: 100%;
    margin: .5em;
    vertical-align: top;
    list-style: none;
    border-radius: .2em;
    overflow: hidden;
    box-shadow: 0 6px 10px rgba(160, 160, 160, 0.2);
}

.videoCourseChapters__wrapper {
    position: relative;
}

.videoCourseChapters__image {
    width: 100%;
    height: 250px;
    transition: 0.3s;
    background: transparent no-repeat center center;
    background-size: cover;
}

.videoCourseChapters__duration {
    position: absolute;
    bottom: 15px;
    right: 15px;
    padding: .3em .7em;
    z-index: 1;
    border-radius: .2em;
    font-size: .9em;
    color: #fff;
    background-color: rgba(0,0,0,.5);
}

.videoCourseChapters__item:hover .videoCourseChapters__image {
    opacity: 0.7;
}

.videoCourseChapters__title {
    padding: 1em;
    font-size: .9em;
    font-weight: bold;
}

.videoCourseChapters__link {
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    text-indent: -999em;
}

@media screen and (min-width: 400px) {
    .videoCourseChapters__item {
        display: inline-block;
        width: calc(50% - 1em);
    }
}

@media screen and (min-width: 768px) {
    .videoCourseChapters__item {
        display: inline-block;
        width: calc(33.3% - 1em);
    }
}
