/*
Theme Name: StadsTV Bergh
Theme URI: https://www.stadstvbergh.nl/
Author: StadsTV Bergh website reconstruction
Description: Modern Gutenberg blokthema voor een lokale video- en nieuwsorganisatie. Versie 2, met bewerkbare templates en patronen. Geen historische exacte kopie.
Version: 5.4.0
Requires at least: 6.3
Tested up to: 6.7
Requires PHP: 7.4
Text Domain: stadstv-bergh-basis
*/
:root{--stv-navy:#142f46;--stv-red:#c83d42;--stv-ink:#243748;--stv-muted:#5e7281;--stv-soft:#f2f6f8}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0}a{text-underline-offset:3px}a:hover{opacity:.88}.wp-site-blocks{min-height:100vh}.stv-topline{border-top:5px solid var(--stv-red)}.stv-header{box-shadow:0 2px 12px #142f4612}.stv-header .wp-block-site-title a{text-decoration:none}.stv-header .wp-block-navigation a{text-decoration:none;font-weight:600}.stv-hero{background:linear-gradient(115deg,#142f46,#24516a);color:white;padding:90px 24px 86px;position:relative;overflow:hidden}.stv-hero:after{content:"";position:absolute;width:380px;height:380px;border:65px solid #ffffff0a;border-radius:50%;right:-120px;top:-170px;pointer-events:none}.stv-hero h1,.stv-hero h2,.stv-hero p{color:white}.stv-eyebrow{text-transform:uppercase;letter-spacing:.16em;font-size:.82rem;font-weight:700;color:#e8b8b9}.stv-hero .stv-eyebrow{color:#f3b5b7}.stv-hero h1{font-size:clamp(2.7rem,6vw,5.3rem);line-height:1.08;margin:.25em 0}.stv-hero p{font-size:1.18rem;max-width:660px}.stv-section{padding:64px 24px}.stv-section-soft{background:var(--stv-soft)}.stv-section h2{font-size:clamp(1.65rem,3vw,2.3rem);margin-top:0}.stv-card{background:white;border:1px solid #dde7eb;border-radius:14px;padding:25px;box-shadow:0 6px 22px #142f4608;height:100%}.stv-card h3{margin-top:.25rem}.stv-kicker{font-size:.8rem;letter-spacing:.11em;text-transform:uppercase;color:var(--stv-red);font-weight:700}.stv-button .wp-block-button__link{background:var(--stv-red);color:white;border-radius:7px;padding:13px 22px;font-weight:700}.stv-button-outline .wp-block-button__link{background:transparent;border:1px solid #fff;color:white}.stv-footer{background:var(--stv-navy);color:#e4edf1;padding:45px 24px}.stv-footer h2,.stv-footer h3,.stv-footer a,.stv-footer p{color:#e4edf1}.stv-footer a:hover{color:white}.stv-page-title{background:var(--stv-soft);padding:54px 24px}.stv-content{padding:48px 24px 76px}.stv-post-card{border:1px solid #dce5ea;border-radius:12px;overflow:hidden;background:#fff;padding-bottom:20px}.stv-post-card .wp-block-post-title,.stv-post-card .wp-block-post-excerpt,.stv-post-card .wp-block-post-date{padding:0 20px}.stv-post-card .wp-block-post-featured-image{margin-top:0}.stv-post-card .wp-block-post-title{font-size:1.2rem}.stv-post-card .wp-block-post-title a{text-decoration:none}.stv-note{border-left:4px solid var(--stv-red);padding:12px 18px;background:#fff6f6;color:#65464a}.stv-video-placeholder{background:#dbe5eb;border-radius:12px;min-height:210px;display:flex;align-items:center;justify-content:center}.stv-video-placeholder p{color:#37546a}.wp-block-query-pagination{margin-top:32px}@media(max-width:700px){.stv-hero{padding:60px 20px}.stv-section{padding:44px 20px}.stv-footer{padding:35px 20px}.stv-page-title{padding:38px 20px}}

.stv-header .wp-block-site-logo img{width:86px!important;height:auto!important;max-height:92px;object-fit:contain}.stv-header .wp-block-site-title{font-size:clamp(1.1rem,2vw,1.7rem)}.stv-header .wp-block-site-logo{margin-right:12px}

/* StadsTV 3.0 */
.stv-hero{background:radial-gradient(circle at 92% 12%,#36657b 0,#1e4862 28%,transparent 45%),linear-gradient(120deg,#102b41,#214c63);padding:105px 24px 105px}.stv-hero h1{letter-spacing:-.035em}.stv-hero .wp-block-buttons{margin-top:32px}.stv-hero .wp-block-button__link{transition:transform .2s}.stv-hero .wp-block-button__link:hover{transform:translateY(-2px)}.stv-section{padding-top:80px;padding-bottom:80px}.stv-section .stv-kicker{letter-spacing:.17em}.stv-feature-intro{font-size:1.15rem;color:#506675;max-width:740px}.stv-feature-strip{background:#fff;border-bottom:1px solid #e5ecf0;padding:22px}.stv-feature-strip p{margin:0;text-align:center;font-weight:600;color:#214358}.stv-feature-strip a{color:#bf3035}.stv-home-videos .stvyt-grid{margin-top:25px}.stv-home-videos .stvyt-card{box-shadow:0 10px 28px #0d30400c}.stv-home-videos .stvyt-card:hover{transform:translateY(-3px);transition:transform .2s}.stv-home-cta{background:#142f46;color:#fff;border-radius:20px;padding:38px}.stv-home-cta h2,.stv-home-cta p,.stv-home-cta a{color:#fff}.stv-home-cta a{font-weight:700}.stv-section .wp-block-group.alignwide{max-width:1120px}.stv-header .wp-block-site-logo img{object-fit:contain} @media(max-width:700px){.stv-hero{padding:70px 20px}.stv-home-cta{padding:25px}}

/* StadsTV 4 — editorial refresh */
:root{--stv-navy:#10283d;--stv-red:#e43b3f;--stv-cream:#f6f7f7}html{scroll-behavior:smooth}body{background:#fff;color:#243748}a:focus-visible,button:focus-visible,input:focus-visible{outline:3px solid #e43b3f;outline-offset:3px}.stv-header{position:sticky;top:0;z-index:100;box-shadow:0 3px 20px #081b2c26;border-bottom:3px solid #e43b3f}.admin-bar .stv-header{top:32px}.stv-header .wp-block-site-logo img{width:78px;height:auto}.stv-header .wp-block-site-title{font-weight:850;letter-spacing:-.035em}.stv-header .wp-block-navigation a:hover{text-decoration:underline;text-decoration-color:#ef4747;text-underline-offset:8px}.stv-hero{background:radial-gradient(circle at 85% 25%,#315b73 0%,transparent 35%),linear-gradient(115deg,#0c2336,#183d56);color:white;min-height:470px;display:flex;align-items:center;padding:70px 24px;position:relative;overflow:hidden}.stv-hero:after{content:'▶';position:absolute;right:4%;top:10%;font-size:clamp(200px,25vw,460px);opacity:.045;pointer-events:none}.stv-hero h1{color:white;font-size:clamp(42px,6vw,84px);max-width:850px;letter-spacing:-.055em;line-height:1.05}.stv-hero p{max-width:720px;font-size:clamp(17px,2vw,22px);color:#e5eef4}.stv-eyebrow,.stv-kicker{text-transform:uppercase;letter-spacing:.16em;font-weight:800;color:#e43b3f}.stv-hero .stv-eyebrow{color:#ffaaaa}.stv-hero .wp-block-button__link,.stv-home-cta .wp-block-button__link{background:#e43b3f!important;color:#fff!important;border-radius:8px!important}.stv-hero .stv-button-outline .wp-block-button__link{background:transparent!important;border:1px solid white}.stv-section{padding:74px 24px}.stv-section-soft{background:#f1f5f7}.stv-section h2{font-size:clamp(30px,4vw,46px);letter-spacing:-.035em}.stv-feature-strip{background:#e9eff2;padding:16px 24px;text-align:center;font-weight:650}.stv-feature-strip p{margin:0}.stv-home-videos{background:#fff}.stvyt-grid{gap:24px!important}.stvyt-card{border:0!important;border-radius:16px!important;box-shadow:0 8px 28px #10283d18!important;transition:transform .2s,box-shadow .2s}.stvyt-card:hover{transform:translateY(-5px);box-shadow:0 14px 32px #10283d29!important}.stvyt-card-body h3{font-size:20px!important}.stvyt-play-icon{border-radius:14px!important}.stv-card{height:100%;border:1px solid #dce6ec;border-radius:18px;padding:28px!important;box-shadow:0 8px 20px #0c23360a}.stv-home-cta{background:#10283d;color:white;padding:45px!important;border-radius:22px}.stv-home-cta h2{color:white}.stv-home-cta a{color:#fff}.stv-archive-search{background:#edf3f6;border-radius:16px;padding:24px}.stv-archive-search form{display:flex;gap:12px;flex-wrap:wrap}.stv-archive-search input{flex:1;min-width:220px;padding:16px;border:1px solid #b8cad6;border-radius:9px;font-size:17px}.stv-archive-search button{background:#e43b3f;color:white;border:0;border-radius:9px;padding:14px 25px;cursor:pointer;font-weight:700}.stv-history a{font-weight:750}.stv-footer{margin-top:0!important}@media(max-width:780px){.admin-bar .stv-header{top:46px}.stv-header .wp-block-site-title{font-size:23px!important}.stv-hero{min-height:360px;padding:55px 20px}.stv-section{padding:45px 18px}}

/* Montferland-kernen: interactieve, horizontaal scrollbare galerij. */
.stv-kernen{padding:65px max(20px,calc((100vw - 1180px)/2));background:#101f30;color:#fff;overflow:hidden}.stv-kernen-heading{max-width:780px;margin-bottom:30px}.stv-kernen h2{color:#fff;font-size:clamp(2rem,4vw,3.2rem);margin:8px 0}.stv-kernen-heading p{color:#d1dce7}.stv-kernen-track{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(215px,26%);gap:17px;overflow-x:auto;scroll-snap-type:x mandatory;padding:0 0 20px;scrollbar-color:#cc474b #263b50}.stv-kern{display:block;position:relative;aspect-ratio:3/4;max-height:330px;min-height:240px;border-radius:16px;overflow:hidden;scroll-snap-align:start;background:linear-gradient(145deg,#28536b,#183044);color:#fff!important;text-decoration:none;isolation:isolate;transition:transform .2s ease}.stv-kern:hover,.stv-kern:focus-visible{transform:translateY(-5px)}.stv-kern img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .35s ease}.stv-kern:hover img{transform:scale(1.045)}.stv-kern:after{content:"";position:absolute;inset:35% 0 0;background:linear-gradient(transparent,#071523d9);pointer-events:none}.stv-kern-label{position:absolute;bottom:20px;left:20px;right:20px;z-index:2;font-size:1.35rem;font-weight:800;display:flex;justify-content:space-between;align-items:center}.stv-kern-arrow{font-size:1.2rem}.stv-kern-empty{display:grid;place-items:center;width:100%;height:100%;font-size:7rem;color:#ffffff23;font-weight:900}.stv-kernen-foot{margin-top:12px;font-size:.88rem}.stv-kernen-foot a{color:#dce8f3}.stv-credits{max-width:900px;margin:auto;padding:30px 18px}.stv-credits li{margin:12px 0}@media(max-width:750px){.stv-kernen{padding:48px 20px}.stv-kernen-track{grid-auto-columns:minmax(205px,75%)}}

.stv-kern img{width:100%;height:100%;object-fit:cover;display:block}.stv-kern{position:relative;overflow:hidden}.stv-kern-label{z-index:2}

/* 4.4: 12-kernen fotocollage achter de bestaande voorpagina-hero.
   Werkt ook wanneer Gutenberg de voorpagina als aangepaste template bewaart. */
.stv-hero{isolation:isolate;min-height:510px;background:#10283d!important;position:relative!important;overflow:hidden!important}
.stv-hero::after{display:none!important}
.stv-hero .stv-hero-montage{position:absolute!important;inset:0!important;z-index:-2!important;display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;grid-template-rows:repeat(2,minmax(0,1fr))!important;gap:3px!important;max-width:none!important;width:100%!important;height:100%!important;margin:0!important;overflow:hidden!important;pointer-events:none!important}
.stv-hero .stv-hero-montage img{display:block!important;width:100%!important;height:100%!important;min-width:0!important;min-height:0!important;object-fit:cover!important;filter:saturate(.8)}
.stv-hero::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:linear-gradient(90deg,rgba(5,23,38,.88) 0%,rgba(8,31,49,.78) 48%,rgba(6,25,43,.65) 100%)}
.stv-hero > .wp-block-group,.stv-hero > .wp-block-group.alignwide{position:relative;z-index:1}
.stv-hero h1,.stv-hero p,.stv-hero .stv-eyebrow{position:relative;text-shadow:0 2px 10px #061827a8}
/* De galerij-shortcode blijft bruikbaar, zonder de eerdere zeer smalle kolommen. */
.stv-kernen{width:100%!important;max-width:none!important;min-width:0!important;box-sizing:border-box!important;padding:50px clamp(20px,5vw,90px)!important}
.stv-kernen-heading{width:100%!important;max-width:780px!important;margin:0 0 26px!important;display:block!important}
.stv-kernen-heading h2,.stv-kernen-heading p,.stv-kernen-heading .stv-kicker{width:100%!important;max-width:780px!important;white-space:normal!important;overflow-wrap:normal!important;word-break:normal!important}
.stv-kernen-track{width:100%!important;max-width:100%!important;display:grid!important;grid-auto-flow:column!important;grid-auto-columns:minmax(200px,24%)!important;overflow-x:auto!important}
.stv-kernen-foot{width:100%!important;max-width:none!important}
@media(max-width:800px){.stv-hero{min-height:430px}.stv-hero .stv-hero-montage{grid-template-columns:repeat(4,minmax(0,1fr))!important;grid-template-rows:repeat(3,minmax(0,1fr))!important}.stv-kernen-track{grid-auto-columns:minmax(190px,75%)!important}}
@media(max-width:480px){.stv-hero{min-height:460px}.stv-hero .stv-hero-montage{grid-template-columns:repeat(3,minmax(0,1fr))!important;grid-template-rows:repeat(4,minmax(0,1fr))!important}.stv-hero::before{background:rgba(5,22,37,.78)}}

/* v4.5 — full-resolution hero carousel; no crop of the stored media file. */
.stv-hero{isolation:isolate!important;position:relative!important;overflow:hidden!important;background:#10283d!important}
.stv-hero>.stv-hero-carousel{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;max-width:none!important;margin:0!important;z-index:-2!important;pointer-events:none!important}
.stv-hero-slides,.stv-hero-slide{position:absolute!important;inset:0!important;width:100%!important;height:100%!important}
.stv-hero-slide{opacity:0;transition:opacity 1.2s ease-in-out;visibility:hidden}
.stv-hero-slide.is-active{opacity:1;visibility:visible}
.stv-hero-slide img{width:100%!important;height:100%!important;display:block!important;object-fit:cover!important;object-position:var(--stv-focus-x,50%) var(--stv-focus-y,50%)!important;max-width:none!important;filter:saturate(.92)}
.stv-hero::before{z-index:-1!important;background:linear-gradient(90deg,rgba(3,17,30,.82),rgba(3,21,36,.62) 55%,rgba(3,19,33,.48))!important}
.stv-hero>.stv-hero-carousel .stv-hero-carousel-controls{position:absolute;right:clamp(16px,4vw,64px);bottom:20px;z-index:5;display:flex;align-items:center;gap:8px;pointer-events:auto!important;background:rgba(5,23,38,.75);border-radius:24px;padding:6px 10px;color:white;font:600 13px system-ui,sans-serif}
.stv-hero-carousel-controls button{background:transparent;border:1px solid #ffffff70;color:#fff;border-radius:50%;width:32px;height:32px;cursor:pointer;font-size:16px}
.stv-hero-carousel-controls button:hover,.stv-hero-carousel-controls button:focus-visible{background:#e43b3f}
.stv-hero-current{min-width:85px;text-align:center;white-space:nowrap}
.stv-hero>.wp-block-group{position:relative;z-index:1}
@media(max-width:600px){.stv-hero>.stv-hero-carousel .stv-hero-carousel-controls{right:12px;bottom:8px}.stv-hero{padding-bottom:80px!important}}
@media(prefers-reduced-motion:reduce){.stv-hero-slide{transition:none}}

/* v4.6: echte enkele foto als achtergrond, niet achter de dekkende hero-kleur. */
.stv-hero{position:relative!important;isolation:isolate!important;overflow:hidden!important;background:#10283d!important}
.stv-hero>.stv-hero-carousel{position:absolute!important;inset:0!important;z-index:0!important;display:block!important;width:100%!important;height:100%!important;pointer-events:none!important}
.stv-hero>.stv-hero-carousel .stv-hero-slides,.stv-hero>.stv-hero-carousel .stv-hero-slide{position:absolute!important;inset:0!important;width:100%!important;height:100%!important}
.stv-hero>.stv-hero-carousel .stv-hero-slide{opacity:0!important;visibility:hidden!important;transition:opacity 1s ease-in-out!important}
.stv-hero>.stv-hero-carousel .stv-hero-slide.is-active{opacity:1!important;visibility:visible!important}
.stv-hero>.stv-hero-carousel .stv-hero-slide img{width:100%!important;height:100%!important;object-fit:cover!important;object-position:var(--stv-focus-x,50%) var(--stv-focus-y,50%)!important}
.stv-hero::before{content:""!important;position:absolute!important;inset:0!important;z-index:1!important;background:linear-gradient(90deg,rgba(4,21,36,.84),rgba(4,22,39,.60) 62%,rgba(4,22,39,.42))!important;pointer-events:none!important}
.stv-hero>.wp-block-group,.stv-hero>.wp-block-group.alignwide{position:relative!important;z-index:2!important}
.stv-hero>.stv-hero-carousel .stv-hero-carousel-controls{position:absolute!important;z-index:3!important;pointer-events:auto!important}
@media(prefers-reduced-motion:reduce){.stv-hero>.stv-hero-carousel .stv-hero-slide{transition:none!important}}

/* v4.7: robust stacking for saved Gutenberg front-page templates. */
.stv-hero{position:relative!important;isolation:isolate!important;overflow:hidden!important;background-color:#10283d!important}
.stv-hero>.stv-hero-carousel{position:absolute!important;inset:0!important;z-index:0!important;width:100%!important;height:100%!important;max-width:none!important;margin:0!important;pointer-events:none!important}
.stv-hero>.stv-hero-carousel .stv-hero-slides{position:absolute!important;inset:0!important;width:100%!important;height:100%!important}
.stv-hero>.stv-hero-carousel .stv-hero-slide{position:absolute!important;inset:0!important;opacity:0!important;visibility:hidden!important;transition:opacity 1s ease-in-out!important}
.stv-hero>.stv-hero-carousel .stv-hero-slide.is-active{opacity:1!important;visibility:visible!important}
.stv-hero>.stv-hero-carousel .stv-hero-slide img{display:block!important;width:100%!important;height:100%!important;max-width:none!important;object-fit:cover!important;object-position:var(--stv-focus-x,50%) var(--stv-focus-y,50%)!important}
.stv-hero::before{z-index:1!important;pointer-events:none!important;background:linear-gradient(90deg,rgba(4,21,36,.76),rgba(4,22,39,.48) 65%,rgba(4,22,39,.3))!important}
.stv-hero>.wp-block-group,.stv-hero>.wp-block-group.alignwide{position:relative!important;z-index:2!important}
.stv-hero>.stv-hero-carousel .stv-hero-carousel-controls{position:absolute!important;z-index:4!important;pointer-events:auto!important}

/* v4.8 – bronvermelding per actieve achtergrondfoto */
.stv-hero>.stv-hero-carousel .stv-hero-credit{position:absolute!important;left:clamp(14px,3vw,45px);bottom:16px;z-index:8!important;pointer-events:auto!important;font:13px system-ui,sans-serif;color:#fff}
.stv-hero-credit-toggle{background:rgba(5,23,38,.82);border:1px solid #ffffff75;border-radius:20px;color:white;padding:8px 13px;cursor:pointer}
.stv-hero-credit-details{position:absolute;bottom:calc(100% + 8px);left:0;width:max-content;max-width:min(360px,85vw);padding:13px 16px;border-radius:9px;background:rgba(5,23,38,.96);box-shadow:0 6px 24px #0005;color:#fff;line-height:1.6}
.stv-hero-credit-details:not([hidden]){display:flex;flex-direction:column;gap:3px}
.stv-hero-credit-details[hidden]{display:none!important}
.stv-hero-credit-details a{color:#bce6ff;text-decoration:underline}
@media(hover:hover){.stv-hero-credit:hover .stv-hero-credit-details{display:flex!important;flex-direction:column;gap:3px}}
@media(max-width:600px){.stv-hero>.stv-hero-carousel .stv-hero-credit{bottom:52px;left:12px}}

/* v4.9 footer layout and accessible search */
.stv-footer{width:100%;max-width:none!important;margin:0!important;padding:46px max(24px,calc((100vw - 1180px)/2)) 24px!important}
.stv-footer>.wp-block-columns{display:grid!important;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:clamp(30px,8vw,120px);align-items:start;width:100%;max-width:1180px;margin:0 auto 28px!important}
.stv-footer>.wp-block-columns>.wp-block-column{width:auto!important;flex-basis:auto!important;min-width:0}
.stv-footer h3{margin:0 0 14px!important;font-size:clamp(19px,2vw,24px)}
.stv-footer p{line-height:1.7;margin:0 0 12px!important;overflow-wrap:anywhere}
.stv-footer>.wp-block-separator{width:100%;max-width:1180px;margin:20px auto!important;opacity:.38}
.stv-footer>.stv-footer-bottom{max-width:1180px;margin:0 auto!important;text-align:center;font-size:.85rem}
.stv-footer .stv-anbi-link{display:inline-block;border:1px solid #e7eef4;border-radius:7px;padding:9px 15px;text-decoration:none;font-weight:750;margin-top:8px}
.stv-footer .stv-anbi-link:hover{background:#fff;color:#10283d}
.stv-header .stv-header-tools{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.stv-header .stv-search-form{display:flex;align-items:center;gap:5px;margin:0}
.stv-header .stv-search-form input[type=search]{width:clamp(125px,11vw,190px);max-width:100%;padding:8px 10px;border:1px solid #b4c9d5;border-radius:6px;background:#fff;color:#142f46;font-size:14px}
.stv-header .stv-search-form button{padding:8px 11px;background:#e43b3f;color:#fff;border:0;border-radius:6px;font-weight:750;cursor:pointer}
.stv-header .stv-header-anbi{display:inline-block;color:#fff!important;border:1px solid #fff9;padding:8px 11px;border-radius:6px;font-weight:750;text-decoration:none;white-space:nowrap;font-size:14px}
.stv-search-page{max-width:1180px;margin:0 auto;padding:40px 24px 70px}
.stv-search-page .stv-search-form{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:26px}
.stv-search-page input[type=search]{min-width:220px;flex:1;padding:13px;border:1px solid #b8cbd5;border-radius:8px}
.stv-search-page button{background:#e43b3f;color:#fff;border:0;border-radius:8px;padding:12px 20px;cursor:pointer}
.stv-search-results{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:20px}
.stv-search-result{border:1px solid #dce6ec;border-radius:12px;padding:20px;background:white}
.stv-search-result h2{font-size:1.2rem;margin:8px 0}.stv-search-result p{line-height:1.5}
@media(max-width:800px){.stv-footer>.wp-block-columns{grid-template-columns:1fr;gap:26px}.stv-header .stv-header-tools{width:100%;justify-content:flex-start}.stv-header .stv-search-form input[type=search]{width:min(50vw,240px)}}

/* v5.0 — videoarchief heeft dezelfde layout als alle overige pagina’s */
.stv-video-archive-title{background:#f2f6f8;padding:48px 24px 40px;margin:0!important}
.stv-video-archive-title-inner{max-width:1180px;margin:0 auto}
.stv-video-archive-title .stv-kicker{display:block;color:#c83d42;font-size:.8rem;font-weight:800;letter-spacing:.13em;text-transform:uppercase;margin-bottom:8px}
.stv-video-archive-title h1{margin:0 0 8px;color:#142f46;font-size:clamp(2rem,4vw,3rem);line-height:1.2}
.stv-video-archive-title p{margin:0;color:#415c6c;font-size:1.05rem}
.stv-video-archive-main{max-width:1180px;margin:0 auto;padding:42px 24px 75px}
.stv-video-archive-main .stvyt-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.stv-video-archive-main .stvyt-card{min-width:0;box-shadow:0 8px 24px rgba(11,37,56,.08);transition:transform .2s,box-shadow .2s}
.stv-video-archive-main .stvyt-card:hover{transform:translateY(-3px);box-shadow:0 12px 28px rgba(11,37,56,.14)}
.stv-video-archive-main .stvyt-card-body h3{font-size:1.1rem;line-height:1.35}
.stv-video-archive-main .stv-video-search{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:0 0 26px}
.stv-video-search input{flex:1;min-width:200px;max-width:520px;padding:12px 14px;border:1px solid #cbd9e2;border-radius:8px;font-size:1rem}
.stv-video-search button{background:#c83d42;color:white;border:0;border-radius:8px;padding:12px 19px;font-weight:700;cursor:pointer}
.stv-video-search button:hover{background:#a82e33}
.stv-video-archive-main .stvyt-archive{margin:0;padding:0;max-width:none}
@media(max-width:900px){.stv-video-archive-main .stvyt-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.stv-video-archive-main .stvyt-grid{grid-template-columns:1fr}.stv-video-archive-title{padding:32px 20px}.stv-video-archive-main{padding:28px 20px 50px}}

/* v5.1: contactpagina, tweekolomsindeling en consistente koptekst */
body.page .stv-contact-wrap{max-width:1120px!important;width:100%;display:grid;grid-template-columns:minmax(0,1.6fr) minmax(275px,1fr);gap:22px 38px;align-items:start;margin:0 auto 3rem!important}
body.page .stv-contact-intro,body.page .stv-contact-notice{grid-column:1/-1;margin:0}
body.page .stv-contact-form{grid-column:1;min-width:0}
body.page .stv-contact-aside{grid-column:2;grid-row:2;background:#102b43;color:#fff;border-radius:16px;padding:32px;box-shadow:0 10px 30px #102b4320}
body.page .stv-contact-aside h2,body.page .stv-contact-aside h3,body.page .stv-contact-aside p,body.page .stv-contact-aside a{color:#fff}
body.page .stv-contact-aside a{text-underline-offset:4px;overflow-wrap:anywhere}
body.page .stv-contact-aside .stv-aside-action{display:inline-block;background:#e43b3f;padding:12px 16px;border-radius:8px;text-decoration:none;font-weight:750;margin-top:10px}
body.page .stv-contact-aside .stv-aside-muted{color:#d6e5ec;font-size:.93rem}
.stv-contact-page-content{padding:45px 24px 70px!important}.stv-contact-page-content>.wp-block-post-content{max-width:1120px!important;margin:auto}
.stv-contact-header .wp-block-group.alignwide{max-width:1120px;width:100%;margin:auto}.stv-contact-header .stv-header-tools{width:100%;display:flex;justify-content:flex-end}.stv-contact-header .wp-block-site-logo img{width:78px;height:auto}
@media(max-width:780px){body.page .stv-contact-wrap{display:flex;flex-direction:column}body.page .stv-contact-form,body.page .stv-contact-aside{width:100%}.stv-contact-header .stv-header-tools{justify-content:flex-start}}


/* v5.2: one consistent header across Gutenberg pages and PHP video archive.
   Covers site-editor saved header variants as well as theme template parts. */
.stv-header, .stv-contact-header, header.wp-block-template-part .stv-header {
  background-color:#142f46!important;
  color:#fff!important;
}
.stv-header > .wp-block-group, .stv-contact-header > .wp-block-group {
  width:100%!important; max-width:1180px!important; margin-left:auto!important; margin-right:auto!important;
}
.stv-header .wp-block-group.alignwide, .stv-contact-header .wp-block-group.alignwide {
  width:100%!important;max-width:1120px!important;margin-left:auto!important;margin-right:auto!important;
}
.stv-header .wp-block-site-title, .stv-header .wp-block-site-title a,
.stv-contact-header .wp-block-site-title, .stv-contact-header .wp-block-site-title a,
.stv-header .wp-block-site-title a:visited, .stv-contact-header .wp-block-site-title a:visited {
  color:#fff!important;-webkit-text-fill-color:#fff!important;text-decoration:none!important;
  opacity:1!important;
}
.stv-header .wp-block-navigation, .stv-header .wp-block-navigation a,
.stv-header .wp-block-navigation-item__label,
.stv-contact-header .wp-block-navigation, .stv-contact-header .wp-block-navigation a,
.stv-contact-header .wp-block-navigation-item__label {color:#fff!important;-webkit-text-fill-color:#fff!important;}
.stv-header .wp-block-site-logo img,.stv-contact-header .wp-block-site-logo img {width:78px!important;height:auto!important;object-fit:contain!important;}
.stv-header .wp-block-site-title,.stv-contact-header .wp-block-site-title {font-size:clamp(22px,2vw,30px)!important;font-weight:850!important;line-height:1.2!important;margin:0!important;white-space:nowrap;}
.stv-header .wp-block-group:has(> .wp-block-site-logo) {display:flex!important;align-items:center!important;gap:16px!important;}
.stv-header .wp-block-navigation {margin-left:auto;}
/* Align video archive with the shared header content width. */
.stv-video-archive-title-inner,.stv-video-archive-main {width:100%!important;max-width:1120px!important;margin-left:auto!important;margin-right:auto!important;}
.stv-video-archive-title {padding-left:24px!important;padding-right:24px!important;}
.stv-video-archive-main {padding-left:24px!important;padding-right:24px!important;}
@media(max-width:800px){
 .stv-header .wp-block-site-title,.stv-contact-header .wp-block-site-title{white-space:normal;font-size:22px!important;}
 .stv-header .wp-block-group.alignwide,.stv-contact-header .wp-block-group.alignwide{gap:14px!important;}
 .stv-header .wp-block-navigation{margin-left:0;}
}

.stv-video-search-feedback{margin:0 0 22px;color:#18384f}.stv-video-search-feedback p{margin:0 0 7px}.stv-video-search-feedback a{color:#c82931;text-decoration:underline;font-weight:600}

/* v5.4 — leesbaar submenu in de Gutenberg navigatie, ook in de editor */
.stv-header .wp-block-navigation .wp-block-navigation__submenu-container,
.stv-header .wp-block-navigation .wp-block-navigation__submenu-container.wp-block-navigation-submenu {
  background-color:#142f46 !important;
  color:#fff !important;
  border:1px solid #456176 !important;
  border-radius:6px;
  min-width:225px;
  box-shadow:0 12px 24px rgba(0,0,0,.22);
  padding:6px 0;
  z-index:999;
}
.stv-header .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content,
.stv-header .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__label,
.stv-header .wp-block-navigation .wp-block-navigation__submenu-container a {
  color:#fff !important;
  background-color:transparent !important;
  text-decoration:none !important;
}
.stv-header .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
  display:block;
  padding:11px 16px;
}
.stv-header .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover,
.stv-header .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content:focus-visible {
  background-color:#25475e !important;
  color:#fff !important;
  text-decoration:underline !important;
  text-decoration-color:#e43b3f !important;
}
.stv-header .wp-block-navigation .wp-block-navigation__submenu-icon,
.stv-header .wp-block-navigation .wp-block-navigation__submenu-icon svg {color:#fff;stroke:currentColor;}
