/* The "private press" look (css/look-a.css). Remove this one line to go back to the old look. */
@import url("look-a.css?v=75e37efd");

/* site.css – shared stylesheet for sandernijdam.nl (Phase 2)
 * Loaded AFTER the existing stijlen.css of each page, so the per-section look
 * (colours, fonts, backgrounds of the trip reports) stays as it was.
 * Colours and fonts are CSS variables; a section can override them.
 */
:root {
	--bg: #E8D6CC;            /* page background (main site) */
	--accent: darkred;        /* headings */
	--link: darkblue;
	--text: #000;
	--menu-hover: #F9D98E;
	--font: "Book Antiqua", "Palatino Linotype", Palatino, "Century Schoolbook", serif;
	--caption-font: Verdana, Arial, Helvetica, sans-serif;
	--gap: 12px;
	--page-max: 1100px;
}

/* ===================== section themes (were stijlen.css per section) =====================
   Scoped with :where(.class) so they behave exactly like the old separate stylesheets. */

/* --- s-main  (was stijlen.css) --- */
body:where(.s-main) {color:black; font-size: 12pt; font-family: "Book Antiqua",
      Century Schoolbook, serif; font-weight:bold; word-spacing: 0.04em;}
:where(.s-main) H1 { color:darkred; font-size: 28pt; font-weight:bold;}
:where(.s-main) H2 { color:darkred; font-size: 18pt; padding-top:0; padding-bottom:0;}
:where(.s-main) H3 { color:darkred;font-size: 17pt;}
:where(.s-main) H4 { color:darkred; padding-top:0; font-size: 14pt;}
:where(.s-main) TD { color:black; font-size: 12pt; font-family: "Book Antiqua",
      Century Schoolbook, serif; font-weight:bold; word-spacing: 0.04em;}
:where(.s-main) A { color:darkblue; border: none}
:where(.s-main) LI {padding-bottom:4pt}
:where(.s-main) .rss-title {color:darkred}
:where(.s-main) .rss-items { margin-left: 1.3em;}
:where(.s-main) .rss-item {font-size: 11pt; padding-bottom:5pt;list-style-image: url(../images/newbullet.gif);}
:where(.s-main) .rss-date { font-size: 9pt}
:where(.s-main) .vlag { position: absolute; top: 65px;right: 10px;}
:where(.s-main) code { /*CSS for insructions*/color: red;}
:where(.s-main) .labelfield { /*CSS for label field in general*/color:brown;font-size: 90%;}
:where(.s-main) .datefield { /*CSS for date field in general*/color:gray;font-size: 90%;}

/* --- s-afrika  (was afrikareis/stijlen.css) --- */
body:where(.s-afrika) { color:black; font-family: GoudyOlSt BT, Book Antiqua, Serif; font-size: 18px;
      word-spacing: 0.04em;}
:where(.s-afrika) H1 { color:darkgreen; font-size: 28pt; font-weight:bold;}
:where(.s-afrika) H2 { color:darkgreen; font-size: 18pt; padding-top:0;}
:where(.s-afrika) H3 { color:darkgreen;font-size: 17pt;}
:where(.s-afrika) H4 { color:rgb(70,70,70); padding-top:0; font-size: 14pt;}
:where(.s-afrika) A { color:darkblue; border: none}
:where(.s-afrika) TD.normaal { color:darkblue; border: none; font-size: 11pt; font-family: Bookman Old Style;,
      Century Schoolbook, serif; font-weight:bold; word-spacing: 0.04em;}
:where(.s-afrika) UL { margin-left: 1.3em}
:where(.s-afrika) LI {padding-bottom:4pt;list-style-image: url(../afrikareis/bullet.gif);}
:where(.s-afrika) LI.a {padding-bottom:4pt;list-style-image: none}
:where(.s-afrika) IMG {border:none}
:where(.s-afrika) IMG.plaatje {float:right; width:240px; height:180px; border:none}
:where(.s-afrika) IMG.plaatjev {float:right; width:180px; height:240px; border:none}
:where(.s-afrika) IMG.icoon {border:none; margin:0; vertical-align:middle}
:where(.s-afrika) IMG.pano {border:none; width:700px; height:180px; margin:0; vertical-align:middle}
:where(.s-afrika) DIV.icoonfloat {position:absolute;width:196px;visibility:hidden;z-index:2;
               border:solid black 1px;background-color:#F4DABF;
               text-Align:center;font-size:18px;
               font-family: GoudyOlSt BT, Book Antiqua, Serif;
               padding-bottom: 5px; }

/* --- s-china  (was chinareis/stijlen.css) --- */
body:where(.s-china) { color:black; font-size: 11pt; font-family: "Book Antiqua",
      Century Schoolbook, serif; font-weight:bold; word-spacing: 0.04em;}
