/* In Blauw Licht - Page Styles */

:root {
    --ibl-bg: #2d3a4a;
    --ibl-bg-dark: #1a242f;
    --ibl-bg-light: #3d4a5a;
    --ibl-accent: #4a6fa5;
    --ibl-text: #ffffff;
    --ibl-text-muted: #a0aab8;
}


.ibl-page {
    background: #f0f0f0;
    color: #1a1a1a;
    height: 100vh;
    overflow: hidden;
    margin: 0;
    padding: 0;
    position: relative;
}


.ibl-page .horizontal-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 2rem;
    z-index: 100;
    background: transparent;
}

.ibl-page .horizontal-nav > div {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.ibl-page .back-link {
    color: #1a1a1a;
    opacity: 0.7;
    font-size: 0.85rem;
    transition: opacity 0.3s ease;
}

.ibl-page .back-link:hover {
    opacity: 1;
}

.ibl-page .nav-title {
    color: #1a1a1a;
    font-family: 'Scala Sans SC', sans-serif;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Horizontal Scroll Container */
.ibl-page .horizontal-scroll-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    overflow-x: auto;
    overflow-y: hidden;
    z-index: 2;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.ibl-page .horizontal-scroll-container::-webkit-scrollbar {
    display: none;
}

.ibl-page .horizontal-scroll-content {
    display: flex;
    align-items: flex-start;
    height: 100vh;
    gap: 0;
    padding: 0;
    margin: 0;
    background: #f0f0f0;
}

/* Police stripe pattern - animated */
.ibl-stripes-red,
.ibl-stripes-blue {
    position: fixed;
    left: -50vw;
    width: 200vw;
    pointer-events: none;
    z-index: 1;
    opacity: 1;
}

/* Red starts above screen */
.ibl-stripes-red {
    transform: translateX(-15vw) translateY(-50vh);
}

/* Blue starts below screen */
.ibl-stripes-blue {
    transform: translateX(-15vw) translateY(50vh);
}

/* 4 red stripes - top half, moving up */
.ibl-stripes-red {
    top: 0;
    height: 50vh;
    background: linear-gradient(
        -65deg,
        transparent 0%,
        transparent 30%,
        rgba(200, 30, 30, 0.15) 30%,
        rgba(200, 30, 30, 0.15) 34%,
        transparent 34%,
        transparent 40%,
        rgba(200, 30, 30, 0.15) 40%,
        rgba(200, 30, 30, 0.15) 44%,
        transparent 44%,
        transparent 50%,
        rgba(200, 30, 30, 0.15) 50%,
        rgba(200, 30, 30, 0.15) 54%,
        transparent 54%,
        transparent 60%,
        rgba(200, 30, 30, 0.15) 60%,
        rgba(200, 30, 30, 0.15) 64%,
        transparent 64%,
        transparent 100%
    );
}

/* 5 blue stripes - bottom half, moving down */
.ibl-stripes-blue {
    bottom: 0;
    height: 50vh;
    background: linear-gradient(
        -65deg,
        transparent 0%,
        transparent 28%,
        rgba(30, 60, 180, 0.15) 28%,
        rgba(30, 60, 180, 0.15) 32%,
        transparent 32%,
        transparent 37%,
        rgba(30, 60, 180, 0.15) 37%,
        rgba(30, 60, 180, 0.15) 41%,
        transparent 41%,
        transparent 46%,
        rgba(30, 60, 180, 0.15) 46%,
        rgba(30, 60, 180, 0.15) 50%,
        transparent 50%,
        transparent 55%,
        rgba(30, 60, 180, 0.15) 55%,
        rgba(30, 60, 180, 0.15) 59%,
        transparent 59%,
        transparent 64%,
        rgba(30, 60, 180, 0.15) 64%,
        rgba(30, 60, 180, 0.15) 68%,
        transparent 68%,
        transparent 100%
    );
}

/* Hero Section - 45vw photo + 55vw panel, against left edge */
.ibl-hero {
    min-width: 100vw;
    height: 100vh;
    position: relative;
    display: flex;
    align-items: stretch;
    z-index: 2;
    justify-content: flex-start;
    padding: 0;
    margin: 0;
    overflow: hidden;
}

.ibl-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 10vw;
    height: 100%;
    background: #0a0a0c;
    z-index: 1;
}

.ibl-page .ibl-hero .ibl-hero-image {
    position: absolute;
    top: 0;
    left: 10vw;
    width: 45vw;
    height: 100vh;
    max-width: none;
    object-fit: cover;
    object-position: center top;
    opacity: 0;
    transition: opacity 1.5s ease;
}

.ibl-page .ibl-hero .ibl-hero-image.loaded {
    opacity: 1;
    animation: heroZoom 12s ease-out 2s forwards;
}

@keyframes heroZoom {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.05);
    }
}

