/* --- FIX: ELIMINATE WHITE FLASH DURING FADE TRANSITION --- */

.reynolds-slider-wrapper,
.reynolds-slider,
.reynolds-slider .splide__track {
    /* Set a solid black background on all container elements */
    background-color: #000000 !important; 
}

/* Ensure empty/missing content slides also default to pure black */
.reynolds-slider .empty-background {
    background-color: #000000;
}

/* --- CALL OUT BANNER (TOP RIGHT) --- */
.reynolds-slider-wrapper {
    position: relative;
    overflow: hidden; /* Important: clips the edges of the rotated banner */
}

.reynolds-callout {
    position: absolute;
    top: 150px;
    right: -70px;
    background-color: var(--color-primary);
    width: 650px;
    transform: rotate(33deg);
    z-index: 10;
    text-align: center;
    padding-left:130px;
    padding-right:20px;
    padding-top:10px;
    padding-bottom:10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    pointer-events: none; /* Allows clicks to pass through to the slider if needed */
}

.reynolds-callout span {
    font-family: var(--font-secondary, 'Georgia, serif');
    font-weight: normal;
    font-size: 1.2em;
    color: white;
    text-transform: uppercase;
    display: block;
    padding: 0 60px;
    line-height: 1.2;
    letter-spacing: 1px;
}

/* General Slider Sizing */
.reynolds-slider,
.reynolds-slider .splide__slide {
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.reynolds-paragraph p{
    color:#fff;
}

/* Editor specific preview styles */
.reynolds-slider.slider-preview {
    min-height: 700px;
    position: relative;
    overflow: hidden;
}

.reynolds-slider .splide__slide {
    display: flex;
}

.reynolds-slider .editor-placeholder,
.reynolds-slider .video-background,
.reynolds-slider .image-background,
.reynolds-slider .empty-background {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.reynolds-slider .video-background {
    overflow: hidden;
}

.reynolds-slider .image-background {
    background-size: cover;
    background-position: center;
}

.reynolds-slider .editor-placeholder {
    background: #111;
    color: var(--color-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    z-index: 0;
}

.reynolds-slider .editor-placeholder.empty-slide {
    background-color: #333;
}

.reynolds-slider .empty-background {
    background-color: #222;
}

/* --- FINAL BULLETPROOF IFRAME STYLES --- */
.reynolds-slider .video-background iframe {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    border: none !important;
    
    /* This logic ensures the 16:9 video covers the viewport */
    width: 177.77vh !important; /* 100vh * 16/9 */
    height: 56.25vw !important; /* 100vw * 9/16 */
    min-width: 100vw !important;
    min-height: 100vh !important;
    
    /* ADD THIS LINE: This removes the conflicting width limit */
    max-width: none !important; 
}

/* Overlay Styles */
.slider-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.45) 40%, rgba(0,0,0,0.2) 75%, transparent 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    z-index: 4;
}

.overlay-content {
    color: var(--color-tertiary, white);
}

.overlay-content h1 {
    margin-bottom: 1rem;
}

.overlay-content p{
    margin-top:20px;
    max-width:768px;
}

.reynolds-paragraph {
    margin-bottom: 1.5rem;
      color:#ffffff !important;
       
}

.reynolds-paragraph a {
    text-decoration: none;
    padding-bottom: 2px;
    color:#ffffff !important;
}

.reynolds-paragraph a:hover {
    text-decoration: none;
    border-bottom: none;
        border-bottom: 0.25px solid rgba(255, 255, 255, 0.6);
}

/* --- BUTTON GROUP LOGIC --- */
.reynolds-button-group {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.reynolds-button {
    display: inline-block;
    padding: 0.75rem 25px;
    background: var(--color-primary);
    color: var(--color-tertiary);
    border-radius: 25px;
    text-decoration: none;
    text-transform: capitalize;
}

.reynolds-button:hover {
    opacity: 0.9 !important;
 
}

/* Scroll Down Anchor */
.scroll-down-anchor {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    text-decoration: none;
    z-index: 5;
    font-size: 1.3em;
    font-family: var(--font-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.scroll-down-anchor img {
    transform: rotate(90deg);
    width: 50px;
    margin-bottom: 10px;
    margin-top: 10px;
    animation: bounce 1.2s infinite;
}

.scroll-down-anchor .down-txt {
    animation: bounce-text 1.2s infinite;
}

/* Splide Arrow Styles */
.reynolds-slider .splide__arrow {
    background: transparent;
    border: none;
    width: 30px;
    height: 50px;
    opacity: 0.6;
    transition: opacity 0.3s ease;
    z-index: 5;
}

.reynolds-slider .splide__arrow:hover {
    opacity: 1;
}

.reynolds-slider .splide__arrow svg {
    fill: var(--color-tertiary, white);
    width: 100%;
    height: 100%;
}

.reynolds-slider .splide__arrow--prev {
    left: 2rem;
}

.reynolds-slider .splide__arrow--next {
    right: 2rem;
}

/* Keyframe Animations */
@keyframes bounce {
    0%, 100% { transform: translateY(0) rotate(90deg); }
    50% { transform: translateY(-5px) rotate(90deg); }
}

@keyframes bounce-text {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* Mobile Responsive Styles */
@media screen and (max-width: 767px) {
    .reynolds-slider,
    .reynolds-slider .splide__slide {
        height: 100vh;     /* fallback for older browsers */
        height: 100svh;    /* modern browsers, excludes Safari UI */
    }

    /* Forceful override for mobile video height */
    .reynolds-slider .video-background iframe {
        min-height: 100svh !important;
    }

    .scroll-down-anchor {
        bottom: calc(env(safe-area-inset-bottom, 19px) + 19px);
    }

    .down-txt {
        font-size: 0.7em;
        text-align: center;
    }

    .reynolds-slider .splide__arrows {
        display: none !important;
    }

    .reynolds-paragraph {
        padding-left:30px;
        padding-right:30px;
      
    }

    /* Adjust callout for smaller screens so it doesn't take up too much space */
    .reynolds-callout {
        width: 280px;
        right: -80px;
        top: 30px;
    }
    .reynolds-callout span {
        font-size: 0.85em;
    }

    .reynolds-callout {
        top: 10px;
        right: -100px;
        width: 650px;
        transform: rotate(40deg);
        padding-left:360px;
        padding-right:20px;
        padding-top:10px;
        padding-bottom:10px;
    }

    .reynolds-callout span {
        font-size: 0.75em;
    }
}