:where(.s-china) H1 { color:darkgreen; font-size: 28pt; font-weight:bold;}
:where(.s-china) H1.pagetitle { color:darkgreen; font-size: 28pt; font-weight:bold;}
:where(.s-china) pagetitle { color:darkgreen; font-size: 28pt; font-weight:bold;}
:where(.s-china) H2 { color:darkgreen; font-size: 18pt; padding-top:0;}
:where(.s-china) H3 { color:darkgreen;font-size: 17pt;}
:where(.s-china) H4 { color:rgb(70,70,70); padding-top:0; font-size: 14pt;}
:where(.s-china) A { color:darkblue; border: none}
:where(.s-china) TD.normaal { color:darkblue; border: none; font-size: 11pt; font-family: "Book Antiqua",
      Century Schoolbook, serif; font-weight:bold; word-spacing: 0.04em;}
:where(.s-china) UL { margin-left: 1.3em}
:where(.s-china) LI {padding-bottom:4pt;list-style-image: url(../chinareis/bullet.gif);}
:where(.s-china) LI.a {padding-bottom:4pt;list-style-image: none}
:where(.s-china) IMG {border:none}
:where(.s-china) IMG.plaatje {float:right; width:240px; height:180px; border:none}
:where(.s-china) IMG.plaatjev {float:right; width:180px; height:240px; border:none}
:where(.s-china) IMG.icoon {border:none; margin:0; vertical-align:middle}
:where(.s-china) IMG.pano {float: center; margin: 0 auto;}
:where(.s-china) DIV.icoonfloat {position:absolute;width:196px;visibility:hidden;z-index:2;
               border:solid black 1px;background-color:#E5FFE4;
               text-Align:center;font-size:18px;
               font-family: GoudyOlSt BT, Book Antiqua, Serif;
               padding-bottom: 5px; }

/* --- s-ecuador  (was ecuador-galapagos/stijlen.css) --- */
body:where(.s-ecuador) { color:black; font-size: 11pt; font-family: GoudyOlSt BT, Book Antiqua, Serif; font-size: 18px;
      word-spacing: 0.04em;}
:where(.s-ecuador) H1 { color:darkgreen; font-size: 28pt; font-weight:bold;}
:where(.s-ecuador) H2 { color:darkgreen; font-size: 18pt; padding-top:0;}
:where(.s-ecuador) H3 { color:darkgreen;font-size: 17pt;}
:where(.s-ecuador) H4 { color:rgb(70,70,70); padding-top:0; font-size: 14pt;}
:where(.s-ecuador) A { color:darkblue; border: none}
:where(.s-ecuador) TD.normaal { color:darkblue; border: none; font-size: 11pt; font-family: Bookman Old Style;,
      Century Schoolbook, serif; font-weight:bold; word-spacing: 0.04em;}
:where(.s-ecuador) UL { margin-left: 1.3em}
:where(.s-ecuador) LI {padding-bottom:4pt;list-style-image: url(../ecuador-galapagos/bullet.gif);}
:where(.s-ecuador) LI.a {padding-bottom:4pt;list-style-image: none}
:where(.s-ecuador) IMG {border:none}
:where(.s-ecuador) IMG.plaatje {float:right; width:240px; height:180px; border:none}
:where(.s-ecuador) IMG.plaatjev {float:right; width:180px; height:240px; border:none}
:where(.s-ecuador) IMG.icoon {border:none; margin:0; vertical-align:middle}
:where(.s-ecuador) IMG.pano {border:none; width:700px; height:180px; margin:0; vertical-align:middle}
:where(.s-ecuador) div.dagschema {/* header element float */
  float: right;
  width: 15em;/* em width variance by element*/
  margin: 0 0 0 0.2em;
  padding-right: 0.2em;
  border-left: 2px dotted darkgreen;
  border-bottom: 2px dotted darkgreen;
  border-top: 2px dotted darkgreen;
  }
:where(.s-ecuador) DIV.icoonfloat {position:absolute;width:196px;visibility:hidden;z-index:2;
               border:solid black 1px;background-color:#f2f2a1;
               text-Align:center;font-size:18px;
               font-family: GoudyOlSt BT, Book Antiqua, Serif;
               padding: 0 5px 5px 5px; }

/* --- s-noorwegen  (was noorwegen/stijlen.css) --- */
body:where(.s-noorwegen) { color:#004080; font-size: 11pt; font-family: "Book Antiqua",
      Century Schoolbook, serif; font-weight:bold; word-spacing: 0.04em;}
