/* -- Before / After Rotator -------------------------------- */
.bf-af-rot-half {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    width: 75%;
    min-height: 400px;
    .text-tag{
        position: absolute;
        top: 1rem;
        left: 50%;
        transform: translateX(-50%);
        z-index: 5;
        background-color: rgba(0, 0, 0, 0.5);
        width: 100%;
    }
}

/* Each photo is stacked; only .active is visible */
.bf-af-rot-slide {
    position: absolute;
    width: 100%;
    min-height: 500px;
    inset: 0;
    margin: 0;
    opacity: 0;
    transition: opacity 0.8s ease;
}
.bf-af-rot-half.after{
    transform: translate(-10%, 45%);
}
.bf-af-rot-slide.active {
    opacity: 1;
}

.bf-af-rot-slide img {
    width: 100%;
    display: block;
}

@media (prefers-reduced-motion: reduce) {
    .bf-af-rot-slide {
        transition: none;
    }
}
