﻿:root {
    --banner-height: 500px;
}

.animated-banner {
    position: relative;
    height: var(--banner-height);
    width: 100%;
}

.animated-banner .keen-slider {
    width: 100%;
    height: 100%;
}

.animated-banner .slide {
    display: block;
    position: relative;

    position: absolute !important;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;

    color: #fff;
    will-change: opacity;

    width: 100%;
    height: 100%;
}

.animated-banner .slide > .container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    height: 100%;
}

.animated-banner .slide > img.slide-back {
    position: absolute;
    height: 100%;
    width: 100vw;
    object-fit: cover;
    z-index: -1;
}

.animated-banner .slide .slide-text {
    color: #fff;
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.animated-banner .slide .slide-text > * {
    background: var(--primary-500);
    padding: 1rem;
    margin: 0;
}

.animated-banner .slide .slide-link {
    margin-top: 0;
    font-size: 1.25em;
}

.animated-banner .slide .slide-link .btn.btn-primary {
    border-radius: 0;
    --btn-color: rgba(var(--primary-500-rgb),.75);
    font-weight: 400;
    white-space: normal;
}

.animated-banner .slide .slide-text * {
    color: #fff;
}

.animated-banner .slide .slide-text h1 {
    font-weight: 300;
}

.animated-banner .slide > :last-child {
    margin-bottom: 0;
}

.animated-banner .pagination-container {
    position: relative;
    z-index: 3;
}

.animated-banner-nav {
    position: absolute;
    bottom: 6rem;
    left: 1rem;
    display: flex;
    gap: .5rem;
}

.animated-banner-nav button {
    font-size: 0;
    appearance: none;
    border: none;
    width: 1rem;
    height: 1rem;
    background: #fff;
    border-radius: 50%;
}

.animated-banner-nav button.active {
    background: var(--tertiary-900);
}

@media screen and (min-width: 768px) {
    .animated-banner .slide .slide-text h1 {
        font-size: 4em;
    }

    .animated-banner .slide .slide-text h2 {
        font-size: 2.5em;
    }
}

@media screen and (max-width: 850px) {
    .animated-banner .slide > .container {
        justify-content: flex-end;
        padding-bottom: 3.5em;
    }

    .animated-banner .animated-banner-nav {
        left: unset;
        right: 1rem;
        bottom: 2rem;
    }
}

@media screen and (min-width: 1200px) {
    :root {
        --banner-height: 600px;
    }
}

@media screen and (min-width: 1500px) {
    :root {
        --banner-height: 750px;
    }
}