@import "../scss/_variable";
@import "../scss/_mixin";

.gel-banner {
    position: relative;
    overflow: hidden;
    text-align: center;
    .gel-effect-bg-image {
        z-index: 1;
    }
    &.gel-banner-show-all {
        .gel-banner-content {
            top: 50%;
            @include transform(translateY(-50%));
        }
        .gel-banner-description, .gel-banner-action {
            opacity: 1;
        }
    }
    &:hover {
        .gel-banner-content {
            @include transition(all .5s);
            top: 50%;
            @include transform(translateY(-50%));
        }
        .gel-banner-description, .gel-banner-action {
            opacity: 1;
            @include transition(opacity 1s);
        }
    }
}

.gel-banner-bg {
    background-size: cover;
    background-position: center center;
    > a {
        display: block;
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        z-index: 2;
    }
}

.gel-banner-title {
    //margin-bottom: -0.3125rem;
    margin: 0;
    color: inherit;
    a, &:hover a {
        color: inherit;
    }
}

.gel-banner-description {
    //margin-top: 1.4375rem;
    //margin-bottom: -0.5rem;
    margin: 0;
    color: inherit;
    opacity: 0;
    @include transition(opacity 1s);
}

.gel-banner-action {
    //margin-top: 2rem;
    opacity: 0;
    @include transition(opacity 1s);
}

.gel-banner-title + .gel-banner-description {
    margin-top: 1.4375rem;
}

.gel-banner-description + .gel-banner-action,
.gel-banner-title + .gel-banner-action {
    margin-top: 2rem;
}

.gel-banner-content {
    text-align: center;
    position: absolute !important;
    left: 0;
    right: 0;
    top: calc(100% - 59px);
    z-index: 2;
    @include transition(top .5s);
    color: #fff;
}

.gel-banner-style-01, .gel-banner-style-02, .gel-banner-style-03, .gel-banner-style-07 {
    .gel-banner-content {
        top: 50%;
        @include transition(all .5s);
    }
}

.gel-banner-style-01, .gel-banner-style-04 {
    .gel-banner-content {
        text-align: left;
        left: 30px;
    }
}

.gel-banner-style-03, .gel-banner-style-06 {
    .gel-banner-content {
        text-align: right;
        right: 30px;
    }
}