/*
Theme Name: NIDV Wereld
Theme URI: https://www.nederlanders-in-den-vreemde.org/
Author: Habsburg Digital for Nederlanders in den Vreemde
Description: Block theme for Nederlanders in den Vreemde: a world magazine. Dutch first, English second, phone first. Built new; no code from the old site.
Version: 1.0.9
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nidv-wereld
*/
a{text-underline-offset:.18em}
.nidv-masthead .wp-block-site-title a{text-decoration:none}
.nidv-nav a{text-decoration:none;text-transform:uppercase;letter-spacing:.07em;font-weight:600}
.nidv-nav a:hover{color:var(--wp--preset--color--saffraan-donker)}
.nidv-kicker{font-family:var(--wp--preset--font-family--ui);font-size:.75rem;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--wp--preset--color--saffraan-donker)}
.nidv-mozaiek{display:flex;flex-wrap:wrap;gap:8px}
.nidv-mozaiek figure{position:relative;margin:0;flex:1 1 200px;height:340px}
.nidv-mozaiek figure img{width:100%;height:100%;object-fit:cover;border-radius:4px}
.nidv-mozaiek figcaption{position:absolute;left:10px;bottom:10px;margin:0;background:rgba(10,43,44,.82);color:#F3EDE2;font-family:var(--wp--preset--font-family--ui);font-size:13px;padding:6px 10px;border-radius:999px}
.nidv-mozaiek .nidv-credit{position:static;background:none;color:inherit;padding:0}
.nidv-klokken{display:flex;flex-wrap:wrap;gap:8px 32px;align-items:center;font-family:var(--wp--preset--font-family--ui);font-size:14px}
.nidv-klokken b{font-variant-numeric:tabular-nums}
.nidv-route{display:flex;flex-direction:column;gap:8px;background:var(--wp--preset--color--papier);padding:24px;text-decoration:none;height:100%;box-sizing:border-box}
.nidv-wegwijzer{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:2px;background:var(--wp--preset--color--lijn);border:2px solid var(--wp--preset--color--lijn);border-radius:6px;overflow:hidden}
.nidv-route .nr{font-family:var(--wp--preset--font-family--kop);font-size:44px;font-weight:800;line-height:1;color:var(--wp--preset--color--saffraan)}
.nidv-route .t{font-family:var(--wp--preset--font-family--kop);font-size:22px;font-weight:600;color:var(--wp--preset--color--zee)}
.nidv-route .d{font-family:var(--wp--preset--font-family--ui);font-size:15px;color:var(--wp--preset--color--grijs)}
.nidv-stempel{outline:2px dashed var(--wp--preset--color--lijn);outline-offset:-10px}
.nidv-nummer .wp-block-post-template{counter-reset:n}
.nidv-nummer .wp-block-post{counter-increment:n;display:flex;gap:16px}
.nidv-nummer .wp-block-post::before{content:counter(n);font-family:var(--wp--preset--font-family--kop);font-size:34px;font-weight:800;color:var(--wp--preset--color--saffraan);line-height:1}
.wp-block-post-featured-image img{border-radius:4px}
.nidv-kaart{background:var(--wp--preset--color--papier);border:1px solid var(--wp--preset--color--lijn);border-radius:4px;overflow:hidden}
.nidv-taal a{text-decoration:none;font-weight:600}
.nidv-taal .huidig{color:var(--wp--preset--color--saffraan-donker)}
@media (max-width:781px){.nidv-mozaiek figure{height:180px;flex-basis:45%}.nidv-masthead .wp-block-site-title{font-size:2rem!important}}
.nidv-menu-lijst{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;justify-content:center;gap:.6rem 2rem}
.voetmenu .nidv-menu-lijst{justify-content:flex-end;gap:.5rem 1.5rem;font-size:.9rem}
.voetmenu a{text-decoration:none}
.nidv-ondertitel{margin:0;font-style:italic;color:var(--wp--preset--color--grijs);text-align:center}
.nidv-taal{display:flex;gap:1rem}
.nidv-masthead .wp-block-site-logo img{mix-blend-mode:multiply}
/* 1.0.1: home sections */
.nidv-sectie{margin-top:clamp(40px,6vw,80px)!important}
.nidv-mozaiek{display:grid!important;grid-template-columns:repeat(4,1fr);grid-auto-rows:220px;gap:8px}
.nidv-mozaiek>figure,.nidv-mozaiek .wp-block-image{height:auto!important;margin:0!important;position:relative}
.nidv-mozaiek>figure:nth-child(1),.nidv-mozaiek>figure:nth-child(6){grid-column:span 2}
.nidv-fotocredit{font-family:var(--wp--preset--font-family--ui);font-size:12px;color:var(--wp--preset--color--grijs);margin-top:8px!important}
.nidv-kopje{font-size:1.1rem!important;text-transform:uppercase;letter-spacing:.08em;border-bottom:2px solid var(--wp--preset--color--zee);padding-bottom:8px}
.nidv-nummer .wp-block-post{padding:14px 0;border-bottom:1px solid var(--wp--preset--color--lijn)}
.nidv-nummer .wp-block-post-title{margin:0}
.nidv-hoofdverhaal .wp-block-post-title a,.nidv-nummer .wp-block-post-title a{text-decoration:none}
.nidv-band{margin-top:clamp(40px,6vw,80px)!important;padding:22px 24px}
.nidv-band-donker{background:var(--wp--preset--color--zee);color:var(--wp--preset--color--zand)}
.nidv-band-donker .nidv-klokken{justify-content:center}
.nidv-tijdlijn{list-style:none;margin:16px 0;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:24px;border-top:2px solid var(--wp--preset--color--zee)}
.nidv-tijdlijn li{padding-top:16px;position:relative}
.nidv-tijdlijn li::before{content:"";position:absolute;top:-8px;left:0;width:14px;height:14px;border-radius:50%;background:var(--wp--preset--color--saffraan)}
.nidv-tijdlijn .j{display:block;font-family:var(--wp--preset--font-family--kop);font-size:40px;font-weight:800;color:var(--wp--preset--color--zee);line-height:1.1}
.nidv-tijdlijn .w{font-family:var(--wp--preset--font-family--ui);font-size:15px;color:var(--wp--preset--color--grijs)}
.nidv-kaart{padding:24px}
.nidv-ansicht{background:var(--wp--preset--color--papier);transform:rotate(-1.2deg);box-shadow:0 8px 24px rgba(10,43,44,.12)}
.nidv-route:hover .t{color:var(--wp--preset--color--saffraan-donker)}
@media (max-width:781px){.nidv-mozaiek{grid-template-columns:repeat(2,1fr);grid-auto-rows:150px}.nidv-mozaiek>figure:nth-child(1),.nidv-mozaiek>figure:nth-child(6){grid-column:span 2}.nidv-ansicht{transform:none}}
/* 1.0.5: layout for every screen */
/* Story photo under the title: as wide as the text, never taller than most of the screen. */
.nidv-kopbeeld{max-width:1080px;margin-left:auto!important;margin-right:auto!important}
.nidv-kopbeeld img{width:100%;max-height:min(56vh,520px);object-fit:cover}
/* Photos inside the text never taller than the screen. */
.entry-content .wp-block-image img,.wp-block-post-content .wp-block-image img{max-height:80vh;width:auto;max-width:100%;object-fit:contain}
/* Tablets and phones: side photos go full width under the text instead of squeezing it. */
@media (max-width:781px){
 .wp-block-post-content .alignright,.wp-block-post-content .alignleft{float:none!important;margin:1.25rem auto!important;max-width:100%}
 .wp-block-post-content .alignright img,.wp-block-post-content .alignleft img{width:100%;height:auto}
 .nidv-menu-lijst{gap:.35rem 1.1rem;font-size:.85rem}
 .nidv-kopbeeld img{max-height:42vh}
 h1.wp-block-post-title{font-size:clamp(1.9rem,8vw,2.6rem)!important}
}
/* Very wide screens: a touch more air, same reading width. */
@media (min-width:1700px){:root{--wp--style--global--wide-size:1360px}}
.wp-block-post-content .nidv-mozaiek .wp-block-image img{width:100%;height:100%;max-height:none;object-fit:cover}
/* 1.0.6: menu keeps one line on laptops; compact header on phones */
.nidv-nav .nidv-menu-lijst{font-size:clamp(.8rem,.45rem + .75vw,1rem);gap:.5rem clamp(.9rem,2.2vw,2.2rem)}
@media (max-width:600px){
 .nidv-topbalk{justify-content:flex-end!important;padding-bottom:.3rem!important}
 .nidv-topbalk>*:not(.nidv-taal){display:none}
 .nidv-kop{flex-direction:row!important;align-items:center!important;justify-content:center!important;gap:.6rem!important;padding-top:.6rem!important;flex-wrap:wrap}
 .nidv-kop .wp-block-site-logo img{width:40px!important;height:auto}
 .nidv-kop .wp-block-site-title{font-size:clamp(1.3rem,6.2vw,1.9rem)!important;text-align:left!important}
 .nidv-kop .nidv-ondertitel{flex-basis:100%;font-size:.85rem;margin-top:.1rem!important}
 .nidv-nav{margin-top:.6rem!important;padding-top:.45rem!important;padding-bottom:.45rem!important}
 .nidv-nav>.nidv-menu{min-width:0;max-width:100%;overflow-x:auto;scrollbar-width:none;-webkit-mask-image:linear-gradient(90deg,#000 85%,transparent);mask-image:linear-gradient(90deg,#000 85%,transparent)}
 .nidv-nav>.nidv-menu::-webkit-scrollbar{display:none}
 .nidv-nav .nidv-menu-lijst{flex-wrap:nowrap;justify-content:flex-start;white-space:nowrap;gap:1.1rem;font-size:.85rem;padding-right:2rem}
 main.wp-block-group{padding-top:1.25rem!important}
}
.wp-block-post-content>.nidv-sectie:first-child,.wp-block-post-content>.wp-block-group:first-child{margin-top:0!important}
@media (max-width:600px){.nidv-kop .wp-block-site-title{flex:0 1 auto;width:auto!important}.nidv-kop>.wp-block-site-logo{flex:0 0 auto}}
/* 1.0.8: side photos never squeeze the text, whatever file they point at */
.wp-block-post-content .wp-block-image.alignright,.wp-block-post-content .wp-block-image.alignleft{max-width:min(40%,360px);display:block}
.wp-block-post-content .wp-block-image.alignright img,.wp-block-post-content .wp-block-image.alignleft img{width:100%;height:auto;max-height:none}
.wp-block-post-content .wp-block-image.alignright{margin-left:2rem}
.wp-block-post-content .wp-block-image.alignleft{margin-right:2rem}
@media (max-width:781px){.wp-block-post-content .wp-block-image.alignright,.wp-block-post-content .wp-block-image.alignleft{max-width:100%!important;margin-left:0!important;margin-right:0!important}}
.wp-block-post-content .wp-block-image.alignright>figcaption,.wp-block-post-content .wp-block-image.alignleft>figcaption{display:block;caption-side:initial;text-align:center}
