* {
    box-sizing: border-box;
}

:root {
    --black: #070707;
    --panel: rgba(8,8,8,.94);
    --red: #e00000;
    --gold: #ae8d3c;
    --gold-light: #e8ca77;
    --text: #f4f4f4;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background:
        linear-gradient(rgba(0,0,0,.68), rgba(0,0,0,.82)),
        url("images/background.jpg") center top / cover fixed;
    font-family: Arial, Helvetica, sans-serif;
}

/* =========================================================
   HERO
========================================================= */

.hero {
    position: relative;
    width: min(1520px, calc(100% - 70px));
    height: 360px;
    margin: 0 auto;
    overflow: hidden;
    background: #000;
    border: 1px solid rgba(174,141,60,.45);
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    opacity: 0;
    transition: opacity .8s ease;
}

.hero-slide.is-active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(0,0,0,.5), transparent 35%, transparent 65%, rgba(0,0,0,.5)),
        linear-gradient(to bottom, rgba(0,0,0,.1), rgba(0,0,0,.42));
}

.hero-logo {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 270px;
    height: 270px;
    object-fit: cover;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 10px 30px rgba(0,0,0,.65);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    width: 52px;
    height: 52px;
    transform: translateY(-50%);
    border: 1px solid rgba(255,255,255,.25);
    background: rgba(0,0,0,.62);
    color: #fff;
    font-size: 36px;
    cursor: pointer;
}

.hero-arrow:hover {
    border-color: var(--red);
    background: var(--red);
}

.hero-prev { left: 0; }
.hero-next { right: 0; }

.hero-dots {
    position: absolute;
    left: 50%;
    bottom: 10px;
    display: flex;
    gap: 7px;
    transform: translateX(-50%);
}

.hero-dot {
    width: 11px;
    height: 11px;
    padding: 0;
    border: 1px solid #aaa;
    border-radius: 50%;
    background: #aaa;
}

.hero-dot.is-active {
    border-color: var(--red);
    background: var(--red);
}

/* =========================================================
   TIMELINE
========================================================= */

.timeline-wrap {
    padding: 18px 30px 28px;
}

.timeline {
    position: relative;
    width: min(1520px, 100%);
    margin: 0 auto;
}

.timeline::before {
    content: "";
    position: absolute;
    top: -18px;
    bottom: -28px;
    left: 50%;
    width: 2px;
    transform: translateX(-50%);
    background: linear-gradient(
        to bottom,
        var(--gold-light),
        var(--gold),
        var(--gold-light)
    );
}

/* BELANGRIJK:
   gallery én bericht staan ALTIJD op dezelfde grid-rij */
.timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 120px minmax(0, 1fr);
    grid-template-rows: auto;
    align-items: center;
    margin-bottom: 42px;
}

.timeline-marker {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 10;
    width: 24px;
    height: 24px;
    transform: translate(-50%, -50%);
    border: 3px solid #111;
    border-radius: 50%;
    background: var(--red);
    box-shadow:
        0 0 0 2px var(--gold),
        0 0 12px rgba(224,0,0,.55);
}

.timeline-marker::before,
.timeline-marker::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 46px;
    height: 1px;
    background: var(--gold);
}

.timeline-marker::before {
    right: 100%;
}

.timeline-marker::after {
    left: 100%;
}

/* Beide elementen expliciet op grid-row 1 */
.post-gallery,
.post-card {
    grid-row: 1;
    min-width: 0;
}

.photo-left .post-gallery {
    grid-column: 1;
}

.photo-left .post-card {
    grid-column: 3;
}

.photo-right .post-card {
    grid-column: 1;
}

.photo-right .post-gallery {
    grid-column: 3;
}

/* =========================================================
   FOTO
========================================================= */

.post-gallery-stage {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #000;
    border: 1px solid var(--gold);
}

.gallery-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity .3s ease;
}

.gallery-image.is-active {
    opacity: 1;
}

.gallery-arrow {
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 40px;
    height: 44px;
    transform: translateY(-50%);
    border: 1px solid rgba(174,141,60,.55);
    background: rgba(0,0,0,.72);
    color: var(--gold-light);
    font-size: 30px;
    cursor: pointer;
}

.gallery-arrow:hover {
    background: var(--red);
    color: #fff;
}

.gallery-prev {
    left: 0;
}

.gallery-next {
    right: 0;
}

