/* NEVARINO · TRAVEL HISTORY · standalone, scoped styles */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Kalam:wght@400;700&family=Playfair+Display:wght@500;600;700&display=swap');

/* WordPress layout reset: same structure as the working Eva History page. */
body.nv-travel-history .wp-block-post-title { display:none; }
body.nv-travel-history .wp-site-blocks { overflow-x:clip; }
body.nv-travel-history .wp-site-blocks > main,
body.nv-travel-history .wp-site-blocks > main > .wp-block-group,
body.nv-travel-history .wp-site-blocks > .wp-block-group:has(.nv-travel-history),
body.nv-travel-history .wp-block-post-content,
body.nv-travel-history .entry-content {
  margin:0!important;
  padding:0!important;
}
body.nv-travel-history .wp-site-blocks > footer { margin-top:0!important; }
body.nv-travel-history .wp-block-post-content > .nv-travel-history {
  position:relative;
  left:50%;
  width:100vw;
  max-width:100vw;
  margin:0 0 0 -50vw!important;
}

.nv-travel-history {
  --th-forest:#153f37; --th-paper:#f6f0e7; --th-sage:#d8e7df;
  --th-terracotta:#d6a18c; --th-rust:#c46b4e;
  background:var(--th-paper); color:var(--th-forest);
  font-family:'DM Sans',Arial,sans-serif; overflow:visible;
}
.nv-travel-history *, .nv-travel-history *::before,.nv-travel-history *::after {box-sizing:border-box;}
.nv-travel-history .nv-th-wrap {width:min(100% - 64px,1120px); margin-inline:auto;}
.nv-travel-history h1,.nv-travel-history h2,.nv-travel-history h3 {
  font-family:'Playfair Display',Georgia,serif; color:inherit; font-weight:600;
  line-height:1.12; letter-spacing:-.045em;
}
.nv-travel-history p {margin-top:0;}
.nv-travel-history .nv-th-eyebrow,.nv-travel-history .nv-th-index,.nv-travel-history .nv-th-year,
.nv-travel-history .nv-th-location,.nv-travel-history .nv-th-gallery-heading > span {
  font-size:11px; font-weight:700; letter-spacing:.22em;
}

