.portal-hero {
    align-items: center;
    display: flex;
    isolation: isolate;
    min-height: 450px;
    overflow: hidden;
    position: relative;
}

.portal-hero::before {
    content: "";
    inset: 0;
    pointer-events: none;
    position: absolute;
    z-index: 1;
}

.portal-hero--has-media::before {
    background: rgba(0, 0, 0, 0.48);
}

.portal-hero__inner {
    position: relative;
    width: 100%;
    z-index: 2;
}

.portal-hero__media {
    inset: 0;
    overflow: hidden;
    position: absolute;
    z-index: 0;
}

.portal-hero__media > *,
.portal-hero__media picture,
.portal-hero__image {
    display: block;
    height: 100%;
    width: 100%;
}

.portal-hero__image {
    object-fit: cover;
}

.portal-hero__content {
    margin-inline: auto;
    max-width: 50rem;
    text-align: center;
}

.portal-hero__content > * {
    margin-inline: auto;
}

.portal-hero--has-media:not([class*="block-font-colour-"]) {
    color: #fff;
}

.portal-hero--has-media:not([class*="block-headings-colour-"]) .portal-hero__heading:not([class*="text-colour-"]),
.portal-hero--has-media:not([class*="block-preheadings-colour-"]) .portal-hero__preheading:not([class*="text-colour-"]) {
    color: inherit;
}

.portal-hero__heading:not([class*="heading-size-"]) {
    font-size: var(--font-heading-size-large-hero, clamp(2.5rem, 6vw, 4.5rem));
    line-height: var(--leading-heading, 1.1);
}

.portal-hero__filter {
    max-width: 22rem;
    width: 100%;
}

.portal-hero__filter-label,
.portal-hero__status {
    border: 0;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

.portal-hero__select-wrap {
    color: #111;
    position: relative;
}

.portal-hero__select-wrap::after {
    border-bottom: 2px solid currentColor;
    border-right: 2px solid currentColor;
    content: "";
    height: 0.55rem;
    pointer-events: none;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-65%) rotate(45deg);
    width: 0.55rem;
}

.portal-hero.is-loading .portal-hero__select-wrap::after {
    animation: portal-hero-spin 700ms linear infinite;
    border: 2px solid rgba(17, 17, 17, 0.25);
    border-radius: 50%;
    border-top-color: #111;
    height: 0.85rem;
    transform: translateY(-50%);
    width: 0.85rem;
}

.portal-hero.is-loading .portal-hero__filter select {
    cursor: wait;
}

@keyframes portal-hero-spin {
    to {
        transform: translateY(-50%) rotate(360deg);
    }
}

.portal-hero__filter select {
    appearance: none;
    background: #fff;
    border: 1px solid transparent;
    border-radius: 0.25rem;
    color: #111;
    cursor: pointer;
    font: inherit;
    min-height: 3rem;
    padding: 0.65rem 3rem 0.65rem 1rem;
    width: 100%;
}

.portal-hero__filter select:focus-visible,
.portal-hero__filter button:focus-visible {
    outline: 3px solid currentColor;
    outline-offset: 3px;
}

.portal-hero__filter noscript button {
    margin-top: 0.75rem;
}

.portal-hero__empty {
    font-weight: 600;
}

.portal-hero__horse-content {
    opacity: 1;
    transition: opacity 180ms ease;
}

.portal-hero.is-loading + .portal-hero__horse-content,
.portal-hero__horse-content.is-loading {
    opacity: 0.45;
}

@media (prefers-reduced-motion: reduce) {
    .portal-hero.is-loading .portal-hero__select-wrap::after {
        animation-duration: 1.4s;
    }

    .portal-hero__horse-content {
        transition: none;
    }
}

@media (max-width: 767px) {
    .portal-hero {
        min-height: 400px;
    }
}
