.hero-slide {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius-s);
}

.hero-slide--carousel:focus-visible {
    outline: 2px solid var(--brand-colour-link-dark);
    outline-offset: 2px;
}

.hero-slide__track {
    position: relative;
}

.hero-slide__slide {
    position: relative;
}

.hero-slide__slide[hidden] {
    display: none;
}

.hero-slide__media {
    line-height: 0;
}

.hero-slide__image {
    display: block;
    width: 100%;
    height: auto;
    min-height: 600px;
    max-height: 28rem;
    object-fit: cover;
}

.hero-slide__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-block);
}

.hero-slide__text {
    color: var(--brand-colour-text);
    text-align: center;
    max-width: 48rem;
    background-color: rgb(0 0 0 / 72%);
    padding: 1em;
    border-radius: 8px;
}

.hero-slide__heading {
    margin: 0;
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: bold;
}

.hero-slide__caption,
.hero-slide__sub-heading {
    margin: 0.4rem 0 0;
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    font-weight: 400;
}

.hero-slide__controls {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0.5rem;
    pointer-events: none;
}

.hero-slide__control {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgb(0 0 0 / 55%);
    color: var(--brand-colour-text);
    cursor: pointer;
    pointer-events: auto;
}

.hero-slide__control:hover {
    background: rgb(0 0 0 / 72%);
}

.hero-slide__control:focus-visible {
    outline: 2px solid var(--brand-colour-link-dark);
    outline-offset: 2px;
}

.hero-slide__dots {
    position: absolute;
    left: 50%;
    bottom: 0.75rem;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    background: rgb(0 0 0 / 45%);
    backdrop-filter: blur(6px);
    transform: translateX(-50%);
    pointer-events: auto;
}

.hero-slide__dot {
    width: 0.65rem;
    height: 0.65rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgb(255 255 255 / 45%);
    cursor: pointer;
}

.hero-slide__dot[aria-current='true'] {
    background: rgb(255 255 255 / 95%);
}

.hero-slide__dot:focus-visible {
    outline: 2px solid var(--brand-colour-link-dark);
    outline-offset: 2px;
}

@media (width > 992px) {
    .hero-slide__image {
        min-height: unset;
        max-height: none;
        object-fit: unset; /* or omit object-fit */
        height: auto;
    }
}

@media (width <= 992px) {
    .hero-slide__image {
        max-height: 20rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-slide__slide {
        scroll-behavior: auto;
    }
}
