/* =========================================
   CORE SLIDER WRAPPER
========================================= */
.appsredx-slider-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    line-height: 0; /* Prevents inline gap at the bottom */
}

/* Embla Core Styles */
.appsredx-embla {
    width: 100%;
}
.appsredx-embla__viewport {
    width: 100%;
    overflow: hidden;
}
.appsredx-embla__container {
    display: flex;
    touch-action: pan-y; /* Important for mobile swiping */
}

/* =========================================
   ZERO CLS SLIDE STRUCTURE (Dynamic Ratio)
========================================= */
.appsredx-embla__slide {
    flex: 0 0 100%;
    min-width: 100%;
    position: relative;
    overflow: hidden;
    aspect-ratio: var(--desk-ratio); /* Fetches from PHP Inline Style */
}

@media (max-width: 767px) {
    .appsredx-embla__slide {
        aspect-ratio: var(--mob-ratio); /* Fetches from PHP Inline Style */
    }
}

/* Force Picture and Image to Fill the Locked Box */
.appsredx-embla__slide picture,
.appsredx-embla__slide img {
    display: block;
    width: 100%;
    height: 100%; 
    object-fit: cover; 
}

/* =========================================
   PURE CSS ARROWS
========================================= */
.appsredx-embla__prev, 
.appsredx-embla__next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    cursor: pointer;
}

.appsredx-embla__prev::before {
    content: "";
    display: block;
    width: 22px;
    height: 22px;
    border-left: 4px solid #fff;
    border-bottom: 4px solid #fff;
    transform: rotate(45deg);
    filter: drop-shadow(-1px 2px 2px rgba(0,0,0,0.5));
    transition: transform 0.3s ease;
}

.appsredx-embla__next::before {
    content: "";
    display: block;
    width: 22px;
    height: 22px;
    border-right: 4px solid #fff;
    border-top: 4px solid #fff;
    transform: rotate(45deg);
    filter: drop-shadow(2px -1px 2px rgba(0,0,0,0.5));
    transition: transform 0.3s ease;
}

.appsredx-embla__prev:hover::before,
.appsredx-embla__next:hover::before {
    transform: rotate(45deg) scale(1.1);
}

.appsredx-embla__prev { left: 20px; }
.appsredx-embla__next { right: 20px; }

@media (max-width: 767px) {
    .appsredx-embla__prev, 
    .appsredx-embla__next {
        width: 40px;
        height: 40px;
    }
    .appsredx-embla__prev::before,
    .appsredx-embla__next::before {
        width: 15px;
        height: 15px;
        border-width: 3px;
    }
    .appsredx-embla__prev { left: 5px; }
    .appsredx-embla__next { right: 5px; }
}

/* =========================================
   ANIMATED DOTS
========================================= */
.appsredx-embla__dots {
    text-align: center;
    position: absolute;
    bottom: 30px;
    width: 100%;
    z-index: 12;
    display: flex;
    justify-content: center;
    align-items: center;
}

.appsredx-embla__dot {
    width: 13px;
    height: 10px;
    display: inline-block;
    background: #fff !important;
    opacity: 0.3;
    margin: 0 5px;
    border-radius: 20px;
    border: none !important;
    cursor: pointer;
    padding: 0;
    transition: opacity 0.5s, background-color 0.5s, width 0.5s;
}

.appsredx-embla__dot.is-selected {
    opacity: 1;
    background: #ffffff !important;
    width: 100px;
}