.lncu-before-after-block {
    position: relative;
    overflow: hidden;
    width: 100%;
    margin: 0 auto;
    border-radius: 1rem;
    --lncu-before-after-color: var(--bricks-color-blue-200);
    --lncu-before-after-arrow-color: var(--bricks-color-white);
}

.lncu-before-after-block.orange {
    --lncu-before-after-color: var(--bricks-color-akzent-200);
}

.lncu-before-after-block.white {
    --lncu-before-after-color: var(--bricks-color-white);
    --lncu-before-after-arrow-color: var(--bricks-color-blue-100);
}

.lncu-before-after-block > img {
    width: 100%;
    pointer-events: none;
}

.lncu-before-image-wrapper > img {
    height: 100%;
    max-width: none;
    width: auto;
    pointer-events: none;
}

.lncu-before-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    border-right: 0.5rem solid var(--lncu-before-after-color);
}

.lncu-before-after-handle {
    position: absolute;
    display: flex;
    top: calc(50% - 2rem);
    left: 50%;
    transform: translateX(calc(-50% - 2.5px));
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 4rem;
    height: 4rem;
    background-color: var(--lncu-before-after-color);
    border-radius: 4rem;
    cursor: ew-resize;
    z-index: 2;
    animation: lncu-before-after-handle-pulse 2s infinite 0.5s;
}

.lncu-before-after-block, .lncu-before-after-handle {
    touch-action: pan-y;
    --ms-touch-action: pan-y;
}

@keyframes lncu-before-after-handle-pulse {
    0% {box-shadow: 0 0 0 0 var(--lncu-before-after-color);}
    70% {box-shadow: 0 0 0 10px rgba(255, 98, 0, 0);}
    100% {box-shadow: 0 0 0 0 rgba(255, 98, 0, 0);}
}

.lncu-before-after-arrow-left, .lncu-before-after-arrow-right {
  display: block;
  width: 0;
  height: 0;
  border-style: solid;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}

.lncu-before-after-arrow-left {
  border-right: 7px solid var(--lncu-before-after-arrow-color);
  border-left: 0;
}

.lncu-before-after-arrow-right {
  border-left: 7px solid var(--lncu-before-after-arrow-color);
  border-right: 0;
}

@media (max-width: 478px) {
    .lncu-before-after-block {
        width: 100% !important;
    }
}