/**
 ** Hero banner
 */

/* Image */
.at-heroBanner {
    position: relative;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

/* Layer */
.at-heroBanner--layer::before {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    content: '';
    display: block;
    background: rgba(0,0,0,0.4)
}

.at-heroBanner--swooshLayer::after {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    content: '';
    display: block;
    background-image: url('overlay.svg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.at-heroBanner--layer .at-heroBanner__contentWrapper {
    position: relative;
}

/* Content (main title, sub title and text) */
.at-heroBanner__content {
    width: 100%;
}

.at-heroBanner__content--center,
.at-heroBanner__content--center .at-heroBanner__title,
.at-heroBanner__content--center .at-heroBanner__text {
    text-align: center;
}

.at-heroBanner__title {
    margin: 0;
    padding: 1.5em 0;
    text-shadow: 0 0 3px #676767;
}

.at-heroBanner__mainTitle {
    padding-top: 3em;
    font-size: 1.5em;
    text-transform: uppercase;
}

.at-heroBanner__mainTitle:not(:only-child) {
    padding-bottom: 0;
}

.at-heroBanner__subTitle {
    display: none;
}

.at-heroBanner__mainTitle + .at-heroBanner__buttonWrapper {
    padding-top: 15px;
}

.at-heroBanner__text {
    overflow: auto;
    padding: 25px 0;
    text-shadow: 0 0 3px #676767;
}

.at-heroBanner__buttonWrapper {
    padding: 25px 0 3em;
}

.at-heroBanner__buttonWrapper:not(:only-child) {
    padding-top: 0;
}

.at-heroBanner__button {
    margin-right: 0;
}

.at-heroBanner__button:after {
    margin-left: .3em;
}

/* set height when there is no content */
.at-heroBanner__noContent {
    height: 10em;
}

@media screen and (min-width: 640px) {
    .at-heroBanner__contentWrapper {
        padding: 5vh 0;
    }

    .at-heroBanner__contentWrapper:after {
        content: '';
        display: block;
        clear: both;
    }

    .at-heroBanner__content {
        float: right;
        width: 80%;
    }

    .at-heroBanner__content--left {
        float: left;
    }

    .at-heroBanner__content--center {
        float: none;
        margin: 0 auto;
    }

    .at-heroBanner__title {
        padding: 15px 0;
    }

    .at-heroBanner__mainTitle {
        padding-top: 15px;
        font-size: 2.5em;
    }

    .at-heroBanner__subTitle {
        position: relative;
        display: block;
        margin: 0;
        padding-bottom: 15px;
    }

    .at-heroBanner__text {
        padding: 15px 0;
    }

    .at-heroBanner__buttonWrapper {
        padding: 15px 0;
    }

    /* set height when there is no content */
    .at-heroBanner__noContent {
        height: 20em;
    }
}

@media screen and (min-width: 980px) {
    .at-heroBanner__content {
        width: 60%;
    }
}
