/* Sabadoor — Door Suggestions Gallery
 * Selectors are intentionally double-classed so they beat Elementor's
 * `.elementor-element img { max-width: 100%; height: auto }` (specificity 0,1,1).
 */

.sabadoor-dsg {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.sabadoor-dsg .sabadoor-dsg__track {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    will-change: transform;
    /* Block native horizontal scroll/swipe so Draggable receives all drag intent.
       Cursor is handled by Draggable (cursor: grab, activeCursor: grabbing). */
    touch-action: pan-y;
}

.sabadoor-dsg .sabadoor-dsg__item {
    flex: 0 0 auto;
    display: block;
    height: 320px;
    width: auto;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    line-height: 0;
    border-radius: 0;
    cursor: inherit;
}

.sabadoor-dsg .sabadoor-dsg__item--clone {
    /* Clones must let pointer events through to the track so Draggable can
       capture pointerdown on them too — `none` would create dead zones. */
    pointer-events: none;
}

.sabadoor-dsg .sabadoor-dsg__img {
    display: block;
    height: 100%;
    width: auto;
    max-width: none;
    max-height: none;
    object-fit: cover;
    border-radius: 0;
    -webkit-user-drag: none;
    user-select: none;
    /* Defeat WP 6.7+ auto-sizes placeholder (contain-intrinsic-size 3000x1500),
       which would otherwise stretch flex items in our track. */
    contain-intrinsic-size: auto;
}

.sabadoor-dsg--empty {
    padding: 20px;
    background: #f7f7f7;
    color: #666;
    text-align: center;
    border: 1px dashed #ccc;
    font-size: 14px;
}

@media (prefers-reduced-motion: reduce) {
    .sabadoor-dsg__track {
        animation: none !important;
        transform: none !important;
    }
    .sabadoor-dsg {
        overflow-x: auto;
    }
}