/* Compact introduction */
.nv-travel-history .nv-th-hero {
  background-color:var(--th-forest); color:var(--th-paper); padding:72px 0 64px;
  background-image:repeating-radial-gradient(ellipse at 85% 15%,transparent 0 42px,#f6f0e70b 43px 44px,transparent 45px 64px);
}
.nv-travel-history .nv-th-hero-inner {max-width:1120px;}
.nv-travel-history .nv-th-hero .nv-th-eyebrow {color:var(--th-sage); margin-bottom:14px;}
.nv-travel-history .nv-th-hero h1 {font-size:clamp(43px,5.6vw,78px); margin:0 0 19px; max-width:800px;}
.nv-travel-history .nv-th-dot {color:var(--th-rust);}
.nv-travel-history .nv-th-lead {font:400 clamp(20px,2.4vw,27px)/1.4 'Kalam',cursive; margin:0 0 12px;}
.nv-travel-history .nv-th-intro {font-size:15px; line-height:1.75; max-width:620px; opacity:.9;}
.nv-travel-history .nv-th-hero-foot {display:flex; gap:24px; flex-wrap:wrap; margin-top:36px; padding-top:17px; border-top:1px solid #f6f0e733; font-size:10px; letter-spacing:.17em; font-weight:700;}
.nv-travel-history .nv-th-hero-foot span:last-child {margin-left:auto;}

/* Journey blocks */
.nv-travel-history .nv-th-trip {position:relative; padding:67px 0 62px; background:var(--th-paper);}
.nv-travel-history .nv-th-trip:nth-child(even) {background:var(--th-sage);}
.nv-travel-history #nv-trip-4 {background:#F0DFD1;}
.nv-travel-history .nv-th-trip:nth-child(3n) {background:#d6a18c;}
.nv-travel-history .nv-th-trip::before {
  content:""; position:absolute; left:0; top:-14px; width:100%; height:18px; z-index:2; pointer-events:none;
  background:inherit;
  clip-path:polygon(0 42%,5% 65%,11% 34%,17% 61%,24% 37%,31% 66%,39% 33%,46% 63%,54% 35%,62% 65%,70% 38%,78% 62%,86% 36%,94% 64%,100% 40%,100% 100%,0 100%);
}
.nv-travel-history .nv-th-trip-top {display:flex; justify-content:space-between; align-items:center; gap:12px; margin-bottom:23px; opacity:.8;}
.nv-travel-history .nv-th-trip-grid {display:grid; grid-template-columns:1.07fr .93fr; gap:76px; align-items:center;}
.nv-travel-history .nv-th-trip--reverse .nv-th-photo-stack {order:2;}
.nv-travel-history .nv-th-trip--reverse .nv-th-trip-copy {order:1;}
.nv-travel-history .nv-th-trip-copy {max-width:475px;}
.nv-travel-history .nv-th-location {display:flex; align-items:center; gap:12px; margin-bottom:11px;}
.nv-travel-history .nv-th-animal {font-size:20px; letter-spacing:0;}
.nv-travel-history .nv-th-trip-copy h2 {font-size:clamp(33px,3.4vw,53px); margin:8px 0 19px;}
.nv-travel-history .nv-th-summary {font-size:15px; line-height:1.75; margin-bottom:22px;}
.nv-travel-history .nv-th-handwritten {font:400 23px/1.4 'Kalam',cursive; color:var(--th-forest); transform:rotate(-3deg); margin-bottom:23px;}
.nv-travel-history .nv-th-skip {color:var(--th-forest); font-size:12px; font-weight:700; letter-spacing:.04em;}

/* 1 large + 2 small photo placeholders, ready for real images */
.nv-travel-history .nv-th-photo-stack {display:grid; grid-template-columns:1.65fr 1fr; grid-template-rows:repeat(2,170px); gap:13px; min-width:0;}
.nv-travel-history .nv-th-photo {position:relative; display:grid; place-items:center; min-width:0; overflow:hidden; background:#e3d8c9; border:9px solid #fffdf8; box-shadow:0 11px 27px #183d3323; transform:rotate(1.5deg);}
.nv-travel-history .nv-th-photo--main {grid-row:span 2; transform:rotate(-2deg);}
.nv-travel-history .nv-th-photo--small-a {transform:rotate(4deg);}
.nv-travel-history .nv-th-photo--small-b {transform:rotate(-3deg);}
.nv-travel-history .nv-th-photo span {text-align:center; font-size:10px; font-weight:700; letter-spacing:.12em; color:#153f3799; line-height:1.8;}
.nv-travel-history .nv-th-photo small {font-size:9px;}
.nv-travel-history .nv-th-photo img {display:block; width:100%; height:100%; object-fit:cover;}
.nv-travel-history .nv-th-photo:has(img) {background:#fffdf8;}

/* Native accessible expand/collapse; no JavaScript required */
.nv-travel-history .nv-th-details {margin-top:36px; border-top:1px solid #153f3733;}
.nv-travel-history .nv-th-details > summary {list-style:none; cursor:pointer; display:flex; align-items:center; justify-content:space-between; gap:15px; padding:19px 0; font-size:13px; font-weight:700;}
.nv-travel-history .nv-th-details > summary::-webkit-details-marker {display:none;}
.nv-travel-history .nv-th-details > summary:focus-visible,.nv-travel-history .nv-th-skip:focus-visible {outline:3px solid var(--th-rust); outline-offset:4px;}
.nv-travel-history .nv-th-details-symbol {font-size:27px; font-weight:400; line-height:1; transition:transform .2s ease;}
.nv-travel-history .nv-th-details[open] .nv-th-details-symbol {transform:rotate(45deg);}
.nv-travel-history .nv-th-details-inner {padding:13px 0 6px;}
.nv-travel-history .nv-th-story {max-width:780px; margin:0 auto 44px;}
.nv-travel-history .nv-th-story .nv-th-eyebrow {margin-bottom:18px; color:var(--th-forest);}
.nv-travel-history .nv-th-story > p:not(.nv-th-eyebrow) {font-size:15px; line-height:1.85; margin:0 0 17px;}
.nv-travel-history .nv-th-gallery-heading {display:flex; align-items:baseline; justify-content:space-between; gap:15px; margin-bottom:19px;}
.nv-travel-history .nv-th-gallery-heading h3 {font-size:clamp(25px,3vw,35px); margin:0;}
.nv-travel-history .nv-th-gallery {display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px;}
.nv-travel-history .nv-th-gallery-placeholder {aspect-ratio:4/3; background:#e3d8c9; display:grid; place-items:center; border:5px solid #fffdf8; box-shadow:0 5px 13px #183d331b;}
.nv-travel-history .nv-th-gallery-placeholder span {font-size:10px; font-weight:700; letter-spacing:.12em; opacity:.65;}
.nv-travel-history .nv-th-gallery a {display:block; aspect-ratio:4/3; overflow:hidden; border:5px solid #fffdf8; box-shadow:0 5px 13px #183d331b;}
.nv-travel-history .nv-th-gallery a img {display:block; width:100%; height:100%; object-fit:cover; transition:transform .2s ease;}
.nv-travel-history .nv-th-gallery a:hover img {transform:scale(1.05);}
.nv-travel-history .nv-th-gallery-note {font-size:11px; margin:15px 0 0; opacity:.65;}

/* Closing */
.nv-travel-history .nv-th-outro {text-align:center; background:var(--th-forest); color:var(--th-paper); padding:65px 0 70px;}
.nv-travel-history .nv-th-outro .nv-th-eyebrow {color:var(--th-sage);}
.nv-travel-history .nv-th-outro h2 {font-size:clamp(35px,4vw,56px); margin:8px 0 12px;}
.nv-travel-history .nv-th-outro p:last-child {font:400 23px 'Kalam',cursive; margin:0;}

@media(max-width:850px) {
 .nv-travel-history .nv-th-wrap {width:min(100% - 42px,650px);}
 .nv-travel-history .nv-th-trip-grid {grid-template-columns:1fr; gap:32px;}
 .nv-travel-history .nv-th-trip--reverse .nv-th-photo-stack,.nv-travel-history .nv-th-trip--reverse .nv-th-trip-copy {order:initial;}
 .nv-travel-history .nv-th-trip-copy {max-width:none;}
 .nv-travel-history .nv-th-trip {padding:55px 0 48px;}
 .nv-travel-history .nv-th-photo-stack {grid-template-rows:repeat(2,155px);}
 .nv-travel-history .nv-th-gallery {grid-template-columns:repeat(3,minmax(0,1fr));}
}
@media(max-width:480px) {
 .nv-travel-history .nv-th-wrap {width:calc(100% - 36px);}
 .nv-travel-history .nv-th-hero {padding:49px 0 45px;}
 .nv-travel-history .nv-th-hero-foot {gap:12px;}
 .nv-travel-history .nv-th-hero-foot span:last-child {margin-left:0;}
 .nv-travel-history .nv-th-photo-stack {grid-template-rows:repeat(2,115px); gap:8px;}
 .nv-travel-history .nv-th-photo {border-width:6px;}
 .nv-travel-history .nv-th-trip-copy h2 {font-size:clamp(33px,9vw,43px);}
 .nv-travel-history .nv-th-summary,.nv-travel-history .nv-th-story > p:not(.nv-th-eyebrow) {font-size:14px;}
 .nv-travel-history .nv-th-gallery {grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px;}
 .nv-travel-history .nv-th-gallery-heading {align-items:start; flex-direction:column;}
}
@media(prefers-reduced-motion:reduce) {
 .nv-travel-history .nv-th-details-symbol,.nv-travel-history .nv-th-gallery a img {transition:none;}
}

/* Remove inherited block spacing immediately around the injected page. */
body.nv-travel-history .wp-block-post-content > .nv-travel-history { margin-block:0!important; }

/* Geen focuskader na klikken op de uitklapknop */
.nv-travel-history summary:focus:not(:focus-visible) {
    outline: none;
    box-shadow: none;
}
