.ii-before-after {
    padding: 5rem 0;
    background: #faf8f5;
    color: #1c1917;
}
.ii-ba-inner {
    width: min(100% - 2rem, 80rem);
    margin: 0 auto;
}
.ii-ba-header {
    max-width: 52rem;
    margin: 0 auto 2rem;
    text-align: center;
}
.ii-ba-badge {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .45rem .85rem;
    border: 1px solid #d6d3d1;
    border-radius: 999px;
    background: #fff;
    color: #44403c;
    font-size: .68rem;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.ii-ba-badge .dashicons {
    width: 15px;
    height: 15px;
    font-size: 15px;
    line-height: 15px;
}
.ii-ba-header h2 {
    margin: .8rem 0 0;
    font-size: clamp(2rem, 5vw, 3.2rem);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -.04em;
    text-transform: uppercase;
}
.ii-ba-header p {
    max-width: 42rem;
    margin: .8rem auto 0;
    color: #57534e;
    font-size: .95rem;
    line-height: 1.7;
}
.ii-ba-tabs {
    display: flex;
    gap: .6rem;
    margin-bottom: 1rem;
    overflow-x: auto;
    scrollbar-width: none;
}
.ii-ba-tabs::-webkit-scrollbar { display:none; }
.ii-ba-tab {
    flex: 1 0 0;
    min-width: 12rem;
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .8rem 1rem;
    border: 1px solid #e7e5e4;
    border-radius: .75rem;
    background: #fff;
    color: #44403c;
    text-align: left;
    cursor: pointer;
    transition: all .25s ease;
}
.ii-ba-tab:hover { border-color:#a8a29e; }
.ii-ba-tab.is-active {
    border-color: #1c1917;
    background: #1c1917;
    color: #fff;
}
.ii-ba-tab-index {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: #f5f5f4;
    color: #1c1917;
    font-size: .68rem;
    font-weight: 900;
}
.ii-ba-tab.is-active .ii-ba-tab-index {
    background: #fbbf24;
}
.ii-ba-stage {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 22rem;
    overflow: hidden;
    border-radius: 1.25rem;
    background: #292524;
    box-shadow: 0 20px 45px rgba(0,0,0,.18);
    touch-action: none;
    user-select: none;
}
.ii-ba-image-layer {
    position: absolute;
    inset: 0;
    overflow: hidden;
}
.ii-ba-image-layer img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    pointer-events: none;
}
.ii-ba-before {
    z-index: 2;
    border-right: 2px solid #fff;
}
.ii-ba-after { z-index: 1; }
.ii-ba-label {
    position: absolute;
    top: 1rem;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .5rem .75rem;
    border-radius: .5rem;
    background: rgba(28,25,23,.82);
    color: #fff;
    font-size: .65rem;
    font-weight: 900;
    letter-spacing: .08em;
    backdrop-filter: blur(5px);
}
.ii-ba-label-before { left: 1rem; }
.ii-ba-label-after { right: 1rem; }
.ii-ba-label-after .dashicons {
    width: 15px;
    height: 15px;
    font-size: 15px;
    color: #34d399;
}
.ii-ba-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 5;
    width: 0;
    transform: translateX(-50%);
    cursor: ew-resize;
    outline: none;
}
.ii-ba-handle-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: -1px;
    width: 2px;
    background: #fff;
    box-shadow: 0 0 8px rgba(0,0,0,.35);
}
.ii-ba-handle-button {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.1rem;
    height: 3.1rem;
    border: 3px solid #fff;
    border-radius: 50%;
    background: #1c1917;
    color: #fff;
    box-shadow: 0 6px 18px rgba(0,0,0,.3);
}
.ii-ba-handle-button .dashicons {
    width: 14px;
    height: 14px;
    font-size: 14px;
    line-height: 14px;
}
.ii-ba-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0 0;
}
.ii-ba-meta h3 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 900;
    text-transform: uppercase;
}
.ii-ba-meta > div {
    display: flex;
    align-items: center;
    gap: .35rem;
    color: #78716c;
    font-size: .75rem;
    font-weight: 700;
}
.ii-ba-meta .dashicons {
    width: 15px;
    height: 15px;
    font-size: 15px;
    line-height: 15px;
}
.ii-ba-separator { margin: 0 .25rem; }
@media(max-width:700px) {
    .ii-before-after { padding: 3.5rem 0; }
    .ii-ba-inner { width: min(100% - 1.5rem, 80rem); }
    .ii-ba-tabs { margin-bottom: .75rem; }
    .ii-ba-tab { min-width: 10rem; }
    .ii-ba-stage { min-height: 17rem; aspect-ratio: 4 / 3; }
    .ii-ba-meta { align-items: flex-start; flex-direction: column; }
    .ii-ba-handle-button { width: 2.7rem; height: 2.7rem; }
}