/* ==========================================================================
   Dorf Timeline / Dorfzeitreise Marquee Slider
   ========================================================================== */

.dorf-timeline-slider-container {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    overflow: hidden;
    padding: 6px 0 20px;
    box-sizing: border-box;
}

.dorf-marquee-track {
    display: flex;
    gap: 20px;
    width: max-content;
    animation: dorfMarquee 60s linear infinite;
    will-change: transform;
}

.dorf-marquee-track.pause-on-hover:hover {
    animation-play-state: paused;
}

@keyframes dorfMarquee {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(calc(-50% - 10px));
    }
}

.dorf-marquee-item {
    flex: 0 0 auto;
    width: 340px;
    height: 230px;
    border-radius: 12px;
    background-color: #f4efe9;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: block;
    text-decoration: none !important;
    transition: transform 0.24s cubic-bezier(0.34, 1.4, 0.64, 1), box-shadow 0.24s ease;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.dorf-marquee-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
}

/* Responsive adjustment for small screens */
@media (max-width: 600px) {
    .dorf-marquee-item {
        width: 280px;
        height: 190px;
    }
}