.ibl-hero-overlay {
    display: none;
}

/* Dark intro panel next to hero image */
.ibl-hero-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: 55vw;
    height: 100%;
    background: #0d1418;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 4rem 6rem 15vh 4rem;
    transition: opacity 0.8s ease-out;
}

.ibl-hero-panel.faded {
    opacity: 0;
}


.ibl-hero-panel-content {
    max-width: 500px;
}

.ibl-hero-panel-text {
    font-family: 'Scala Sans', sans-serif;
    font-size: 1rem;
    line-height: 2.2;
    color: var(--ibl-text);
    opacity: 0.9;
}

.ibl-hero-panel-text p {
    margin-bottom: 1.5rem;
}

.ibl-highlight-red {
    color: #c83232;
}

.ibl-hero-panel-text p:last-child {
    margin-bottom: 0;
}

.ibl-hero-content {
    position: absolute;
    z-index: 10;
    text-align: right;
    right: 57vw;
    bottom: 15vh;
}

.ibl-hero-subtitle {
    font-family: 'Scala Sans', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--ibl-text-muted);
    margin-bottom: 0.5rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease 0.5s forwards;
}

.ibl-hero-title {
    font-family: 'Scala Sans SC', sans-serif;
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    line-height: 1.1;
    margin: 0;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease 0.7s forwards, blueLightText 18s ease-in-out 3s infinite;
    /* Text with animated light */
    background: linear-gradient(
        90deg,
        var(--ibl-text) 0%,
        var(--ibl-text) 40%,
        #4a7fd4 50%,
        var(--ibl-text) 60%,
        var(--ibl-text) 100%
    );
    background-size: 300% 100%;
    background-position: 100% 0;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

@keyframes blueLightText {
    0% {
        background-position: 300% 0;
    }
    35% {
        background-position: -200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.ibl-hero-title span {
    display: block;
}

/* Intro Section with text */
.ibl-intro {
    min-width: 45vw;
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 4rem 6rem;
    background: var(--ibl-bg);
}

.ibl-intro-content {
    max-width: 500px;
}

.ibl-intro-title {
    font-family: 'Scala Sans SC', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    line-height: 1.1;
    color: var(--ibl-text);
    margin: 0 0 1rem 0;
}

.ibl-intro-title span {
    display: block;
}

.ibl-intro-subtitle {
    font-family: 'Scala Sans', sans-serif;
    font-size: 0.9rem;
    color: var(--ibl-text-muted);
    margin-bottom: 2rem;
    letter-spacing: 0.05em;
}

.ibl-intro-text {
    font-family: 'Scala Sans', sans-serif;
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--ibl-text);
    opacity: 0.9;
}

.ibl-intro-text p {
    margin-bottom: 1.5rem;
}

.ibl-intro-text p:last-child {
    margin-bottom: 0;
}

/* Photo Blocks */
.ibl-photo-block {
    min-width: auto;
    height: 100vh;
    display: flex;
    position: relative;
    z-index: 2;
    align-items: center;
    justify-content: center;
    padding: 12rem;
    position: relative;
}

.ibl-photo-block .photo-wrapper {
    position: relative;
    height: 60vh;
}

.ibl-photo-block img.photo {
    height: 60vh;
    width: auto;
    max-width: 90vw;
    object-fit: contain;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.ibl-photo-block img.photo.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* Photo sizes - all same height except full */
.ibl-photo-block.size-full .photo-wrapper {
    height: 90vh;
}

.ibl-photo-block.size-full img.photo {
    height: 90vh;
    max-width: none;
}

.ibl-photo-block.size-full {
    align-items: center;
}

/* Insert blocks - large photo with blue background and caption beside */
.ibl-insert {
    min-width: 100vw;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    padding: 4rem 8rem;
    background: #1a3a5c;
    position: relative;
    z-index: 2;
    box-sizing: border-box;
    transition: background 0.5s ease-out;
}

.ibl-insert .photo-wrapper {
    height: 85vh;
    flex-shrink: 0;
    overflow: hidden;
}

.ibl-insert img.photo {
    height: 85vh;
    width: auto;
    max-width: none;
    transform: scale(1);
    transition: transform 12s ease-out;
}

.ibl-insert.in-view img.photo {
    transform: scale(1.05);
}

.ibl-insert .ibl-insert-caption {
    max-width: 450px;
    color: #f0f0f0;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.ibl-insert.in-view .ibl-insert-caption {
    opacity: 1;
    transform: translateY(0);
}

.ibl-insert.caption-faded {
    background: transparent;
}

.ibl-insert.caption-faded .ibl-insert-caption {
    opacity: 0 !important;
    transform: translateY(0);
}

.ibl-insert .ibl-insert-caption-header {
    font-family: 'Scala Sans SC', sans-serif;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.2rem;
    color: #ffffff;
}

.ibl-insert .ibl-insert-caption-text {
    font-family: 'Scala Sans', sans-serif;
    font-size: 1.2rem;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.85);
}

/* Photo with light background panel - now transparent for animated gradient */
.ibl-photo-block.with-panel {
    background: transparent;
}

/* Toggle all captions button */
.ibl-toggle-all-btn {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    padding: 0.75rem 1.25rem;
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    color: #1a1a1a;
    font-family: 'Scala Sans', sans-serif;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 100;
    backdrop-filter: blur(5px);
    opacity: 0;
    pointer-events: none;
}

.ibl-toggle-all-btn.visible {
    opacity: 1;
    pointer-events: auto;
}

.ibl-toggle-all-btn:hover {
    background: rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.3);
}

.ibl-toggle-all-btn.active {
    background: #1a1a1a;
    color: #ffffff;
}

/* Info button */
.ibl-info-btn {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    cursor: pointer;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1rem;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0.7;
    z-index: 20;
}

.ibl-info-btn:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* Caption styling */
.ibl-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(26, 36, 47, 0.9);
    padding: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.ibl-photo-block.info-active .ibl-caption {
    opacity: 1;
    visibility: visible;
}

.ibl-caption-header {
    font-family: 'Scala Sans SC', sans-serif;
    font-size: 0.9rem;
    color: var(--ibl-text);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.ibl-caption-text {
    font-family: 'Scala Sans', sans-serif;
    font-size: 0.85rem;
    color: var(--ibl-text-muted);
    line-height: 1.5;
}

/* Double photo block */
.ibl-double-block {
    min-width: auto;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    padding: 3rem;
}

.ibl-double-block .photo-wrapper {
    position: relative;
    height: 70vh;
}

.ibl-double-block img.photo {
    height: 70vh;
    width: auto;
    object-fit: contain;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.ibl-double-block img.photo.loaded {
    opacity: 1;
    transform: translateY(0);
}

.ibl-double-block .photo-wrapper:nth-child(2) img.photo {
    transition-delay: 0.15s;
}

/* Quote Panel */
.ibl-quote-panel {
    min-width: 40vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem;
    background: var(--ibl-bg-dark);
    text-align: center;
}

.ibl-quote-text {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    line-height: 1.6;
    color: var(--ibl-text);
    max-width: 600px;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.ibl-quote-author {
    font-family: 'Scala Sans', sans-serif;
    font-size: 0.85rem;
    color: var(--ibl-text-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* Scroll indicator */
.ibl-scroll-hint {
    position: absolute;
    bottom: 3rem;
    right: 3rem;
    font-size: 2rem;
    color: var(--ibl-text);
    opacity: 0.5;
    animation: pulseRight 2s ease-in-out infinite;
}

/* Animations */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulseRight {
    0%, 100% {
        transform: translateX(0);
        opacity: 0.5;
    }
    50% {
        transform: translateX(10px);
        opacity: 0.8;
    }
}

/* Responsive */

/* Large screens (> 1400px) */
@media (min-width: 1401px) {
    .ibl-hero-panel {
        align-items: flex-end;
        justify-content: flex-start;
        padding-bottom: 15vh;
    }

    .ibl-hero-panel-content {
        max-width: 550px;
    }

    .ibl-hero-panel-text {
        font-size: 1.5rem;
        line-height: 2.2;
    }

    .ibl-hero-panel-text p {
        margin-bottom: 2.5rem;
    }
}

@media (max-width: 1200px) {
    .ibl-intro {
        min-width: 50vw;
        padding: 3rem 4rem;
    }

    .ibl-photo-block {
        padding: 8rem;
    }
}

@media (max-width: 1024px) {
    .ibl-photo-block .photo-wrapper,
    .ibl-photo-block img.photo,
    .ibl-double-block .photo-wrapper,
    .ibl-double-block img.photo {
        height: 50vh;
    }

    .ibl-photo-block.size-full .photo-wrapper,
    .ibl-photo-block.size-full img.photo {
        height: 80vh;
    }

    .ibl-photo-block {
        padding: 6rem;
    }

    .ibl-hero-panel {
        justify-content: center;
        align-items: center;
        padding: 4rem;
    }
}

@media (max-width: 767px) {
    /* Basis layout - verticaal scrollen */
    .ibl-page {
        height: auto !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
    }

    .ibl-page .horizontal-scroll-container {
        position: relative !important;
        overflow-x: hidden !important;
        overflow-y: visible !important;
        height: auto !important;
    }

    .ibl-page .horizontal-scroll-content {
        flex-direction: column;
        height: auto;
        padding: 0;
        gap: 0;
        background: #ffffff;
    }

    /* Navigatie */
    .ibl-page .horizontal-nav {
        padding: 1rem 1.5rem !important;
        background: linear-gradient(to bottom, rgba(10, 10, 12, 0.9) 0%, transparent 100%);
    }

    .ibl-page .back-link {
        color: #ffffff !important;
        opacity: 0.7;
    }

    .ibl-page .nav-title {
        color: #ffffff !important;
        font-size: 0.95rem;
    }

    /* Politiestrepen verbergen op mobiel - te complex voor verticale scroll */
    .ibl-stripes-red,
    .ibl-stripes-blue {
        display: none !important;
    }

    /* Toggle button verbergen op mobiel */
    .ibl-toggle-all-btn {
        display: none !important;
    }

    /* Hero sectie - verticaal */
    .ibl-hero {
        min-width: 100% !important;
        width: 100%;
        height: auto !important;
        min-height: 100svh;
        flex-direction: column;
        position: relative;
    }

    .ibl-hero::before {
        display: none;
    }

    .ibl-page .ibl-hero .ibl-hero-image {
        position: relative !important;
        left: 0 !important;
        width: 100% !important;
        height: 70svh !important;
        object-position: center center;
    }

    .ibl-hero-content {
        position: absolute;
        left: 1.5rem !important;
        right: auto !important;
        bottom: auto !important;
        top: 70svh !important;
        transform: translateY(-100%);
        text-align: left;
        padding-bottom: 1.5rem;
    }

    .ibl-hero-subtitle {
        font-size: 0.7rem;
        margin-bottom: 0.25rem;
    }

    .ibl-hero-title {
        font-size: 3.2rem;
    }

    .ibl-hero-panel {
        position: relative !important;
        width: 100% !important;
        height: auto !important;
        padding: 2rem 1.5rem 3rem 1.5rem !important;
    }

    .ibl-hero-panel-content {
        max-width: 100%;
    }

    .ibl-hero-panel-text {
        font-size: 0.9rem;
        line-height: 1.8;
    }

    /* Foto blokken */
    .ibl-photo-block {
        min-width: 100% !important;
        width: 100%;
        height: auto !important;
        padding: 2rem 0 !important;
        background: #ffffff;
        display: flex;
        justify-content: center;
    }

    .ibl-photo-block .photo-wrapper {
        height: auto !important;
        width: 95vw;
    }

    .ibl-photo-block img.photo {
        height: auto !important;
        width: 100% !important;
        max-width: 100%;
    }

    .ibl-photo-block.size-full .photo-wrapper,
    .ibl-photo-block.size-full img.photo {
        height: auto !important;
        width: 100% !important;
    }

    /* Info button en caption - subtieler */
    .ibl-info-btn {
        bottom: 0.5rem;
        right: 0.5rem;
        width: 24px;
        height: 24px;
        font-size: 0.75rem;
        opacity: 0.5;
    }

    .ibl-caption {
        padding: 0.75rem;
        background: rgba(0, 0, 0, 0.6);
    }

    .ibl-caption-header {
        font-size: 0.65rem;
        margin-bottom: 0.25rem;
    }

    .ibl-caption-text {
        font-size: 0.6rem;
        line-height: 1.4;
    }

    /* Double photo block */
    .ibl-double-block {
        flex-direction: column;
        min-width: 100% !important;
        width: 100%;
        height: auto !important;
        gap: 1rem;
        padding: 2rem 0 !important;
        background: #ffffff;
        align-items: center;
    }

    .ibl-double-block .photo-wrapper {
        height: auto !important;
        width: 95vw;
    }

    .ibl-double-block img.photo {
        height: auto !important;
        width: 100%;
    }

    /* Quote panel */
    .ibl-quote-panel {
        min-width: 100% !important;
        width: 100%;
        height: auto !important;
        padding: 4rem 1.5rem !important;
    }

    .ibl-quote-text {
        font-size: 1.1rem;
    }

    /* Intro sectie */
    .ibl-intro {
        min-width: 100% !important;
        width: 100%;
        height: auto !important;
        padding: 3rem 1.5rem !important;
    }

    /* End panel */
    .ibl-page .end-panel {
        min-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-height: 60svh;
        padding: 3rem 1.5rem !important;
    }

    /* Scroll hint verbergen */
    .ibl-scroll-hint {
        display: none;
    }

    /* Insert secties - blauwe achtergrond, foto + caption verticaal */
    .ibl-insert {
        min-width: 100% !important;
        width: 100%;
        height: auto !important;
        flex-direction: column !important;
        gap: 0 !important;
        padding: 2rem 0 0 0 !important;
        background: #1a3a5c !important;
    }

    .ibl-insert .photo-wrapper {
        height: auto !important;
        width: 100%;
    }

    .ibl-insert img.photo {
        height: auto !important;
        width: 100% !important;
    }

    .ibl-insert .ibl-insert-caption {
        max-width: 100% !important;
        padding: 1.5rem;
        opacity: 1 !important;
        transform: none !important;
    }

    .ibl-insert .ibl-insert-caption-header {
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
    }

    .ibl-insert .ibl-insert-caption-text {
        font-size: 0.9rem;
        line-height: 1.7;
    }
}
