.image-marquee-wrap {
  margin: 1.5rem 0 2rem;
}

.image-marquee-wrap {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.image-marquee-track {
    display: flex;
    align-items: stretch;
    gap: 1.2rem;
    width: max-content;
    will-change: transform;
    animation-name: imageMarqueeScroll;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    animation-duration: var(--marquee-duration, 28s);
}

.image-marquee:hover .image-marquee-track {
    animation-play-state: paused;
}

.image-marquee-item {
    width: 320px;
    height: 250px;
    flex: 0 0 auto;
    object-fit: contain;
    background: #eef4f8;
    border: 1px solid rgba(15, 31, 46, 0.06);
    border-radius: 18px;
    padding: 1rem;
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(15, 31, 46, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.image-marquee-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 34px rgba(15, 31, 46, 0.14);
}

@keyframes imageMarqueeScroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(calc(-1 * var(--scroll-distance, 50%)));
    }
}

.image-lightbox {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: rgba(8, 15, 24, 0.88);
    z-index: 9999;
}

.image-lightbox.is-open {
    display: flex;
}

.image-lightbox-dialog {
    position: relative;
    max-width: 92vw;
    max-height: 88vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-lightbox-img {
    display: block;
    max-width: 92vw;
    max-height: 88vh;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 22px 44px rgba(0, 0, 0, 0.25);
}

.image-lightbox-close {
    position: absolute;
    top: -0.9rem;
    right: -0.9rem;
    width: 2.5rem;
    height: 2.5rem;
    border: 0;
    border-radius: 999px;
    background: #ffffff;
    color: #0f1f2e;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

@media (max-width: 960px) {
    .image-marquee-item {
        width: 260px;
        height: 220px;
    }
}

@media (max-width: 640px) {
    .image-marquee-item {
        width: 220px;
        height: 190px;
        padding: 0.8rem;
    }

    .image-lightbox {
        padding: 1rem;
    }
}
