﻿/**
    Homepage structure
*/
.hero-slider-wrapper {
    position: relative;
}

.hero-slider-wrapper .loading-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, 0);
    z-index: 1052;
    opacity: .8;
    transition: opacity 0.3s ease-in-out;
    pointer-events: none;
}

.hero-slider-wrapper.imgs-loaded .loading-indicator {
    display: none !important;
    opacity: 0;
    transform: scale(0);
}

.home-feature-carousel {
    position: relative;
    height: calc(100svh - 50px - 170px);
    min-height: 500px;
    width:100%;
}

.home-feature-carousel .flickity-viewport::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #455a6400 90%, #000000 100%);
    opacity: .8;
    pointer-events: none;
}

.home-feature-carousel .carousel-cell {
    position: relative;
    height: 100%;
/*    max-height: 100vh;*/
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(rgba(7, 24, 41, 1) 0%, rgba(0, 0, 0, 1) 100%);
    /* IMG LOADED js - sets opacity to 1 */
    opacity: 0; 
    transition: opacity 0.3s ease-in-out;
}

.hero-slider-wrapper.imgs-loaded .carousel-cell {
    opacity: 1;
}
.hero-slide-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 90%;
    filter: drop-shadow(0px 0px 10px rgba(0,0,0,.3));
    text-shadow: #000000 0px 0px 20px, -1px -2px 6px rgba(0,0,0,.4);
}

.hero-slide-content h1 {
    /* font-size: 2.5rem; */
}

.hero-slide-content h2 {
    /* font-size: 2.2rem; */
    line-height: 1;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: .1rem;
    color: #fff;
    margin: 0;
    padding: .3em 0;
}

.hero-slide-content h3 {
    /* font-size: 1.8rem; */
    line-height: 1.2;
    padding: 0 0 .3em;
    /* display: none; */
    color: #fff;
    opacity: .9;
    margin: 0;
}

.hero-slide-content p {
    /* font-size: 1.4rem; */
    line-height: 1.2;
    padding: .4em 2em;
    color: #fff;
    opacity: .9;
    margin: 0;
}


.home-feature-carousel .carousel-cell .slide-bg-image {
    position: absolute;
    top: 0;
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: 50% 0;
    z-index: 1;
    opacity: .8;
    -webkit-transition: opacity 0.5s;
    transition: opacity 0.5s;
}

.home-feature-carousel .carousel-cell:hover img.slide-bg-image {
    opacity: 1;
}

/* DOTS */

.home-feature-carousel .flickity-page-dots {
    bottom: 1em;
}

.home-feature-carousel ol.flickity-page-dots > li:before {
    content: none;
}

.home-feature-carousel .flickity-page-dots .dot {
    /* height: 4px;
    width: 40px;
    margin: 0;
    border-radius: 0;
    background-color: #fff; */
    display: inline-block;
    width: 10px;
    height: 10px;
    margin: 0 8px;
    padding: 0;
    background: #fff;
    border-radius: 50%;
    opacity: 0.25;
    cursor: pointer;
}

.home-feature-carousel .flickity-page-dots .dot.is-selected {
    opacity: 1;
}

.home-feature-carousel .flickity-button {
    color: #eceef1;
    background-color: RGBA(255,255,255,.2);
    border-color: #eceef1;
    mix-blend-mode: luminosity;
}


.hero-slide-content .badge {
    text-shadow: none;
    padding: 6px 10px;
}

.hero-slide-content .btn-transparent-white {
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
}


/**
 DRAWER
*/
.drawer-slider-wrapper {
    padding: 15px 8px;
    width: 100%;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}


.drawer-slide {
    position: relative;
    min-height: 140px;
    height: 140px;
    width: 280px;
    border-radius: 4px;
    overflow: hidden;
    /* border: 1px solid rgba(255, 255, 255, 0.4); */
    /* box-shadow: 0 0 0 1px red; */
    /* box-shadow: inset 0 0 0 1px red; */
    /* max-width:280px; */
    background: grey;
    display: flex;
    align-items: center;
    justify-content: center;
    /* height: calc(80vh - 50px);
    max-height: 80vh; */
    background: rgb(255, 64, 156);
    background: linear-gradient( 128deg, rgba(255, 64, 156, 1) 0%, rgba(255, 63, 63, 1) 100% );
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    margin-right: .8em;
}


.drawer-slider-wrapper .loading-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, 0);
    z-index: 1052;
    opacity: .8;
    transition: opacity 0.3s ease-in-out;
    pointer-events: none;
}

.drawer-slider-wrapper.imgs-loaded .drawer-slide {
    opacity: 1;
}

.drawer-slider-wrapper.imgs-loaded .loading-indicator {
    opacity: 0;
    transform: scale(0);
}




.drawer-slide:after {
    content: '';
    position: absolute;
    z-index: 1;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    pointer-events: none;
}

.drawer-slide span {
    display: block;
    position: absolute;
    z-index: 1;
    bottom: 9%;
    left: 0;
    background: RGBA(0,0,0,.65);
    padding: 7px 10px 9px 10px;
    font-size: 13.5px;
    color: #FFFFFF;
    line-height: 1.2;
}

.drawer-slide a {
    /* display: block;
    position: relative; */
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.drawer-slide .drawer-slide-content {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 90%;
}

.drawer-slide img.slide-bg-image {
    position: absolute;
    top: 0;
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: 50% 0%;
   /* z-index: -1*/;
    opacity: 1;
    -webkit-transition: opacity 0.5s;
    transition: opacity 0.5s;
}

.drawer-slide:hover img.slide-bg-image {
    opacity: .85;
}