.gallery-counter {
    position: absolute;
    right: 9px;
    bottom: 8px;
    z-index: 3;
    padding: 4px 8px;
    border: 1px solid rgba(174,141,60,.6);
    background: rgba(0,0,0,.82);
    color: #fff;
    font-size: 12px;
}

/* =========================================================
   BERICHT
========================================================= */

.post-card {
    padding: 32px 28px;
    min-height: 300px;

    display: flex;
    flex-direction: column;

    border: 1px solid var(--gold);
    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.025),
            transparent 35%
        ),
        var(--panel);

    box-shadow:
        inset 0 0 20px rgba(255,255,255,.015),
        0 8px 20px rgba(0,0,0,.25);
}

.post-card time {
    display: block;
    margin-bottom: 12px;
    color: #ff1b1b;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
}

.post-card h2 {
    margin: 0 0 12px;
    color: #fff;
    font-size: 29px;
    line-height: 1.15;
    text-transform: uppercase;
    letter-spacing: .02em;
}

.post-text {
    position: relative;
    overflow: hidden;
    max-height: 700px;

    color: #eee;
    font-size: 16px;
    line-height: 1.72;

    transition: max-height .45s ease;
}

.post-text p {
    margin: 0;
}

.post-text {
    position: relative;
    overflow: hidden;
    max-height: 500px;
    transition: max-height .45s ease;
}

.post-text.is-collapsed {
    max-height: 145px;
}

.post-text.is-collapsed::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;

    height: 38px;

    pointer-events: none;

    background: linear-gradient(
        to bottom,
        rgba(8,8,8,0),
        rgba(8,8,8,.95)
    );
}

.read-more {
    display: block;

    width: 100%;
    margin-top: auto;
    padding: 12px 18px;

    border: 0;

    background: var(--red);
    color: #fff;

    font-size: 12px;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: .08em;

    cursor: pointer;

    transition:
        background .2s ease,
        color .2s ease;
}

.read-more:hover {
    background: #fff;
    color: #111;
}
.post-text:not(.is-collapsed) {
    margin-bottom: 22px;
}

/* =========================================================
   FOOTER
========================================================= */

.site-footer {
    padding: 14px 20px;
    border-top: 1px solid var(--red);
    background: rgba(0,0,0,.95);
}

.footer-icons {
    width: 100%;

    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;

    gap: 22px;
}

.footer-icons a {
    flex: 0 0 54px;

    width: 54px;
    height: 54px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 0;
    border-radius: 50%;

    background: #f00000;
    color: #000;

    text-decoration: none;

    transition:
        background .2s ease,
        transform .2s ease;
}

.footer-icons svg {
    width: 25px;
    height: 25px;

    fill: currentColor;

    display: block;
}

.footer-icons a:hover {
    background: #fff;
    color: #f00000;

    transform: translateY(-3px);
}

.footer-copyright {
    margin-top: 18px;

    text-align: center;

    color: rgba(255,255,255,.55);

    font-size: 11px;
    font-weight: 600;
    letter-spacing: .12em;

    text-transform: uppercase;
}

@media (min-width: 1200px) {
    .timeline-item {
        min-height: 300px;
    }

    .post-gallery-stage {
        min-height: 300px;
    }

    .post-card {
        min-height: 250px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 800px) {

    body {
        background-attachment: scroll;
    }

    .hero {
        width: 100%;
        height: 390px;
        border-left: 0;
        border-right: 0;
    }

    .hero-logo {
        width: 220px;
        height: 220px;
    }

    .timeline-wrap {
        padding: 45px 18px 60px;
    }

    .timeline {
        padding-left: 30px;
    }

    .timeline::before {
        left: 8px;
        transform: none;
    }

    .timeline-item {
        display: flex;
        flex-direction: column;
        gap: 14px;
        margin-bottom: 48px;
    }

    .timeline-marker {
        left: 8px;
        top: 32px;
        transform: translate(-50%, 0);
    }

    .timeline-marker::before,
    .timeline-marker::after {
        display: none;
    }

    .photo-right .post-gallery,
    .photo-right .post-card,
    .photo-left .post-gallery,
    .photo-left .post-card {
        width: 100%;
    }

    .photo-right .post-gallery,
    .photo-left .post-gallery {
        order: 1;
    }

    .photo-right .post-card,
    .photo-left .post-card {
        order: 2;
    }
}
