.bfba {
    --bfba-border-width: var(--section-border, 2px);
    --bfba-radius: var(--card-radius, 24px);
    --bfba-gap: var(--site-grid-gap, 1rem);
    --bfba-button-border: var(--button-border-color, #111);
    --bfba-button-bg: var(--button-bg-color, #fff);
    --bfba-button-text: var(--button-text-color, #111);
    --bfba-button-hover-bg: var(--button-hover-bg-color, #111);
    --bfba-button-hover-text: var(--button-hover-text-color, #fff);
    --bfba-font-nav: var(--font-family-navigation, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
    --bfba-font-body: var(--font-family-body, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
    --bfba-position: 50%;
    --bfba-object-x: 50%;
    --bfba-object-y: 50%;
    display: block;
    margin: 0 0 var(--bfba-gap);
    font-family: var(--bfba-font-body);
}

.bfba-stage,
.bfba-side-grid {
    border: var(--bfba-border-width) solid var(--bfba-button-border);
    border-radius: var(--bfba-radius);
    background: #fff;
    overflow: hidden;
    box-sizing: border-box;
}

.bfba-stage {
    position: relative;
    aspect-ratio: var(--bfba-aspect-ratio, 16 / 9);
    width: 100%;
    touch-action: none;
    user-select: none;
}

.bfba-layer {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.bfba-layer--before {
    z-index: 1;
}

.bfba-layer--after {
    z-index: 2;
    clip-path: inset(0 0 0 var(--bfba-position));
}

.bfba--hover .bfba-layer--after {
    clip-path: none;
    opacity: 0;
    transition: opacity 220ms ease-in-out;
}

.bfba--hover.bfba--reveal-hover .bfba-stage:hover .bfba-layer--after,
.bfba--hover.bfba--reveal-hover .bfba-stage:focus .bfba-layer--after,
.bfba--hover.bfba--reveal-hover .bfba-stage:focus-within .bfba-layer--after,
.bfba--hover.bfba--reveal-auto .bfba-stage:hover .bfba-layer--after,
.bfba--hover.bfba--reveal-auto .bfba-stage:focus .bfba-layer--after,
.bfba--hover.bfba--reveal-auto .bfba-stage:focus-within .bfba-layer--after,
.bfba--hover.is-revealed .bfba-layer--after {
    opacity: 1;
}

.bfba-media {
    width: 100%;
    height: 100%;
    display: block;
    max-width: none;
    object-position: var(--bfba-object-x, 50%) var(--bfba-object-y, 50%);
}

.bfba-side-panel {
    --bfba-panel-object-x: var(--bfba-object-x, 50%);
    --bfba-panel-object-y: var(--bfba-object-y, 50%);
}

.bfba-side-panel .bfba-media {
    object-position: var(--bfba-panel-object-x, var(--bfba-object-x, 50%)) var(--bfba-panel-object-y, var(--bfba-object-y, 50%));
}

.bfba--fit-cover .bfba-media {
    object-fit: cover;
}

.bfba--fit-contain .bfba-media {
    object-fit: contain;
    background: #000;
}

.bfba-label,
.bfba-hover-hint {
    position: absolute;
    z-index: 4;
    left: 1rem;
    top: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 1.32rem;
    padding: 0.24rem 0.58rem;
    border: 0;
    border-radius: 999px;
    background: #000;
    color: #fff;
    font-family: var(--bfba-font-nav);
    font-size: 0.78rem;
    font-weight: 500;
    line-height: 1.05;
    text-align: center;
    text-transform: none;
    letter-spacing: 0.01em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: geometricPrecision;
}

.bfba-label--after {
    left: auto;
    right: 1rem;
}

.bfba--hover .bfba-layer--before .bfba-label,
.bfba--hover .bfba-layer--after .bfba-label {
    left: 50%;
    right: auto;
    top: 1rem;
    transform: translateX(-50%);
    transition: opacity 220ms ease-in-out;
}

.bfba--hover.bfba--reveal-hover .bfba-stage:hover .bfba-layer--before .bfba-label,
.bfba--hover.bfba--reveal-hover .bfba-stage:focus .bfba-layer--before .bfba-label,
.bfba--hover.bfba--reveal-hover .bfba-stage:focus-within .bfba-layer--before .bfba-label,
.bfba--hover.bfba--reveal-auto .bfba-stage:hover .bfba-layer--before .bfba-label,
.bfba--hover.bfba--reveal-auto .bfba-stage:focus .bfba-layer--before .bfba-label,
.bfba--hover.bfba--reveal-auto .bfba-stage:focus-within .bfba-layer--before .bfba-label,
.bfba--hover.is-revealed .bfba-layer--before .bfba-label {
    opacity: 0;
}

.bfba-hover-hint {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    transition: opacity 180ms ease;
}

.bfba--hover.bfba--reveal-hover .bfba-stage:hover .bfba-hover-hint,
.bfba--hover.bfba--reveal-hover .bfba-stage:focus .bfba-hover-hint,
.bfba--hover.bfba--reveal-hover .bfba-stage:focus-within .bfba-hover-hint,
.bfba--hover.bfba--reveal-auto .bfba-stage:hover .bfba-hover-hint,
.bfba--hover.bfba--reveal-auto .bfba-stage:focus .bfba-hover-hint,
.bfba--hover.bfba--reveal-auto .bfba-stage:focus-within .bfba-hover-hint,
.bfba--hover.is-revealed .bfba-hover-hint {
    opacity: 0;
}

.bfba-handle {
    position: absolute;
    z-index: 6;
    inset-block: 0;
    left: var(--bfba-position);
    width: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #fff;
    cursor: ew-resize;
    transform: translateX(-50%);
}

.bfba-handle:focus-visible .bfba-handle-knob {
    outline: 3px solid currentColor;
    outline-offset: 3px;
}

.bfba-handle-line {
    position: absolute;
    inset-block: 0;
    left: 50%;
    width: 2px;
    min-width: 2px;
    background: #000;
    transform: translateX(-50%);
}

.bfba-handle-knob {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 2.32rem;
    height: 2.32rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    background: #000;
    color: #fff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.28rem;
    font-weight: 500;
    line-height: 1;
    transform: translate(-50%, -50%);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.14);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.bfba-handle:hover .bfba-handle-knob {
    background: #000;
    color: #fff;
}

.bfba-handle-icon {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 999px;
    pointer-events: none;
}

.bfba-handle-icon + .bfba-handle-fallback {
    display: none;
}

.bfba-handle-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    line-height: 1;
}

.bfba-side-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
}

.bfba-side-panel {
    position: relative;
    aspect-ratio: var(--bfba-aspect-ratio, 16 / 9);
    min-width: 0;
    overflow: hidden;
    cursor: grab;
    touch-action: none;
}

.bfba-side-panel.is-panning {
    cursor: grabbing;
}

.bfba-side-panel + .bfba-side-panel {
    border-left: var(--bfba-border-width) solid var(--bfba-button-border);
}

.bfba-notice {
    border: 2px solid #b32d2e;
    border-radius: 14px;
    padding: 1rem;
    background: #fff;
    color: #1d2327;
}

@media (max-width: 700px) {
    .bfba-side-grid {
        grid-template-columns: 1fr;
    }

    .bfba-side-panel.is-panning {
        cursor: grabbing;
    }

    .bfba-side-panel + .bfba-side-panel {
        border-left: 0;
        border-top: var(--bfba-border-width) solid var(--bfba-button-border);
    }

    .bfba-label,
    .bfba-hover-hint {
        font-size: 0.72rem;
        min-height: 1.75rem;
        padding: 0.3rem 0.6rem;
    }

    .bfba-handle-knob {
        width: 2.7rem;
        height: 2.7rem;
    }
}

.bfba-iframe-shell {
    position: absolute;
    inset: 0 auto auto 0;
    width: var(--bfba-iframe-width, 1500px);
    height: 100%;
    transform-origin: top left;
    background: #fff;
}

.bfba-iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    background: #fff;
}

.bfba-iframe-load {
    position: absolute;
    z-index: 3;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    padding: 0.55rem 1rem;
    border: var(--bfba-border-width) solid var(--bfba-button-border);
    border-radius: 999px;
    background: var(--bfba-button-bg);
    color: var(--bfba-button-text);
    font-family: var(--bfba-font-nav);
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.14);
}

.bfba-iframe-load:hover,
.bfba-iframe-load:focus-visible {
    background: #000;
    color: #fff;
}

.bfba-iframe-shell.is-loaded .bfba-iframe-load {
    display: none;
}


@media (hover: none), (pointer: coarse) {
    .bfba--hover.bfba--reveal-auto .bfba-stage:hover .bfba-layer--after,
    .bfba--hover.bfba--reveal-auto .bfba-stage:focus .bfba-layer--after,
    .bfba--hover.bfba--reveal-auto .bfba-stage:focus-within .bfba-layer--after {
        opacity: 0;
    }

    .bfba--hover.bfba--reveal-auto.is-revealed .bfba-layer--after {
        opacity: 1;
    }

    .bfba--hover.bfba--reveal-auto .bfba-stage:hover .bfba-layer--before .bfba-label,
    .bfba--hover.bfba--reveal-auto .bfba-stage:focus .bfba-layer--before .bfba-label,
    .bfba--hover.bfba--reveal-auto .bfba-stage:focus-within .bfba-layer--before .bfba-label {
        opacity: 1;
    }

    .bfba--hover.bfba--reveal-auto.is-revealed .bfba-layer--before .bfba-label {
        opacity: 0;
    }

    .bfba--hover.bfba--reveal-auto .bfba-stage:hover .bfba-hover-hint,
    .bfba--hover.bfba--reveal-auto .bfba-stage:focus .bfba-hover-hint,
    .bfba--hover.bfba--reveal-auto .bfba-stage:focus-within .bfba-hover-hint {
        opacity: 1;
    }

    .bfba--hover.bfba--reveal-auto.is-revealed .bfba-hover-hint {
        opacity: 0;
    }
}

.bfba--click-reveal-enabled .bfba-stage {
    cursor: pointer;
}

.bfba-set {
    display: grid;
    gap: 0.75rem;
}

.bfba-set-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
}

.bfba-set-selector__label {
    color: var(--bfba-button-text, #111);
    font-family: var(--bfba-font-nav, inherit);
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.bfba-set-selector__select {
    -webkit-appearance: none;
    appearance: none;
    min-height: 2.15rem;
    min-width: min(100%, 18rem);
    max-width: 100%;
    border: 0;
    border-radius: 999px;
    background-color: #000;
    background-image: linear-gradient(45deg, transparent 50%, #fff 50%), linear-gradient(135deg, #fff 50%, transparent 50%);
    background-position: calc(100% - 1rem) 50%, calc(100% - 0.72rem) 50%;
    background-size: 0.32rem 0.32rem, 0.32rem 0.32rem;
    background-repeat: no-repeat;
    color: #fff;
    cursor: pointer;
    font-family: var(--bfba-font-nav, inherit);
    font-size: 0.78rem;
    font-weight: 500;
    line-height: 1.1;
    padding: 0.42rem 1.55rem 0.42rem 0.75rem;
    text-align: center;
    text-transform: none;
    letter-spacing: 0.01em;
}

.bfba-set-selector__select:focus-visible {
    outline: 3px solid currentColor;
    outline-offset: 3px;
}

@media (max-width: 700px) {
    .bfba-set-selector {
        align-items: stretch;
        justify-content: stretch;
    }

    .bfba-set-selector__label,
    .bfba-set-selector__select {
        width: 100%;
    }
}

.bfba-set--smooth .bfba-layer,
.bfba-set--smooth .bfba-label,
.bfba-set--smooth .bfba-set-note {
    transition: opacity 160ms ease-in-out;
}

.bfba-set--smooth.is-switching .bfba-layer,
.bfba-set--smooth.is-switching .bfba-label,
.bfba-set--smooth.is-switching .bfba-set-note {
    opacity: 0.18;
}

.bfba-set-note {
    border: var(--bfba-border-width, 2px) solid var(--bfba-button-border, currentColor);
    border-radius: calc(var(--bfba-radius, 24px) * 0.65);
    background: var(--bfba-button-bg, #fff);
    color: var(--bfba-button-text, #111);
    padding: 0.75rem 1rem;
    font-family: var(--bfba-font-body, inherit);
    font-size: 0.95rem;
    line-height: 1.45;
    white-space: pre-line;
}

.bfba-set-note[hidden] {
    display: none;
}

.bfba-set-note p {
    margin: 0 0 0.6rem;
}

.bfba-set-note p:last-child {
    margin-bottom: 0;
}

.bfba-set-selector__choices {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: stretch;
    justify-content: center;
    width: 100%;
}

.bfba-set-choice {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 2.15rem;
    border: 0;
    border-radius: 999px;
    background: #000;
    color: #fff;
    cursor: pointer;
    font-family: var(--bfba-font-nav, inherit);
    font-size: 0.78rem;
    font-weight: 500;
    line-height: 1.1;
    padding: 0.42rem 0.75rem;
    text-align: center;
    text-transform: none;
    letter-spacing: 0.01em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.bfba-set-choice:hover,
.bfba-set-choice:focus-visible,
.bfba-set-choice.is-active {
    background: #000;
    color: #fff;
}

.bfba-set-choice:focus-visible {
    outline: 3px solid currentColor;
    outline-offset: 3px;
}

.bfba-set--selector-thumbs .bfba-set-choice {
    border-radius: calc(var(--bfba-radius, 24px) * 0.65);
    padding: 0.45rem 0.65rem;
    text-align: left;
}

.bfba-set-choice__thumbs {
    display: grid;
    grid-template-columns: repeat(2, 2.7rem);
    gap: 0.2rem;
    flex: 0 0 auto;
}

.bfba-set-choice__thumbs img {
    width: 2.7rem;
    height: 2.7rem;
    display: block;
    border: 1px solid currentColor;
    border-radius: 0.45rem;
    object-fit: cover;
    background: #fff;
}

.bfba-set-choice__label {
    display: inline-flex;
    align-items: center;
}

@media (max-width: 700px) {
    .bfba-set-selector__choices,
    .bfba-set-choice {
        width: 100%;
    }

    .bfba-set-choice {
        justify-content: center;
    }

    .bfba-set--selector-thumbs .bfba-set-choice {
        justify-content: flex-start;
    }
}

.bfba-set-progression {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.bfba-set-progress-button,
.bfba-set-progress-step {
    border: var(--bfba-border-width, 2px) solid var(--bfba-button-border, currentColor);
    background: var(--bfba-button-bg, #fff);
    color: var(--bfba-button-text, #111);
    cursor: pointer;
    font-family: var(--bfba-font-nav, inherit);
    font-weight: 900;
    line-height: 1;
}

.bfba-set-progress-button {
    width: 2.75rem;
    height: 2.75rem;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    font-size: 1.25rem;
}

.bfba-set-progress-button--play {
    width: auto;
    min-width: 3.5rem;
    padding-inline: 0.9rem;
    font-size: 0.95rem;
}

.bfba-set-progress-steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35rem;
    margin-left: 0.25rem;
}

.bfba-set-progress-step {
    width: 2.05rem;
    height: 2.05rem;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    font-size: 0.78rem;
}

.bfba-set-progress-button:hover,
.bfba-set-progress-button:focus-visible,
.bfba-set-progress-button.is-playing,
.bfba-set-progress-step:hover,
.bfba-set-progress-step:focus-visible,
.bfba-set-progress-step.is-active {
    background: var(--bfba-button-hover-bg, #111);
    color: var(--bfba-button-hover-text, #fff);
}

.bfba-set-progress-button:focus-visible,
.bfba-set-progress-step:focus-visible {
    outline: 3px solid currentColor;
    outline-offset: 3px;
}

@media (max-width: 700px) {
    .bfba-set-progression,
    .bfba-set-progress-steps {
        width: 100%;
    }

    .bfba-set-progress-steps {
        margin-left: 0;
    }
}

/* v01.20 Comparison Set refinements */
.bfba-set-note[hidden],
.bfba-set-note:empty {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}

.bfba-set-progression {
    gap: 0.75rem;
}

.bfba-set-progress-button,
.bfba-set-progress-step {
    appearance: none;
    border: 0;
    background: transparent;
    color: currentColor;
    padding: 0.2rem 0.35rem;
    min-width: 0;
    width: auto;
    height: auto;
    border-radius: 0;
    box-shadow: none;
    text-decoration: none;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.2;
    opacity: 0.72;
}

.bfba-set-progress-button:hover,
.bfba-set-progress-button:focus-visible,
.bfba-set-progress-button.is-playing,
.bfba-set-progress-step:hover,
.bfba-set-progress-step:focus-visible,
.bfba-set-progress-step.is-active {
    background: transparent;
    color: currentColor;
    opacity: 1;
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.bfba-set-progress-button--play {
    width: auto;
    min-width: 0;
    padding-inline: 0.35rem;
    font-size: 0.9rem;
}

.bfba-set-progress-steps {
    gap: 0.45rem;
}

.bfba-set-progress-step span {
    display: inline;
}

.bfba-set-side-by-side {
    position: relative;
    margin: 0;
}

.bfba-set-side-by-side__grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--bfba-gap, 1rem);
    align-items: stretch;
}

.bfba-set-side-by-side__panel {
    position: relative;
    aspect-ratio: var(--bfba-aspect-ratio, 16 / 9);
    overflow: hidden;
    border: var(--bfba-border-width, 2px) solid var(--bfba-border-color, currentColor);
    border-radius: var(--bfba-radius, 1rem);
    background: var(--bfba-surface, #fff);
}

.bfba-set-side-by-side__panel .bfba-media {
    width: 100%;
    height: 100%;
    object-fit: var(--bfba-object-fit, cover);
    object-position: var(--bfba-object-x, 50%) var(--bfba-object-y, 50%);
    display: block;
}

.bfba-set--layout-side_by_side.bfba--fit-contain .bfba-media,
.bfba-set--layout-side_by_side .bfba--fit-contain .bfba-media {
    object-fit: contain;
}

.bfba-set-side-by-side__badge {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 5;
    transform: translate(-50%, -50%);
    display: inline-grid;
    place-items: center;
    min-width: 2.25rem;
    min-height: 2.25rem;
    padding: 0.25rem 0.45rem;
    border: 0;
    border-radius: 999px;
    background: #000;
    color: #fff;
    font-family: var(--bfba-font-nav);
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1;
    text-align: center;
    box-shadow: 0 0.5rem 1.4rem rgba(0, 0, 0, 0.14);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

@media (max-width: 700px) {
    .bfba-set-side-by-side__grid {
        grid-template-columns: 1fr;
    }

    .bfba-set-side-by-side__badge {
        top: 50%;
    }
}

/* v01.21 Comparison Set side-by-side + note-flow fixes */
.bfba-set .bfba-set-note {
    width: 100%;
    box-sizing: border-box;
}

.bfba-set > .bfba-set-note {
    margin-top: 0;
}

.bfba-set-side-by-side__panel picture,
.bfba-set-side-by-side__panel picture img {
    width: 100%;
    height: 100%;
    display: block;
}

.bfba-set-side-by-side__panel picture img {
    object-fit: inherit;
    object-position: inherit;
}

.bfba-set-side-by-side__panel > .bfba-media:not([data-bfba-set-before-media]):not([data-bfba-set-after-media]) {
    display: none !important;
}

/* v01.22 Comparison Set zoom + synced pan */
.bfba-set-zoom-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 0.75rem;
    font-size: 0.92rem;
}

.bfba-set-zoom-button {
    appearance: none;
    border: 0;
    background: transparent;
    color: inherit;
    padding: 0;
    font: inherit;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 0.2em;
    cursor: pointer;
}

.bfba-set-zoom-button:hover,
.bfba-set-zoom-button:focus-visible {
    text-decoration-thickness: 2px;
}

.bfba-set-zoom-hint {
    opacity: 0.72;
}

.bfba-set--zoom-enabled .bfba-stage,
.bfba-set--zoom-enabled .bfba-set-side-by-side__grid,
.bfba-set--zoom-enabled .bfba-set-all-items__grid {
    touch-action: none;
}

.bfba-set--zoom-enabled [data-bfba-set-before-media],
.bfba-set--zoom-enabled [data-bfba-set-after-media],
.bfba-set--zoom-enabled [data-bfba-set-all-media] {
    transform-origin: center center;
    transition: transform 180ms ease;
    will-change: transform;
}

.bfba-set--zoom-enabled.is-zoomed [data-bfba-set-before-media],
.bfba-set--zoom-enabled.is-zoomed [data-bfba-set-after-media],
.bfba-set--zoom-enabled.is-zoomed [data-bfba-set-all-media] {
    transform: translate(var(--bfba-set-pan-x, 0px), var(--bfba-set-pan-y, 0px)) scale(var(--bfba-set-zoom-scale, 2));
    cursor: grab;
}

.bfba-set--zoom-enabled.is-panning [data-bfba-set-before-media],
.bfba-set--zoom-enabled.is-panning [data-bfba-set-after-media],
.bfba-set--zoom-enabled.is-panning [data-bfba-set-all-media] {
    cursor: grabbing;
    transition: none;
}

/* v01.23 Comparison Set all-images grid + synced drag */
.bfba-set-all-items {
    margin: 0;
}

.bfba-set-all-items__grid {
    display: grid;
    grid-template-columns: repeat(var(--bfba-set-all-columns, 2), minmax(0, 1fr));
    gap: var(--bfba-gap, 1rem);
    touch-action: none;
    cursor: grab;
}

.bfba-set-all-items__grid--count-2 {
    --bfba-set-all-columns: 2;
}

.bfba-set-all-items__grid--count-3 {
    --bfba-set-all-columns: 3;
}

.bfba-set-all-items__grid--count-4 {
    --bfba-set-all-columns: 4;
}

.bfba-set-all-items__panel {
    position: relative;
    aspect-ratio: var(--bfba-aspect-ratio, 1 / 1);
    overflow: hidden;
    border: var(--bfba-border-width, 2px) solid var(--bfba-border-color, currentColor);
    border-radius: var(--bfba-radius, 1rem);
    background: var(--bfba-surface, #fff);
}

.bfba-set-all-items__panel .bfba-media,
.bfba-set-all-items__panel picture,
.bfba-set-all-items__panel picture img {
    display: block;
    width: 100%;
    height: 100%;
}

.bfba-set-all-items__panel .bfba-media,
.bfba-set-all-items__panel picture img {
    object-fit: var(--bfba-object-fit, cover);
    object-position: var(--bfba-set-all-pan-x, 50%) var(--bfba-set-all-pan-y, 0%);
    user-select: none;
    -webkit-user-drag: none;
}

.bfba-set.is-all-items-panning .bfba-set-all-items__grid {
    cursor: grabbing;
}

@media (max-width: 900px) {
    .bfba-set-all-items__grid--count-4,
    .bfba-set-all-items__grid--count-3 {
        --bfba-set-all-columns: 2;
    }
}

@media (max-width: 640px) {
    .bfba-set-all-items__grid,
    .bfba-set-all-items__grid--count-2,
    .bfba-set-all-items__grid--count-3,
    .bfba-set-all-items__grid--count-4 {
        --bfba-set-all-columns: 1;
    }
}

/* v01.24 Comparison Set all-images grid refinements */
.bfba-set-all-items {
    position: relative;
}

.bfba-set-all-items__grid {
    align-items: start;
}

.bfba-set-all-items__item {
    position: relative;
    min-width: 0;
}

.bfba-set-all-items__panel {
    width: 100%;
}

.bfba-set-all-items__panel .bfba-media,
.bfba-set-all-items__panel picture img {
    object-position: var(--bfba-set-all-pan-x, 50%) var(--bfba-set-all-pan-y, 0%) !important;
}

.bfba-set-all-items__label {
    position: static;
    display: block;
    margin: 0.35rem 0 0;
    padding: 0;
    color: inherit;
    font-family: var(--bfba-font-nav);
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.04em;
    text-align: center;
    text-transform: uppercase;
}

.bfba-set-all-items__badge {
    position: absolute;
    z-index: 6;
    top: calc((100% - 1.35rem) / 2);
    left: calc(var(--bfba-gap, 1rem) / -2);
    width: 1.35rem;
    height: 1.35rem;
    transform: translate(-50%, -50%);
    display: inline-grid;
    place-items: center;
    border: 0;
    border-radius: 999px;
    background: #000;
    color: #fff;
    font-family: var(--bfba-font-nav);
    font-size: 0.6rem;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    pointer-events: none;
}

.bfba-set-all-items__hint {
    position: absolute;
    z-index: 8;
    top: 0.75rem;
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.42rem 0.65rem;
    border: var(--bfba-border-width, 2px) solid var(--bfba-border-color, currentColor);
    border-radius: 999px;
    background: color-mix(in srgb, var(--bfba-button-bg, #fff) 88%, transparent);
    color: var(--bfba-button-text, currentColor);
    font-family: var(--bfba-font-nav);
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.035em;
    box-shadow: 0 0.5rem 1.4rem rgba(0, 0, 0, 0.12);
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
}

.bfba-set-all-items__hint-icon {
    display: inline-grid;
    place-items: center;
    width: 1.1rem;
    height: 1.1rem;
    border: 1.5px solid currentColor;
    border-radius: 999px;
    font-size: 0.8rem;
    line-height: 1;
}

.bfba-set.has-all-items-dragged .bfba-set-all-items__hint,
.bfba-set.is-all-items-panning .bfba-set-all-items__hint {
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-0.25rem);
}

.bfba-set-all-items__grid--count-2 .bfba-set-all-items__item:nth-child(1) .bfba-set-all-items__badge,
.bfba-set-all-items__grid--count-3 .bfba-set-all-items__item:nth-child(1) .bfba-set-all-items__badge,
.bfba-set-all-items__grid--count-4 .bfba-set-all-items__item:nth-child(1) .bfba-set-all-items__badge {
    display: none;
}

@media (max-width: 900px) and (min-width: 641px) {
    .bfba-set-all-items__grid--count-3 .bfba-set-all-items__item:nth-child(3) .bfba-set-all-items__badge,
    .bfba-set-all-items__grid--count-4 .bfba-set-all-items__item:nth-child(3) .bfba-set-all-items__badge {
        display: none;
    }
}

@media (max-width: 640px) {
    .bfba-set-all-items__badge {
        top: calc(var(--bfba-gap, 1rem) / -2);
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .bfba-set-all-items__hint {
        top: 0.55rem;
        font-size: 0.66rem;
    }
}

/* v01.43 iframe lock shield: blocks click-style events, with optional 30px wheel slot or right-side scroll safe area. */
.bfba-iframe-shell.is-bfba-iframe-locked .bfba-iframe {
    pointer-events: auto;
    cursor: default;
}

.is-bfba-iframe-lock-host {
    position: relative;
}

.bfba-iframe-lock {
    --bfba-wheel-x: 50%;
    --bfba-wheel-y: 50%;
    --bfba-wheel-gap: 30px;
    position: absolute;
    inset: 0;
    z-index: 20;
    display: block;
    background: transparent;
    cursor: default;
    touch-action: none;
    pointer-events: none;
}

.bfba-iframe-lock[hidden] {
    display: none !important;
}

.bfba-iframe-lock__panel {
    position: absolute;
    display: block;
    background: transparent;
    pointer-events: auto;
    touch-action: none;
}

.bfba-iframe-lock__panel--top {
    inset-inline: 0;
    top: 0;
    height: 100%;
}

.bfba-iframe-lock__panel--right,
.bfba-iframe-lock__panel--bottom,
.bfba-iframe-lock__panel--left {
    display: none;
}

.bfba-iframe-lock.is-bfba-wheel-pass .bfba-iframe-lock__panel--top {
    height: max(0px, calc(var(--bfba-wheel-y) - (var(--bfba-wheel-gap) / 2)));
}

.bfba-iframe-lock.is-bfba-wheel-pass .bfba-iframe-lock__panel--right,
.bfba-iframe-lock.is-bfba-wheel-pass .bfba-iframe-lock__panel--bottom,
.bfba-iframe-lock.is-bfba-wheel-pass .bfba-iframe-lock__panel--left {
    display: block;
}

.bfba-iframe-lock.is-bfba-wheel-pass .bfba-iframe-lock__panel--right {
    top: max(0px, calc(var(--bfba-wheel-y) - (var(--bfba-wheel-gap) / 2)));
    right: 0;
    width: max(0px, calc(100% - var(--bfba-wheel-x) - (var(--bfba-wheel-gap) / 2)));
    height: var(--bfba-wheel-gap);
}

.bfba-iframe-lock.is-bfba-wheel-pass .bfba-iframe-lock__panel--bottom {
    inset-inline: 0;
    top: calc(var(--bfba-wheel-y) + (var(--bfba-wheel-gap) / 2));
    bottom: 0;
}

.bfba-iframe-lock.is-bfba-wheel-pass .bfba-iframe-lock__panel--left {
    top: max(0px, calc(var(--bfba-wheel-y) - (var(--bfba-wheel-gap) / 2)));
    left: 0;
    width: max(0px, calc(var(--bfba-wheel-x) - (var(--bfba-wheel-gap) / 2)));
    height: var(--bfba-wheel-gap);
}

.bfba-iframe-lock__safe-strip {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 5%;
    min-width: 24px;
    max-width: 64px;
    display: none;
    pointer-events: none;
    background: rgba(255, 255, 255, 0.16);
    border-left: 2px solid #fff;
    box-shadow: inset 1px 0 0 #000;
    opacity: 0.78;
    overflow: hidden;
    transition: opacity 180ms ease, background-color 180ms ease;
}

.bfba-iframe-lock.is-bfba-safe-strip .bfba-iframe-lock__safe-strip {
    display: block;
}

.is-bfba-iframe-lock-host:hover .bfba-iframe-lock.is-bfba-safe-strip .bfba-iframe-lock__safe-strip {
    opacity: 0.18;
    background: rgba(255, 255, 255, 0.035);
}

.bfba-iframe-lock__safe-label {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) rotate(-90deg);
    transform-origin: center;
    white-space: nowrap;
    font-size: 13px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: 0.095em;
    text-transform: uppercase;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9), 0 0 1px #000;
    user-select: none;
    transition: opacity 180ms ease;
}

.is-bfba-iframe-lock-host:hover .bfba-iframe-lock.is-bfba-safe-strip .bfba-iframe-lock__safe-label {
    opacity: 0.18;
}

.bfba-iframe-lock__safe-icon {
    position: absolute;
    left: 50%;
    bottom: 0.8rem;
    width: 20px;
    height: 32px;
    margin-left: -10px;
    border: 2px solid rgba(255, 255, 255, 0.92);
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.65), inset 0 0 0 1px rgba(0, 0, 0, 0.35);
    opacity: 0.86;
    pointer-events: none;
    transition: opacity 180ms ease;
}

.bfba-iframe-lock__safe-icon::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 6px;
    width: 4px;
    height: 8px;
    margin-left: -2px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.95);
    animation: bfba-safe-scroll-wheel 1.15s ease-in-out infinite;
}

.bfba-iframe-lock__safe-icon::after {
    content: '↕';
    position: absolute;
    left: 50%;
    top: -20px;
    transform: translateX(-50%);
    font-size: 14px;
    line-height: 1;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
}

.is-bfba-iframe-lock-host:hover .bfba-iframe-lock.is-bfba-safe-strip .bfba-iframe-lock__safe-icon {
    opacity: 0.22;
}

@keyframes bfba-safe-scroll-wheel {
    0% { transform: translateY(0); opacity: 0.35; }
    35% { opacity: 1; }
    70% { transform: translateY(10px); opacity: 0.35; }
    100% { transform: translateY(0); opacity: 0.35; }
}

.bfba-iframe-lock.is-bfba-safe-strip .bfba-iframe-lock__panel--top {
    inset-block: 0;
    left: 0;
    width: 95%;
    height: auto;
}

.bfba-iframe-lock.is-bfba-safe-strip .bfba-iframe-lock__panel--right,
.bfba-iframe-lock.is-bfba-safe-strip .bfba-iframe-lock__panel--bottom,
.bfba-iframe-lock.is-bfba-safe-strip .bfba-iframe-lock__panel--left {
    display: none;
}

/* v01.48 side-by-side panning modes + viewer fit toggle */
.bfba-side-pan-individual .bfba-side-panel,
.bfba-side-pan-tandem .bfba-side-panel,
.bfba-side-pan-scale_aware .bfba-side-panel,
.bfba-side-pan-individual .bfba-set-side-by-side__panel,
.bfba-side-pan-tandem .bfba-set-side-by-side__panel,
.bfba-side-pan-scale_aware .bfba-set-side-by-side__panel {
    cursor: grab;
    touch-action: none;
}

.bfba-side-pan-individual .bfba-side-panel.is-panning,
.bfba-side-pan-tandem .bfba-side-panel.is-panning,
.bfba-side-pan-scale_aware .bfba-side-panel.is-panning,
.bfba-side-pan-individual .bfba-set-side-by-side__panel.is-panning,
.bfba-side-pan-tandem .bfba-set-side-by-side__panel.is-panning,
.bfba-side-pan-scale_aware .bfba-set-side-by-side__panel.is-panning {
    cursor: grabbing;
}

.bfba-set-side-by-side__panel {
    --bfba-panel-object-x: var(--bfba-object-x, 50%);
    --bfba-panel-object-y: var(--bfba-object-y, 50%);
}

.bfba-set-side-by-side__panel .bfba-media,
.bfba-set-side-by-side__panel picture img {
    object-position: var(--bfba-panel-object-x, var(--bfba-object-x, 50%)) var(--bfba-panel-object-y, var(--bfba-object-y, 50%));
}

.bfba-fit-toggle {
    appearance: none;
    position: absolute;
    left: 50%;
    bottom: 0.75rem;
    transform: translateX(-50%);
    z-index: 8;
    display: inline-grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border: 0;
    border-radius: 999px;
    background: #000;
    color: #fff;
    font-family: var(--bfba-font-nav, system-ui, sans-serif);
    font-size: 1.15rem;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 0.45rem 1.2rem rgba(0, 0, 0, 0.18);
    opacity: 0.82;
    transition: opacity 160ms ease, transform 160ms ease;
}

.bfba-fit-toggle:hover,
.bfba-fit-toggle:focus-visible,
.bfba-fit-toggle.is-contain {
    opacity: 1;
    transform: translateX(-50%) scale(1.04);
}

.bfba-set {
    position: relative;
}


/* v01.49 side-by-side fit toggle visibility + tandem pan polish */
.bfba-set-side-by-side .bfba-fit-toggle {
    display: inline-grid !important;
    visibility: visible;
    pointer-events: auto;
    z-index: 30;
}

.bfba-set-side-by-side__grid .bfba-fit-toggle,
.bfba-set-side-by-side > .bfba-fit-toggle {
    bottom: 0.65rem;
}

.bfba-set-side-by-side.bfba--fit-cover .bfba-set-side-by-side__panel .bfba-media,
.bfba-set-side-by-side.bfba--fit-cover .bfba-set-side-by-side__panel picture img {
    object-fit: cover;
}

.bfba-set-side-by-side.bfba--fit-contain .bfba-set-side-by-side__panel .bfba-media,
.bfba-set-side-by-side.bfba--fit-contain .bfba-set-side-by-side__panel picture img {
    object-fit: contain;
}


/* v01.50 normal side-by-side fit toggle visibility */
.bfba--side {
    position: relative;
}

.bfba--side > .bfba-fit-toggle {
    display: inline-grid !important;
    visibility: visible;
    pointer-events: auto;
    z-index: 30;
    bottom: 0.65rem;
}

.bfba--side.bfba--fit-cover .bfba-side-panel .bfba-media,
.bfba--side.bfba--fit-cover .bfba-side-panel picture img {
    object-fit: cover;
}

.bfba--side.bfba--fit-contain .bfba-side-panel .bfba-media,
.bfba--side.bfba--fit-contain .bfba-side-panel picture img {
    object-fit: contain;
}


/* v01.51 cover/fit toggle pan stability */
.bfba--side.bfba--fit-contain .bfba-side-panel,
.bfba-set-side-by-side.bfba--fit-contain .bfba-set-side-by-side__panel {
    cursor: default;
    touch-action: auto;
}

.bfba--side.bfba--fit-contain .bfba-side-panel .bfba-media,
.bfba-set-side-by-side.bfba--fit-contain .bfba-set-side-by-side__panel .bfba-media,
.bfba-set-side-by-side.bfba--fit-contain .bfba-set-side-by-side__panel picture img {
    object-position: 50% 50%;
}

/* v01.52 pannable content hint, modelled on SlideGallery's scroll cue. */
.bfba-pan-hint {
    position: absolute;
    left: 50%;
    bottom: clamp(2.7rem, 9vh, 4.7rem);
    z-index: 24;
    display: inline-flex;
    align-items: center;
    gap: 0.72rem;
    padding: 0.62rem 1.02rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.64);
    color: #fff;
    font-family: var(--bfba-font-nav, system-ui, sans-serif);
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1;
    text-transform: uppercase;
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.28);
    transform: translateX(-50%);
    pointer-events: none;
    animation: bfba-pan-hint-float 1.55s ease-in-out infinite;
}

.bfba-pan-hint[hidden] {
    display: none !important;
}

.bfba-pan-hint__icon {
    position: relative;
    display: inline-block;
    width: 2.35rem;
    height: 1.42rem;
    border: 2px solid currentColor;
    border-radius: 999px;
    opacity: 0.96;
}

.bfba-pan-hint__icon::before,
.bfba-pan-hint__icon::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 0.42rem;
    height: 0.42rem;
    border-top: 2px solid currentColor;
    border-left: 2px solid currentColor;
    opacity: 0.95;
}

.bfba-pan-hint__icon::before {
    left: 0.34rem;
    transform: translateY(-50%) rotate(-45deg);
}

.bfba-pan-hint__icon::after {
    right: 0.34rem;
    transform: translateY(-50%) rotate(135deg);
}

.bfba-pan-hint__dot {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 0.42rem;
    height: 0.42rem;
    border-radius: 999px;
    background: currentColor;
    transform: translate(-50%, -50%);
    animation: bfba-pan-dot-x 1.55s ease-in-out infinite;
}

.bfba-pan-hint.is-bfba-pan-y .bfba-pan-hint__icon {
    width: 1.42rem;
    height: 2.35rem;
}

.bfba-pan-hint.is-bfba-pan-y .bfba-pan-hint__icon::before,
.bfba-pan-hint.is-bfba-pan-y .bfba-pan-hint__icon::after {
    left: 50%;
    right: auto;
    top: auto;
}

.bfba-pan-hint.is-bfba-pan-y .bfba-pan-hint__icon::before {
    top: 0.35rem;
    transform: translateX(-50%) rotate(45deg);
}

.bfba-pan-hint.is-bfba-pan-y .bfba-pan-hint__icon::after {
    bottom: 0.35rem;
    transform: translateX(-50%) rotate(225deg);
}

.bfba-pan-hint.is-bfba-pan-y .bfba-pan-hint__dot {
    animation-name: bfba-pan-dot-y;
}

.bfba-pan-hint.is-bfba-pan-both .bfba-pan-hint__icon {
    width: 2.2rem;
    height: 2.2rem;
}

.bfba-pan-hint.is-bfba-pan-both .bfba-pan-hint__icon::before {
    left: 0.38rem;
    top: 0.38rem;
    transform: rotate(0deg);
}

.bfba-pan-hint.is-bfba-pan-both .bfba-pan-hint__icon::after {
    right: 0.38rem;
    bottom: 0.38rem;
    top: auto;
    transform: rotate(180deg);
}

.bfba-pan-hint.is-bfba-pan-both .bfba-pan-hint__dot {
    animation-name: bfba-pan-dot-both;
}

@keyframes bfba-pan-hint-float {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.9; }
    50% { transform: translateX(-50%) translateY(0.36rem); opacity: 1; }
}

@keyframes bfba-pan-dot-x {
    0%, 100% { transform: translate(-50%, -50%) translateX(-0.42rem); opacity: 0.95; }
    50% { transform: translate(-50%, -50%) translateX(0.42rem); opacity: 0.45; }
}

@keyframes bfba-pan-dot-y {
    0%, 100% { transform: translate(-50%, -50%) translateY(-0.42rem); opacity: 0.95; }
    50% { transform: translate(-50%, -50%) translateY(0.42rem); opacity: 0.45; }
}

@keyframes bfba-pan-dot-both {
    0%, 100% { transform: translate(-50%, -50%) translate(-0.34rem, -0.34rem); opacity: 0.95; }
    50% { transform: translate(-50%, -50%) translate(0.34rem, 0.34rem); opacity: 0.45; }
}

@media (prefers-reduced-motion: reduce) {
    .bfba-pan-hint,
    .bfba-pan-hint__dot {
        animation: none;
    }
}

.bfba--fit-contain .bfba-pan-hint,
.bfba-set-side-by-side.bfba--fit-contain .bfba-pan-hint {
    display: none !important;
}


/* v01.53 iframe content is never image-panned; keep iframe scrolling/lock modes in charge. */
.bfba-side-panel.is-bfba-iframe-panel,
.bfba-set-side-by-side__panel.is-bfba-iframe-panel,
.bfba-side-pan-individual .bfba-side-panel.is-bfba-iframe-panel,
.bfba-side-pan-tandem .bfba-side-panel.is-bfba-iframe-panel,
.bfba-side-pan-scale_aware .bfba-side-panel.is-bfba-iframe-panel,
.bfba-side-pan-individual .bfba-set-side-by-side__panel.is-bfba-iframe-panel,
.bfba-side-pan-tandem .bfba-set-side-by-side__panel.is-bfba-iframe-panel,
.bfba-side-pan-scale_aware .bfba-set-side-by-side__panel.is-bfba-iframe-panel {
    cursor: default;
    touch-action: auto;
}

.bfba-side-panel.is-bfba-iframe-panel.is-panning,
.bfba-set-side-by-side__panel.is-bfba-iframe-panel.is-panning {
    cursor: default;
}


/* v01.54 iframe side-by-side polish: iframe content does not use the cover/fit toggle, and labels sit above the scroll-safe strip. */
.bfba--has-iframe-source > .bfba-fit-toggle,
.bfba--side.bfba--has-iframe-source > .bfba-fit-toggle,
.bfba-set-side-by-side.bfba--has-iframe-source .bfba-fit-toggle {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.is-bfba-iframe-lock-host .bfba-label {
    z-index: 25;
    pointer-events: none;
}

.is-bfba-iframe-lock-safe-strip .bfba-label--after {
    right: calc(clamp(24px, 5%, 64px) + 0.55rem);
}

/* v01.55 comparison-set all-images grids use the standard animated pan hint instead of the old drag pill. */
.bfba-set-all-items > .bfba-pan-hint {
    z-index: 24;
}

.bfba-set.has-all-items-dragged .bfba-set-all-items > .bfba-pan-hint,
.bfba-set.is-all-items-panning .bfba-set-all-items > .bfba-pan-hint {
    display: none !important;
}


/* v01.56 Comparison Set all-images zoom + optional Cover/Fit toggle. */
.bfba-set-all-items {
    position: relative;
}

.bfba-set-all-items.bfba--fit-contain .bfba-set-all-items__panel .bfba-media,
.bfba-set-all-items.bfba--fit-contain .bfba-set-all-items__panel picture img {
    object-fit: contain;
    object-position: 50% 50%;
}

.bfba-set-all-items.bfba--fit-cover .bfba-set-all-items__panel .bfba-media,
.bfba-set-all-items.bfba--fit-cover .bfba-set-all-items__panel picture img {
    object-fit: cover;
}

/* v01.57 Comparison Set polish: compact dropdown, tighter controls, safer zoom pan. */
.bfba-set-zoom-controls {
    margin-top: 0.25rem;
    margin-bottom: -0.25rem;
    gap: 0.4rem;
    line-height: 1.2;
}

.bfba-set-progression {
    margin-top: -0.2rem;
}

.bfba-set-selector {
    position: relative;
}

.bfba-set-selector__select--native {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
    clip-path: inset(50%) !important;
}

.bfba-set-selector__dropdown {
    position: relative;
    z-index: 12;
    width: min(100%, 24rem);
}

.bfba-set-selector__trigger {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.55rem;
    width: 100%;
    min-height: 3.4rem;
    border: 0;
    border-radius: calc(var(--bfba-radius, 24px) * 0.65);
    background: #000;
    color: #fff;
    cursor: pointer;
    font-family: var(--bfba-font-nav, inherit);
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.1;
    padding: 0.45rem 0.75rem;
    text-align: left;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.bfba-set-selector__trigger .bfba-set-choice__label {
    flex: 1 1 auto;
    min-width: 0;
}

.bfba-set-selector__arrow {
    flex: 0 0 auto;
    font-size: 1.15rem;
    line-height: 1;
    transition: transform 160ms ease;
}

.bfba-set-selector__dropdown.is-open .bfba-set-selector__arrow,
.bfba-set-selector__dropdown.is-open .bfba-set-selector__arrow {
    transform: rotate(180deg);
}

.bfba-set-selector__menu {
    position: absolute;
    top: calc(100% + 0.35rem);
    left: 0;
    right: 0;
    z-index: 25;
    display: grid;
    gap: 0.35rem;
    max-height: min(70vh, 28rem);
    overflow: auto;
    border-radius: calc(var(--bfba-radius, 24px) * 0.65);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
    padding: 0.45rem;
}

.bfba-set-selector__menu[hidden] {
    display: none !important;
}

.bfba-set-selector__menu .bfba-set-choice {
    width: 100%;
    justify-content: flex-start;
    border-radius: calc(var(--bfba-radius, 24px) * 0.55);
    padding: 0.45rem 0.65rem;
    text-align: left;
}

.bfba-set--selector-dropdown .bfba-set-choice__thumbs {
    display: grid;
    grid-template-columns: repeat(2, 2.7rem);
    gap: 0.2rem;
    flex: 0 0 auto;
}

.bfba-set--selector-dropdown .bfba-set-choice__thumbs img {
    width: 2.7rem;
    height: 2.7rem;
    display: block;
    border: 1px solid currentColor;
    border-radius: 0.45rem;
    object-fit: cover;
    background: #fff;
}

@media (max-width: 700px) {
    .bfba-set-selector__dropdown {
        width: 100%;
    }
}

/* v01.59 Comparison Set spacing, notes order support, safer zoom edges, and softer Fit/Cover toggle. */
.bfba-set-zoom-controls {
    margin-top: 0.05rem;
    margin-bottom: 0.12rem;
    gap: 0.35rem;
}

.bfba-set > .bfba-set-note {
    margin: 0.12rem auto 0.35rem;
    max-width: min(100%, 42rem);
}

.bfba-set-progression {
    margin-top: 0.05rem;
}

.bfba-set--zoom-enabled [data-bfba-set-all-media] {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
}

.bfba-set-all-items__panel {
    background: transparent;
}

.bfba-fit-toggle {
    opacity: 0;
    pointer-events: none;
}

.bfba:hover > .bfba-fit-toggle,
.bfba:focus-within > .bfba-fit-toggle,
.bfba-set-side-by-side:hover > .bfba-fit-toggle,
.bfba-set-side-by-side:focus-within > .bfba-fit-toggle,
.bfba-set-all-items:hover > .bfba-fit-toggle,
.bfba-set-all-items:focus-within > .bfba-fit-toggle,
.bfba-fit-toggle:focus-visible {
    opacity: 0.88;
    pointer-events: auto;
}

.bfba:hover > .bfba-fit-toggle:hover,
.bfba-set-side-by-side:hover > .bfba-fit-toggle:hover,
.bfba-set-all-items:hover > .bfba-fit-toggle:hover,
.bfba-fit-toggle:focus-visible {
    opacity: 1;
}

@media (hover: none), (pointer: coarse) {
    .bfba-fit-toggle {
        opacity: 0.72;
        pointer-events: auto;
    }
}

/* v01.60 all-images zoom uses the full intrinsic media instead of the cover-cropped box. */
.bfba-set--zoom-enabled.is-zoomed [data-bfba-set-all-media] {
    object-fit: contain !important;
    object-position: 50% 50% !important;
}

/* Let the Cover/Fit toggle hide again after switching into Fit/Contain mode. */
.bfba-fit-toggle.is-contain {
    opacity: 0;
    pointer-events: none;
}

.bfba:hover > .bfba-fit-toggle.is-contain,
.bfba:focus-within > .bfba-fit-toggle.is-contain,
.bfba-set-side-by-side:hover > .bfba-fit-toggle.is-contain,
.bfba-set-side-by-side:focus-within > .bfba-fit-toggle.is-contain,
.bfba-set-all-items:hover > .bfba-fit-toggle.is-contain,
.bfba-set-all-items:focus-within > .bfba-fit-toggle.is-contain,
.bfba-fit-toggle.is-contain:focus-visible {
    opacity: 0.88;
    pointer-events: auto;
}

.bfba:hover > .bfba-fit-toggle.is-contain:hover,
.bfba-set-side-by-side:hover > .bfba-fit-toggle.is-contain:hover,
.bfba-set-all-items:hover > .bfba-fit-toggle.is-contain:hover,
.bfba-fit-toggle.is-contain:focus-visible {
    opacity: 1;
}

/* Comparison Set demo style switcher */
.bfba-set-style-demo {
    --bfba-style-demo-gap: 0.55rem;
}
.bfba-set-style-demo__controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: var(--bfba-style-demo-gap);
    margin: 0 0 0.85rem;
}
.bfba-set-style-demo__button {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    padding: 0.48rem 0.78rem;
    border: 0;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.08);
    color: inherit;
    font-family: var(--bfba-font-nav, system-ui, sans-serif);
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}
.bfba-set-style-demo__button:hover,
.bfba-set-style-demo__button:focus-visible,
.bfba-set-style-demo__button.is-active {
    background: #000;
    color: #fff;
    transform: translateY(-1px);
}
.bfba-set-style-demo__view[hidden] {
    display: none !important;
}
