/* InDesign Image Marquee Frontend Styles */

.idim-image-marquee-wrapper {
    overflow: hidden;
    width: 100%;
    position: relative;
    background: transparent;
    padding: 20px 0;
    -webkit-font-smoothing: antialiased;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.idim-full-window {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.idim-marquee-content {
    display: flex;
    white-space: nowrap;
    width: max-content;
    will-change: transform;
    position: relative;
    /* Ensure it's a stable offsetParent for items */
}

.idim-marquee-item {
    display: flex;
    align-items: center;
    padding: 0 calc(var(--idim-bg-gap) / 2);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.idim-marquee-item img {
    height: var(--idim-img-height);
    width: auto;
    display: block;
    max-width: none;
    transition: all 0.4s ease;
    user-select: none;
    -webkit-user-drag: none;
}

/* Hover Effects */
.idim-hover-zoom .idim-marquee-item:hover img {
    transform: scale(1.1);
}

.idim-hover-grayscale img {
    filter: grayscale(100%);
    -webkit-filter: grayscale(100%);
    opacity: 0.7;
}

.idim-hover-grayscale .idim-marquee-item:hover img {
    filter: grayscale(0%);
    -webkit-filter: grayscale(0%);
    opacity: 1;
}

/* Responsive Heights */
@media (max-width: 1024px) {
    .idim-marquee-item img {
        height: var(--idim-img-height-tablet);
    }
}

@media (max-width: 768px) {
    .idim-marquee-item img {
        height: var(--idim-img-height-mobile);
    }
}