/* ==========================================================================
   TIJDLIJN PAGINA – style-tijdlijn.css
   – Fullscreen sticky sectie, wheel/touch navigatie
   – Beelden respecteren aspect ratio, vaste hoogte, geen fill
   – Veel ruimte tussen items (gap ~15vw)
   ========================================================================== */

/* --------------------------------------------------------------------------
   HEADER
   -------------------------------------------------------------------------- */
body.page-template-page-tijdlijn .site-header,
body.is-tijdlijn-page .site-header {
    opacity: 1 !important;
    transform: none !important;
    pointer-events: all !important;
    background: transparent !important;
}

body.page-template-page-tijdlijn .hero-menu-btn,
body.is-tijdlijn-page .hero-menu-btn {
    display: none;
}

/* --------------------------------------------------------------------------
   PAGINA + SMOOTH WRAPPER
   -------------------------------------------------------------------------- */
body.is-tijdlijn-page #smooth-wrapper,
body.page-template-page-tijdlijn #smooth-wrapper {
    overflow: hidden;
    height: 100svh;
}

body.is-tijdlijn-page #smooth-content,
body.page-template-page-tijdlijn #smooth-content {
    height: 100svh;
    overflow: hidden;
}

.page-tijdlijn {
    background: var(--c-page);
    height: 100svh;
    overflow: hidden;
}

/* --------------------------------------------------------------------------
   SECTIE – fullscreen, geen scroll
   -------------------------------------------------------------------------- */
.tijdlijn-sectie {
    position: relative;
    width: 100%;
    height: 100svh;
    overflow: hidden;
    display: flex;
    align-items: center;
}

/* --------------------------------------------------------------------------
   TRACK – horizontale rij, wordt via transform verschoven
   -------------------------------------------------------------------------- */
.tijdlijn-track {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: clamp(60px, 15vw, 260px);
    will-change: transform;
    padding: 0;
    /* geen padding: offset wordt via JS berekend */
}

/* --------------------------------------------------------------------------
   ITEM
   – Breedte bepaalt de horizontale ruimte
   – Hoogte is vast (70vh), beeld past er met contain in
   -------------------------------------------------------------------------- */
.tijdlijn-item {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: auto;
    opacity: 0.35;
    transition: opacity 0.5s ease;
}

.tijdlijn-item.is-actief {
    opacity: 1;
}

/* --------------------------------------------------------------------------
   MEDIA CONTAINER
   – Vaste hoogte: 70vh
   – Breedte: auto zodat aspect ratio gerespecteerd wordt
   – max-width: voorkomt dat brede beelden te breed worden
   -------------------------------------------------------------------------- */
.tijdlijn-item__media {
    height: clamp(200px, 70vh, 780px);
    width: auto;
    max-width: 80vw;
    overflow: hidden;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tijdlijn-item__media img,
.tijdlijn-item__media video {
    height: 100%;
    width: auto;
    max-width: 80vw;
    object-fit: contain;
    display: block;
}

.tijdlijn-item__media--placeholder {
    width: clamp(200px, 40vw, 600px);
    background: #D8D4CC;
}

/* --------------------------------------------------------------------------
   CAPTION
   -------------------------------------------------------------------------- */
.tijdlijn-item__caption {
    font-family: var(--f-body);
    font-size: var(--fs-nav);
    font-weight: 400;
    letter-spacing: 0.04em;
    color: var(--c-tekst);
    opacity: 0.5;
    margin-top: clamp(14px, 2vh, 24px);
    text-align: center;
    max-width: 50ch;
}

/* --------------------------------------------------------------------------
   PIJLEN
   -------------------------------------------------------------------------- */
.tijdlijn-pijl {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 50;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--c-tekst);
    padding: 16px;
    opacity: 0.4;
    transition: opacity 0.2s ease;
}

.tijdlijn-pijl:hover { opacity: 1; }
.tijdlijn-pijl--links  { left:  clamp(10px, 2vw, 32px); }
.tijdlijn-pijl--rechts { right: clamp(10px, 2vw, 32px); }

.tijdlijn-pijl svg {
    width: clamp(20px, 1.8vw, 32px);
    height: clamp(20px, 1.8vw, 32px);
}

/* --------------------------------------------------------------------------
   TELLER
   -------------------------------------------------------------------------- */
.tijdlijn-teller {
    position: fixed;
    bottom: clamp(20px, 3vh, 40px);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 0.4em;
    font-family: var(--f-body);
    font-size: var(--fs-nav);
    font-weight: 400;
    letter-spacing: 0.06em;
    color: var(--c-tekst);
    opacity: 0.45;
    z-index: 50;
    pointer-events: none;
}

.tijdlijn-teller__sep { opacity: 0.4; }

/* --------------------------------------------------------------------------
   MOBIEL – verticale layout
   -------------------------------------------------------------------------- */
@media (max-width: 700px) {
    body.is-tijdlijn-page #smooth-wrapper,
    body.page-template-page-tijdlijn #smooth-wrapper,
    body.is-tijdlijn-page #smooth-content,
    body.page-template-page-tijdlijn #smooth-content,
    .page-tijdlijn,
    .tijdlijn-sectie {
        height: auto !important;
        overflow: visible !important;
    }

    .tijdlijn-sectie {
        align-items: flex-start;
        padding: clamp(80px, 15vw, 120px) var(--gutter-s) clamp(60px, 10vw, 100px);
    }

    .tijdlijn-track {
        flex-direction: column;
        align-items: center;
        gap: clamp(40px, 10vw, 80px);
        transform: none !important;
    }

    .tijdlijn-item {
        width: 100%;
        opacity: 1 !important;
    }

    .tijdlijn-item__media {
        height: auto;
        width: 100%;
        max-width: 100%;
    }

    .tijdlijn-item__media img,
    .tijdlijn-item__media video {
        height: auto;
        width: 100%;
        max-width: 100%;
        object-fit: contain;
    }

    .tijdlijn-pijl,
    .tijdlijn-teller { display: none; }
}
