.mmc-lc-container {
    margin: 20px 0;
    width: 100%;
    box-sizing: border-box; /* Esto asegura que el padding no rompa el ancho */
}

.mmc-lc-inner {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9; /* Ajustable según tus fotos */
    background: #f5f5f5;
    overflow: hidden;
    border-radius: 8px;
    margin: 0;
    padding: 0;
}

/* Base Image */
.mmc-lc-img-base {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    user-select: none;
    pointer-events: none;
}

/* Top Image: Clip-path SIN transition para evitar lag */
.mmc-lc-img-top {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    user-select: none;
    pointer-events: none;
    z-index: 2;
    clip-path: inset(0 50% 0 0); /* Posición inicial */
}

/* Handler (Barra que se arrastra) */
.mmc-lc-handle {
    position: absolute;
    top: 0;
    left: 50%;
    height: 100%;
    width: 2px;
    background: #fff;
    transform: translateX(-50%);
    box-shadow: 0 0 0 1px rgba(0,0,0,.1);
    cursor: ew-resize;
    z-index: 3;
}

.mmc-lc-knob {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #111;
    color: #fff;
    font-weight: 800;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 14px rgba(0,0,0,.22);
}

/* Etiquetas Amarillas "Stickers" */
.mmc-lc-label {
    position: absolute;
    top: 12px;
    background: #D8FF2A;
    color: #111;
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 12px;
    font-weight: 800;
    padding: 6px 10px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    pointer-events: none;
    z-index: 4;
}

.mmc-lc-label-left { left: 12px; }
.mmc-lc-label-right { right: 12px; }

/* ==========================================================================
   RESPONSIVE PARA MÓVILES (Domando a Stackable)
   ========================================================================== */
@media (max-width: 768px) {
    /* 1. Forzamos a nuestro contenedor a ser físicamente más pequeño que la pantalla */
    .mmc-lc-container { 
        width: calc(100% - 40px) !important; /* Le roba exactamente 20px de cada lado */
        margin-left: auto !important; /* Lo centra */
        margin-right: auto !important; /* Lo centra */
        padding: 0 !important;
    }
    
    /* 2. Le ponemos una correa al bloque rebelde de Stackable por si sigue molestando */
    .wp-block-stackable-columns.stk-fcc7777,
    .wp-block-stackable-columns.stk-block-columns {
        padding-left: 20px !important;
        padding-right: 20px !important;
        box-sizing: border-box !important;
    }

    /* Ajustes visuales de las etiquetas y el botón para que se vean bien en ese nuevo tamaño */
    .mmc-lc-inner { border-radius: 6px; }
    .mmc-lc-knob { width: 32px; height: 32px; font-size: 14px; }
    .mmc-lc-label { top: 10px; padding: 5px 8px; font-size: 10px; }
    .mmc-lc-label-left { left: 10px; }
    .mmc-lc-label-right { right: 10px; }
}