.hob-image-banner {
    width: 100%;
    padding: clamp(8px, 1vw, 16px);
    background: var(--hob-primary-color, #0c2030);
}

.hob-image-banner--flush-bottom {
    padding-bottom: 0;
}

.hob-image-banner__item {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 2.4 / 1;
    overflow: hidden;
    isolation: isolate;
    color: #ffffff;
    background: var(--hob-primary-color, #0c2030);
    text-decoration: none;
}

.hob-image-banner__item::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.62) 0%,
        rgba(0, 0, 0, 0.24) 38%,
        rgba(0, 0, 0, 0) 68%
    );
    pointer-events: none;
}

.hob-image-banner__image {
    position: absolute;
    inset: 0;
    width: 100%;
    max-width: none;
    height: 100%;
    object-fit: cover;
    transform: scale(1);
    transition: transform 850ms cubic-bezier(0.22, 1, 0.36, 1);
}

.hob-image-banner__content {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2;
    display: flex;
    padding: clamp(40px, 3vw, 56px);
    flex-direction: column;
    align-items: flex-start;
    color: #ffffff;
}

.hob-image-banner__title {
    margin: 0;
    color: #ffffff;
    font-family: var(--hob-heading-font);
    font-size: clamp(2rem, 2.6vw, 2.75rem);
    font-weight: 400;
    letter-spacing: 0.065em;
    line-height: 1.08;
    text-transform: uppercase;
}

.hob-image-banner__cta {
    position: relative;
    display: inline-block;
    margin-top: 20px;
    padding-bottom: 6px;
    color: #ffffff;
    font-family: var(--hob-body-font);
    font-size: 0.9375rem;
    font-weight: 500;
    letter-spacing: 0.025em;
    line-height: 1.25;
}

.hob-image-banner__cta::before,
.hob-image-banner__cta::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 1px;
    background: currentColor;
    transition: transform 180ms ease;
}

.hob-image-banner__cta::before {
    transform: scaleX(1);
    transform-origin: left;
}

.hob-image-banner__cta::after {
    transform: scaleX(0);
    transform-origin: right;
}

.hob-image-banner__item--linked:focus-visible {
    z-index: 1;
    outline: 2px solid #ffffff;
    outline-offset: -6px;
}

.hob-image-banner__item--linked:hover .hob-image-banner__cta::before,
.hob-image-banner__item--linked:focus-visible .hob-image-banner__cta::before {
    transform: scaleX(0);
    transform-origin: right;
}

.hob-image-banner__item--linked:hover .hob-image-banner__cta::after,
.hob-image-banner__item--linked:focus-visible .hob-image-banner__cta::after {
    transform: scaleX(1);
    transform-origin: left;
    transition-delay: 180ms;
}

@media (hover: hover) and (pointer: fine) and (min-width: 900px) {
    .hob-image-banner__item--linked:hover .hob-image-banner__image {
        transform: scale(1.02);
    }
}

@media (max-width: 899px) {
    .hob-image-banner {
        padding: 8px;
    }

    .hob-image-banner--flush-bottom {
        padding-bottom: 0;
    }

    .hob-image-banner__item {
        max-height: 800px;
        aspect-ratio: 4 / 5;
    }

    .hob-image-banner__content {
        padding: clamp(24px, 6vw, 40px);
    }

    .hob-image-banner__title {
        font-size: clamp(1.875rem, 7vw, 2.25rem);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hob-image-banner__image,
    .hob-image-banner__cta::before,
    .hob-image-banner__cta::after {
        transition: none;
    }

    .hob-image-banner__item--linked:hover .hob-image-banner__image {
        transform: none;
    }
}
