/* Additions for the static Hugo version, on top of the original style.css */
body.custom-background { background: #6b4423 url("images/mp-background-tile.jpg") repeat left top; }
#col-main { width: 720px; }
#col-left { width: 220px; }
.page-title { margin-bottom: 20px; }

/* figures and galleries */
figure.wp-caption { max-width: 100%; box-sizing: border-box; }
figure.wp-caption img { max-width: 100%; height: auto; }
figure.alignnone, figure.aligncenter { margin-left: auto; margin-right: auto; }
.static-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 0 0 18px; }
.static-gallery a { display: block; }
.static-gallery img { width: 100%; height: auto; border: 1px solid #ccc; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.post .static-gallery img { display: block; }

/* maps */
.leaflet-map { width: 100%; margin: 0 0 1em; border: 1px solid #DACFBA; }
.leaflet-map img { max-width: none; }

/* comments as plain text */
#comments { margin-top: 20px; }
#comments-title { margin-bottom: 10px; }
.commentlist { margin: 0; }
.commentlist li.comment { list-style: none; margin: 0 0 12px; padding: 10px; background: rgba(239,227,216,.5); border: 1px solid #DACFBA; border-radius: 3px; }
.commentlist li.reply { margin-left: 30px; }
.comment-author cite { font-style: normal; font-weight: bold; }
.reply-to { font-size: 11px; color: #777; }
.comment-meta { font-size: 11px; color: #777; margin-bottom: 6px; }

/* footer note */
.static-note { text-align: center; font-style: italic; color: #603913; padding: 12px 20px; margin: 0; }

/* lightbox */
.lb-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.85); display: flex; align-items: center; justify-content: center; z-index: 10000; flex-direction: column; }
.lb-overlay img { max-width: 92vw; max-height: 85vh; box-shadow: 0 0 20px #000; }
.lb-caption { color: #eee; margin-top: 10px; font-size: 14px; }
.lb-btn { position: fixed; color: #fff; font-size: 40px; background: none; border: 0; cursor: pointer; padding: 10px 18px; }
.lb-prev { left: 10px; top: 50%; } .lb-next { right: 10px; top: 50%; } .lb-close { right: 10px; top: 10px; }

/* small screens: one column */
@media (max-width: 980px) {
  #container, #container2, .siteframe, #header, #header2, #header3, #header4, .content { width: auto !important; }
  #banner { left: 0; margin: 0 12px; }
  #logo { left: 0; margin-left: 7px; width: auto; }
  #banner img { display: block; width: 100%; height: auto; aspect-ratio: 920 / 360; object-fit: cover; object-position: 50% 60%; }
  #col-main, #col-left { width: auto !important; float: none !important; margin: 0 !important; }
  #main-content { padding: 16px !important; }
  figure.wp-caption { width: auto !important; float: none !important; margin-left: 0 !important; }
  /* nothing in a post may be wider than its column (borders included) */
  #main-content img, #main-content iframe, #main-content video, #main-content table { max-width: 100%; box-sizing: border-box; }
  #main-content img { height: auto; }
  .leaflet-map { box-sizing: border-box; }
}

/* phones: taller hero so the people stay visible, smaller title card */
@media (max-width: 600px) {
  #banner { margin: 0 6px; }
  #banner img { aspect-ratio: 4 / 3; object-position: 80% 70%; }
  #logo-2 { transform: scale(.72); transform-origin: left top; }
}

/* dead external links: archive.org replacement and unlinked text (tools/link-overrides.json) */
a.archief-link::after, .dode-link::after {
  content: ""; display: inline-block; width: .85em; height: .85em; margin-left: .2em;
  vertical-align: -.05em; background: no-repeat center / contain;
}
a.archief-link::after {
  /* clock: archived version */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23603913' stroke-width='1.6' stroke-linecap='round'%3E%3Ccircle cx='8' cy='8' r='6.5'/%3E%3Cpath d='M8 4.2V8l2.6 1.6'/%3E%3C/svg%3E");
}
.dode-link { text-decoration: underline dotted #8a7a66; text-underline-offset: 2px; cursor: help; }
.dode-link::after {
  /* broken chain link */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%238a7a66' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M6.5 4.5l1-1a2.8 2.8 0 0 1 4 4l-1 1M9.5 11.5l-1 1a2.8 2.8 0 0 1-4-4l1-1M2.5 2.5l2 2M13.5 13.5l-2-2'/%3E%3C/svg%3E");
}
