/* ==========================================
   INNER REFLECTIONS HERO SLIDER (SCOPED)
========================================== */

:root {
    --purple: #620570;
    --purple2: #7A0A67;
    --burgundy: #A63D3E;
    --gold: #F3C548;
    --gold-dark: #E7A53A;
}

/* Slider */


#irSlider {
    position: relative;
    width: 100%;
    height: 80vh;
    /* Increased from 66vh */
    min-height: 540px;
    /* Prevents the slider from becoming too short */
    max-height: 680px;
    /* Keeps it balanced on large screens */
    overflow: hidden;
    background: #620570;
}

/* Tablet */

@media (max-width:992px) {
    #irSlider {
        height: 64vh;
        min-height: 470px;
    }
}

/* Mobile */

@media (max-width:768px) {
    #irSlider {
        height: 72vh;
        min-height: 460px;
    }
}

/* Slides */

#irSlider .slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity .8s ease;
}

#irSlider .slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

/* Images */

#irSlider .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

#irSlider .slide.active img {
    animation: irZoom 6s ease forwards;
}

@keyframes irZoom {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.05);
    }
}

/* Overlay */

#irSlider .overlay {
    position: absolute;
    inset: 0;

    background:
        radial-gradient(circle at top right,
            rgba(243, 197, 72, .16),
            transparent 35%),

        radial-gradient(circle at bottom left,
            rgba(122, 10, 103, .10),
            transparent 45%),

        linear-gradient(135deg,
            rgba(98, 5, 112, .42),
            rgba(122, 10, 103, .28),
            rgba(166, 61, 62, .18));
}

/* Caption */

#irSlider .caption {
    position: absolute;
    left: 50%;
    bottom: 52px;
    transform: translateX(-50%);
    width: min(90%, 700px);
    text-align: center;
    color: #fff;
    z-index: 5;
}

#irSlider .caption h1,
#irSlider .caption h2 {
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(2.5rem, 4.3vw, 4.4rem);
    line-height: 1.08;
    margin-bottom: 10px;
    text-shadow: 0 4px 18px rgba(0, 0, 0, .35);

    opacity: 0;
    transform: translateY(25px);
}

#irSlider .caption p {
    font-family: "Poppins", sans-serif;
    font-size: clamp(.95rem, 1.3vw, 1.08rem);
    line-height: 1.65;
    color: #F8EEF8;

    opacity: 0;
    transform: translateY(20px);
}

/* Active Text Animation */

#irSlider .slide.active .caption h1,
#irSlider .slide.active .caption h2 {
    animation: irTitleUp .8s ease forwards;
}

#irSlider .slide.active .caption p {
    animation: irTextUp .8s ease .2s forwards;
}

@keyframes irTitleUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes irTextUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dots */

#irSlider .slider-dots {
    position: absolute;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

#irSlider .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .4);
    cursor: pointer;
    transition: .3s;
}

#irSlider .dot.active {
    width: 32px;
    border-radius: 20px;
    background: linear-gradient(90deg, var(--gold), var(--gold-dark));
}

/* Tablet */

@media (max-width:992px) {

    #irSlider {
        height: 60vh;
        min-height: 440px;
    }

    #irSlider .caption {
        bottom: 46px;
    }

}

/* Mobile */

@media (max-width:768px) {

    #irSlider {
        height: 72vh;
        min-height: 460px;
    }

    #irSlider .caption {
        bottom: 42px;
        width: 90%;
    }

    #irSlider .caption h1,
    #irSlider .caption h2 {
        font-size: clamp(2rem, 8vw, 3.3rem);
    }

    #irSlider .caption p {
        font-size: .95rem;
    }

}