.bal-container.bal-zoomable { touch-action: pan-y; user-select: none; cursor: ew-resize; }
.bal-container.bal-zoomable.is-zoomed { touch-action: none; cursor: grab; }
.bal-container.bal-zoomable.is-split-hover { cursor: ew-resize; }
.bal-container.bal-zoomable.is-panning { cursor: grabbing; }
.bal-zoomable .bal-before img,
.bal-zoomable .bal-after img { display: block; }
.bal-zoom-swiper { --bal-max-height: 924px; }
.swiper.bal-zoom-swiper > .swiper-wrapper { align-items: flex-start; }
.swiper-slide.bal-zoom-slide { flex-direction: column; height: auto; }
.swiper-slide.bal-zoom-slide > .bal-container {
    width: min(100%, calc(var(--bal-max-height) * var(--bal-image-ratio, 1)));
    height: auto;
    flex-shrink: 0;
}
.bal-zoom-slide > .bal-container.bal-zoomable img { max-height: none; object-fit: contain; }
.bal-zoom-slide .bal-before picture { display: block; height: 100%; }
.bal-zoom-slide .bal-before img { height: 100%; }
.bal-zoom-swiper > .swiper-pagination { position: static; }
@media (min-width: 2000px) {
    .bal-zoom-swiper { --bal-max-height: 1200px; }
}
@media (min-width: 2400px) {
    .bal-zoom-swiper { --bal-max-height: 1400px; }
}
.bal-zoom-controls {
    position: relative;
    width: max-content;
    max-width: 100%;
    margin: 12px auto;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    border: 1px solid #ffffff14;
    border-radius: 10px;
    background: rgba(30, 33, 31, .94);
    color: #f3f4f6;
    cursor: default;
    touch-action: manipulation;
}
.bal-split-control { cursor: ew-resize; touch-action: none; user-select: none; }
.bal-zoom-controls button {
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: inherit;
    font-size: 18px;
    cursor: pointer;
}
.bal-zoom-controls button:hover:not(:disabled) { background: #ffffff12; }
.bal-zoom-controls button:focus-visible { outline: 2px solid #00d5ed; outline-offset: 1px; }
.bal-zoom-controls button:disabled { opacity: .35; cursor: default; }
.bal-zoom-controls output { min-width: 48px; text-align: center; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
@media (pointer: coarse) {
    .bal-zoom-controls button { width: 40px; height: 40px; }
}
