@import url('../../../../themes/riccisolutions/assets/css/colors.css');

.rs-hero-section {
    min-height: var(--rs-hero-min-height, 70vh);
    background-color: var(--rc-silver-light);
    color: var(--rc-white);
}

.rs-hero-track {
    min-height: inherit;
}

.rs-hero-slide {
    display: flex;
    min-height: var(--rs-hero-min-height, 70vh);
    width: 100%;
}

.rs-hero--carousel .rs-hero-slide {
    display: none;
}

.rs-hero--carousel .rs-hero-slide.is-active {
    display: flex;
}

.rs-hero-slide--no-media {
    color: var(--rc-black);
}

.rs-hero-slide--no-media .rs-hero-title {
    color: var(--rc-black);
}

.rs-hero-slide--no-media .rs-hero-subtitle {
    color: var(--rc-gray-dark);
}

.rs-hero-slide--no-media .rs-hero-cta--secondary {
    background: var(--rc-white);
    border-color: rgba(0, 0, 0, 0.12);
    color: var(--rc-black);
}

.rs-hero-media {
    pointer-events: none;
}

.rs-hero-image,
.rs-hero-video,
.rs-hero-poster,
.rs-hero-fallback {
    object-fit: cover;
}

.rs-hero-embed-wrap {
    pointer-events: none;
}

.rs-hero-embed {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw;
    min-height: 100%;
    min-width: 177.78vh;
    transform: translate(-50%, -50%);
    border: 0;
}

.rs-hero-title {
    text-wrap: balance;
}

.rs-hero-subtitle {
    text-wrap: pretty;
}

.rs-hero-cta:focus-visible,
.rs-hero-arrow:focus-visible,
.rs-hero-dot:focus-visible,
.rs-hero-pause:focus-visible {
    outline: 2px solid var(--rc-white);
    outline-offset: 3px;
}

.rs-hero-dot {
    width: 0.65rem;
    height: 0.65rem;
    border-radius: 9999px;
    border: 0;
    padding: 0;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.rs-hero-dot.is-active {
    background: var(--rc-white);
    transform: scale(1.2);
}

.rs-hero-arrow,
.rs-hero-pause {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: rgba(0, 0, 0, 0.35);
    color: var(--rc-white);
    cursor: pointer;
    backdrop-filter: blur(6px);
}

.rs-hero-live.sr-only,
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (prefers-reduced-motion: reduce) {
    .rs-hero-video {
        display: none;
    }

    .rs-hero-embed {
        display: none;
    }

    .rs-hero-poster--fallback {
        display: block !important;
    }

    .rs-hero-dot,
    .rs-hero-cta,
    .rs-hero-arrow {
        transition: none;
    }
}

@media (max-width: 767px) {
    .rs-hero-section {
        min-height: max(60vh, var(--rs-hero-min-height, 70vh));
    }
}
