/* video image grid
   ============================ */

.video-image-grid .inner,
.video-image-grid .background {
    background-position: center center;
    background-repeat: no-repeat;
    -moz-background-size: cover;
    -ms-background-size: cover;
    -o-background-size: cover;
    -webkit-background-size: cover;
    background-size: cover;
    background-repeat: no-repeat;
    height: 100%;
    width: 100%;
}

/* images */
.video-image-grid .image-container {
    outline: none;
}
.video-image-grid .image-container .inner {
    display: table;
    position: relative;
    width: 100%;
}
.video-image-grid .image-container .inner::before {
    background: rgba(0, 0, 0, 0.5);
    content: "";
    display: block;
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
}
.video-image-grid .image-container .inner::after {
    background: #21016b;
    content: "";
    display: block;
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    -moz-transition: 0.3s ease;
    -ms-transition: 0.3s ease;
    -o-transition: 0.3s ease;
    -webkit-transition: 0.3s ease;
    transition: 0.3s ease;
    width: 0;
}
.video-image-grid .image-container:hover .inner::after,
.video-image-grid .image-container:focus .inner::after,
.video-image-grid .image-container.active .inner::after,
.video-image-grid .image-container .inner:focus::after {
    width: 100%;
}
.video-image-grid .image-container .inner .overlay {
    display: table-cell;
    padding: 30px 57px;
    position: relative;
    vertical-align: middle;
    z-index: 1;
}
.video-image-grid .image-container .inner .overlay h3 {
    color: #ffffff;
    letter-spacing: 0;
    line-height: 4.4rem;
    margin: 0;
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.7);
    -moz-transition: 0.3s ease;
    -ms-transition: 0.3s ease;
    -o-transition: 0.3s ease;
    -webkit-transition: 0.3s ease;
    transition: 0.3s ease;
}
.video-image-grid .image-container .inner .overlay > a.link {
    display: block;
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
}
.video-image-grid .image-container:hover .inner .overlay h3,
.video-image-grid .image-container.active .inner .overlay h3 {
    margin-bottom: 9px;
    text-shadow: none;
}
.video-image-grid .image-container .description {
    color: #ffffff;
    height: auto;
    display: none;
}
.video-image-grid .image-container h3 {
    margin: 0;
}
.video-image-grid .image-container .cta {
    padding-top: 19px;
    position: relative;
    z-index: 1;
}
.video-image-grid .image-container .cta > a {
    color: #ffffff;
}

/* video with two images */
.video-image-grid .video-two-images {
    display: -ms-flex;
    display: -webkit-flex;
    display: flex;
    height: 100%;
    max-height: 100%;
    min-height: 500px;
    width: 100%;
}
.video-image-grid .video-two-images.align-right {
    -ms-flex-flow: row-reverse;
    -webkit-flex-flow: row-reverse;
    flex-flow: row-reverse;
}
.video-image-grid .video-two-images .video-container {
    -ms-flex: 0 1 50%;
    -webkit-flex: 0 1 50%;
    flex: 0 1 50%;
    min-height: 100%;
    max-width: 50%;
}
.video-image-grid .video-two-images .images {
    -ms-flex: 0 1 50%;
    -webkit-flex: 0 1 50%;
    flex: 0 1 50%;
    display: flex;
    height: 100%;
    max-width: 50%;
    flex-wrap: wrap;
    align-items: flex-start;
}
.video-image-grid .video-two-images .images .image-container {
    -ms-flex: 0 0 100%;
    -webkit-flex: 0 0 100%;
    flex: 0 0 100%;
    max-height: 50%;
    min-height: 50%;
    max-width: 100%;
    padding: 0;
    overflow: hidden;
}
.ie .video-image-grid .video-two-images .video-container {
    min-height: 500px;
}
.ie .video-image-grid .video-two-images .video-container,
.ie .video-image-grid .video-two-images.align-right .images {
    display: block;
    float: left;
    width: 100%;
}
.ie .video-image-grid .video-two-images .images,
.ie .video-image-grid .video-two-images.align-right .video-container {
    display: block;
    float: right;
    width: 100%;
}

/* video with two images aligned right */
.video-image-grid .video-two-images.align-right .images .inner {
    width: calc(100% + 1px);
}

/* two small images - full width images */
.video-image-grid .full-width,
.video-image-grid .two-small-images {
    border-collapse: collapse;
    clear: both;
    display: table;
    height: 250px;
    margin: 0;
    padding: 0;
    table-layout: fixed;
    width: 100%;
}
.video-image-grid .full-width .image-container,
.video-image-grid .two-small-images .image-container {
    display: table-cell;
    height: 250px;
    vertical-align: top;
    width: 50%;
}
.video-image-grid .full-width .image-container {
    width: 100%;
}

/* responsive
   ============================ */

@media screen and (max-width: 880px) {
    .video-image-grid .image-container .inner .overlay {
        padding-left: 33px;
        padding-right: 33px;
    }
}

@media screen and (max-width: 736px) {
    .video-image-grid .video-two-images,
    .video-image-grid .image-container,
    .video-image-grid .video-container,
    .video-image-grid .two-small-images,
    .video-image-grid .full-width,
    .video-image-grid .full-width .image-container,
    .video-image-grid .two-small-images .image-container,
    .video-image-grid .video-two-images .video-container {
        display: block;
        height: 120px;
        max-width: 100%;
        min-height: 0;
        text-align: center;
        width: 100%;
    }
    .video-image-grid .video-two-images,
    .video-image-grid .video-two-images .images,
    .video-image-grid .full-width,
    .video-image-grid .two-small-images {
        -ms-flex: none;
        -webkit-flex: none;
        flex: none;
        height: auto;
        max-width: 100%;
    }

    /* images */
    .video-image-grid .video-two-images .images .image-container {
        max-width: 100%;
        min-height: 0;
        min-width: 100%;
    }
    .video-image-grid .image-container:hover .inner .overlay h3 {
        margin: 0;
        text-shadow: 0 0 8px rgba(0, 0, 0, 0.7);
    }
    .video-image-grid .image-container:hover .inner::after,
    .video-image-grid .image-container:focus .inner::after,
    .video-image-grid .image-container .inner:focus::after {
        display: none;
    }
}
