.teaserboxes {max-width:1300px;display: block;margin:auto}
.thumbnail {
    position: relative;
    width: 400px;
    border-radius: 6%;
    box-shadow: 0 5px 5px -3px rgba(0, 0, 0, 0.8);
    cursor: pointer;
    transition: box-shadow 0.35s ease;
    /* Hover transition */
}
.thumbnail:before {
    content: "";
    display: block;
    width: 100%;
    padding-bottom: 100%;
}
.thumbnail:hover {
    box-shadow: 0 20px 15px -8px rgba(0, 0, 0, 0.8);
}

.thumbnail__container {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.thumbnail__img {
    flex: 4 0 auto;
    background-position: center;
    background-size: cover;
    transform: scale(1.2);
    transition: transform 0.35s ease;
    /* Hover transition */
}
.thumbnail:hover .thumbnail__img {
    transform: scale(1);
}
.thumbnail__img:before, .thumbnail__img:after {
    position: absolute;
}
.thumbnail__img:before {
    content: "Hover";
    top: 50%;
    left: 50%;
    z-index: 10;
    color: #F8F8F8;
    font-family: "Open Sans", sans-serif;
    font-size: 24px;
    font-weight: 300;
    letter-spacing: 5px;
    line-height: 2;
    text-transform: uppercase;
    background-image: linear-gradient(to right, #F8F8F8 0%, #F8F8F8 100%);
    background-position: center bottom;
    background-repeat: no-repeat;
    background-size: 45% 3%;
    transform: translate(-50%, -50%);
    transition: opacity 0.35s linear, transform 0.35s ease;
    /* Hover transition */
}
.thumbnail:hover .thumbnail__img:before {
    opacity: 0;
    transform: translate(-50%, -500%) scale(0.5);
}
.thumbnail__img:after {
    content: "";
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    opacity: 0.3;
    transition: opacity 0.35s linear;
    /* Hover transition */
}
.thumbnail:hover .thumbnail__img:after {
    opacity: 0;
}

.thumbnail__content {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 0;
    background-color: #F8F8F8;
    overflow: hidden;
    transition: flex-grow 0.35s ease;
    /* Hover transition */
}
.thumbnail:hover .thumbnail__content {
    flex-grow: 1;
}

.thumbnail__caption {
    color: #ABABAB;
    font-family: "Open Sans", sans-serif;
    font-size: 16px;
    font-weight: 300;
    line-height: 1.5;
    overflow: visible;
    opacity: 0;
    transform: scale(0.5) translateY(100%);
    transition: opacity 0.35s linear, transform 0.35s ease;
    /* Hover transition */
}
.thumbnail:hover .thumbnail__caption {
    transform: scale(1);
    opacity: 1;
}.teaserboxes,
 .col,
 .box-caption {
     display: flex;
     justify-content: center;
     flex-wrap: wrap;
 }
.teaserboxes {
    width: 100%;
    max-width: 80rem;
    margin: 0 auto;
    padding: 1rem;
    flex-direction: row;
}
.col {
    width: 25%;
    flex-basis: 25%;
    flex-direction: column;
}
.box {
    position: relative;
    width: 100%;
    background: #353842;
    overflow: hidden;
    cursor: pointer;
}
.box > img {
    display: block;
    width: 100%;
    height: auto;
    opacity: 1;
    transition: opacity 0.5s;
}
.box-caption {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 0.5rem;
    background: none;
    text-align: right;
    color: white;
    flex-direction: column;
    opacity: 0;
    transform: scale(2);
    transition: all 0.5s;
}
.box-caption h3 {
    position: relative;
    margin-bottom: 1rem;
}
.box-caption h3:after {
    content:'';
    position:absolute;
    right: 0;
    bottom: -0.5rem;
    width: 0;
    height: 2px;
    background: #E95D1F;
    transition: width 0.1s 0.8s;
}
.touched > .box-caption,
.hovered > .box-caption{
    opacity: 1;
    transform: scale(1);
}
.touched > .box-caption h3:after,
.hovered > .box-caption h3:after {
    width: 2rem;
}
.touched > img,
.hovered > img { opacity:0; }

/**/@media screen and (max-width: 60.000em) {
    .col {
        width: 33.333%;
        flex-basis: 33.333%;
        justify-content: flex-end;
    }
    .col:last-child {
        justify-content: flex-start;
    }
}
@media screen and (max-width: 40.000em) {
    .col {
        width: 50%;
        flex-basis: 50%;
    }
    .col:nth-child(-n+2) {
        justify-content: flex-end;
    }
    .col:nth-child(n+2) {
        justify-content: flex-start;
    }
}
@media screen and (max-width: 30.000em) {
    .col {
        width: 100%;
        flex-basis: 100%;
        justify-content: center;
    }
}
/*
 FlexFun
 Hornebom / 2014-02-06
 HTML and CSS MIT licensed
 http://hornebom.com/
*/