body {
    background: url('../img/videobg2.jpg') no-repeat 50% 50%;
    background-size: cover;
    font-size: 62.5%;
    box-sizing: border-box;
    overflow-y: scroll;
    width: 100%;
    height: 100%;
}

.headerbox {
    display: block;
    width: 100%;
}

.headerbox h2 {
    color: #333;
    display: block;
    margin: 0 auto;
    text-align: center;
    font-size: 3rem;
    font-weight: 600;
    line-height: 1.5em;
    padding: 30px 0 0 0;
}

*, *:before, *:after {
    box-sizing: inherit;
}

.video-grid.front-page {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1em 2em;
}

.videolistbox ul.video-list {
    display: flexbox;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.videolistbox li.video {

    /*flex-grow: 1;*/
    position: relative;
    overflow: hidden;
    width: 33.333333333%;
    width: -webkit-calc(100% / 3);
    width: calc(100% / 3);    /* margin */
    border: 8px solid transparent;
    border-radius: 20px;
}

.videolistbox li:first-child.video {
    width: 100%;
}

.videolistbox li.video a {
    outline: none;
}

.videolistbox li.video:before {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 1);
    transition: background-color 0.15s;
}

.videolistbox li.video figure {
    display: block;
    position: relative;
    overflow: hidden;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
}

.videolistbox li.video figure img {
    display: block;
    max-width: 100%;
    height: auto;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.2s;
}

.videolistbox li.video figure figcaption {

    /* video title */
    position: absolute;
    bottom: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 14px;
    padding: 2rem;
    transform: translateY(0);
    opacity: 1;
    transition: all 0.2s;
    font-weight: 300;
}

.videolistbox li.video:first-child figure figcaption {
    font-size: 20px;
    font-weight: 600;
}

@media (max-width:480px) {
    .headerbox h2 {
        font-size: 2rem;
    }

}

@media(max-width:320px) {
    .headerbox h2 {
        font-size: 1rem;
    }

    .videolistbox li.video figure figcaption {
        opacity: 0;
    }

}

.videolistbox li.video:hover figure img {
    opacity: 1;
    transform: scale(1);
}

.videolistbox li.video:hover figure figcaption {
    opacity: 0;
    transform: translateY(50%);
}

.videolistbox li.video:hover:before {
    background-color: rgba(0, 0, 0, 0.3);
}

@media screen and (max-width:800px) {
    .videolistbox li.video {
        width: 50%;
        width: -webkit-calc(100% / 2);
        width: calc(100% / 2);
    }

}

@media screen and (max-width:640px) {
    .videolistbox li.video {
        width: 100%;
    }

}
