html,
body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background: #000;
}

/* ================= HEADER ================= */

.header {
    position: relative;
    min-height: 100vh;
    background: url('img/site-9.jpg') no-repeat center center / cover;
    display: flex;
    align-items: stretch;
}

/* Groot doorlopend zwart vlak */
.header-panel {
    width: 100%;
    max-width: 1200px;
    margin: auto;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    min-height: 70vh;
}

/* LINKERKANT */
.header-left {
    flex: 1;
    padding: 60px;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.header-left h2 {
    font-size: 32px;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.header-left p {
    line-height: 1.7;
    max-width: 420px;
}

.header-intro {
    margin-top: 0;
    margin-bottom: 28px;
}

.company-details {
    line-height: 1.7;
    max-width: 420px;
}

.company-block + .company-block {
    margin-top: 24px;
}

.company-block strong {
    display: block;
}


.instagram-link,
.instagram-link:visited,
.instagram-link:hover,
.instagram-link:active,
.instagram-link:focus {
    color: #fff;
    text-decoration: underline;
}

/* RECHTERKANT – AUTEURSFOTO DESKTOP */
.header-right {
    flex: 1;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.author-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.author-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

/*
   Dit element wordt via JavaScript exact over het werkelijk zichtbare
   deel van author_image.jpg geplaatst. Daardoor kan de fotocredit ook
   bij object-fit: contain nooit naast of onder de foto terechtkomen.
*/
.author-credit {
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 0;
    box-sizing: border-box;
    padding: 7px;
    overflow: hidden;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    color: #fff;
    background: none;
    font-size: 11px;
    line-height: 1.15;
    text-align: right;
    white-space: normal;
    overflow-wrap: normal;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
    pointer-events: none;
    z-index: 2;
}

/* ================= SCROLL INDICATOR ================= */

.scroll-indicator {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: #fff;
    font-size: 12px;
    letter-spacing: 1px;
    cursor: pointer;
    z-index: 10;
}

.scroll-text {
    margin-top: 4px;
    opacity: 0.8;
}

.arrows {
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: bounce 2.2s infinite;
}

.arrows span {
    width: 20px;
    height: 20px;
    border-left: 3px solid #fff;
    border-bottom: 3px solid #fff;
    transform: rotate(-45deg);
    margin-top: -6px;
    opacity: 0.85;
}

@keyframes bounce {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }

    100% {
        transform: translateY(0);
    }
}

/* ================= GALLERY ================= */

.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px;
    background: #000;
}

.gallery-item {
    flex: 0 0 calc((100% - 20px) / 3);
    position: relative;
    overflow: hidden;
    background: #111;
}

.gallery-item a {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
    color: #fff;
    text-decoration: none;
}

/* Foto + eventueel publicatielogo */
.photo-layer {
    position: relative;
    width: 100%;
    height: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.main-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Foto en logo zoomen samen */
.gallery-item:hover .photo-layer {
    transform: scale(1.1);
}

/*
   Logo linksonder in de foto.
   Het logo zit in de foto-laag en ligt onder de zwarte overlay.
   Daardoor lijkt het alsof het logo is ingebrand.
*/
.publication-logo {
    position: absolute;
    left: 3%;
    bottom: 4%;
    width: clamp(44px, 13%, 58px);
    aspect-ratio: 1 / 1;
    height: auto;
    object-fit: contain;
    border-radius: 22%;
    z-index: 1;
    pointer-events: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}

/* Donkere hover-overlay over de hele foto */
.overlay {
    position: absolute;
    inset: 0;
    z-index: 5;
    background: rgba(0, 0, 0, 0.72);
    color: #fff;
    padding: 24px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Desktop: overlay verschijnt bij hover */
.gallery-item:hover .overlay {
    opacity: 1;
}

.overlay-date {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    opacity: 0.85;
    margin-bottom: 8px;
}

.overlay-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 10px;
    max-width: 95%;
}

.overlay-subtitle {
    font-size: 14px;
    font-weight: 400;
    opacity: 0.9;
}

/* ================= RESPONSIVE ================= */
/* Tablet / kleiner scherm */

@media (max-width: 900px) {

    .header-panel {
        flex-direction: column;
        height: 100vh;
        min-height: 100vh;
        height: 100dvh;
        min-height: 100dvh;
    }

    .header-left {
        padding: 30px;
        text-align: center;
        align-items: center;
        flex: 0 0 auto;
    }

    .header-left p {
        max-width: none;
    }

    .header-right {
        padding: 15px;
        flex: 1 1 auto;
        min-height: 0;
        display: flex;
        justify-content: center;
        align-items: flex-start;
        overflow: hidden;
    }

    .author-image-wrapper img {
        width: 100%;
        height: 100%;
        max-width: none;
        max-height: none;
        aspect-ratio: auto;
        object-fit: contain;
        object-position: center top;
    }

    .gallery-item {
        flex: 0 0 calc((100% - 10px) / 2);
    }
}

/* iPhone / mobiel */

@media (max-width: 600px) {

    /*
       Mobiel: de introductie staat gecentreerd. De bedrijfsgegevens
       en auteursfoto vormen daaronder samen één rij. De foto vult
       de volledige rechterhelft vanaf de middellijn.
    */
    .header {
        min-height: 100vh;
        min-height: 100dvh;
        align-items: flex-start;
    }

    .header-panel {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-areas:
            "title title"
            "intro intro"
            "details photo";
        column-gap: 0;
        row-gap: 0;
        width: 100%;
        height: auto;
        min-height: 100vh;
        min-height: 100dvh;
        padding: 20px 0;
        margin: 0;
        box-sizing: border-box;
        align-content: start;
        align-items: start;
    }

    .header-left {
        display: contents;
    }

    .header-left h2 {
        grid-area: title;
        margin: 0 0 20px;
        padding: 0 20px;
        box-sizing: border-box;
        text-align: center;
    }

    .header-intro {
        grid-area: intro;
        max-width: none;
        margin: 0 0 26px;
        padding: 0 20px;
        box-sizing: border-box;
        text-align: center;
    }

    .company-details {
        grid-area: details;
        max-width: none;
        margin: 0;
        padding: 0 12px 0 20px;
        box-sizing: border-box;
        font-size: 14px;
        line-height: 1.55;
        text-align: left;
        overflow-wrap: anywhere;
    }

    .header-right {
        grid-area: photo;
        width: 100%;
        min-width: 0;
        padding: 0;
        display: block;
        align-self: start;
        overflow: visible;
    }

    .author-image-wrapper {
        width: 100%;
        height: auto;
        min-height: 0;
        display: block;
    }

    .author-image-wrapper img {
        width: 100%;
        height: auto;
        max-width: none;
        max-height: none;
        object-fit: contain;
        object-position: center top;
    }

    .author-credit {
        padding: 5px;
        font-size: 10px;
    }

    .gallery {
        display: block;
        padding: 0;
    }

    .gallery-item {
        width: 100%;
        flex: none;
        margin-bottom: 10px;
    }

    .photo-layer {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 11;
    }

    .main-photo {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .publication-logo {
        left: 3%;
        bottom: 4%;
        width: clamp(42px, 13%, 52px);
        aspect-ratio: 1 / 1;
        height: auto;
        border-radius: 22%;
    }

    /*
       Op mobiel bestaat hover niet goed.
       Daarom blijft de titel altijd zichtbaar.
       De overlay ligt boven het logo, alsof het logo deel van de foto is.
    */
    .overlay {
        opacity: 1;
        justify-content: flex-end;
        align-items: flex-start;
        text-align: left;
        padding: 18px;

        background: linear-gradient(
            to top,
            rgba(0, 0, 0, 0.88) 0%,
            rgba(0, 0, 0, 0.72) 35%,
            rgba(0, 0, 0, 0.25) 70%,
            rgba(0, 0, 0, 0.05) 100%
        );
    }

    .overlay-date {
        font-size: 12px;
        margin-bottom: 6px;
        text-shadow: 0 2px 5px rgba(0, 0, 0, 0.9);
    }

    .overlay-title {
        font-size: 17px;
        line-height: 1.35;
        margin-bottom: 6px;
        max-width: 100%;
        text-shadow: 0 2px 5px rgba(0, 0, 0, 0.9);
    }

    .overlay-subtitle {
        font-size: 13px;
        opacity: 0.95;
        text-shadow: 0 2px 5px rgba(0, 0, 0, 0.9);
    }
}

@media (max-width: 480px) {

    .header-panel {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 0;
        padding: 18px 0;
    }

    .header-left h2,
    .header-intro {
        padding-right: 18px;
        padding-left: 18px;
    }

    .company-details {
        padding-right: 10px;
        padding-left: 18px;
    }

    .header-left h2 {
        font-size: 26px;
    }

    .company-details {
        font-size: 13.5px;
    }

    .gallery-item {
        width: 100%;
        margin-bottom: 8px;
    }

    .overlay-title {
        font-size: 16px;
    }

    .overlay-subtitle {
        font-size: 13px;
    }
}