:where(.s-noorwegen) H1 { color:#003366; font-size: 28pt; font-weight:bold;}
:where(.s-noorwegen) H1.pagetitle { color:#003366; font-size: 28pt; font-weight:bold;}
:where(.s-noorwegen) pagetitle { color:#003366; font-size: 28pt; font-weight:bold;}
:where(.s-noorwegen) H2 { color:#006699; font-size: 18pt; padding-top:0;}
:where(.s-noorwegen) H3 { color:#006699;font-size: 17pt;}
:where(.s-noorwegen) H4 { color:#003366; padding-top:0; font-size: 14pt;}
:where(.s-noorwegen) A { color:#005BB6; border: none}
:where(.s-noorwegen) TD.normaal { color:#005BB6; border: none; font-size: 11pt; font-family: "Book Antiqua",
      Century Schoolbook, serif; font-weight:bold; word-spacing: 0.04em;}
:where(.s-noorwegen) UL { margin-left: 1.3em}
:where(.s-noorwegen) LI {padding-bottom:4pt;list-style-image: url(../noorwegen/bullet.gif);}
:where(.s-noorwegen) LI.a {padding-bottom:4pt;list-style-image: none}
:where(.s-noorwegen) IMG {border:none}
:where(.s-noorwegen) IMG.plaatje {float:right; clear: left; width:240px; border:none}
:where(.s-noorwegen) IMG.plaatjev {float:right; clear: left; height:240px; border:none}
:where(.s-noorwegen) IMG.icoon {border:none; margin:0; vertical-align:middle}
:where(.s-noorwegen) IMG.pano {float: center; margin: 0 auto;}
:where(.s-noorwegen) IMG.kaart {vertical-align: middle; border:none}
:where(.s-noorwegen) DIV.icoonfloat {position:absolute;width:196px;visibility:hidden;z-index:2;
               border:solid black 1px;background-color:#C1E0FF;
               text-Align:center;font-size:18px;
               font-family: GoudyOlSt BT, Book Antiqua, Serif;
               padding-bottom: 5px; }

/* --- s-thai  (was thailandreis/stijlen.css) --- */
body:where(.s-thai) { color:black; font-size: 11pt; font-family: "Book Antiqua",
      Century Schoolbook, serif; font-weight:bold; word-spacing: 0.04em;}
:where(.s-thai) H1 { color:darkgreen; font-size: 28pt; font-weight:bold;}
:where(.s-thai) H2 { color:darkgreen; font-size: 18pt; padding-top:0;}
:where(.s-thai) H3 { color:darkgreen;font-size: 17pt;}
:where(.s-thai) H4 { color:rgb(70,70,70); padding-top:0; font-size: 14pt;}
:where(.s-thai) A { color:darkblue; border: none}
:where(.s-thai) TD.normaal { color:darkblue; border: none; font-size: 11pt; font-family: "Book Antiqua",
      Century Schoolbook, serif; font-weight:bold; word-spacing: 0.04em;}
:where(.s-thai) UL { margin-left: 1.3em}
:where(.s-thai) LI {padding-bottom:4pt;list-style-image: url(../thailandreis/bullet.gif);}
:where(.s-thai) LI.a {padding-bottom:4pt;list-style-image: none}
:where(.s-thai) IMG {border:none}
:where(.s-thai) IMG.plaatje {float:right; width:240px; height:180px; border:none}
:where(.s-thai) IMG.plaatjev {float:right; width:180px; height:240px; border:none}
:where(.s-thai) IMG.icoon {border:none; margin:0; vertical-align:middle}
:where(.s-thai) IMG.pano {border:none; width:700px; height:180px; margin:0; vertical-align:middle}
:where(.s-thai) DIV.icoonfloat {position:absolute;width:196px;visibility:hidden;z-index:2;
               border:solid black 1px;background-color:#EFFFDA;
               text-Align:center;font-size:18px;padding: 5px;
               font-family: GoudyOlSt BT, Book Antiqua, Serif;
               padding-bottom: 5px; }

/* --- s-thaifoto  (was thailandreis/imagepages/stijlen.css) --- */
body:where(.s-thaifoto) { color:black; font-size: 11pt; font-family: "Book Antiqua",
      Century Schoolbook, serif; font-weight:bold; word-spacing: 0.04em;}
:where(.s-thaifoto) H1 { color:darkgreen; font-size: 28pt; font-weight:bold;}
:where(.s-thaifoto) H2 { color:darkgreen; font-size: 18pt; padding-top:0;}
:where(.s-thaifoto) H3 { color:darkgreen;font-size: 17pt;}
:where(.s-thaifoto) H4 { color:rgb(70,70,70); padding-top:0; font-size: 14pt;}
:where(.s-thaifoto) A { color:darkblue; border: none}
:where(.s-thaifoto) TD.normaal { color:darkblue; border: none; font-size: 11pt; font-family: "Book Antiqua",
      Century Schoolbook, serif; font-weight:bold; word-spacing: 0.04em;}
:where(.s-thaifoto) UL { margin-left: 1.3em}
:where(.s-thaifoto) LI.a {padding-bottom:4pt;list-style-image: none}
:where(.s-thaifoto) IMG {border:none}
:where(.s-thaifoto) IMG.plaatje {float:right; width:240px; height:180px; border:none}
:where(.s-thaifoto) IMG.plaatjev {float:right; width:180px; height:240px; border:none}
:where(.s-thaifoto) IMG.icoon {border:none; margin:0; vertical-align:middle}
:where(.s-thaifoto) IMG.pano {border:none; width:700px; height:180px; margin:0; vertical-align:middle}

/* --- s-maleisie  (was maleisie2014/index.css) --- */
:where(.s-maleisie) .pagetitle {
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-size: 20pt;
  color: #000000;
  font-weight: bold;
}
:where(.s-maleisie) .thumbtitle {
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-size: 10pt;
  color: #000000;
}
:where(.s-maleisie) .imagetitle {
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-size: 10pt;
  color: #000000;
}


/* ===================== former presentational HTML (font/align/valign/hspace) =====================
   :where() = zero specificity, so like the old HTML attributes any real CSS rule still wins. */
:where(.hr-left) { margin-left:0;margin-right:auto; }
:where(.ff-1) { font-family:Verdana, Arial, Helvetica, Sans-Serif; }
:where(.fs-4) { font-size:large; }
:where(.fs-1) { font-size:x-small; }
:where(.alb-center) { text-align:center;text-align:-webkit-center;text-align:-moz-center; }
:where(.va-bottom) { vertical-align:bottom; }
:where(.fs-6) { font-size:xx-large; }
:where(.img-right) { float:right; }
:where(.hspace-10) { margin-left:10px;margin-right:10px; }
:where(.vspace-10) { margin-top:10px;margin-bottom:10px; }
:where(.img-left) { float:left; }
:where(.fc-ff0000) { color:#d40000; }   /* was #ff0000; slightly darker so it is readable on the beige page */
:where(.ff-2) { font-family:Verdana, Arial; }
:where(.va-top) { vertical-align:top; }
:where(.fc-8000ff) { color:#8000ff; }
:where(.fc-0080ff) { color:#0080ff; }
:where(.fc-008000) { color:#008000; }
:where(.fc-blue) { color:blue; }
:where(.fc-black) { color:black; }
:where(.fs-2) { font-size:small; }
:where(.alb-left) { text-align:left;text-align:-webkit-left;text-align:-moz-left; }
:where(.fs-7) { font-size:xxx-large; }
:where(.fs-5) { font-size:x-large; }
:where(.al-center) { text-align:center; }
:where(.al-left) { text-align:left; }
:where(.hspace-0) { margin-left:0px;margin-right:0px; }
:where(.ff-3) { font-family:"Palatino Linotype", "Times New Roman", serif; }
:where(.alb-justify) { text-align:justify; }
:where(.fc-ffcc99) { color:#ffcc99; }
:where(.fc-ffffcc) { color:#ffffcc; }
:where(.fc-ffcc00) { color:#ffcc00; }
:where(.fc-ccffff) { color:#ccffff; }
:where(.fc-ffccff) { color:#ffccff; }
:where(.fc-ff6600) { color:#ff6600; }

/* ===================== site rules ===================== */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
img { border: 0; }
/* on smaller screens, scale down images that are wider than the screen (keeping the aspect ratio) */
@media (max-width: 1000px) { img { max-width: 100%; height: auto; } }
.center { text-align: center; text-align: -webkit-center; text-align: -moz-center; }  /* like the old <center>: also centres blocks */
.center :is(div, table, figure, form, iframe, object, embed, video, dl, ul.center) { margin-left: auto; margin-right: auto; }

/* room for the menu bar at the top (it is positioned absolutely on wide screens) */
.page.spaced { padding-top: 64px; }             /* replaces the <br><br><br> under the menu */
@media (max-width: 640px) { .page.spaced { padding-top: 8px; } }

/* ---------- photo galleries ---------- */
.gallery-nav { display: flex; justify-content: center; gap: 6px; margin: 8px 0; }
.gallery-nav a, .gallery-nav span { display: inline-block; min-width: 30px; }
.gallery-nav img { vertical-align: middle; }

.photo { margin: 8px auto 16px; max-width: 100%; display: table; }  /* table: caption as wide as the photo */
.photo-head { margin: 0 0 6px; }
.photo img { display: block; margin: 0 auto; }
.photo figcaption { display: table-caption; caption-side: bottom; margin-top: 6px; }

.thumbs {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: var(--gap);
	max-width: 960px;
	margin: 12px auto;
	padding: 0;
}
.thumbs figure { margin: 0; text-align: center; }
.thumbs figure img { display: block; margin: 0 auto 4px; }
.thumbs figcaption { font-family: var(--caption-font); font-size: 10pt; }
@media (max-width: 420px) { .thumbs { grid-template-columns: repeat(2, 1fr); } }

/* wide tables and maps never push the page sideways on small screens */
.table-wrap { max-width: 100%; overflow-x: auto; }
#map_canvas, [id^="map_canvas"] { max-width: 100%; }

/* ---------- small screens: nothing may be wider than the screen ---------- */
@media (max-width: 700px) {
	iframe, embed, object, video, canvas, .leaflet-container { max-width: 100% !important; }
	table { max-width: 100% !important; height: auto !important; }
	table[width], td[width], th[width] { width: auto !important; }
	td, th { word-wrap: break-word; overflow-wrap: anywhere; }
	img.plaatje, img.plaatjev, img.pano { float: none; display: block; margin: 6px auto; max-width: 100%; height: auto; }
	div[style*="width"] { max-width: 100% !important; }
	h1 { font-size: 22pt; }
}

/* ---------- phones: new layout ---------- */
@media (max-width: 640px) {
	body { margin: 6px; }
	/* layout tables become one column */
	.page table, .page tbody, .page tr, .page td, .page th { display: block; width: auto !important; }
	.page td, .page th { padding: 2px 0; text-align: left; }
	.center td, .center th { text-align: center; }
	/* tables of small photos stay side by side, wrapping */
	.page table:has(img[src^="thumbnails/"]) > tbody { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
	.page table:has(img[src^="thumbnails/"]) tr { display: contents; }
	.page table:has(img[src^="thumbnails/"]) td { display: block; flex: 0 0 auto; }
	/* language flag: in the flow instead of floating over the menu */
	.vlag { position: static; display: inline-block; margin: 4px 0; }
	h1 { font-size: 20pt; }
	h2 { font-size: 15pt; }
	ul, ol { padding-left: 1.2em; margin-left: 0; }
}

/* ===================== gallery page styles (were repeated <style> blocks) ===================== */

/* --- g1 --- */
:where(.g1) .pagetitle {
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-size: 20pt;
  color: #000000;
  font-weight: bold;
}
:where(.g1) .thumbtitle {
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-size: 10pt;
  color: #000000;
}
:where(.g1) .imagetitle {
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-size: 10pt;
  color: #000000;
}
:where(.g1) .navigation {
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-size: 10pt;
  color: #000000;
  font-weight: bold;
}

/* --- g2 --- */
:where(.g2) .pagetitle {
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-size: 20pt;
  color: #000000;
  font-weight: bold;
}
:where(.g2) .thumbtitle {
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-size: 10pt;
  color: #000000;
}
:where(.g2) .imagetitle {
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-size: 10pt;
  color: #000000;
}

/* --- g3 --- */
body:where(.g3) { font-size: 80%; font-family: Verdana, Arial, Helvetica; }
:where(.g3) td { font-size: 80%; font-family: Verdana, Arial, Helvetica; }

/* ===================== one-page galleries: photo viewer (js/gallery.js) ===================== */
.g-item a { display: inline-block; }
.g-item:target img { outline: 3px solid var(--menu-hover); outline-offset: 2px; }
html.lb-open { overflow: hidden; }
.lb { position: fixed; inset: 0; z-index: 20000; background: rgba(0, 0, 0, .96); color: #eee;
	display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 12px 56px; box-sizing: border-box;
	font-family: var(--caption-font); font-size: 14px; font-weight: normal; }
.lb[hidden] { display: none; }
.lb-stage { flex: 1 1 auto; min-height: 0; width: 100%; display: flex; align-items: center; justify-content: center; position: relative; }
.lb-img { display: block; max-width: 100%; max-height: calc(100vh - 140px); width: auto; height: auto; box-shadow: 0 4px 24px rgba(0,0,0,.6);
	background: #222; }
.lb-text { flex: 0 0 auto; max-width: 900px; text-align: center; padding: 8px 0 0; line-height: 1.4; }
.lb-head { font-size: 15px; color: #eee; }
.lb-head small { font-weight: normal; color: #bbb; }
.lb-cap { color: #999; font-size: 12px; margin-top: 2px; }
.lb-btn { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; border-radius: 50%;
	width: 44px; height: 44px; font-size: 22px; line-height: 44px; cursor: pointer; padding: 0; }
.lb-btn:hover, .lb-btn:focus-visible { background: rgba(255,255,255,.3); outline: 2px solid #fff; }
.lb-prev { left: 6px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 6px; top: 50%; transform: translateY(-50%); }
.lb-close { right: 6px; top: 6px; }
.lb-spin { display: none; position: absolute; width: 36px; height: 36px; border: 4px solid rgba(255,255,255,.25); border-top-color: #fff;
	border-radius: 50%; animation: lbspin .8s linear infinite; }
.lb-loading .lb-spin { display: block; }
@keyframes lbspin { to { transform: rotate(360deg); } }
@media (max-width: 640px) {
	.lb { padding: 48px 4px 8px; }
	.lb-img { max-height: calc(100vh - 170px); }
	.lb-prev, .lb-next { top: auto; bottom: 8px; transform: none; }
}
@media (prefers-reduced-motion: reduce) { .lb-spin { animation: none; } }
.lb-title { font-size: 17px; font-weight: bold; color: #fff; font-family: var(--font); }
.lb-intro { color: #ddd; }
.lb-text b { color: #fff; }

/* YouTube players (replaced the old Flash embeds): keep 16:9 and shrink on phones */
iframe.yt{display:block;margin:0 auto;max-width:100%;height:auto;aspect-ratio:16/9;border:0}

/* Site search (zoeken.html / search.html, js/search.js) */
.zoekform{display:flex;gap:8px;max-width:640px;margin:0 0 1em}
.zoekform input{flex:1;min-width:0;font:inherit;font-weight:normal;padding:.45em .6em;border:1px solid #9a7b6b;border-radius:4px;background:#fffaf6}
.zoekform button{font:inherit;padding:.45em 1em;border:0;border-radius:4px;background:var(--accent);color:#fff;cursor:pointer}
#zoekresultaten{max-width:900px}
.zr-summary{font-weight:normal;color:#5a3a2a}
.zr-list{list-style:none;margin:0;padding:0}
.zr-list>li{margin:0 0 1.1em;padding:0 0 .9em;border-bottom:1px solid rgba(139,0,0,.15)}
.zr-title{font-size:1.15em;color:var(--link)}
.zr-excerpt,.zr-count{margin:.25em 0 0;font-weight:normal;font-family:var(--caption-font);font-size:.85em;line-height:1.45}
.zr-count{color:#5a3a2a}
.zr-list mark{background:var(--menu-hover);color:inherit;padding:0 1px}
.zr-photos{list-style:none;margin:.5em 0 0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px}
.zr-photos a{display:block;color:inherit;text-decoration:none;font-family:var(--caption-font);font-weight:normal;font-size:.75em;line-height:1.35}
.zr-photos img{display:block;width:100%;aspect-ratio:4/3;object-fit:cover;background:#d9c3b6;border-radius:3px;margin-bottom:4px}
.zr-photos span{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.zr-more{font:inherit;padding:.4em 1em;border:1px solid var(--accent);background:transparent;color:var(--accent);border-radius:4px;cursor:pointer}

/* camera icons in the trip reports (js/photo-icons.js): preview on mouse-over */
.sn-camtip { position: absolute; z-index: 1000; max-width: 230px; background: #fffdf8; border: 1px solid #b9a89c; padding: 6px;
	box-shadow: 2px 4px 12px rgba(0,0,0,.25); font-size: 14px; line-height: 1.3; pointer-events: none; }
.sn-camtip[hidden] { display: none; }
.sn-camtip img { display: block; max-width: 100%; height: auto; margin-bottom: 4px; }
a.sn-cam { border-bottom: 0 !important; white-space: nowrap; }

/* footer on every page (added at upload time by tools/page-extras.js) */
.site-footer { clear: both; margin: 2.5em auto 0; padding-top: .8em; border-top: 1px solid #c9b6a8; font-size: 14px; text-align: center; color: #5a4a40; max-width: 900px; }
.site-footer p { margin: 0; }
.site-footer span[aria-hidden] { margin: 0 .35em; }

/* highlighted line in the trip-map messages (chinareis, thailandreis, afrikareis index) */
.maptip-hl { color: #00f; }

/* ---------- printing: every page prints as plain text with its photos (no menu, backgrounds, buttons) ---------- */
@media print {
	@page { margin: 16mm 14mm; }
	:root, :root body { background: #fff !important; background-image: none !important; color: #000 !important; margin: 0 !important; }
	:root body:not(#x) { font-size: 11.5pt !important; line-height: 1.4 !important; }
	nav.snm-bar, .snm-toggle, noscript, a.vlag, .vlag, nav.gallery-nav, .lb, .sn-camtip, a.sn-cam, iframe.yt, .zoekform,
	form, button, #map_canvas, [id^="map_canvas"], .leaflet-container, script { display: none !important; }
	:root body:not(#x) main.page, :root body:not(#x) main { max-width: none !important; width: auto !important; margin: 0 !important; padding: 0 !important;
		background: none !important; box-shadow: none !important; border: 0 !important; }
	a[href] { color: inherit !important; text-decoration: none !important; border-bottom: 0 !important; }
	img { max-width: 100% !important; height: auto !important; box-shadow: none !important; page-break-inside: avoid; break-inside: avoid; }
	img.plaatje, img.plaatjev { max-width: 7cm !important; }
	h1, h2, h3, h4 { page-break-after: avoid; break-after: avoid; }
	li, p { orphans: 3; widows: 3; }
	.thumbs { display: grid !important; grid-template-columns: repeat(4, 1fr) !important; gap: 4mm !important; }
	.thumbs figure a { box-shadow: none !important; padding: 0 !important; background: none !important; }
	.site-footer { border-top: 1px solid #999; margin-top: 8mm; font-size: 9pt; color: #333 !important; }
	.site-footer a[href^="mailto"] { color: inherit; }
	.site-footer a[hreflang], .site-footer a[hreflang] + span, .site-footer span:has(+ a[hreflang]) { display: none; }
}

/* video still with play button (js/yt-facade.js); the player itself loads on click */
a.yt-facade { position: relative; display: block; margin: 0 auto; max-width: 100%; aspect-ratio: 16 / 9; background: #000; overflow: hidden; border: 0 !important; cursor: pointer; }
a.yt-facade img { width: 100%; height: 100%; object-fit: cover; display: block; margin: 0 !important; opacity: .92; transition: opacity .15s; }
a.yt-facade:hover img, a.yt-facade:focus-visible img { opacity: 1; }
a.yt-facade .yt-play { position: absolute; left: 50%; top: 50%; width: 72px; height: 50px; margin: -25px 0 0 -36px; border-radius: 12px; background: rgba(23, 23, 23, .82); transition: background .15s; }
a.yt-facade .yt-play::after { content: ""; position: absolute; left: 29px; top: 15px; border-style: solid; border-width: 10px 0 10px 18px; border-color: transparent transparent transparent #fff; }
a.yt-facade:hover .yt-play, a.yt-facade:focus-visible .yt-play { background: #c4302b; }
a.yt-facade .yt-label { position: absolute; left: 0; right: 0; bottom: 0; padding: 6px 10px; background: linear-gradient(transparent, rgba(0,0,0,.7)); color: #fff; font: 14px/1.3 system-ui, sans-serif; text-align: left; }
@media print { a.yt-facade .yt-play, a.yt-facade .yt-label { display: none; } a.yt-facade { display: block !important; background: none; } }

/* photos that got their real size as width/height (so the text does not jump while they load):
   when the stylesheet sets a width, the height follows the photo's proportions */
img.sz { height: auto; }

/* species index (soorten.html / species.html, made by tools/species_index.py) */
.sp-count { font-style: italic; }
.sp-letters { display: flex; flex-wrap: wrap; gap: 2px 10px; margin: 0 0 1em; }
.sp-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 14px 22px; }
.sp-list > li { display: flex; gap: 12px; align-items: flex-start; scroll-margin-top: 80px; }
.sp-list > li::before { content: none !important; }
.sp-list > li[hidden], .sp-letters[hidden], .sp-none[hidden] { display: none; }   /* the filter hides items; display:flex above would show them again */
.sp-list .sp-img { flex: 0 0 auto; line-height: 0; border: 0 !important; }
.sp-list .sp-img img { width: 120px; height: auto; max-height: 90px; object-fit: cover; aspect-ratio: 4 / 3; }
.sp-lat { font-style: italic; font-weight: 600; }
.sp-list small { display: block; margin-top: 2px; line-height: 1.35; }
@media (max-width: 640px) { .sp-list { grid-template-columns: 1fr; } .sp-list .sp-img img { width: 96px; } }
.sp-sort button { font: inherit; padding: .2em .7em; margin: 0 .2em; border: 1px solid #b89a88; border-radius: 4px; background: #fffaf6; color: inherit; cursor: pointer; }
.sp-sort button[aria-pressed="true"] { background: #8a1010; border-color: #8a1010; color: #fff; }
.sp-list.by-cn > li > div { display: flex; flex-direction: column; }
.sp-list.by-cn .sp-cn { order: -1; font-weight: 600; }
.sp-list.by-cn .sp-lat { font-weight: 400; }
.sp-list.by-cn br { display: none; }
/* species index: text block starts level with the top of the photo, compact lines */
.sp-list { align-items: start; gap: 18px 26px !important; }
.sp-list > li > div { line-height: 1.3; margin-top: -.3em; }
.sp-list small { margin-top: 4px; line-height: 1.35; }
.sp-list.by-cn > li > div { line-height: 1.25; }
.sp-list.by-cn .sp-lat { margin-top: 1px; }
.sp-list.by-cn small { margin-top: 3px; }
/* photo viewer: link to the species index */
.lb-sp { margin-top: 4px; font-size: 14px; }
.lb-sp a { color: #ffd9a8 !important; border-bottom: 1px dotted currentColor; }

/* "skip to content" link: only visible when reached with the keyboard (Tab) */
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 10010; padding: 8px 14px; background: #8a1010; color: #fff !important; border-radius: 0 0 6px 6px; text-decoration: none; }
.skip-link:focus { top: 0; }
/* back to top (long pages) */
.to-top { position: fixed; right: 18px; bottom: 18px; z-index: 900; width: 44px; height: 44px; border-radius: 50%; border: 1px solid #b89a88; background: rgba(255, 250, 246, .92); color: #8a1010; font-size: 22px; line-height: 1; cursor: pointer; box-shadow: 0 2px 8px rgba(60, 40, 25, .25); }
.to-top:hover, .to-top:focus-visible { background: #8a1010; color: #fff; }
.to-top[hidden] { display: none; }
.lb-open .to-top { display: none; }
@media print { .skip-link, .to-top { display: none !important; } }
/* species index: group buttons, current name, links */
.sp-groups { display: flex; flex-wrap: wrap; gap: 6px; }
.sp-groups button { font: inherit; font-size: 15px; padding: .2em .7em; border: 1px solid #b89a88; border-radius: 999px; background: #fffaf6; color: inherit; cursor: pointer; }
.sp-groups button small { opacity: .7; }
.sp-groups button[aria-pressed="true"] { background: #8a1010; border-color: #8a1010; color: #fff; }
.sp-now { font-size: 14px; opacity: .8; }
.sp-list .sp-ext { margin-top: 2px; }

/* species index: clicking the photo of a species opens the viewer (.lb, above) with all photos of that species */
.lb .lb-head a, .lb .lb-head a:visited { color: #fff !important; text-decoration: underline; }
.lb-btn[hidden] { display: none; }

/* trips in time order (tools/trips.py): previous/next trip, "Recent toegevoegd" on the home page */
nav.trip-pn { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 16px; clear: both;
  margin: 36px 0 0; padding-top: 12px; border-top: 1px solid #c9b6aa; font-size: 15px; }
nav.trip-pn .trip-all { flex: 1 1 auto; text-align: center; order: 2; }
nav.trip-pn a { border-bottom: 0 !important; }
nav.trip-pn .trip-prev { order: 1; } nav.trip-pn .trip-next { order: 3; text-align: right; }
nav.recent ul { list-style: none; padding: 0; margin: 8px 0 24px; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
nav.recent li { margin: 0; padding: 0; list-style: none; }
nav.recent li::before { content: none !important; }
nav.recent a { display: block; text-decoration: none; border-bottom: 0 !important; }
nav.recent img { display: block; width: 100%; height: 130px; object-fit: cover; border: 1px solid #c9b6aa; margin-bottom: 4px; background: #eee; }
nav.recent { max-width: 680px; margin: 24px auto 8px; text-align: left; }
nav.recent h3 { text-align: center; }
nav.recent ul { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
nav.recent img { height: 110px; }
nav.recent p { text-align: center; }
/* world map: year filter (allereizen.html) */
.yearfilter { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 12px; margin: 4px 0; }
.yearfilter[hidden] { display: none; }
.yearfilter input[type=range] { width: 160px; vertical-align: middle; accent-color: #8a1010; }
.yearfilter output { min-width: 7em; text-align: center; font-weight: bold; }
/* photo viewer: slide show, full screen, map (js/gallery.js, js/photo-map.js) */
.lb-tools { position: absolute; left: 6px; top: 6px; display: flex; gap: 6px; z-index: 3; }
.lb-tool { background: rgba(255,255,255,.12); color: #fff; border: 0; border-radius: 18px; min-width: 40px; height: 40px; padding: 0 12px; font-size: 17px; cursor: pointer; }
.lb-tool:hover, .lb-tool:focus-visible { background: rgba(255,255,255,.3); outline: 2px solid #fff; }
.lb-tool[hidden] { display: none; }
.lb-map { position: absolute; inset: 52px 52px 0; background: #ddd; z-index: 2; }
@media (max-width: 640px) { .lb-map { inset: 4px 0 0; } }
.lb-map[hidden] { display: none; }
.lb:fullscreen { padding: 8px; }
/* species index: filters on country and trip */
.sp-where { display: flex; flex-wrap: wrap; gap: 8px; }
.sp-where select { font: inherit; font-size: 16px; padding: 4px 10px; border: 1px solid #c9b6aa; border-radius: 16px; background: #fffaf6; color: inherit; max-width: 100%; }
/* laptop screens and bigger: photo and map side by side (js/gallery.js and the species viewer add .lb-split) */
@media (min-width: 1000px) {
  .lb.lb-split .lb-stage { gap: 14px; padding: 52px 56px 0; box-sizing: border-box; }
  .lb.lb-split .lb-img { max-width: calc(50% - 7px); visibility: visible !important; }
  .lb.lb-split .lb-map { position: relative; inset: auto; flex: 0 0 calc(50% - 7px); align-self: stretch; min-height: 300px; }
}
