/*PEN STYLES*/


/*
body {
    background: #f1f1f1;
    margin: 2rem;
}
*/

.blog-card {
    transition: height 0.3s ease;
    -webkit-transition: height 0.3s ease;
    background: #fff;
    border-radius: 3px;
    box-shadow: 0 3px 7px -3px rgba(0, 0, 0, 0.3);
    margin: 0 auto 1.6%;
    overflow: hidden;
    position: relative;
    font-size: 14px;
    line-height: 1.45em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.blog-card:hover .details {
    left: 0;
}

.blog-card:hover.alt .details {
    right: 0;
}

.blog-card.alt .details {
    right: -100%;
    left: inherit;
}

.blog-card .photo {
    height: 200px;
    position: relative;
}

.blog-card .details {
    transition: all 0.3s ease;
    -webkit-transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.6);
    box-sizing: border-box;
    color: #fff;
    list-style: none;
    margin: 0;
    padding: 10px 15px;
    height: 200px;
    /*POSITION*/
    position: absolute;
    top: 0;
    left: -100%;
}

.blog-card .description {
    padding: 10px;
    box-sizing: border-box;
    position: relative;
}

.blog-card .description .h1 {
    font-family: 'Mitr', sans-serif;
    line-height: 1em;
    font-size: 30px;
    font-weight: bold;
    margin: 0 0 10px 0;
}

.blog-card .description .h2 {
    color: #9b9b9b;
    font-family: 'Mitr', sans-serif;
    line-height: 1.2em;
    font-size: 18px;
    text-transform: uppercase;

    font-weight: 400;
    margin: 1.2% 0;
}

.summary {
    font-size: 16px;
}

@media screen and (min-width: 600px) {
    .blog-card {
        height: 200px;
        max-width: 100%;
    }
    .blog-card:hover .photo {
        -webkit-transform: rotate(5deg) scale(1.3);
        transform: rotate(5deg) scale(1.3);
    }
    .blog-card:hover.alt .photo {
        -webkit-transform: rotate(-5deg) scale(1.3);
        transform: rotate(-5deg) scale(1.3);
    }
    .blog-card.alt .details {
        padding-left: 30px;
    }
    .blog-card.alt .description {
        float: right;
    }
    .blog-card.alt .description:before {
        -webkit-transform: skewX(6deg);
        transform: skewX(6deg);
        right: -15px;
        left: inherit;
    }
    .blog-card.alt .photo {
        float: right;
    }
    .blog-card .photo {
        transition: all 0.5s ease;
        -webkit-transition: all 0.5s ease;
        float: left;
        height: 100%;
        width: 40%;
    }
    .blog-card .details {
        width: 40%;
    }
    .blog-card .description {
        float: left;
        width: 60%;
        z-index: 0;
    }
    .blog-card .description:before {
        -webkit-transform: skewX(-5deg);
        transform: skewX(-5deg);
        content: "";
        background: #fff;
        width: 100%;
        z-index: -1;
        /*POSITION*/
        position: absolute;
        left: -15px;
        top: 0;
        bottom: 0;
    }
}