/* Client Homepage Stylesheet */
.home-feature .text p.secondary {
    display: block;
    color: #fff;
    font-size: 20px;
    text-shadow: 0 0 5px rgb(0 0 0 / 40%);
    margin-bottom: 32px;
    margin-left: auto;
    margin-right: auto;
    max-width: 65%;
    padding: 0 40px;
    text-align: center;
}

div#home-feature.single-asset .text
{
    top: 35%;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: min(900px, calc(100% - 48px));
    max-width: none;
    padding: 0;
    box-sizing: border-box;
}

div#home-feature.single-asset .text p.primary {
    padding-left: 0;
    padding-right: 0;
    font-size: 60px;
    line-height: 1.1;
}

div#home-feature.single-asset .text p.secondary {
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
    font-size: 20px;
}

/* Makes single-asset hero visible on smaller screens */
@media only screen and (max-width: 700px) {
    div#home-feature.single-asset.home-feature {
        display: block !important;
        min-height: 100svh;
        height: 100svh !important;
    }

    div#home-feature.single-asset .text {
        top: 25%;
        bottom: 0px;
        width: calc(100% - 32px);
        padding: 0;
    }

    div#home-feature.single-asset .text p.primary {
        font-size: 36px;
        margin-bottom: 14px;
        padding: 0;
    }

    div#home-feature.single-asset .text p.secondary {
        font-size: 15px;
        line-height: 1.45;
        margin-bottom: 24px;
        padding: 0;
    }

    div#home-feature.single-asset .text .button {
        width: 70%;
        margin: 0px auto;
    }

    .single-asset video {
        width: 100%;
        height: 100%;
        min-width: 100%;
        min-height: 100%;
        object-fit: cover;
    }
}

@media only screen and (max-width: 600px) {
    div#home-feature.single-asset.home-feature {
        display: block !important;
    }
}

/* Rotating hero words */
div#home-feature.single-asset .text p.primary .rwm-rotating-words {
    display: inline-grid;
    justify-items: center;
    text-align: center;
    vertical-align: baseline;
    color: #e10000;
}

div#home-feature.single-asset .text p.primary .rwm-rotating-word {
    grid-area: 1 / 1;
    opacity: 0;
    will-change: opacity;
}

/* Loops animation and defines which word is going to which child */
div#home-feature.single-asset .text p.primary .rwm-rotate-count-3 .rwm-rotating-word {
    animation-duration: 9s;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
}

div#home-feature.single-asset .text p.primary .rwm-rotate-count-3 .rwm-rotating-word:nth-child(1) {
    animation-name: rwmRotate3Word1;
}

div#home-feature.single-asset .text p.primary .rwm-rotate-count-3 .rwm-rotating-word:nth-child(2) {
    animation-name: rwmRotate3Word2;
}

div#home-feature.single-asset .text p.primary .rwm-rotate-count-3 .rwm-rotating-word:nth-child(3) {
    animation-name: rwmRotate3Word3;
}

/* Adjust percents to determine if want words to appear fast/slower */
@keyframes rwmRotate3Word1 {
    0%,
    2% {
        opacity: 0;
    }
    12%,
    28% {
        opacity: 1;
    }
    33%,
    100% {
        opacity: 0;
    }
}

@keyframes rwmRotate3Word2 {
    0%,
    33% {
        opacity: 0;
    }
    43%,
    61% {
        opacity: 1;
    }
    66%,
    100% {
        opacity: 0;
    }
}

@keyframes rwmRotate3Word3 {
    0%,
    66% {
        opacity: 0;
    }
    76%,
    94% {
        opacity: 1;
    }
    99%,
    100% {
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    div#home-feature.single-asset .text p.primary .rwm-rotating-word {
        animation: none !important;
        opacity: 0;
    }

    div#home-feature.single-asset .text p.primary .rwm-rotating-word:first-child {
        opacity: 1;
    }
}

/* Aston Martin-inspired Homepage Header Slider */
div#home-feature.aston-hero-slider {
    background: #050505;
    color: #fff;
    height: 100vh;
    min-height: 680px;
    overflow: hidden;
    position: relative;
}

.admin-bar div#home-feature.aston-hero-slider {
    min-height: calc(100vh - 32px);
}

.aston-hero-slider.hero-size-fullscreen #hero-slider,
.nav-transparent .aston-hero-slider.hero-size-fullscreen #hero-slider,
.aston-hero-slider #hero-slider {
    height: 100% !important;
    min-height: inherit;
}

