/* ============================================================
   Videos – Familie van Beers 2026
   /videos page: two carousels (Ja / Nee) + fullscreen video player.
   BEM convention: .videos__element--modifier
   rem units: 1rem = 10px (html font-size: 62.5%)
   ============================================================ */

/* ── Design tokens ─────────────────────────────────────────── */
:root {
    --v-primary:              #874e00;
    --v-primary-container:    #ff9800;
    --v-on-primary-container: #4a2800;
    --v-background:           #f6f6f6;
    --v-surface-low:          #f0f1f1;
    --v-surface-container:    #e7e8e8;
    --v-surface-highest:      #dbdddd;
    --v-on-surface:           #2d2f2f;
    --v-on-surface-variant:   #5a5c5c;
    --v-white:                #ffffff;

    --v-font-headline: 'Plus Jakarta Sans', sans-serif;
    --v-font-body:     'Be Vietnam Pro', sans-serif;

    --v-radius:    1.6rem;
    --v-radius-lg: 3.2rem;

    --v-shadow-card: 0 0.2rem 2.4rem rgba(0, 0, 0, 0.04);
    --v-shadow-nav:  0 -0.8rem 3.2rem rgba(0, 0, 0, 0.05);
}

/* ── Base ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    font-size: 62.5%;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--v-font-body);
    font-size: 1.6rem;
    color: var(--v-on-surface);
    background-color: var(--v-background);
    min-height: 100dvh;
    overscroll-behavior-y: none;
    -webkit-tap-highlight-color: transparent;
}

h1, h2, h3 {
    font-family: var(--v-font-headline);
    line-height: 1.15;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

.material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
    font-weight: normal;
    font-style: normal;
    font-size: 2.4rem;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    direction: ltr;
    vertical-align: middle;
    -webkit-font-smoothing: antialiased;
    font-feature-settings: 'liga';
    user-select: none;
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* ── Root block ─────────────────────────────────────────────── */
.videos {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

/* ── Header ─────────────────────────────────────────────────── */
.videos__header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: 6.4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2.0rem;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(1.6rem);
    -webkit-backdrop-filter: blur(1.6rem);
    box-shadow: 0 0.1rem 0 rgba(0, 0, 0, 0.06),
                0 0.4rem 3.2rem rgba(135, 78, 0, 0.05);
}

.videos__headerback {
    width: 4.0rem;
    height: 4.0rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--v-on-surface);
    flex-shrink: 0;
}

@media (hover: hover) and (pointer: fine) {
    .videos__headerback:hover {
        background: var(--v-surface-container);
    }
}

.videos__headertitle {
    font-family: var(--v-font-headline);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--v-on-surface);
    letter-spacing: -0.02em;
    flex: 1;
    text-align: center;
}

.videos__headerspacer {
    width: 4.0rem;
    flex-shrink: 0;
}

/* ── Main content ───────────────────────────────────────────── */
.videos__main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3.2rem;
    padding: 8.8rem 0 4.0rem; /* top accounts for fixed header */
}

/* ── Empty state ────────────────────────────────────────────── */
.videos__empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.6rem;
    padding: 4.0rem 2.4rem;
    color: var(--v-on-surface-variant);
    text-align: center;
    font-size: 1.5rem;
}

.videos__emptyicon {
    font-size: 4.8rem;
    color: var(--v-surface-highest);
}

/* ── Gallery section ────────────────────────────────────────── */
.videos__gallery {
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
    padding: 0 2.0rem 0.8rem;
}

.videos__galleryheading {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-family: var(--v-font-headline);
    font-size: 2.0rem;
    font-weight: 800;
    color: var(--v-on-surface);
    letter-spacing: -0.02em;
}

.videos__galleryicon {
    font-size: 2.4rem;
}

/* ── Carousel wrapper ───────────────────────────────────────── */
.videos__gallerycarousel {
    position: relative;
    border-radius: var(--v-radius);
    overflow: hidden;
    box-shadow: var(--v-shadow-card);
    background: var(--v-surface-container);
    user-select: none;
    touch-action: pan-y;
}

