.page-hero {
    position: relative;
}

.page-hero.has-banner .page-hero__image {
    height: 100vh;
    max-height: calc(100vh - 100px);
    position: relative;
}

/* when *no* banner, shrink to 80vh */
.page-hero.no-banner .page-hero__image {
    height: 70vh;
    max-height: none;
    overflow: hidden;
}

.page-hero .page-hero__image img,
.page-hero .page-hero__image .page-hero__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-hero .page-hero__banner {
    background: rgba(255, 255, 255, .77);
    position: absolute;
    bottom: 0px;
    height: 140px;
    width: 100%;
}

.page-hero.has-banner .breadcrumb-container {
    top: unset;
    bottom: 140px;
}

.page-hero.has-banner.has-banner-buttons .breadcrumb-container {
    top: unset;
    bottom: 140px;
}

/* override when no banner */
.page-hero.no-banner .breadcrumb-container {
    color: #fff;
    background: var(--green-md);
    top: calc(70vh - 39px)
}

.page-hero.no-banner .breadcrumb-container a {
    color: #fff;
    text-decoration: none;
}

.page-hero.has-banner-buttons .page-hero__banner {
    bottom: 0;
}

.page-hero.has-banner-buttons .banner-buttons {
    background: var(--green-dk);
}

.page-hero .page-hero__content {
    text-align: center;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--green-dk);
}

.page-hero .page-hero__content h1 {
    font-size: 50px;
    font-family: 'Cachet';
    font-weight: bold;
}

.page-hero .page-hero__content h1 span {
    display: block;
    font: normal normal bold 50px/63px 'Cachet';
}


.hero-content-container {
    text-align: center;
    font-family: 'Cachet';
    padding: 60px 0 1px;
    background-color: var(--green-dk);
    color: white;
}

.hero-content-container .container p {
    font-size: 24px;
}

.hero-content-container .container h1 {
    font-size: 50px;
    margin-bottom: 40px;
}

.hero-content-container .container h2 {
    text-transform: none;
    font-weight: normal;
    font-size: 40px;
    margin-bottom: 1.5rem;
}

.page-hero.no-banner.no-banner-buttons .hero-content-container .container {
    padding-bottom: 60px;
}

.hero-content-container .container {
    text-transform: none;
    font-weight: normal;
    font-size: 40px;
    padding-bottom: 1px;
}

h1.underlined span {
    position: relative;
    display: inline-block;
    z-index: 1;
}

h1.underlined span::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 100%;
    height: 8px;
    background: var(--yellow);
    z-index: -1;
    pointer-events: none;
    border-radius: 15px;
}


.page-hero .page-hero__image img,
.page-hero .page-hero__image .page-hero__img {
    object-position: top;
}

.page-hero .hero-content-container .container p a:hover {
    color: var(--yellow);
}

.page-hero .hero-content-container .container p a {
    color: white;
}

/* Position to top and add additional padding to center image on preschool schedule a tour page */
#preschool-schedule-tour-hero.page-hero .page-hero__image img,
#preschool-schedule-tour-hero.page-hero .page-hero__image .page-hero__img {
    object-position: top;
    padding-top: 4rem;
}

.page-hero .hero-content-container:has(.button-row) {
    padding-bottom: 2rem;
}

@media screen and (min-width: 760px) {
    .page-hero__img.mobile {
        display: none;
    }
}

@media screen and (max-width: 760px) {
    .page-hero.has-mobile-image .page-hero__img:not(.mobile) {
        display: none;
    }
}


@media screen and (max-width: 600px) {
    .flex-content .container {
        padding: 2rem;
    }
}



@media screen and (max-width: 1050px) {
    .page-hero .banner-buttons {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding-top: 20px;
    }

    .page-hero .banner-buttons .banner-button {
        width: 450px;
    }

    .page-hero .banner-buttons .banner-button span {
        display: inline;
        margin-right: 8px;
    }

    .page-hero .banner-buttons .banner-button .banner-button-text {
        text-transform: uppercase;
        font-size: 32px;
    }


    .page-hero .banner-buttons .banner-button.no-dec {
        border-radius: 7px;
    }

    .page-hero .banner-buttons .banner-button.no-dec:hover {
        border-top: 6px solid #fff;
    }

    .page-hero .banner-buttons .banner-button.decorated {
        justify-content: flex-start;
        border-radius: 30px;
        border: 6px solid #fff;
    }
}

@media screen and (max-width: 550px) {
    .page-hero .banner-buttons .banner-button {
        width: 100%;
        height: 80px;
    }

    .page-hero .banner-buttons {
        gap: 10px;
        padding: 15px 15px 2px;
    }

    .home-hero-content h1 {
        font-size: 28px;
    }

    .home-hero-content h1 span {
        font-size: 35px;
    }

    .page-hero .banner-buttons .banner-button .banner-button-text {
        font-size: 22px;
    }

    .page-hero .banner-buttons .banner-button span {
        font-size: 22px;
    }

    .page-hero .banner-buttons .banner-button .icon {
        height: 40px;
        width: 40px;
    }

    .page-hero .banner-buttons .banner-button.no-dec:hover {
        border: 1px solid #fff;
    }
}

@media screen and (max-width: 500px) {
    .page-hero .page-hero__content h1 {
        font-size: 40px;
    }

    .page-hero .banner-buttons .banner-button.no-dec {
        font-size: 26px;
    }

    .page-hero.no-banner .hero-content-container .container h1 {
        font-size: 38px;
    }

    .page-hero.no-banner .hero-content-container .container h2 {
        font-size: 27px;
    }

    .page-hero.no-banner .hero-content-container .container p {
        font-size: 18px;
    }

    .page-hero.no-banner .hero-content-container .button-row {
        gap: 15px;
    }

    .hero-content-container .container {
        padding: 0 25px;
    }

    #ib-hero.page-hero .page-hero__image img {
        margin-top: 80px;
    }
}