/* Prevent horizontal scrolling on the page */
body, html {
    overflow-x: hidden;
    width: 100%;
}

/* Image grid container with hidden overflow */
.image-grid-wrapper {
    overflow: hidden;
    width: 100%;
    position: relative;
}

/* Image grid with flex layout for ticker animation */
.image-grid {
    display: flex;
    animation: ticker-animation 30s linear infinite;
    padding: 20px 0;
}

/* Individual image box styling */
.image-box {
    min-width: 300px;
    height: 300px;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    margin: 0 10px;
    flex-shrink: 0;
}

/* Ticker animation - moves from right to left */
@keyframes ticker-animation {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Pause animation on hover */
.image-grid:hover {
    animation-play-state: paused;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .image-box {
        height: 250px;
        min-width: 250px;
    }
}

@media (max-width: 768px) {
    .image-box {
        min-width: 200px;
        height: 200px;
    }
}

@media (max-width: 480px) {
    .image-box {
        min-width: 150px;
        height: 150px;
        margin: 0 5px;
    }
    
    /* Slower animation on mobile */
    .image-grid {
        animation-duration: 40s;
    }
}