/* ============================================
   Image Scroller Widget - Base Styles
   ============================================ */

.unlockafe-image-scroller-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.unlockafe-image-scroller-track {
    width: 100%;
    overflow: hidden;
    position: relative;
}

/* Horizontal Scroll */
.unlockafe-scroll-horizontal .unlockafe-image-scroller-content {
    display: flex;
    flex-direction: row;
    width: fit-content;
    will-change: transform;
}

.unlockafe-scroll-horizontal .unlockafe-image-scroller-item {
    flex-shrink: 0;
    display: inline-block;
}

.unlockafe-scroll-horizontal .unlockafe-image-scroller-item img {
    width: auto;
    display: block;
    max-width: none;
}

/* Vertical Scroll */
.unlockafe-scroll-vertical .unlockafe-image-scroller-content {
    display: flex;
    flex-direction: column;
    height: fit-content;
    will-change: transform;
}

.unlockafe-scroll-vertical .unlockafe-image-scroller-item {
    flex-shrink: 0;
    display: block;
}

.unlockafe-scroll-vertical .unlockafe-image-scroller-item img {
    width: 100%;
    display: block;
}

/* Image Item */
.unlockafe-image-scroller-item {
    position: relative;
    overflow: hidden;
}

.unlockafe-image-scroller-item a {
    display: block;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.unlockafe-image-scroller-item img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.unlockafe-image-scroller-item:hover img {
    transform: scale(1.05);
}

/* Auto Scroll Animation */
.unlockafe-auto-scroll.unlockafe-scroll-horizontal .unlockafe-image-scroller-content {
    animation: scrollHorizontal 30s linear infinite !important;
}

.unlockafe-auto-scroll.unlockafe-scroll-vertical .unlockafe-image-scroller-content {
    animation: scrollVertical 30s linear infinite !important;
}

/* Pause on Hover - CSS fallback */
.unlockafe-image-scroller-wrapper[data-pause-on-hover="yes"]:hover .unlockafe-image-scroller-content {
    animation-play-state: paused !important;
}

/* Horizontal Scroll Animation */
@keyframes scrollHorizontal {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

/* Vertical Scroll Animation */
@keyframes scrollVertical {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-50%);
    }
}

/* Smooth Scrolling */
.unlockafe-image-scroller-content {
    transition: transform 0.1s linear;
}

/* ============================================
   Responsive Styles
   ============================================ */

@media (max-width: 768px) {
    .unlockafe-image-scroller-item img {
        max-width: 200px;
    }
}

@media (max-width: 480px) {
    .unlockafe-image-scroller-item img {
        max-width: 150px;
    }
}

