/* --------------------------------------sticky top background image---------------------------------------------- */
/* --------------------------------------------------------------------------------------------------------------- */
/* --------------------------------------------------------------------------------------------------------------- */
/* @keyframes text-shrink {
    from {
        font-size: var(--start-font-size, inherit);
    }

    69% {
        font-size: calc(var(--start-font-size, inherit) * 0.5);
    }

    to {
        font-size: calc(var(--start-font-size, inherit) * 0.5);
    }
} */

@keyframes text-move-up {
    from {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20vh);
    }

    to {
        transform: translateY(-100vh);
    }
}

@keyframes sticky-parallax-header-move-and-size {
    from {
        background-position: 50% 0;
        /* font-size: 5em; */
    }

    to {
        background-position: 50% 100%;
        background-color: white;
        height: 0vh;
        /* font-size: 0em; */
    }
}

body {
    padding-top: 100vh;
}

.hero-content {
    text-align: center;
    color: white;
    z-index: 2;
    margin-top: 35vh;
    animation: text-move-up linear forwards;
    animation-timeline: scroll();
    animation-range: 0vh 100vh;
}

.hero-title h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.and {
    font-size: 2rem;
    --start-font-size: 2rem;
    margin: 0.5rem 0;
    font-family: 'Playfair Display', serif;
    opacity: 0.9;
}


.hero-subtitle {
    margin-top: 1rem;
}

.date,
.time {
    font-size: 1.5rem;
    margin-bottom: 0.2rem;
    font-weight: 300;
}


.sticky-parallax-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

.sticky-parallax-header {
    background-image: url('https://res.cloudinary.com/jerry7ge/image/upload/c_fill,ar_3:4/v1758042013/template_images/wedding14_reduced.jpg');
    color: #fff;
    height: 100vh;
    width: 100%;
    background-size: cover;
    background-blend-mode: soft-light;
    display: grid;
    place-items: center;
    text-align: center;
    z-index: 999;

    position: fixed;
    top: 0;

    animation: sticky-parallax-header-move-and-size linear forwards;
    animation-timeline: scroll();
    animation-range: 0vh 100vh;
}