/* Mobile-first responsive design - NO ROUNDED BORDERS */
* {
    box-sizing: border-box;
}

.auto-slideshow-card {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    background: rgba(237, 237, 243, 0);
    backdrop-filter: blur(8px);
    border-radius: 0px;
    box-shadow: 0 30px 50px rgba(0, 0, 0, 0), 0 0 0 1px rgba(255, 255, 255, 0);
    overflow: hidden;
    transition: transform 0.3s ease;
}

/* Smaller size for mobile */
@media (max-width: 767px) {
    .auto-slideshow-card {
        max-width: 100%;
        width: 100%;
    }
}

/* Responsive width for tablet and desktop */
@media (min-width: 768px) {
    .auto-slideshow-card {
        max-width: 620px;
        border-radius: 0px;
    }
}

@media (min-width: 1200px) {
    .auto-slideshow-card {
        max-width: 800px;
    }
}

.auto-slideshow-card:hover {
    transform: translateY(0px);
}

.asc-slideshow-container {
    position: relative;
    width: 100%;
    background-color: #d9e0f757;
    overflow: hidden;
}

.asc-slide-track {
    position: relative;
    width: 100%;
    overflow: hidden;
    touch-action: pan-y pinch-y;
}

.asc-slides {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 0.92, 0.45, 1);
    will-change: transform;
    cursor: grab;
    width: 100%;
    min-width: 0;
    flex-shrink: 0;
}

.asc-slides:active {
    cursor: grabbing;
}

.asc-slide {
    flex: 0 0 100%;
    min-width: 0;
    position: relative;
    width: 100%;
    overflow: hidden;
    background-size: contain;  /* CHANGE: from 'cover' to 'contain' to show full image */
    background-position: center center;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
}



@media (max-width: 767px) {
    .asc-slide {
        aspect-ratio: 7 / 4;  /* Standard ratio for mobile */
        background-size: contain;
    }
}

@media (min-width: 768px) {
    .asc-slide {
        aspect-ratio: 16 / 9;
        background-size: cover;  /* Keep cover for desktop where cropping is fine */
    }
}

/* Alternative: Use background-size based on image orientation */
/* Remove the gradient overlay that might affect visibility */
.asc-slide::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;  /* Reduced from 50% */
    background: linear-gradient(to top, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0), transparent);
    pointer-events: none;
    z-index: 1;
}



/* Dots container */
.asc-dots-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: 8px 6px 10px;
    background: linear-gradient(to top, rgb(63, 15, 0), rgba(250, 138, 33, 0.555));
    backdrop-filter: blur(5px);
    border-top: 1px solid rgba(255, 255, 255, 0);
    flex-wrap: wrap;
}

@media (min-width: 480px) {
    .asc-dots-container {
        gap: 10px;
        padding: 12px 12px 16px;
    }
}

@media (min-width: 768px) {
    .asc-dots-container {
        gap: 12px;
        padding: 14px 12px 18px;
    }
}

/* Dots styling */
.asc-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: rgba(220, 220, 240, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 5px;
}

@media (min-width: 480px) {
    .asc-dot {
        width: 8px;
        height: 8px;
        min-width: 8px;
    }
}

.asc-dot.active {
    background-color: #ffaa44;
    width: 16px;
    border-radius: 12px;
    background: linear-gradient(95deg, #ffb347, #ff7e05);
    min-width: 16px;
}

@media (min-width: 480px) {
    .asc-dot.active {
        width: 24px;
        min-width: 24px;
    }
}

@media (min-width: 768px) {
    .asc-dot.active {
        width: 28px;
        min-width: 28px;
    }
}

.asc-dot:hover:not(.active) {
    background-color: #ffcc88;
    transform: scale(1.2);
}

/* Auto badge */
.asc-auto-badge {
    position: absolute;
    top: 6px;
    right: 8px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(12px);
    padding: 3px 8px;
    border-radius: 0px;
    font-size: 0.55rem;
    color: #ffdd99;
    border: 1px solid rgba(255, 200, 120, 0.3);
    z-index: 10;
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 3px;
    font-family: monospace;
}

@media (min-width: 480px) {
    .asc-auto-badge {
        top: 12px;
        right: 14px;
        padding: 5px 12px;
        font-size: 0.7rem;
        gap: 6px;
    }
}

/* Swipe hint */
.swipe-hint {
    position: absolute;
    bottom: 70px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(8px);
    padding: 4px 12px;
    border-radius: 0px;
    font-size: 0.65rem;
    color: white;
    z-index: 10;
    pointer-events: none;
    white-space: nowrap;
    opacity: 0;
    animation: fadeInOut 3s ease forwards;
}

@media (min-width: 768px) {
    .swipe-hint {
        display: none;
    }
}

@keyframes fadeInOut {
    0% { opacity: 0; transform: translateX(-50%) translateY(10px); }
    20% { opacity: 1; transform: translateX(-50%) translateY(0); }
    80% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(-10px); }
}

/* Extra small devices */
@media (max-width: 380px) {
    .asc-slide-caption {
        padding: 0.5rem 0.6rem;
        font-size: 0.7rem;
        margin: 0 0 6px 6px;
    }
    
    .asc-dots-container {
        gap: 5px;
        padding: 6px 5px 8px;
    }
    
    .asc-dot {
        width: 4px;
        height: 4px;
        min-width: 4px;
    }
    
    .asc-dot.active {
        width: 14px;
        min-width: 14px;
    }
}

/* Fix for grid parent container */
.grid .auto-slideshow-card {
    min-width: 0;
    width: 100%;
}
