/* CTAs */
.cta-image {
    -webkit-background-size: cover;
    -moz-background-size: cover;
    background-size: cover;
    background-position: center center;
}

.cta-image:before {
    content: '';
    position: absolute;
    height: 100%;
    width: 100%;
    left: 0;
    bottom: -1px;
    /* Permalink - use to edit and share this gradient: http://colorzilla.com/gradient-editor/#000000+60,000000+100&0+60,0.75+100 */
    background: -moz-linear-gradient(top, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, 0.75) 100%); /* FF3.6-15 */
    background: -webkit-linear-gradient(top, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, 0.75) 100%); /* Chrome10-25,Safari5.1-6 */
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, 0.75) 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#00000000', endColorstr='#bf000000', GradientType=0); /* IE6-9 */
    pointer-events: none;
}

.cta-image img {
    width: 100%;
    max-width: none;
}

#main .cta-image a:hover img {
    box-shadow: none;
}

.cta-image a {
    display: block;
}

.cta-image a:focus,
.cta-image a:hover,
.cta-image a:active {
    text-decoration: none;
}

.cta-image .cta-overlay {
    text-align: center;
    z-index: 15;
    bottom: 0;
    width: 100%;
    padding: 1em;
    pointer-events: none;
}

.cta-image .cta-overlay p {
    padding-top: 15px;
    height: 0;
    visibility: hidden;
}

.cta-image:hover .cta-overlay p {
    height: auto;
    visibility: visible;
    border-top: 3px solid #fff;
}

.cta-image .cta-overlay h2,
.cta-image .cta-overlay p {
    color: #fff;
    pointer-events: none;
}

.cta-image .cta-overlay h2 {
    text-transform: uppercase;
    margin: 0;
    padding-bottom: 15px;
}

.cta-image .cta-overlay h2 span {
    text-transform: none;
    display: block;
    font-size: 16px;
}

@media (min-width: 992px) {

    .cta-image .cta-overlay {
        position: absolute;
    }

}

@media (max-width: 991px) {

    .cta-image {
        height: 300px;
    }

    .cta-image img {
        display: none;
    }

    .cta-image a {
        display: block;
        position: relative;
        height: 100%;
    }

    .cta-image .cta-overlay {
        position: absolute;
        bottom: 0;
    }

}
