/* --- Layout: tekst links, afbeelding rechts --- */

.project-layout {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    margin: 60px auto;
    max-width: 1200px;
    padding: 0 20px;
}

.project-text {
    flex: 1;
    max-width: 45%;
}

.project-text h2 {
    margin-bottom: 20px;
}

.project-hero {
    flex: 1;
    max-width: 50%;
}

.project-hero img {
    width: 100%;
    height: auto;
    border-radius: 6px;
}

/* --- Slideshow: één afbeelding per keer --- */

.project-slideshow {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;

    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.slideshow-track {
    display: flex;
    gap: 20px;
}

.slideshow-track img {
    width: 100%;
    max-width: 500px; /* bepaalt grootte van één slide */
    height: auto;
    border-radius: 6px;
    scroll-snap-align: center;
    flex-shrink: 0;
    cursor: grab;
    transition: transform 0.2s ease;
}

.slideshow-track img:hover {
    transform: scale(1.03);
}

/* --- Video's --- */

.project-videos {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;

    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.project-videos video {
    width: 100%;
    border-radius: 6px;
    background: #000;
}

/* --- Responsive --- */

@media (max-width: 900px) {
    .project-layout {
        flex-direction: column;
    }

    .project-text,
    .project-hero {
        max-width: 100%;
    }
}