.aston-hero-slider #hero-slider .slick-list,
.aston-hero-slider #hero-slider .slick-track,
.aston-hero-slider #hero-slider .slick-slide,
.aston-hero-slider #hero-slider .slick-slide > div,
.aston-hero-slider .slide,
.aston-hero-slider .hero-slide {
    height: 100%;
}

.aston-hero-slider .slide,
.aston-hero-slider .hero-slide {
    background-position: center center !important;
    background-size: cover !important;
}

.aston-hero-slider #hero-slider .slide:before,
.aston-hero-slider .hero-slide:before {
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.34) 42%, rgba(0, 0, 0, 0.12) 100%),
        linear-gradient(0deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.12) 42%, rgba(0, 0, 0, 0.45) 100%);
}

.aston-hero-slider #hero-slider .text,
.aston-hero-slider.static-hero > .text,
.aston-hero-slider.single-asset .text {
    align-items: flex-start;
    bottom: 165px;
    height: auto;
    justify-content: flex-end;
    left: 0;
    margin: 0;
    max-width: 760px;
    padding: 0 0 0 7vw;
    position: absolute;
    right: auto;
    text-align: left;
    top: auto;
    width: 100%;
    z-index: 3;
}

.aston-hero-slider .text p.primary,
.aston-hero-slider .text .primary {
    color: #fff;
    font-size: clamp(44px, 6vw, 92px);
    font-weight: 500;
    letter-spacing: 0.02em;
    line-height: 0.95;
    margin-bottom: 22px;
    padding: 0;
    text-align: left;
    text-shadow: none;
    text-transform: uppercase;
}

.aston-hero-slider .text p.secondary,
.aston-hero-slider .text .secondary {
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(15px, 1.35vw, 20px);
    letter-spacing: 0.08em;
    line-height: 1.45;
    margin-bottom: 30px;
    max-width: 520px;
    padding: 0;
    text-align: left;
    text-shadow: none;
    text-transform: uppercase;
}

.aston-hero-slider .text .button,
.aston-hero-slider .text .primary-btn,
.aston-hero-slider .text .secondary-btn,
.aston-hero-slider .text a.button,
.aston-hero-slider .text a[href]:not(.slick-arrow) {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 0;
    color: #fff;
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.16em;
    line-height: 1;
    margin: 0 14px 12px 0;
    padding: 17px 30px;
    text-transform: uppercase;
}

.aston-hero-slider .text .button:hover,
.aston-hero-slider .text .button:focus,
.aston-hero-slider .text .primary-btn:hover,
.aston-hero-slider .text .primary-btn:focus,
.aston-hero-slider .text .secondary-btn:hover,
.aston-hero-slider .text .secondary-btn:focus,
.aston-hero-slider .text a.button:hover,
.aston-hero-slider .text a.button:focus,
.aston-hero-slider .text a[href]:not(.slick-arrow):hover,
.aston-hero-slider .text a[href]:not(.slick-arrow):focus {
    background: #fff;
    color: #050505;
}

.aston-hero-slider .slick-slide .text > * {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 700ms ease, transform 700ms ease;
}

.aston-hero-slider .slick-active .text > * {
    opacity: 1;
    transform: translateY(0);
}

.aston-hero-slider .slick-active .text > *:nth-child(2) {
    transition-delay: 120ms;
}

.aston-hero-slider .slick-active .text > *:nth-child(3),
.aston-hero-slider .slick-active .text > *:nth-child(4) {
    transition-delay: 220ms;
}

.aston-hero-slider .slick-arrow {
    display: none !important;
}

.aston-slider-nav {
    bottom: 40px;
    display: grid;
    gap: 0;
    grid-template-columns: repeat(var(--aston-slide-count, 4), minmax(0, 1fr));
    left: 7vw;
    list-style: none;
    margin: 0;
    max-width: 980px;
    padding: 0;
    position: absolute;
    right: 7vw;
    z-index: 4;
}

.aston-slider-nav li {
    border-top: 1px solid rgba(255, 255, 255, 0.28);
    margin: 0;
    min-width: 0;
    position: relative;
}

.aston-slider-nav li:before {
    background: #fff;
    content: '';
    height: 2px;
    left: 0;
    position: absolute;
    top: -1px;
    transform: scaleX(0);
    transform-origin: left center;
    width: 100%;
}

