/* Fluid 16:9 Aspect Ratio Container */
#spmHeroCarousel {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    overflow: hidden;
}

.carousel-inner, .carousel-item {
    height: 100%;
}

/* Media Background Handling */
.media-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.bg-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Dark Overlay for Text Legibility */
.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 12, 25, 0.4);
    z-index: 2;
}

/* Dead-Center Caption Positioning */
.carousel-caption {
    z-index: 3;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    padding-top: 3rem;
    padding-bottom: 1.25rem;
    display: flex !important;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.caption-content {
    max-width: 850px;
    padding: 0 20px;
}

/* Fluid Typography using CSS Clamp */
.eyebrow {
    display: block;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: clamp(0.9rem, 2vw, 1.3rem);
    margin-bottom: 0.5rem;
    color: #eee;
    opacity: 0; /* Animated in via JS */
}

.main-headline {
    font-weight: 800;
    font-size: clamp(2rem, 6vw, 5rem);
    line-height: 1.1;
    margin-bottom: 0.5rem;
    color: #fff;
    opacity: 0; /* Animated in via JS */
}

.supporting-text {
    font-size: clamp(1.25rem, 2.5vw, 2.25rem);
    margin-bottom: 3.5rem;
    font-weight: 300;
    color: #eee;
    opacity: 0; /* Animated in via JS */
}

.btn-outline-light {
    border-width: 2px;
    padding: 0.7rem 3rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0; /* Animated in via JS */
}

/* Custom Delay for Animate.css */
.animate-delayed {
    animation-delay: 1.0s;
}

/* Custom Fade using Bootstrap carousel-fade */
.carousel-item {
    transition: transform 2.6s ease-in-out;
}

/* Custom Mobile Styles */

@media screen and (min-width: 480px) and (max-width: 576px) {
body {  
    -webkit-text-size-adjust: 80%;
    }
.supporting-text {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    margin-bottom: 1.50rem;
    font-weight: 300;
    color: #eee;
    opacity: 0; /* Animated in via JS */
    }
}
@media screen and (max-width: 479.8px) {
body {  
    -webkit-text-size-adjust: 65%;
    }    
.supporting-text {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    margin-bottom: 1.50rem;
    font-weight: 300;
    color: #eee;
    opacity: 0; /* Animated in via JS */
    }
}
