header {
    position: relative;
    clip-path: ellipse(350% 100% at -25% 0);
}

header.primary {
    --background-opacity-transition: 2s;
    height: 80vh;
}

header.primary .background {
    transition: opacity var(--background-opacity-transition);
}

header.primary .background:not(:first-of-type) {
    opacity: 0;
}

header.secondary {
    height: 45vh;
}

header.tertiary {
    height: 25vh;
}

header .background {
    position: absolute;
    inset: 0;
    z-index: -1;
}

header .background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}



header .opensClearvisioAppointmentBooker {
    position: absolute;
    top: 60vh;
    right: 10rem;
    z-index: 10;
    font-family: 'Khand', sans-serif;
    font-size: 2rem;
    font-weight: 500;
}

header.secondary .opensClearvisioAppointmentBooker {
    top: 30vh;
    right: 8rem;
    font-size: 1.5rem;
}

header.tertiary .opensClearvisioAppointmentBooker {
    top: 15vh;
    right: 6rem;
    font-size: 1.25rem;
}

@media (max-width: 992px) {
    header .opensClearvisioAppointmentBooker {
        width: 16rem;
        height: 4rem;
        font-size: 1.5rem;
        left: 50%;
        transform: translateX(-50%);
    }
    header.secondary .opensClearvisioAppointmentBooker {
        width: 14rem;
        height: 3.5rem;
        font-size: 1.25rem;
    }
    header.tertiary .opensClearvisioAppointmentBooker {
        width: 14rem;
        height: 3.5rem;
        font-size: 1.25rem;
    }
}