.aston-slider-nav li.slick-active:before {
    animation: astonSlideProgress 6500ms linear forwards;
}

.aston-slider-nav button {
    background: transparent !important;
    border: 0;
    border-radius: 0;
    color: rgba(255, 255, 255, 0.68);
    cursor: pointer;
    display: block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    line-height: 1.35;
    min-height: 72px;
    padding: 18px 22px 0 0;
    text-align: left;
    text-transform: uppercase;
    white-space: normal;
    width: 100%;
}

.aston-slider-nav button:hover,
.aston-slider-nav button:focus,
.aston-slider-nav li.slick-active button {
    color: #fff;
}

.aston-slider-nav .slide-number {
    color: rgba(255, 255, 255, 0.42);
    display: block;
    font-size: 11px;
    letter-spacing: 0.18em;
    margin-bottom: 8px;
}

.aston-slider-nav .slide-label {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@keyframes astonSlideProgress {
    from {
        transform: scaleX(0);
    }

    to {
        transform: scaleX(1);
    }
}

@media only screen and (max-width:960px) {
    div#home-feature.aston-hero-slider {
        min-height: 620px;
    }

    .aston-hero-slider #hero-slider .text,
    .aston-hero-slider.static-hero > .text,
    .aston-hero-slider.single-asset .text {
        bottom: 150px;
        max-width: 620px;
        padding-left: 6vw;
        padding-right: 6vw;
    }

    .aston-slider-nav {
        left: 6vw;
        right: 6vw;
    }
}

@media only screen and (max-width:700px) {
    div#home-feature.aston-hero-slider {
        display: block;
        height: 100svh;
        min-height: 560px;
    }

    .aston-hero-slider #hero-slider .text,
    .aston-hero-slider.static-hero > .text,
    .aston-hero-slider.single-asset .text {
        bottom: 115px;
        padding-left: 24px;
        padding-right: 24px;
    }

    .aston-hero-slider .text p.primary,
    .aston-hero-slider .text .primary {
        font-size: clamp(38px, 12vw, 58px);
    }

    .aston-slider-nav {
        bottom: 24px;
        display: flex;
        left: 24px;
        overflow-x: auto;
        right: 24px;
        scrollbar-width: none;
    }

    .aston-slider-nav::-webkit-scrollbar {
        display: none;
    }

    .aston-slider-nav li {
        flex: 0 0 180px;
    }

    .aston-slider-nav button {
        min-height: 58px;
        padding-top: 14px;
    }
}

/* Force client hero slider to true fullscreen. */
div#home-feature.home-feature,
div#home-feature.home-feature.hero-size-fullscreen,
div#home-feature.home-feature.aston-hero-slider {
    display: block !important;
    height: 100vh !important;
    height: 100svh !important;
    min-height: 100vh;
    overflow: hidden;
    padding: 0 !important;
    position: relative;
    width: 100%;
}

div#home-feature.home-feature #hero-slider,
div#home-feature.home-feature #hero-slider .slick-list,
div#home-feature.home-feature #hero-slider .slick-track,
div#home-feature.home-feature #hero-slider .slick-slide,
div#home-feature.home-feature #hero-slider .slick-slide > div,
div#home-feature.home-feature .hero-slide {
    height: 100% !important;
    min-height: inherit;
}

div#home-feature.home-feature .hero-slide {
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
}

div#home-feature.home-feature .anchor-wrap,
div#home-feature.home-feature a#home-anchor {
    display: none !important;
}

/* Position client hero text at the bottom-left of each slide. */
div#home-feature.home-feature #hero-slider .text {
    align-items: center; 
    bottom: clamp(56px, 10vh, 120px);
    height: auto;
    justify-content: center; 
    left: 50%; 
    margin: 0;
    padding: 0;
    position: absolute;
    right: auto;
    text-align: center;
    top: 10%;
    transform: translateX(-50%); 
    width: min(760px, calc(100% - 48px));
    z-index: 3;
}

div#home-feature.home-feature #hero-slider .text p.primary,
div#home-feature.home-feature #hero-slider .text p.secondary {
    padding-left: 0;
    padding-right: 0;
    text-align: center;
}

@media only screen and (max-width:700px) {
    div#home-feature.home-feature #hero-slider .text {
        bottom: 48px;
        left: 24px;
        max-width: none;
        right: 24px;
        width: auto;
    }
}
