html {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

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

* {
    margin: 0;
    padding: 0;
}

body {
    line-height: 1.5;
    font-family: Montserrat, Arial, sans-serif;
    font-weight: 800;
    background: url("mountains.jpg") center bottom no-repeat;
    -webkit-background-size: 100% auto;
            background-size: 100% auto;
}

a {
    text-decoration: none;
    -webkit-transition: all .3s;
            transition: all .3s;
}

h1 {
    margin: 0 0 4rem;
    font-size: 4rem;
    text-align: center;
}

.wrapper {
    display: -webkit-flex;
    display: -ms-flex;
    display: flex;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.container {
    display: -webkit-flex;
    display: -ms-flex;
    display: flex;
    flex-wrap: wrap;
    width: 80%;
}

.col {
    width: 49%;
    border: solid;
    margin: 5px;
    border-radius: 5px;
}

.media {
    position: relative;
    display: block;
    overflow: hidden;
    width: 100%;
    margin: 0 auto;
    -webkit-box-shadow: 0 0 150px rgba(0, 0, 0, .1);
            box-shadow: 0 0 150px rgba(0, 0, 0, .1);
}

    .media img {
        display: block;
        width: 100%;
        -webkit-transition: all .3s;
                transition: all .3s;
    }

    .media__cover {
        position: absolute;
        display: -webkit-flex;
        display: -ms-flex;
        display: flex;
        align-items: center;
        justify-content: center;
        visibility: hidden;
        z-index: 0;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        text-align: center;
        opacity: 0;
        -webkit-transition: all .3s;
                transition: all .3s;
    }

        .media__cover a {
            display: inline-block;
            margin: 1rem;
            font-size: 2rem;
            border-bottom: 2px solid transparent;
        }

.media:hover .media__cover {
    visibility: visible;
    opacity: 1;
}

.media:hover img {
    -webkit-transform: scale(.9);
            transform: scale(.9);
}

.col:nth-child(1) .media,
.col:nth-child(1) .media__cover {
    background: #fff;
}

    .col:nth-child(1) .media__cover a {
        color: #000;
    }

    .col:nth-child(1) .media__cover a:last-child {
        color: #f8a80f;
    }

    .col:nth-child(1) .media__cover a:hover {
        border-bottom-color: #000;
    }

.col:nth-child(2) .media,
.col:nth-child(2) .media__cover {
    background: #fff;
}

    .col:nth-child(2) .media__cover a {
        color: #fff;
    }

    .col:nth-child(2) .media__cover a:last-child {
        color: #694cfe;
    }

    .col:nth-child(2) .media__cover a:hover {
        border-bottom-color: #fff;
    }

    .col:nth-child(3) .media,
.col:nth-child(3) .media__cover {
    background: #fff;
}

    .col:nth-child(3) .media__cover a {
        color: #000;
    }

    .col:nth-child(4) .media__cover a:last-child {
        color: #f8a80f;
    }

    .col:nth-child(3) .media__cover a:hover {
        border-bottom-color: #000;
    }

@media screen and (max-width: 1024px) {

    .col {
        width: 100%;
    }

}

@media screen and (max-width: 768px) {

    .container {
        width: 100%;
    }

    h1 {
        margin-bottom: 2rem;
        font-size: 2rem;
    }

    .media__cover a {
        margin: .5rem;
        font-size: 1.25rem;
    }

}
