.hc-editorial-rail {
    --hc-rail-ratio: auto;
    --hc-rail-ratio-tablet: var(--hc-rail-ratio);
    --hc-rail-ratio-mobile: var(--hc-rail-ratio-tablet);
    --hc-rail-min-height: var(--hc-rail-min-height-default, 620px);
    --hc-rail-gap: 0px;
    --hc-rail-radius: 0px;
    --hc-rail-overlay: #000;
    --hc-rail-idle-overlay: 0.18;
    --hc-rail-active-overlay: 0.34;
    --hc-rail-active-zoom: 1;
    --hc-rail-text: #fff;
    --hc-rail-muted: rgb(255 255 255 / 0.72);
    --hc-rail-label-color: var(--hc-rail-muted);
    --hc-rail-label-hover-color: var(--hc-rail-text);
    --hc-rail-eyebrow-color: var(--hc-rail-text);
    --hc-rail-eyebrow-hover-color: var(--hc-rail-text);
    --hc-rail-heading-color: var(--hc-rail-text);
    --hc-rail-heading-hover-color: var(--hc-rail-text);
    --hc-rail-body-color: rgb(255 255 255 / 0.86);
    --hc-rail-body-hover-color: var(--hc-rail-text);
    --hc-rail-cta-color: var(--hc-rail-text);
    --hc-rail-cta-hover-color: var(--hc-rail-text);
    --hc-rail-accent: #fff;
    --hc-rail-nav-bg: #fff;
    --hc-rail-nav-color: #111;
    --hc-rail-content-width: 38rem;
    --hc-rail-content-padding: clamp(1.5rem, 3vw, 3.5rem);
    --hc-rail-media-transition: 850ms;
    --hc-rail-ken-burns-scale: 1.04;
    --hc-rail-ken-burns-duration: 8s;
    color: var(--hc-rail-text);
    isolation: isolate;
    position: relative;
    width: 100%;
}