/* Sliding track */
.videos__gallerytrack {
    display: flex;
    gap: 1.2rem;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

/* Each slide: 2 visible on mobile */
.videos__galleryslide {
    flex: 0 0 calc(50% - 0.6rem);
    min-width: 0;
    margin: 0;
    cursor: pointer;
}

/* 3 visible on wider screens */
@media (min-width: 600px) {
    .videos__galleryslide {
        flex: 0 0 calc(33.333% - 0.8rem);
    }
}

/* ── Video thumbnail ────────────────────────────────────────── */
.videos__videothumb {
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 16;
    background: #111;
    overflow: hidden;
}

.videos__thumbvideo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

/* Play icon overlay */
.videos__playoverlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.25);
    transition: background 0.15s ease;
}

@media (hover: hover) and (pointer: fine) {
    .videos__galleryslide:hover .videos__playoverlay {
        background: rgba(0, 0, 0, 0.40);
    }
}

.videos__playicon {
    font-size: 5.6rem;
    color: rgba(255, 200, 120, 0.95);
    filter: drop-shadow(0 0.2rem 1.2rem rgba(0, 0, 0, 0.6));
}

/* ── Caption ────────────────────────────────────────────────── */
.videos__gallerycaption {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 1.0rem;
    font-family: var(--v-font-body);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--v-on-surface-variant);
    background: var(--v-white);
    line-height: 1.3;
    min-height: 5.4rem;
}

.videos__gallerycaption span:last-child {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.videos__gallerycaptionicon {
    font-size: 1.6rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
    color: var(--v-primary);
}

/* ── Prev / next arrow buttons ──────────────────────────────── */
.videos__galleryprev,
.videos__gallerynext {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 4.0rem;
    height: 4.0rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(0.8rem);
    -webkit-backdrop-filter: blur(0.8rem);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--v-on-surface);
    box-shadow: 0 0.2rem 1.2rem rgba(0, 0, 0, 0.18);
    transition: opacity 0.15s ease;
}

.videos__galleryprev { left: 1.2rem; }
.videos__gallerynext { right: 1.2rem; }

.videos__galleryprev:disabled,
.videos__gallerynext:disabled {
    opacity: 0.3;
    cursor: default;
}

@media (hover: hover) and (pointer: fine) {
    .videos__galleryprev:not(:disabled):hover,
    .videos__gallerynext:not(:disabled):hover {
        transform: translateY(-50%) scale(1.1);
    }
}

.videos__galleryprev .material-symbols-outlined,
.videos__gallerynext .material-symbols-outlined {
    font-size: 2.4rem;
}

/* ── Photo counter ──────────────────────────────────────────── */
.videos__gallerycounter {
    position: absolute;
    bottom: 1.2rem;
    right: 1.2rem;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(0.4rem);
    -webkit-backdrop-filter: blur(0.4rem);
    color: #fff;
    font-family: var(--v-font-headline);
    font-size: 1.2rem;
    font-weight: 700;
    padding: 0.4rem 1.0rem;
    border-radius: 10rem;
    pointer-events: none;
}

/* ── Video lightbox (fullscreen overlay) ────────────────────── */
.videos__videolightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.videos__videolightbox--visible {
    opacity: 1;
    pointer-events: all;
}

.videos__videolightboxclose {
    position: absolute;
    top: 1.6rem;
    right: 1.6rem;
    z-index: 10;
    width: 4.8rem;
    height: 4.8rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: background 0.15s ease;
}

@media (hover: hover) and (pointer: fine) {
    .videos__videolightboxclose:hover {
        background: rgba(255, 255, 255, 0.32);
    }
}

.videos__videolightboxclose .material-symbols-outlined {
    font-size: 2.8rem;
}

.videos__videoplayer {
    width: 100%;
    height: 100%;
    max-width: 100vw;
    max-height: 100dvh;
    object-fit: contain;
    display: block;
}
