/* ── Viro Native Slider (CSS Scroll Snap Edition) ── */

.viro-native-slider {
    position: relative;
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
}

.viro-native-slider-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    /* scroll-behavior is controlled dynamically by JS for infinite loop support */
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Hide scrollbar Firefox */
}

.viro-native-slider-container::-webkit-scrollbar {
    display: none;
    /* Hide scrollbar Chrome/Safari */
}

.viro-native-slide {
    flex: 0 0 100%;
    width: 100%;
    scroll-snap-align: start;
    position: relative;
}

.viro-native-item-inner {
    display: grid;
    grid-template-areas: "stack";
    align-items: center;
    justify-items: center;
    width: 100%;
    position: relative;
}

.viro-native-picture,
.viro-native-caption,
.viro-native-overlay {
    grid-area: stack;
    width: 100%;
    height: 100%;
}

.viro-native-image {
    width: 100%;
    aspect-ratio: calc(16 / 7);
    max-height: 600px; /* Capped to prevent extreme vertical expansion and zoom on wide screens */
    height: auto;
    object-fit: cover;
    object-position: center;
    display: block;
}

.viro-native-overlay {
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
    pointer-events: none;
}

.viro-native-caption {
    z-index: 10;
    padding: var(--spacing-xl);
    max-width: var(--container-max-width);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #fff;
    pointer-events: none;
}

.viro-native-caption>* {
    pointer-events: auto;
}

/* Typography (Standard Viro Style) */
.viro-native-subtitle {
    font-size: var(--font-size-md);
    font-weight: bold;
    color: var(--viro-primary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: var(--spacing-xs);
}

.viro-native-title {
    font-size: var(--font-size-6xl);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--spacing-md);
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.viro-native-desc {
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-xl);
    max-width: 700px;
    opacity: 0.9;
}

.viro-native-btn {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-xl);
    background: var(--viro-primary-color);
    color: #fff !important;
    border-radius: var(--radius-md);
    font-weight: bold;
    text-decoration: none !important;
    width: fit-content;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.viro-native-btn:hover {
    transform: translateY(-5px);
    background: var(--viro-secondary-color);
}

/* Nav Arrows */
.viro-native-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 30px;
    pointer-events: none;
    z-index: 20;
}

.viro-native-arrow {
    width: 55px;
    height: 55px;
    background: rgba(0, 0, 0, 0.25) !important;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.9) !important;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: auto;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.viro-native-arrow svg {
    width: 24px;
    height: 24px;
    stroke-width: 2.5px; /* Slightly thicker for better visibility */
}

.viro-native-arrow.arrow-style-circle {
    border-radius: 50%;
}

.viro-native-arrow.arrow-style-square {
    border-radius: 4px;
}

.viro-native-arrow:hover {
    background: var(--viro-primary-color) !important;
    border-color: var(--viro-primary-color) !important;
    transform: scale(1.1);
}

/* Button shapes */
.btn-shape-square { border-radius: 0 !important; }
.btn-shape-rounded { border-radius: var(--radius-md) !important; }
.btn-shape-pill { border-radius: 50px !important; }


/* Dots */
.viro-native-dots {
    position: absolute;
    bottom: 10px;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 20;
}

.viro-native-dot {
    width: 12px;
    height: 12px;
    border: 2px solid #fff;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.viro-native-dot.active {
    width: 35px;
    background: var(--viro-primary-color);
    border-color: var(--viro-primary-color);
    border-radius: 10px;
}

/* Style Round Force */
.viro-native-dots.dot-style-round .viro-native-dot.active {
    width: 12px;
    border-radius: 50%;
}

/* Responsive */
@media (max-width: 991px) {
    .viro-native-image {
        aspect-ratio: calc(5 / 2);
    }
}

@media (max-width: 767px) {
    /* .viro-native-image {

        min-height: 260px;
    } */

    .viro-native-title {
        font-size: var(--font-size-4xl);
    }

    .viro-native-nav {
        display: none;
    }
}