﻿: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 {
    background: rgba(var(--secondary-500-rgb), .85);
    color: #fff;
    padding: .5rem 1rem;
    min-height: 4rem;
    margin: 0;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.animated-banner .slide .slide-text * {
    color: #fff;
}

.animated-banner .slide .slide-text h1 {
    text-transform: uppercase;
}
.animated-banner .slide .slide-text h2 {
    margin-bottom: 0;
}

.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(--primary-500);
}

@media screen and (max-width: 850px) {
    .animated-banner .slide > .container {
        justify-content: flex-end;
        padding-bottom: 2em;
    }

    .animated-banner .animated-banner-nav {
        left: unset;
        right: 1rem;
        bottom: 3rem;
    }
}

@media screen and (min-width: 1200px) {
    :root {
        --banner-height: 600px;
    }
}

@media screen and (min-width: 1500px) {
    :root {
        --banner-height: 750px;
    }
}