/* Skew the clipping frame and counter-skew the expanded image frame. */
.hc-film-rail {
    --hc-film-visible: min(var(--hc-film-count), var(--hc-film-panels, 5));
    --hc-film-height: var(--hc-rail-height, clamp(260px, 24vw, 550px));
    --hc-film-slant: var(--hc-film-live-angle, var(--hc-film-angle, 14deg));
    --hc-film-shade: color-mix(in srgb, var(--hc-film-gradient-color, #090909) var(--hc-film-gradient-strength, 72%), transparent);
    background: #101010;
    display: grid;
}
.hc-film-rail__viewport { grid-area: 1 / 1; min-height: var(--hc-film-height); overflow: hidden; position: relative; container-type: size; }
.hc-film-rail[data-film-browse-ready] .hc-film-rail__viewport { touch-action: pan-y pinch-zoom; }
.hc-film-rail[data-film-browse-ready] .hc-film-rail__viewport:focus-visible {
    outline: 2px solid #fff;
    outline-offset: -4px;
}
.hc-film-rail__track {
    position: absolute;
    inset: 0;
    display: flex;
    height: 100%;
    transform: translate3d(calc(-100% / var(--hc-film-visible)), 0, 0);
}
.hc-film-rail__panel { flex: 0 0 calc(100% / var(--hc-film-visible)); position: relative; min-width: 0; }
.hc-film-rail__mask {
    /* The greatest horizontal shift is at the top and bottom of the panel. */
    --hc-film-shift: calc(tan(var(--hc-film-slant)) * 50cqh);
    --hc-film-overhang: var(--hc-film-measured-overhang, max(var(--hc-film-shift), calc(0px - var(--hc-film-shift))));
    --hc-film-seam: min(1px, var(--hc-film-overhang));
    position: absolute;
    inset: 0 calc(0px - var(--hc-film-seam));
    overflow: hidden;
    transform: skewX(calc(-1 * var(--hc-film-slant)));
}
.hc-film-rail__image {
    position: absolute;
    inset: 0 calc(0px - var(--hc-film-overhang));
    transform: skewX(var(--hc-film-slant));
}
@property --hc-film-photo-slope-limit { syntax: "<length>"; inherits: true; initial-value: 0px; }
@property --hc-film-photo-gap { syntax: "<length>"; inherits: true; initial-value: 0px; }
@property --hc-film-open-panel { syntax: "<number>"; inherits: false; initial-value: 0; }
@property --hc-film-open-left { syntax: "<number>"; inherits: false; initial-value: 0; }
@property --hc-film-open-right { syntax: "<number>"; inherits: false; initial-value: 0; }
@property --hc-film-lean-left { syntax: "<number>"; inherits: false; initial-value: 0; }
@property --hc-film-lean-right { syntax: "<number>"; inherits: false; initial-value: 0; }
@property --hc-film-lean-in-left { syntax: "<length>"; inherits: true; initial-value: 0px; }
@property --hc-film-lean-in-right { syntax: "<length>"; inherits: true; initial-value: 0px; }
.hc-film-rail[data-film-hover-expand] .hc-film-rail__panel {
    flex-basis: calc(100% / var(--hc-film-visible) + var(--hc-film-panel-width-change, 0px));
}
.hc-film-rail[data-film-hover-expand] .hc-film-rail__mask {
    --hc-film-open-panel: 0;
    --hc-film-open-left: 0;
    --hc-film-open-right: 0;
    --hc-film-lean-left: 0;
    --hc-film-lean-right: 0;
    --edge-shift: var(--hc-film-live-shift, var(--hc-film-shift));
    --straighten-limit: var(--hc-film-expand-limit, 0px);
    --straighten: clamp(calc(0px - var(--straighten-limit)), var(--edge-shift), var(--straighten-limit));
    --lean-in-from-left: var(--hc-film-lean-in-left, 0px);
    --lean-in-from-right: var(--hc-film-lean-in-right, 0px);
    --neighbor-inset: var(--hc-film-expand-gap, 0px);
    --left-straighten: max(var(--hc-film-open-panel), var(--hc-film-open-left));
    --right-straighten: max(var(--hc-film-open-panel), var(--hc-film-open-right));
    --left-slope-raw: calc(var(--edge-shift) - var(--straighten) * var(--left-straighten) + var(--lean-in-from-left) * max(0, var(--hc-film-lean-left)) + var(--lean-in-from-right) * min(0, var(--hc-film-lean-left)));
    --right-slope-raw: calc(var(--edge-shift) - var(--straighten) * var(--right-straighten) + var(--lean-in-from-left) * max(0, var(--hc-film-lean-right)) + var(--lean-in-from-right) * min(0, var(--hc-film-lean-right)));
    --left-slope: var(--left-slope-raw);
    --right-slope: var(--right-slope-raw);
    --edge-coverage: max(var(--left-slope), calc(0px - var(--left-slope)), var(--right-slope), calc(0px - var(--right-slope)));
    --clip-bleed: calc(1px + max(var(--hc-film-overhang), var(--edge-coverage) + var(--hc-film-photo-travel, 0px) + min(.5px, var(--edge-coverage))));
    --left-edge: calc(var(--clip-bleed) - .5px + var(--neighbor-inset) * var(--hc-film-open-left));
    --right-edge: calc(100% - var(--clip-bleed) + .5px - var(--neighbor-inset) * var(--hc-film-open-right));
    inset: 0 calc(0px - var(--clip-bleed));
    transform: none;
    clip-path: polygon(
        calc(var(--left-edge) + var(--left-slope)) 0,
        calc(var(--right-edge) + var(--right-slope)) 0,
        calc(var(--right-edge) - var(--right-slope)) 100%,
        calc(var(--left-edge) - var(--left-slope)) 100%
    );
}
.hc-film-rail[data-film-hover-expand] .hc-film-rail__image {
    inset: 0 1px;
    transform: none;
}
@media (prefers-reduced-motion: no-preference) {
    .hc-film-rail[data-film-hover-lean] {
        transition: --hc-film-lean-in-left 180ms ease-out, --hc-film-lean-in-right 180ms ease-out;
    }
    .hc-film-rail[data-film-hover-expand] .hc-film-rail__panel {
        transition: flex-basis var(--hc-film-hover-duration, 600ms) cubic-bezier(.2,.72,.26,1);
    }
    .hc-film-rail[data-film-hover-expand] .hc-film-rail__mask {
        transition-property: --hc-film-open-panel, --hc-film-open-left, --hc-film-open-right, --hc-film-lean-left, --hc-film-lean-right;
        transition-duration: var(--hc-film-hover-duration, 600ms);
        transition-timing-function: cubic-bezier(.2,.72,.26,1);
    }
    .hc-film-rail[data-film-hover-expand] .hc-film-rail__mask[data-film-hovered] {
        --hc-film-open-panel: 1;
    }
    .hc-film-rail[data-film-hover-expand] .hc-film-rail__panel:has(> [data-film-hovered]) + .hc-film-rail__panel > .hc-film-rail__mask {
        --hc-film-open-left: 1;
    }
    .hc-film-rail[data-film-hover-expand] .hc-film-rail__panel:has(+ .hc-film-rail__panel > [data-film-hovered]) > .hc-film-rail__mask {
        --hc-film-open-right: 1;
    }
    /* A shared seam leans in the same direction on both panels. The focused seams stay aligned with its sides. */
    .hc-film-rail[data-film-hover-lean] .hc-film-rail__panel:has(~ .hc-film-rail__panel > [data-film-hovered]) > .hc-film-rail__mask {
        --hc-film-lean-left: 1;
        --hc-film-lean-right: 1;
    }
    .hc-film-rail[data-film-hover-lean] .hc-film-rail__panel:has(> [data-film-hovered]) ~ .hc-film-rail__panel > .hc-film-rail__mask {
        --hc-film-lean-left: -1;
        --hc-film-lean-right: -1;
    }
    .hc-film-rail[data-film-hover-lean] .hc-film-rail__panel:has(+ .hc-film-rail__panel > [data-film-hovered]) > .hc-film-rail__mask {
        --hc-film-lean-right: 0;
    }
    .hc-film-rail[data-film-hover-lean] .hc-film-rail__panel:has(> [data-film-hovered]) + .hc-film-rail__panel > .hc-film-rail__mask {
        --hc-film-lean-left: 0;
    }
}
/* Keep the selected photo square and the remaining seams safe as the panels narrow. */
.hc-film-rail[data-film-photo-expand="center"] .hc-film-rail__panel[aria-hidden="true"] { transition: none; }
.hc-film-rail[data-film-photo-expand] {
    --hc-film-photo-slope-limit: calc(8 * var(--hc-film-measured-overhang, var(--hc-film-height)));
    --hc-film-photo-gap: var(--hc-film-expand-gap, 0px);
}
.hc-film-rail[data-film-photo-expand][data-film-photo-open] {
    --hc-film-photo-slope-limit: var(--hc-film-photo-open-slope-limit, 0px);
}
.hc-film-rail[data-film-photo-expand] .hc-film-rail__mask {
    --straighten: var(--edge-shift);
    --photo-panel-progress: var(--hc-film-open-panel);
    --neighbor-inset: calc(var(--hc-film-photo-gap) * (1 - var(--photo-panel-progress)));
    --left-straighten: var(--hc-film-open-left);
    --right-straighten: var(--hc-film-open-right);
    --left-slope: clamp(calc(0px - var(--hc-film-photo-slope-limit)), var(--left-slope-raw), var(--hc-film-photo-slope-limit));
    --right-slope: clamp(calc(0px - var(--hc-film-photo-slope-limit)), var(--right-slope-raw), var(--hc-film-photo-slope-limit));
}
/* Both sides of a shared edge stay straight when focus moves to the adjacent photo. */
.hc-film-rail[data-film-photo-expand] .hc-film-rail__mask[data-film-hovered] {
    --hc-film-open-panel: 1;
    --hc-film-open-left: 1;
    --hc-film-open-right: 1;
}
.hc-film-rail[data-film-photo-expand] .hc-film-rail__panel:has(> [data-film-hovered]) + .hc-film-rail__panel > .hc-film-rail__mask {
    --hc-film-open-left: 1;
}
.hc-film-rail[data-film-photo-expand] .hc-film-rail__panel:has(+ .hc-film-rail__panel > [data-film-hovered]) > .hc-film-rail__mask {
    --hc-film-open-right: 1;
}
.hc-film-rail[data-film-photo-expand] .hc-film-rail__image {
    inset-inline: calc(1px + (var(--clip-bleed) - 1px) * var(--photo-panel-progress));
}
.hc-film-rail[data-film-photo-expand] .hc-film-rail__image img {
    --photo-trim-block: calc(var(--hc-film-photo-height-reduction, 0px) * var(--photo-panel-progress));
    --photo-trim-inline: calc(var(--hc-film-photo-width-reduction, 0px) * var(--photo-panel-progress));
    inset-block: calc(var(--photo-trim-block) / 2) auto;
    inset-inline: calc(var(--photo-trim-inline) / 2) auto;
    height: calc(100% - var(--photo-trim-block));
    width: calc(100% - var(--photo-trim-inline));
}
@media (prefers-reduced-motion: no-preference) {
    .hc-film-rail[data-film-photo-expand] .hc-film-rail__image img {
        scale: calc(1.06 - .06 * var(--photo-panel-progress));
        transform-origin: var(--hc-film-focus, center);
    }
    .hc-film-rail[data-film-photo-expand] {
        transition: --hc-film-photo-slope-limit var(--hc-film-hover-duration, 600ms) cubic-bezier(.2,.72,.26,1),
            --hc-film-photo-gap var(--hc-film-hover-duration, 600ms) cubic-bezier(.2,.72,.26,1);
    }
    .hc-film-rail[data-film-photo-expand][data-film-hover-lean] {
        transition: --hc-film-photo-slope-limit var(--hc-film-hover-duration, 600ms) cubic-bezier(.2,.72,.26,1),
            --hc-film-photo-gap var(--hc-film-hover-duration, 600ms) cubic-bezier(.2,.72,.26,1),
            --hc-film-lean-in-left 180ms ease-out, --hc-film-lean-in-right 180ms ease-out;
    }
}
.hc-film-rail__photo-trigger {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
}
.hc-film-rail:not([data-film-photo-ready]) .hc-film-rail__photo-trigger { display: none; }
.hc-film-rail__photo-trigger[aria-expanded="true"] { cursor: zoom-out; }
.hc-film-rail__photo-trigger:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }
.hc-film-rail__hover {
    position: absolute;
    inset: 0;
}
@media (prefers-reduced-motion: no-preference) {
    .hc-film-rail[data-film-hover-effect] .hc-film-rail__hover {
        transform: translateX(0) scale(1);
        transition: transform var(--hc-film-hover-duration, 600ms) cubic-bezier(.2,.72,.26,1);
    }
    .hc-film-rail:not([data-film-photo-expand]) .hc-film-rail__mask[data-film-hovered] .hc-film-rail__hover {
        transform: translateX(var(--hc-film-hover-pan, 0px)) scale(var(--hc-film-hover-scale, 1.11));
    }
}
.hc-film-rail[data-film-browse-ready][data-film-browsing],
.hc-film-rail[data-film-browsing] :is(.hc-film-rail__panel, .hc-film-rail__mask, .hc-film-rail__hover) {
    transition: none;
}
.hc-film-rail .hc-film-rail__image img {
    position: absolute;
    inset: 0;
    width: 100%;
    max-width: 100%;
    height: 100%;
    display: block;
    max-height: none;
    object-fit: var(--hc-film-panel-fit, var(--hc-film-fit, cover));
    object-position: var(--hc-film-focus, center);
}
.hc-film-rail__overlay {
    --hc-film-gradient-direction: to right;
    grid-area: 1 / 1;
    position: relative;
    display: grid;
    align-items: center;
    justify-items: start;
    box-sizing: border-box;
    padding: clamp(1rem, 3.4vw, 3.75rem);
    background: linear-gradient(var(--hc-film-gradient-direction), var(--hc-film-shade) 22%, transparent 68%);
    pointer-events: none;
}
.hc-film-rail[data-film-gradient="right"] .hc-film-rail__overlay { --hc-film-gradient-direction: to left; }
.hc-film-rail[data-film-gradient="top"] .hc-film-rail__overlay { --hc-film-gradient-direction: to bottom; }
.hc-film-rail[data-film-gradient="bottom"] .hc-film-rail__overlay { --hc-film-gradient-direction: to top; }
.hc-film-rail[data-film-gradient="center"] .hc-film-rail__overlay { background: linear-gradient(to right, transparent, var(--hc-film-shade) 32% 68%, transparent); }
.hc-film-rail[data-film-gradient="off"] .hc-film-rail__overlay { background: none; }
.hc-film-rail[data-film-position="center"] .hc-film-rail__overlay { justify-items: center; }
.hc-film-rail[data-film-position="right"] .hc-film-rail__overlay { justify-items: end; }
.hc-film-rail__copy {
    max-inline-size: min(38ch, 100%);
    min-inline-size: 0;
    overflow-wrap: anywhere;
    text-shadow: 0 1px 5px #0009;
}
.hc-film-rail__copy a { pointer-events: auto; }
.hc-film-rail__editorial-trigger {
    position: absolute;
    inset: 0;
    width: 100%;
    padding: 0;
    border: 0;
    color: #fff;
    background: transparent;
    cursor: pointer;
}
.hc-film-rail:not([data-film-editorial-ready]) .hc-film-rail__editorial-trigger { display: none; }
.hc-film-rail__editorial-trigger span,
.hc-film-rail__editorial-close {
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid #fff7;
    border-radius: 50%;
    background: #111d;
    color: #fff;
    font-size: 1.25rem;
}
.hc-film-rail__editorial-trigger span {
    position: absolute;
    inset: auto auto .85rem 50%;
    transform: translateX(-50%);
    opacity: 0;
}
.hc-film-rail__editorial-trigger:is(:hover,:focus-visible) span { opacity: 1; }
@media (hover: none) {
    .hc-film-rail__editorial-trigger span { opacity: 1; }
}
.hc-film-rail__editorial {
    position: absolute;
    z-index: 2;
    inset: 0;
    display: grid;
    align-items: end;
    overflow: auto;
    background: linear-gradient(85deg, #090909f5, #090909a8 65%, #09090980);
    color: #fff;
}
.hc-film-rail__editorial[hidden] { display: none; }
.hc-film-rail__editorial-copy {
    max-width: 44rem;
    padding: 3.75rem clamp(1rem, 4vw, 4rem) clamp(1rem, 4vw, 3rem);
}
.hc-film-rail__editorial-close {
    position: absolute;
    inset: .75rem .75rem auto auto;
    cursor: pointer;
}
/* Expanded projects share the authored copy and artwork with the original rail. */
.hc-film-rail[data-display-mode="hover_editorial"] .hc-film-rail__editorial {
    right: auto;
    background: #101010;
}
.hc-film-rail__editorial-art,
.hc-film-rail__editorial-art > div {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.hc-film-rail__editorial-art :is(picture, img) {
    display: block;
    width: 100%;
    height: 100%;
}
.hc-film-rail__editorial-art img {
    object-fit: var(--hc-film-expanded-fit, cover);
    object-position: var(--hc-film-expanded-focus, center center);
}
.hc-film-rail__editorial-art::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, #090909ed, #09090980 45%, #0909090d);
}
.hc-film-rail[data-display-mode="hover_editorial"] .hc-film-rail__editorial-copy {
    z-index: 1;
    box-sizing: border-box;
    width: 100%;
}
.hc-film-rail .hc-film-rail__copy .hc-editorial-rail__heading { font-size: clamp(1.6rem, 3vw, 3rem); }
.hc-film-rail__pause {
    position: absolute;
    inset: auto .75rem .75rem auto;
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid #fff7;
    background: #111d;
    color: #fff;
    border-radius: 50%;
    opacity: 0;
}
.hc-film-rail__pause[hidden] { display: none; }
.hc-film-rail:is(:hover, :focus-within) .hc-film-rail__pause { opacity: 1; }
@media (pointer: coarse) { .hc-film-rail__pause { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .hc-film-rail__pause { display: none; } }

.hc-editorial-rail__track {
    aspect-ratio: var(--hc-rail-ratio);
    box-sizing: border-box;
    display: flex;
    gap: var(--hc-rail-gap);
    height: var(--hc-rail-height, auto);
    min-height: var(--hc-rail-height, var(--hc-rail-min-height));
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory;
    scrollbar-width: none;
    width: 100%;
    position: relative;
    z-index: 2;
}

.hc-editorial-rail__track::-webkit-scrollbar { display: none; }

.hc-editorial-rail__slide {
    border-radius: var(--hc-rail-radius);
    flex: 0 0 calc(
        (100% - (var(--hc-rail-slides-visible, var(--hc-rail-item-count)) - 1) * var(--hc-rail-gap)) /
        var(--hc-rail-slides-visible, var(--hc-rail-item-count))
    );
    min-width: 0;
    overflow: hidden;
    position: relative;
    scroll-snap-align: start;
    transition: opacity 300ms ease, filter 400ms ease;
}

@media (min-width: 768px) {
    .hc-editorial-rail.is-indexed-navigation .hc-editorial-rail__slide {
        scroll-snap-align: none;
    }
}

.hc-editorial-rail__snap-point {
    height: 1px;
    pointer-events: none;
    position: absolute;
    scroll-snap-align: start;
    top: 0;
    width: 1px;
}

.hc-editorial-rail[data-display-mode="single"] .hc-editorial-rail__slide {
    flex-basis: 100%;
}

@media (min-width: 768px) {
    .hc-editorial-rail.is-mixed-geometry .hc-editorial-rail__slide.has-project-ratio {
        flex: 0 0 calc(var(--hc-rail-frame-height, var(--hc-rail-min-height)) * var(--hc-rail-project-ratio));
    }
    .hc-editorial-rail.is-project-ratio-frames .hc-editorial-rail__stage-media.has-project-ratio {
        left: 50%;
        right: auto;
        width: min(100%, calc(var(--hc-rail-frame-height, var(--hc-rail-min-height)) * var(--hc-rail-project-ratio)));
        transform: translateX(-50%) scale(1.025);
    }
    .hc-editorial-rail.is-project-ratio-frames .hc-editorial-rail__stage-media.has-project-ratio.is-active {
        transform: translateX(-50%) scale(1);
    }
    .hc-editorial-rail.is-project-ratio-frames[data-display-mode="single"] .hc-editorial-rail__slide.has-project-ratio .hc-editorial-rail__media {
        left: 50%;
        width: min(100%, calc(var(--hc-rail-frame-height, var(--hc-rail-min-height)) * var(--hc-rail-project-ratio)));
        transform: translateX(-50%);
    }
}

.hc-editorial-rail__stage,
.hc-editorial-rail__stage-media,
.hc-editorial-rail__stage-media img,
.hc-editorial-rail__stage-overlay {
    height: 100%;
    inset: 0;
    position: absolute;
    width: 100%;
}

.hc-editorial-rail__stage {
    background: #0a0a0a;
    overflow: hidden;
    z-index: 1;
}

.hc-editorial-rail__stage-media {
    margin: 0;
    opacity: 0;
    transform: scale(1.025);
    transition: opacity 850ms cubic-bezier(.23,1,.32,1), transform 850ms cubic-bezier(.23,1,.32,1);
}

.hc-editorial-rail__stage-media.is-active {
    opacity: 1;
    transform: scale(1);
}

.hc-editorial-rail .hc-editorial-rail__stage-media img {
    height: 100% !important;
    max-height: none !important;
    max-width: none !important;
    object-fit: var(--hc-rail-media-fit, cover) !important;
    object-position: var(--hc-rail-active-position);
    width: 100% !important;
    opacity: 0;
    transition: opacity var(--hc-rail-media-transition) ease;
}

.hc-editorial-rail .hc-editorial-rail__stage-media img.is-current { opacity: 1; }

.hc-editorial-rail__stage-overlay {
    background: var(--hc-rail-overlay);
    opacity: var(--hc-rail-active-overlay);
    z-index: 2;
}

@media (min-width: 768px) {
    .hc-editorial-rail.has-active .hc-editorial-rail__slide .hc-editorial-rail__media {
        opacity: 0;
    }

    .hc-editorial-rail.has-active .hc-editorial-rail__slide:not(.is-active) .hc-editorial-rail__label {
        opacity: 0.34;
    }
}

.hc-editorial-rail__media,
.hc-editorial-rail__picture,
.hc-editorial-rail__picture img,
.hc-editorial-rail__image,
.hc-editorial-rail__overlay {
    height: 100%;
    inset: 0;
    position: absolute;
    width: 100%;
}

.hc-editorial-rail__media {
    background: #090909;
    opacity: 1;
    transition: opacity 1s cubic-bezier(.23,1,.32,1);
}

.hc-editorial-rail__picture {
    display: block;
}

.hc-editorial-rail__picture img,
.hc-editorial-rail__image {
    display: block;
    height: 100% !important;
    max-height: none !important;
    max-width: none !important;
    object-fit: var(--hc-rail-media-fit, cover) !important;
    object-position: var(--hc-rail-image-position);
    transform: scale(1);
    transition: opacity 520ms ease, transform 900ms cubic-bezier(.2,.75,.15,1);
    width: 100% !important;
}

.hc-editorial-rail .hc-editorial-rail__media > .hc-editorial-rail__image {
    opacity: 0;
    transition: opacity var(--hc-rail-media-transition) ease, transform 900ms cubic-bezier(.2,.75,.15,1);
}

.hc-editorial-rail .hc-editorial-rail__media > .hc-editorial-rail__image.is-current { opacity: 1; }

.hc-editorial-rail__video,
.hc-editorial-rail__video-player,
.hc-editorial-rail__video-player video,
.hc-editorial-rail__video-player iframe,
.hc-editorial-rail__video-poster {
    height: 100%;
    inset: 0;
    position: absolute;
    width: 100%;
}
.hc-editorial-rail .hc-editorial-rail__video {
    background: #090909;
    opacity: 0;
    transition: opacity var(--hc-rail-media-transition) ease;
}
.hc-editorial-rail .hc-editorial-rail__video.is-current { opacity: 1; }
.hc-editorial-rail__media > .hc-editorial-rail__video.is-current {
    pointer-events: none;
    z-index: 3;
}
.hc-editorial-rail__video[data-video-controls="1"] .hc-editorial-rail__video-player { pointer-events: auto; }
.hc-editorial-rail .hc-editorial-rail__stage-media .hc-editorial-rail__video-poster { opacity: 1; }
.hc-editorial-rail .hc-editorial-rail__stage-media .hc-editorial-rail__video.is-playing .hc-editorial-rail__video-poster { opacity: 0; }
.hc-editorial-rail__video-poster,
.hc-editorial-rail__video-player video {
    display: block;
    object-fit: var(--hc-rail-media-fit, cover) !important;
    object-position: var(--hc-rail-image-position, center center);
}
.hc-editorial-rail__video-player iframe { border: 0; }
.hc-editorial-rail__video-poster { opacity: 1; transition: opacity 250ms ease; }
.hc-editorial-rail__video.is-playing .hc-editorial-rail__video-poster { opacity: 0; }
.hc-editorial-rail__video-play {
    align-items: center;
    background: rgb(0 0 0 / .65);
    border: 1px solid rgb(255 255 255 / .75);
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    font-size: 1rem;
    height: 3.5rem;
    justify-content: center;
    left: 50%;
    padding: 0;
    pointer-events: auto;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 3.5rem;
    z-index: 5;
}
.hc-editorial-rail__video.is-playing .hc-editorial-rail__video-play {
    left: auto;
    right: 1rem;
    top: 1rem;
    transform: none;
}
.hc-editorial-rail__video-overlay {
    display: none;
    height: 100%;
    left: 50%;
    pointer-events: none;
    position: absolute;
    top: 0;
    transform: translateX(-50%);
    width: 100%;
    z-index: 5;
}
.hc-editorial-rail.has-active .hc-editorial-rail__video-overlay:not(:empty) { display: block; }
.hc-editorial-rail__video-overlay .hc-editorial-rail__video { pointer-events: auto; }
.hc-editorial-rail__video-overlay .hc-editorial-rail__video-player { pointer-events: auto; }
.hc-editorial-rail__media-navigation {
    bottom: 1rem;
    display: none;
    gap: .5rem;
    position: absolute;
    right: 1rem;
    z-index: 8;
}
.hc-editorial-rail__media-navigation.is-visible { display: flex; }
.hc-editorial-rail__media-nav {
    align-items: center;
    background: rgb(0 0 0 / .65);
    border: 1px solid rgb(255 255 255 / .75);
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    font-size: 1.75rem;
    height: 2.75rem;
    justify-content: center;
    line-height: 1;
    padding: 0;
    width: 2.75rem;
}

@keyframes hc-rail-ken-burns {
    from { transform: scale(1); }
    to { transform: scale(var(--hc-rail-ken-burns-scale)); }
}

.hc-editorial-rail[data-ken-burns="1"] .hc-editorial-rail__slide.is-current-project:not(.is-active) .hc-editorial-rail__media > .hc-editorial-rail__image:is(.is-current, .is-ken-burns-leaving),
.hc-editorial-rail[data-ken-burns="1"] .hc-editorial-rail__slide.is-current-project:not(.is-active) .hc-editorial-rail__picture.is-current img,
.hc-editorial-rail[data-ken-burns="1"].has-active .hc-editorial-rail__stage-media.is-active img:is(.is-current, .is-ken-burns-leaving) {
    animation: hc-rail-ken-burns var(--hc-rail-ken-burns-duration) linear both;
}

.hc-editorial-rail__nav:disabled {
    cursor: default;
    opacity: 0.4;
}

.hc-editorial-rail__image--active {
    object-position: var(--hc-rail-active-position);
    opacity: 0;
}

.hc-editorial-rail__slide.is-active .hc-editorial-rail__image--active {
    opacity: 1;
    transform: scale(var(--hc-rail-active-zoom));
}

.hc-editorial-rail__slide.is-active:has(.hc-editorial-rail__image--active) .hc-editorial-rail__image--base,
.hc-editorial-rail__slide.is-active:has(.hc-editorial-rail__image--active) .hc-editorial-rail__picture--base {
    opacity: 0;
}

.hc-editorial-rail__overlay {
    background: var(--hc-rail-overlay);
    opacity: var(--hc-rail-idle-overlay);
    transition: opacity 420ms ease;
}

.hc-editorial-rail__slide.is-active .hc-editorial-rail__overlay {
    opacity: var(--hc-rail-active-overlay);
}

.hc-editorial-rail__slide.is-current-project:not(.is-active) .hc-editorial-rail__overlay {
    opacity: calc(var(--hc-rail-idle-overlay) * 0.6);
}

.hc-editorial-rail__slide.is-current-project .hc-editorial-rail__label {
    color: var(--hc-rail-label-hover-color) !important;
}

.hc-editorial-rail__trigger {
    appearance: none;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0;
    box-shadow: none !important;
    color: transparent;
    cursor: pointer;
    inset: 0;
    margin: 0;
    padding: 0;
    position: absolute;
    width: 100%;
    z-index: 2;
}

.hc-editorial-rail__trigger:hover,
.hc-editorial-rail__trigger:focus,
.hc-editorial-rail__trigger:active {
    background: transparent !important;
    box-shadow: none !important;
}

.hc-editorial-rail__trigger:focus-visible {
    outline: 2px solid var(--hc-rail-accent);
    outline-offset: -5px;
}

.hc-editorial-rail__label {
    bottom: clamp(1.2rem, 2.5vw, 2.5rem);
    color: var(--hc-rail-label-color) !important;
    left: 50%;
    letter-spacing: 0.24em;
    margin: 0;
    max-width: calc(100% - 2rem);
    opacity: 1;
    pointer-events: none;
    position: absolute;
    text-align: center;
    text-transform: uppercase;
    transform: translateX(-50%);
    transition: opacity 240ms ease, transform 360ms ease;
    white-space: nowrap;
    z-index: 3;
}

.hc-editorial-rail__slide:hover .hc-editorial-rail__label,
.hc-editorial-rail__slide:focus-within .hc-editorial-rail__label {
    color: var(--hc-rail-label-hover-color) !important;
}

.hc-editorial-rail__slide.is-active .hc-editorial-rail__label {
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 0.75rem);
}

.hc-editorial-rail__content {
    display: flex;
    flex-direction: column;
    inset: auto auto 0 0;
    max-width: var(--hc-rail-content-width);
    opacity: 0;
    padding: var(--hc-rail-content-padding);
    pointer-events: none;
    position: absolute;
    transform: translateY(1rem);
    transition: opacity 260ms ease 80ms, transform 480ms cubic-bezier(.2,.75,.15,1) 40ms;
    width: min(100%, var(--hc-rail-content-width));
    z-index: 4;
}

.hc-editorial-rail__stage-content-layer {
    inset: 0;
    pointer-events: none;
    position: absolute;
    z-index: 6;
}

.hc-editorial-rail__content--stage {
    max-width: var(--hc-rail-content-width);
    width: min(100%, var(--hc-rail-content-width));
}

.hc-editorial-rail__content--stage.is-active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.hc-editorial-rail[data-content-position="top-left"] .hc-editorial-rail__content { inset: 0 auto auto 0; }
.hc-editorial-rail[data-content-position="top-right"] .hc-editorial-rail__content { inset: 0 0 auto auto; }
.hc-editorial-rail[data-content-position="bottom-right"] .hc-editorial-rail__content { inset: auto 0 0 auto; }

.hc-editorial-rail__slide.is-active .hc-editorial-rail__content {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.hc-editorial-rail__eyebrow,
.hc-editorial-rail__heading,
.hc-editorial-rail__body,
.hc-editorial-rail__body p {
    margin: 0;
}

.hc-editorial-rail__eyebrow {
    color: var(--hc-rail-eyebrow-color) !important;
    letter-spacing: 0.18em;
    margin-block-end: 0.65rem;
    text-transform: uppercase;
}

.hc-editorial-rail__heading {
    color: var(--hc-rail-heading-color) !important;
    font-size: clamp(2rem, 4vw, 5rem);
    line-height: 0.96;
    overflow-wrap: normal;
    text-wrap: balance;
    word-break: normal;
}

.hc-editorial-rail__body {
    color: var(--hc-rail-body-color) !important;
    margin-block-start: 1rem;
    max-width: 36rem;
}

.hc-editorial-rail__body p {
    color: inherit !important;
}

.hc-editorial-rail__slide:hover .hc-editorial-rail__eyebrow,
.hc-editorial-rail__slide:focus-within .hc-editorial-rail__eyebrow { color: var(--hc-rail-eyebrow-hover-color) !important; }
.hc-editorial-rail__slide:hover .hc-editorial-rail__heading,
.hc-editorial-rail__slide:focus-within .hc-editorial-rail__heading { color: var(--hc-rail-heading-hover-color) !important; }
.hc-editorial-rail__slide:hover .hc-editorial-rail__body,
.hc-editorial-rail__slide:focus-within .hc-editorial-rail__body { color: var(--hc-rail-body-hover-color) !important; }

.hc-editorial-rail__cta {
    align-items: center;
    align-self: flex-start;
    color: var(--hc-rail-cta-color) !important;
    display: inline-flex;
    gap: 0.7em;
    margin-block-start: 1.35rem;
    padding-block: 0.25rem;
    position: relative;
    text-decoration: none;
    z-index: 5;
}

.hc-editorial-rail__cta:hover,
.hc-editorial-rail__cta:focus-visible {
    color: var(--hc-rail-cta-hover-color) !important;
}

.hc-editorial-rail__cta::after {
    background: currentColor;
    bottom: 0;
    content: "";
    height: 1px;
    left: 0;
    position: absolute;
    transform: scaleX(0.32);
    transform-origin: left;
    transition: transform 260ms ease;
    width: 100%;
}

.hc-editorial-rail__cta:hover::after,
.hc-editorial-rail__cta:focus-visible::after {
    transform: scaleX(1);
}

.hc-editorial-rail__cta span,
.hc-editorial-rail__nav span {
    border-right: 1.5px solid currentColor;
    border-top: 1.5px solid currentColor;
    display: block;
    height: 0.55em;
    transform: rotate(45deg);
    width: 0.55em;
}

.hc-editorial-rail__navigation {
    display: flex;
    gap: 0.5rem;
    left: clamp(1rem, 2vw, 2rem);
    position: absolute;
    top: clamp(1rem, 2vw, 2rem);
    z-index: 7;
    opacity: 0;
    transform: scale(.9);
    visibility: hidden;
    transition: opacity 650ms cubic-bezier(.19,1,.22,1), transform 650ms cubic-bezier(.19,1,.22,1), visibility 650ms;
}

.hc-editorial-rail:hover .hc-editorial-rail__navigation,
.hc-editorial-rail.has-active .hc-editorial-rail__navigation,
.hc-editorial-rail:focus-within .hc-editorial-rail__navigation {
    opacity: 1;
    transform: scale(1);
    visibility: visible;
}

.hc-editorial-rail__nav {
    align-items: center;
    background: var(--hc-rail-nav-bg);
    border: 0;
    border-radius: 2px;
    color: var(--hc-rail-nav-color);
    cursor: pointer;
    display: flex;
    height: clamp(2.75rem, 4vw, 4rem);
    justify-content: center;
    transition: transform 180ms ease, opacity 180ms ease;
    width: clamp(2.75rem, 4vw, 4rem);
}

.hc-editorial-rail__nav:not(:disabled):hover { transform: translateY(-2px); }
.hc-editorial-rail__nav--prev span { transform: rotate(-135deg); }

.hc-editorial-rail__rotation:not([hidden]) {
    position: absolute;
    top: clamp(1rem, 2vw, 2rem);
    right: clamp(1rem, 2vw, 2rem);
    z-index: 7;
    min-width: 44px;
    min-height: 44px;
    border: 0;
    border-radius: 2px;
    background: var(--hc-rail-nav-bg);
    color: var(--hc-rail-nav-color);
    cursor: pointer;
}

.hc-editorial-rail__swipe-hint {
    display: none;
}

@media (max-width: 1024px) {
    .hc-editorial-rail__track { aspect-ratio: var(--hc-rail-ratio-tablet); }
}

@media (max-width: 767px) {
    .hc-editorial-rail__stage { display: none; }
    .hc-editorial-rail__stage-content-layer { display: none; }

    .hc-editorial-rail__track {
        aspect-ratio: auto;
        height: auto;
        min-height: 0;
    }

    .hc-editorial-rail[data-mobile="rail"] .hc-editorial-rail__track {
        display: grid;
        gap: var(--hc-rail-gap, 0.75rem);
        grid-auto-columns: calc(
            (100% - (var(--hc-rail-slides-visible, 1) - 1) * var(--hc-rail-gap)) /
            var(--hc-rail-slides-visible, 1)
        );
        grid-auto-flow: column;
        grid-template-columns: none;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        scroll-snap-type: inline mandatory;
        scrollbar-width: none;
    }

    .hc-editorial-rail[data-display-mode="single"] .hc-editorial-rail__track {
        display: flex;
        gap: var(--hc-rail-gap);
        overflow-x: auto;
        scroll-snap-type: inline mandatory;
    }

    .hc-editorial-rail[data-display-mode="single"] .hc-editorial-rail__slide {
        flex: 0 0 100%;
    }

    .hc-editorial-rail[data-mobile="rail"] .hc-editorial-rail__track::-webkit-scrollbar { display: none; }

    .hc-editorial-rail[data-mobile="stack"] .hc-editorial-rail__track {
        display: grid;
        gap: var(--hc-rail-gap, 0.75rem);
    }

    .hc-editorial-rail__slide {
        aspect-ratio: var(--hc-rail-ratio-mobile);
        height: var(--hc-rail-height, auto);
        min-height: var(--hc-rail-height, min(var(--hc-rail-min-height), 78vh));
        scroll-snap-align: center;
        width: 100%;
    }
    .hc-editorial-rail[data-mobile-ratio-mode="project"] .hc-editorial-rail__slide.has-project-ratio {
        align-self: center;
        aspect-ratio: var(--hc-rail-project-ratio);
        min-height: 0;
    }
    .hc-editorial-rail__video-overlay { display: none !important; }

    .hc-editorial-rail__label {
        opacity: 1;
    }

    .hc-editorial-rail__slide.is-active .hc-editorial-rail__label { opacity: 0; }

    .hc-editorial-rail__content {
        max-width: 100%;
        width: 100%;
    }

    .hc-editorial-rail__navigation {
        opacity: 1;
        transform: none;
        visibility: visible;
    }

    .hc-editorial-rail__swipe-hint {
        align-items: center;
        background: rgb(255 255 255 / 0.92);
        border-radius: 999px;
        box-shadow: 0 0.5rem 2rem rgb(0 0 0 / 0.16);
        color: #111;
        display: flex;
        height: 3.25rem;
        justify-content: center;
        opacity: 0;
        pointer-events: none;
        position: absolute;
        right: 1rem;
        top: 50%;
        transform: translateY(-50%);
        width: 3.25rem;
        z-index: 9;
    }

    .hc-editorial-rail__swipe-hint.is-visible {
        animation: hc-rail-swipe-hint var(--hc-rail-hint-duration, 2200ms) cubic-bezier(.2,.75,.15,1) both;
    }

    .hc-editorial-rail__swipe-arrow {
        border-right: 2px solid currentColor;
        border-top: 2px solid currentColor;
        display: block;
        height: 0.75rem;
        transform: rotate(-135deg);
        width: 0.75rem;
    }
}

@media (min-width: 768px) {
    .hc-editorial-rail__slide > .hc-editorial-rail__content { display: none; }

    .hc-editorial-rail:hover .hc-editorial-rail__content--stage.is-active .hc-editorial-rail__eyebrow,
    .hc-editorial-rail:focus-within .hc-editorial-rail__content--stage.is-active .hc-editorial-rail__eyebrow { color: var(--hc-rail-eyebrow-hover-color) !important; }
    .hc-editorial-rail:hover .hc-editorial-rail__content--stage.is-active .hc-editorial-rail__heading,
    .hc-editorial-rail:focus-within .hc-editorial-rail__content--stage.is-active .hc-editorial-rail__heading { color: var(--hc-rail-heading-hover-color) !important; }
    .hc-editorial-rail:hover .hc-editorial-rail__content--stage.is-active .hc-editorial-rail__body,
    .hc-editorial-rail:focus-within .hc-editorial-rail__content--stage.is-active .hc-editorial-rail__body { color: var(--hc-rail-body-hover-color) !important; }
}

@keyframes hc-rail-swipe-hint {
    0% { opacity: 0; transform: translate(0, -50%) scale(0.88); }
    14% { opacity: 1; transform: translate(0, -50%) scale(1); }
    38% { opacity: 1; transform: translate(-2.4rem, -50%) scale(1); }
    58% { opacity: 1; transform: translate(0, -50%) scale(1); }
    78% { opacity: 1; transform: translate(-2.4rem, -50%) scale(1); }
    100% { opacity: 0; transform: translate(-3rem, -50%) scale(0.92); }
}

@media (prefers-reduced-motion: reduce) {
    .hc-editorial-rail[data-ken-burns="1"] .hc-editorial-rail__image,
    .hc-editorial-rail[data-ken-burns="1"] .hc-editorial-rail__stage-media img {
        animation: none !important;
    }
    .hc-editorial-rail__slide,
    .hc-editorial-rail__image,
    .hc-editorial-rail__stage-media img,
    .hc-editorial-rail__picture img,
    .hc-editorial-rail__overlay,
    .hc-editorial-rail__content,
    .hc-editorial-rail__label {
        transition-duration: 0.01ms !important;
    }

    .hc-editorial-rail__swipe-hint.is-visible {
        animation: hc-rail-swipe-hint-reduced 1200ms ease both;
    }
}

@keyframes hc-rail-swipe-hint-reduced {
    0%, 100% { opacity: 0; }
    20%, 70% { opacity: 1; }
}

/* Category layouts reuse the rail's authored media and styling controls. */
.hc-editorial-rail__composition {
    min-width: 0;
    position: relative;
}

.hc-editorial-rail:is([data-display-mode="featured"], [data-display-mode="compact"]) {
    --hc-rail-category-height: var(--hc-rail-height, clamp(220px, 34vw, 340px));
}

.hc-editorial-rail:is([data-display-mode="featured"], [data-display-mode="compact"]) .hc-editorial-rail__track {
    aspect-ratio: auto;
    height: var(--hc-rail-category-height);
    min-height: 0;
}

.hc-editorial-rail__category {
    background: linear-gradient(transparent, rgb(0 0 0 / .82));
    bottom: 0;
    display: grid;
    gap: .2rem;
    inset-inline: 0;
    padding: clamp(.75rem, 2vw, 1.35rem);
    padding-block-start: 2rem;
    pointer-events: none;
    position: absolute;
    z-index: 3;
}

.hc-editorial-rail .hc-editorial-rail__category .hc-editorial-rail__label {
    font-size: clamp(.9rem, 2vw, 1.65rem);
    font-weight: 700;
    letter-spacing: normal;
    line-height: 1.12;
    max-width: 100%;
    overflow-wrap: anywhere;
    position: static;
    text-align: start;
    text-transform: none;
    transform: none;
    white-space: normal;
}

.hc-editorial-rail__category-link {
    color: var(--hc-rail-cta-color) !important;
    justify-self: start;
    pointer-events: auto;
    text-decoration: none;
    text-underline-offset: .2em;
}

.hc-editorial-rail__category-link:is(:hover,:focus-visible) {
    color: var(--hc-rail-cta-hover-color) !important;
    text-decoration: underline;
}

.hc-editorial-rail__slide.is-active .hc-editorial-rail__category {
    visibility: hidden;
}

.hc-editorial-rail[data-display-mode="spread"] .hc-editorial-rail__track {
    --hc-rail-spread-height: var(--hc-rail-height, clamp(280px, 32vw, 420px));
    aspect-ratio: auto;
    display: grid;
    grid-template-columns: 1.35fr 1fr 1fr;
    grid-auto-flow: row;
    grid-auto-columns: auto;
    grid-auto-rows: calc((var(--hc-rail-spread-height) - var(--hc-rail-gap)) / 2);
    height: auto;
    min-height: 0;
    overflow: visible;
    scroll-snap-type: none;
}

.hc-editorial-rail[data-display-mode="spread"] .hc-editorial-rail__slide,
.hc-editorial-rail[data-display-mode="spread"] .hc-editorial-rail__slide.has-project-ratio {
    align-self: stretch;
    aspect-ratio: auto;
    height: auto;
    min-height: 0;
}

@media (min-width: 768px) {
    .hc-editorial-rail[data-display-mode="spread"] .hc-editorial-rail__slide:nth-child(4n + 1) { grid-row: span 2; }
    .hc-editorial-rail[data-display-mode="spread"] .hc-editorial-rail__slide:nth-child(4n + 2) { grid-column: span 2; }
    .hc-editorial-rail[data-display-mode="spread"] .hc-editorial-rail__slide:nth-child(4n + 1):last-child { grid-column: 1 / -1; }
    .hc-editorial-rail[data-display-mode="spread"] .hc-editorial-rail__slide:nth-child(4n + 2):last-child { grid-row: span 2; }
    .hc-editorial-rail[data-display-mode="spread"] .hc-editorial-rail__slide:nth-child(4n + 3):last-child { grid-column: span 2; }

    .hc-editorial-rail[data-display-mode="spread"].has-active .hc-editorial-rail__slide .hc-editorial-rail__media,
    .hc-editorial-rail[data-display-mode="spread"].has-active .hc-editorial-rail__slide:not(.is-active) .hc-editorial-rail__label { opacity: 1; }
    .hc-editorial-rail:is([data-display-mode="compact"], [data-display-mode="featured"]).has-active .hc-editorial-rail__category { visibility: hidden; }
}

.hc-editorial-rail[data-display-mode="spread"] .hc-editorial-rail__slide.is-active .hc-editorial-rail__image--active { opacity: 1; }
.hc-editorial-rail[data-display-mode="spread"] .hc-editorial-rail__content {
    background: linear-gradient(transparent, rgb(0 0 0 / .88));
    display: flex;
    max-height: 100%;
    overflow: auto;
    padding: clamp(.75rem, 2vw, 1.35rem);
}
.hc-editorial-rail[data-display-mode="spread"] .hc-editorial-rail__heading { font-size: clamp(1rem, 2.5vw, 2rem); }

.hc-editorial-rail[data-display-mode="featured"] {
    align-items: start;
    display: grid;
    gap: clamp(.5rem, 2vw, 1rem);
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
}

.hc-editorial-rail[data-display-mode="featured"] .hc-editorial-rail__track { display: block; overflow: hidden; }
.hc-editorial-rail[data-display-mode="featured"] .hc-editorial-rail__slide {
    aspect-ratio: auto;
    height: 100%;
    min-height: 0;
}
.hc-editorial-rail[data-display-mode="featured"] .hc-editorial-rail__slide:not(.is-current-project) { display: none; }
.hc-editorial-rail[data-display-mode="featured"] .hc-editorial-rail__project-index { max-height: var(--hc-rail-category-height); overflow: auto; }

.hc-editorial-rail[data-display-mode="compact"] .hc-editorial-rail__slide {
    flex-basis: calc((100% - (var(--hc-rail-slides-visible, min(3, var(--hc-rail-item-count))) - 1) * var(--hc-rail-gap)) / var(--hc-rail-slides-visible, min(3, var(--hc-rail-item-count))));
}

.hc-editorial-rail__project-index { background: var(--hc-rail-nav-bg); color: var(--hc-rail-nav-color); }
.hc-editorial-rail[data-display-mode="compact"] .hc-editorial-rail__project-index { display: flex; flex-wrap: wrap; gap: .25rem .9rem; margin-top: .4rem; }
.hc-editorial-rail__index-entry { align-items: center; display: flex; gap: .25rem; }
.hc-editorial-rail[data-display-mode="featured"] .hc-editorial-rail__index-entry + .hc-editorial-rail__index-entry {
    border-top: 1px solid color-mix(in srgb, currentColor 22%, transparent);
}
.hc-editorial-rail__index-entry button {
    appearance: none;
    background: transparent;
    border: 0;
    color: inherit;
    cursor: pointer;
    flex: 1;
    font: inherit;
    min-height: 40px;
    padding: .35rem .55rem;
    text-align: start;
}
.hc-editorial-rail__index-entry button:is([aria-pressed="true"],:hover,:focus-visible) { text-decoration: underline; text-underline-offset: .25em; }
.hc-editorial-rail__index-entry .hc-editorial-rail__category-link {
    align-self: center;
    color: inherit !important;
    display: grid;
    min-height: 40px;
    min-width: 36px;
    place-items: center;
}

@media (max-width: 767px) {
    .hc-editorial-rail[data-display-mode="spread"] .hc-editorial-rail__track { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hc-editorial-rail[data-display-mode="featured"] { grid-template-columns: minmax(0, 1fr); }
    .hc-editorial-rail[data-display-mode="featured"] .hc-editorial-rail__project-index { max-height: none; }
    .hc-editorial-rail[data-display-mode="compact"] .hc-editorial-rail__track { height: auto; }
    .hc-editorial-rail[data-display-mode="compact"] .hc-editorial-rail__slide {
        aspect-ratio: auto;
        height: var(--hc-rail-category-height);
        min-height: 0;
    }
}
