/*
 * De Hoeskamer theme (dehoeskamer.nl): base look, replaces public/assets/css/style.css for this site.
 * A measured copy of the legacy Twig theme (Themes/Front/Hoeskamer/_res/css/style.css + skeleton.css + the plugin
 * css of Announcements, Menu, Guestbook, PhotoBook, Slider): wood header and footer, dark damask main background,
 * gold text (#b49a5c, Open Sans 18px), dark red script headings (Ballpark Weiner), chalkboard menu buttons and
 * announcement board (Architects Daughter), ornament dividers, lamp language switch, paper books in leather for the
 * menu card, guestbook and photo book (js/hk-book.js). Grid = the legacy Skeleton grid: container 90% / max 1280px,
 * columns with a 4% gutter, stacked below 550px. The fixed mobile menu bar (<= 720px, legacy slicknav) is css/nav.css,
 * the modern layer (forms, buttons, cookie box, modals, back-to-top) css/modern.css. Fonts are self-hosted in ../fonts.
 */

/* ---------- fonts ---------- */
@font-face {
  font-family: 'ballparkweiner';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/ballparkweiner.woff2') format('woff2'), url('../fonts/ballparkweiner.woff') format('woff');
}
@font-face {
  font-family: 'Architects Daughter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/architects-daughter-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Architects Daughter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/architects-daughter-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Merienda';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/merienda-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Merienda';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/merienda-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --hk-red: #7f0000;
  --hk-red-bright: #b30000;
  --hk-gold: #b49a5c;
  --hk-gold-light: #e2cd94;
  --hk-olive: #86754d;
  --hk-wood-dark: #351212;
  --hk-paper-text: #5a5047;
  --hk-script: 'ballparkweiner', 'Open Sans', Arial, Helvetica, sans-serif;
  --hk-chalk: 'Architects Daughter', 'Comic Sans MS', cursive;
  --hk-hand: 'Merienda', Georgia, 'Times New Roman', serif;
}


/* ---------- base (legacy: body 18px Open Sans, gold; headings Ballpark Weiner dark red with a black shadow) ---------- */
:root { font-size: 10px; } /* Turret drops to 9px below 1024px; the legacy site kept its px sizes at every width */
* { font-family: 'Open Sans', Arial, Helvetica, sans-serif; }
html { min-height: 100%; }
body {
  color: var(--hk-gold);
  background: var(--hk-wood-dark);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
}
header, footer { flex-shrink: 0; }
main {
  flex: 1 0 auto;
  background: #333 url(../img/par-bg-black.jpg);
}
@media (min-width: 1024px) and (hover: hover) {
  main { background-attachment: fixed; }
}

h1, h2, h3, h4, h5, h6, h1:first-child, h2:first-child, h3:first-child, h4:first-child, h5:first-child, h6:first-child {
  font-family: var(--hk-script);
  font-weight: 400;
  color: var(--hk-red);
  text-shadow: 1px 1px 0 #000;
}
/* skeleton.css letter-spacing of the headings (-.1rem at a 10px root) */
h1, h2, h3 { letter-spacing: -1px; }
h4 { letter-spacing: -.8px; }
h5 { letter-spacing: -.5px; }
h6 { letter-spacing: 0; }
h1 *, h2 *, h3 *, h4 *, h5 *, h6 * { font-family: var(--hk-script); }
h1, h1:first-child { font-size: 48px; line-height: 1.2; margin: 10px 0 0; }
h2, h2:first-child { font-size: 30px; line-height: 1.25; margin: 20px 0 10px; }
h3, h3:first-child { font-size: 24px; line-height: 1.3; margin: 20px 0 10px; }
h4, h4:first-child { font-size: 18px; line-height: 1.35; margin: 0 0 20px; }
h5, h5:first-child, h6, h6:first-child { font-size: 15px; line-height: 1.5; margin: 0 0 20px; }
p, p:first-child, p:last-child { margin: 0 0 25px; font-size: 18px; line-height: 1.6; text-shadow: 1px 1px 0 #000; }
a, a:link, a:visited, a:active { color: var(--hk-gold); font-weight: 700; text-decoration: none; }
a:hover, a:focus { color: var(--hk-red-bright); }
img { max-width: 100%; height: auto; }
mark { padding: 0 !important; }
main ul:not([class]), main ol:not([class]) { margin: 0 0 25px; padding-left: 0; list-style-position: inside; }
main ul:not([class]) > li, main ol:not([class]) > li { margin: 0 0 10px; padding: 0; font-size: 18px; color: inherit; line-height: 1.6; }
table { border-collapse: collapse; width: 100%; }

/* fixed olive lines at the top and bottom of the viewport (legacy .border-top / .border-bottom) */
.border-top, .border-bottom {
  position: fixed;
  left: 0;
  right: 0;
  height: 0;
  border-bottom: 5px solid var(--hk-olive);
  z-index: 100;
  pointer-events: none;
}
.border-top { top: 0; }
.border-bottom { bottom: 0; }

/* ---------- grid: the legacy Skeleton grid (container 90% max 1280px, 4% gutters, stacked below 550px) ---------- */
.container { width: 90%; max-width: 1280px; padding-left: 0; padding-right: 0; }
.fullwidth { width: 100%; }
.row { margin-left: 0; margin-right: 0; }
.row > [class*=column-] { padding-left: 0; padding-right: 0; margin-left: 4%; }
.row > [class*=column-]:first-child { margin-left: 0; }
.column-1 { width: 100%; }
.column-1-12 { width: 4.6666667%; }
.column-2-12 { width: 13.3333333%; }
.column-3-12, .column-1-4 { width: 22%; }
.column-4-12, .column-1-3 { width: 30.6666667%; }
.column-5-12 { width: 39.3333333%; }
.column-6-12, .column-1-2, .column-2-4 { width: 48%; }
.column-7-12 { width: 56.6666667%; }
.column-8-12, .column-2-3 { width: 65.3333333%; }
.column-9-12, .column-3-4 { width: 74%; }
.column-10-12 { width: 82.6666667%; }
.column-11-12 { width: 91.3333333%; }
@media (max-width: 549px) {
  .row > [class*=column-] { width: 100%; margin-left: 0; float: none; }
}

/* ---------- header (legacy header.html.twig: 30px top, three columns, the navigation row) ---------- */
header {
  background: var(--hk-olive) url(../img/wood2.jpg) 0 0 / cover;
  padding-top: 30px;
}
header > .container { padding-top: 10px; padding-bottom: 10px; }
.hk-header-top { display: flex; align-items: flex-start; }
.hk-header-top > div { flex: 0 0 30.6666667%; width: 30.6666667%; min-width: 0; margin-left: 4%; }
/* with the board the first column has no gutter; without it the legacy empty float column collapsed and the logo
   moved into the first column, keeping its 4% gutter (logo left, lamp in the middle column) */
.hk-header-top.hk-has-board > div:first-child { margin-left: 0; }
.hk-header-logo { text-align: center; }
.hk-logo-link { display: inline-block; width: 100%; max-width: 422px; }
.hk-logo, .hk-header-logo picture, .hk-header-logo img { width: 100%; height: auto; vertical-align: baseline; }
.hk-header-lamp { display: flow-root; }

/* the chalkboard with the rotating announcements (legacy Announcements/header.html.twig, .element-special) */
.hk-board {
  position: relative;
  display: flow-root; /* the legacy board floated: the 20px top margin of the text stays inside */
  width: 326px;
  height: 243px;
  background: url(../img/bord.png) no-repeat;
  font-family: var(--hk-chalk);
  color: rgba(255, 255, 255, .7);
  font-size: 16px;
  line-height: 1.6;
  transform: rotate(-4deg);
  transition: transform .35s ease;
}
.hk-board:hover { transform: rotate(0deg); }
/* the legacy unslider made the text box relative + overflow hidden: the item image sits in its bottom right corner, clipped */
.hk-board .plugin--Announcements { position: relative; margin: 20px 30px 10px 50px; height: 170px; overflow: hidden; }
.hk-board .plugin--Announcements *, .hk-board .plugin--Announcements h2 { font-family: var(--hk-chalk); }
.hk-board .plugin--Announcements li.announcement { position: static; margin: 0; padding: 0; }
.hk-board .plugin--Announcements[data-interval]:not([data-interval="0"]) li.is-active { animation: hk-board-fade 1s ease; }
@keyframes hk-board-fade { from { opacity: 0; } to { opacity: 1; } }
.hk-board .plugin--Announcements h2 { color: rgba(255, 255, 255, .9); font-size: 28px; line-height: 1.25; margin: 20px 0 10px; text-shadow: 1px 1px 0 #000; }
.hk-board .plugin--Announcements a, .hk-board .plugin--Announcements a:hover { display: block; color: rgba(255, 255, 255, .9); font-weight: 300; }
.hk-board .plugin--Announcements .announcement-text p { margin: 0 0 25px; font-size: 16px; line-height: 1.6; color: inherit; text-shadow: 1px 1px 0 #000; }
.hk-board .plugin--Announcements .announcement-more { display: inline; margin: 0; font-size: 18px; line-height: 1.6; color: rgba(255, 255, 255, .9); font-weight: 300; }
.hk-board .plugin--Announcements .announcement-image, .hk-board .plugin--Announcements picture img {
  position: absolute;
  right: 0;
  bottom: -10px;
  width: 131px;
  height: auto;
  max-height: none;
  opacity: .5;
}

/* the lamp with the two flags: links over the left and the right lamp shade (legacy image map) */
.hk-lamp { position: relative; float: right; width: 142px; height: 142px; }
.hk-lamp img { display: block; width: 142px; height: 142px; }
.hk-lamp a {
  position: absolute;
  display: block;
  border-radius: 45% 45% 30% 30% / 35%;
  transition: box-shadow .2s ease;
}
.hk-lamp a:hover, .hk-lamp a:focus-visible { box-shadow: 0 0 0 2px rgba(255, 255, 255, .6), 0 0 18px rgba(255, 220, 120, .8); }
.hk-lamp a.active { cursor: default; }
.hk-lamp-left { left: 15%; top: 5%; width: 39%; height: 44%; }
.hk-lamp-right { left: 57%; top: 20%; width: 33%; height: 37%; }

/* ---------- navigation (from 721px: blackboard buttons, legacy #menunav .menuknop) ---------- */
.hk-nav { text-align: center; }
@media (min-width: 721px) {
  nav.nav { position: static; width: 100%; height: auto; }
  nav.nav > div > ul.dropdown { float: none; margin: 0; padding: 0; justify-content: center; }
  nav.nav > div > ul.dropdown > li { float: none; margin: 0 3px; }
  nav.nav > div.usernav > ul.dropdown > li > a {
    display: block;
    font-family: var(--hk-chalk);
    font-size: 18px;
    color: #fff;
    text-shadow: 1px 1px 0 #000;
    padding: 2px 12px;
  }
  nav.nav > div.usernav > ul.dropdown > li > a.active { color: var(--hk-red-bright); }
  nav.nav > div.mainnav > ul.dropdown > li { transform: rotate(-2deg); }
  nav.nav > div.mainnav > ul.dropdown > li:nth-child(even) { transform: rotate(2deg); }
  nav.nav > div.mainnav > ul.dropdown > li:hover { transform: rotate(0deg); }
  nav.nav > div.mainnav > ul.dropdown > li > a {
    display: inline-block;
    position: relative;
    min-width: 40px;
    height: 80px;
    margin: 0 40px;
    padding: 0 !important;
    background: url(../img/knop-midden.png) repeat-x;
    font-family: var(--hk-chalk);
    font-size: 24px;
    font-weight: 700;
    line-height: 80px;
    color: rgba(255, 255, 255, .7);
    text-shadow: 1px 1px 0 #000;
    text-align: center;
    white-space: nowrap;
  }
  nav.nav > div.mainnav > ul.dropdown > li > a::before, nav.nav > div.mainnav > ul.dropdown > li > a::after {
    content: "";
    position: absolute;
    top: 0;
    width: 40px;
    height: 80px;
    background: url(../img/knop-links.png) no-repeat;
  }
  nav.nav > div.mainnav > ul.dropdown > li > a::before { left: -39px; }
  nav.nav > div.mainnav > ul.dropdown > li > a::after { right: -39px; background-image: url(../img/knop-rechts.png); }
  nav.nav > div.mainnav > ul.dropdown > li > a.active { color: var(--hk-red-bright) !important; }
  nav.nav > div.mainnav > ul.dropdown > li > a > div { display: inline-block; font-family: inherit; }
  nav.nav ul.dropdown li.sub > a > div > span { display: none; }
  /* sub menus: a paper note under the blackboard */
  nav.nav ul.dropdown ul { width: 26rem; top: 100%; left: 50%; transform: translateX(-50%); background: #f3efe6 url(../img/paper2.jpg); border-radius: .6rem; padding: .6rem 0; box-shadow: 0 16px 30px -10px rgba(0, 0, 0, .8); }
  nav.nav ul.dropdown li.rtl ul { left: 50%; right: auto; }
  nav.nav ul.dropdown ul li { float: none; width: 100%; margin: 0; transform: none; }
  nav.nav ul.dropdown ul li a { display: block; padding: .8rem 1.6rem; font-family: var(--hk-chalk); font-size: 17px; color: var(--hk-red); font-weight: 400; text-align: left; }
  nav.nav ul.dropdown ul li a:hover, nav.nav ul.dropdown ul li a.active { color: #fff; background: var(--hk-red); }
  nav.nav ul.dropdown ul ul { top: 0; left: 100%; transform: none; }
}

/* ---------- title band (paper strip, legacy section.page-title: pulled 30px under the navigation buttons) ---------- */
.page-title, .footer-title {
  text-align: center;
  background: var(--hk-olive) url(../img/paper2.jpg);
  box-shadow: 0 0 10px 0 #000;
}
.page-title { margin-top: -30px; }
.page-title > .container, .footer-title > .container { padding-top: 10px; padding-bottom: 10px; }
.page-title h1, .footer-title h1, .page-title h2, .footer-title h2 { margin: 10px 0 0; font-size: 48px; line-height: 1.2; }
.page-title p { margin: 0; }

/* ornament between the bands (legacy .divider) */
.hk-divider, .main-content > section:has(.virtual-tour) + section::before {
  content: "";
  display: block;
  position: relative;
  z-index: 50;
  width: 261px;
  height: 53px;
  margin: -26.5px auto;
  background: url(../img/dividers.png) no-repeat;
  pointer-events: none;
}

/* ---------- main content (legacy section.page-content: container 10px top/bottom) ---------- */
.main-content > section > .container { padding-top: 10px; padding-bottom: 10px; }
.main-content .row > [class*=column-] > div { min-width: 0; }
.content-widget { text-align: center; }

/* ---------- top plugins: slider (legacy pluginSlider: 520px, olive lines) ---------- */
.plugin--Slider { border-top: 1px solid var(--hk-olive); border-bottom: 1px solid var(--hk-olive); background: #1d1512; }
.slideTitleContainer { background: rgba(255, 255, 255, .85); }
.slideTitle { color: var(--hk-red); font-size: 55px; }
.slideSlogan { color: #333; font-size: 24px; text-shadow: none; }

/* ---------- virtual tour (legacy pluginVirtualTour: full width, 800px, directly under the title band) ---------- */
.main-content > section:has(.virtual-tour) { container-type: inline-size; }
.main-content > section:has(.virtual-tour) > .container { padding: 0; }
.virtual-tour { width: 100cqw; margin-left: calc(50% - 50cqw); }
.virtual-tour iframe { display: block; width: 100%; height: 800px; border: 0; background: transparent; }

/* ---------- the paper books (legacy wowBook pages of Menu, Guestbook, PhotoBook): wood background, leather cover with a
   stitched border, paper pages with the gutter shadow, toolbar first/previous/next/last (js/hk-book.js) ---------- */
.main-content > section:has(.hk-book) { background: url(../img/wood2.jpg) 0 0 / cover; }
.hk-book { padding: 30px 0; color: #666; }
.hk-book-pages {
  position: relative;
  z-index: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 10px 12px;
}
.hk-book-pages::before, .hk-book-pages::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 10px;
  pointer-events: none;
}
.hk-book-pages::before { inset: -21px; background: #2a2a2a url(../img/leather.png); }
.hk-book-pages::after { inset: -11px; border: 2px dashed #676767; }
.hk-page {
  position: relative;
  min-width: 0;
  min-height: var(--hk-page-h, 750px);
  padding: 20px;
  overflow: hidden;
  background: #eee url(../img/book-paper.jpg);
}
.hk-page[hidden] { display: none; }
.hk-page:nth-child(odd) { border-radius: 10px 0 0 10px; background: url(../img/book-gutter-left.png) right top repeat-y, #eee url(../img/book-paper.jpg); }
.hk-page:nth-child(even) { border-radius: 0 10px 10px 0; background: url(../img/book-gutter-right.png) left top repeat-y, #eee url(../img/book-paper.jpg); }
.hk-book h1, .hk-book h2, .hk-book h3, .hk-book h2:first-child { margin: 0 0 10px; font-size: 30px; line-height: 1.25; color: var(--hk-red); text-shadow: 0 2px 3px #fff; }
.hk-book p, .hk-book td, .hk-book li { font-family: var(--hk-hand); font-size: 14px; line-height: 1.6; color: #666; text-shadow: 0 1px 2px #fff; }
.hk-book p, .hk-book p:first-child, .hk-book p:last-child { margin: 0 0 25px; }
.hk-book a, .hk-book a:link, .hk-book a:visited { color: var(--hk-olive); font-family: var(--hk-hand); }
.hk-book a:hover { color: var(--hk-red-bright); }
.hk-book-toolbar { display: flex; justify-content: center; margin-top: 20px; }
.hk-book-toolbar button, .hk-book-toolbar button:not(:disabled):hover {
  width: 48px;
  height: 46px;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
  box-shadow: none;
  transform: none;
  cursor: pointer;
}
.hk-book-toolbar button:not(:disabled):hover { color: #ccc; }
.hk-book-toolbar button:disabled { opacity: 1; cursor: default; } /* the legacy toolbar did not dim its buttons */
.hk-book-toolbar svg { display: block; width: 27px; height: 27px; margin: 0 auto; fill: none; stroke: currentColor; stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .6)); }
@media (max-width: 767px) {
  .hk-book-pages { grid-template-columns: 1fr; }
  .hk-page { min-height: var(--hk-page-h-mobile, 0px); }
  .hk-book-ready .hk-page { border-radius: 10px; background: #eee url(../img/book-paper.jpg); }
}

/* the photo book (legacy PhotoBook): one photo filling each page, cropped like the legacy 100%-height images */
.hk-photobook .hk-page { padding: 0; }
.hk-photobook.plugin--Gallery .gallery-tile, .hk-photobook.plugin--Gallery .gallery-tile picture { position: absolute; inset: 0; display: block; border-radius: inherit; background: none; overflow: hidden; }
.hk-photobook.plugin--Gallery .gallery-tile img { display: block; width: 100%; height: 100% !important; object-fit: cover; border-radius: inherit; transform: none !important; }

/* ---------- Google Maps block (legacy MapsContact band) ---------- */
.plugin--GoogleMaps { border-top: 1px solid var(--hk-olive); border-bottom: 1px solid var(--hk-olive); background: rgba(0, 0, 0, .25); overflow: hidden; }
/* no map drawn (no GOOGLE_MAPS_KEY configured, js/plugins/googlemaps.js leaves the section empty): collapse the empty band */
.plugin--GoogleMaps:not(:has(*)) { height: 0 !important; border: 0; }

/* screen-reader-only text (cookie settings gear label of js/consent.js) */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ---------- footer (legacy footer.html.twig: wood, olive line, three columns, the copyright row) ---------- */
footer {
  background: #333 url(../img/wood2.jpg) 0 0 / cover;
  border-top: 1px solid var(--hk-olive);
  color: #fff;
}
footer p, footer li, footer td { color: #fff; }
footer a, footer a:link, footer a:visited, footer a:active { color: #fff !important; font-weight: 700; }
footer a:hover { color: var(--hk-red-bright) !important; }
footer > section > section > .container { padding-top: 10px; padding-bottom: 0; }
.footer-extra > .container { padding-top: 0; padding-bottom: 10px; }
.hk-footer-bottom { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 0 20px; }
.hk-footer-bottom p, .hk-footer-bottom p:last-child { margin: 0; }
.hk-footer-bottom p.hk-legal, .hk-footer-bottom p.hk-legal:last-child { margin: 0 0 0 auto; text-align: right; } /* legacy: float right */
.hk-legal a + a { margin-left: 16px; }
.hk-legal .fab { font-size: 22px; vertical-align: middle; }

/* ---------- modals (legal texts): white paper, dark text ---------- */
.modal { max-width: 1100px !important; z-index: 9999999 !important; color: #333; }
.modal p, .modal li, .modal h1, .modal h2, .modal h3 { color: #333; text-shadow: none; font-family: 'Open Sans', Arial, Helvetica, sans-serif; }
.modal p, .modal p:first-child, .modal p:last-child { font-size: 16px; margin: 0 0 16px; }
.modal h1, .modal h2, .modal h3 { font-family: var(--hk-script); color: var(--hk-red); }
.modal a, .modal a:link, .modal a:visited { color: var(--hk-red); }
.modal a:hover { color: var(--hk-red-bright); }
.autoSizeModal { width: auto !important; }
.blocker { z-index: 999999 !important; }
.close-modal { cursor: pointer; }
#modalIframe { border: 0 solid white; width: 100%; height: 100%; }
.modalInnerContent { display: block; width: 100%; height: 100%; overflow: auto; }

/* ---------- generic engine rules kept from public/assets/css/style.css (builder rows, grid helpers, errors) ---------- */
.skewed { padding: 5rem 0 !important; }
.skewed.toright { transform: skewY(1deg); }
.skewed.toright > div { transform: skewY(-1deg); }
.skewed.toleft { transform: skewY(-1deg); }
.skewed.toleft > div { transform: skewY(1deg); }
.splitbox::before, .splitbox::after, .splitbox-normal::before, .splitbox-normal::after, .splitbox-mirror::before, .splitbox-mirror::after { content: " "; width: 100%; height: 101%; display: block; position: absolute; top: 0; }
.splitbox.toright::after, .splitbox.toleft::after, .splitbox-normal.toright::after, .splitbox-normal.toleft::after, .splitbox-mirror.toright::after, .splitbox-mirror.toleft::after { z-index: -1; }
.splitbox.toright::after, .splitbox-normal.toright::after, .splitbox-mirror.toright::after { left: 50%; width: 50%; }
.splitbox.toleft::after, .splitbox-normal.toleft::after, .splitbox-mirror.toleft::after { width: 50%; }
.splitbox.toright::after, .splitbox-mirror.toright::after { left: 45%; width: 55%; }
.splitbox.toleft::before { transform: skewX(25deg); right: -40%; width: 100%; }
.splitbox-normal.toleft::before { left: 50%; width: 50%; }
.splitbox-mirror.toleft::before { transform: skewX(-25deg); right: -40%; width: 100%; }
.splitbox.toright::before { transform: skewX(-25deg); left: -40%; width: 100%; }
.splitbox-normal.toright::before { width: 50%; }
.splitbox-mirror.toright::before { transform: skewX(25deg); left: -40%; width: 100%; }
@media (max-width: 767px) {
  .splitbox.toright::before, .splitbox-normal.toright::before, .splitbox-mirror.toright::before { width: 100%; left: 0; transform: none; }
  .splitbox.toright::after, .splitbox-normal.toright::after, .splitbox-mirror.toright::after { left: 40%; background: none !important; }
  .splitbox.toleft::before, .splitbox-normal.toleft::before, .splitbox-mirror.toleft::before { transform: none; right: 0; width: 100%; }
  .splitbox.toleft::after, .splitbox-normal.toleft::after, .splitbox-mirror.toleft::after { background: none !important; }
  .splitbox-normal.toleft::before { width: 100%; left: 0; }
}
.hidden-row { display: none !important; }
.fullwidth { margin-left: 0; margin-right: 0; }
.fullwidth [class*=column-] { padding: 0 !important; }
.fullwidth > .row { margin-left: 0 !important; margin-right: 0 !important; }
.skewed-box { padding: 4rem 0; margin: 0 0 4rem; }
@media screen and (min-width: 768px) { .skewed-box > div > .row { display: flex !important; } }
.skewed-box > div > .row > div > div { padding: 4rem !important; height: 100%; }
.skewed, .skewed-box { padding: 2rem 0 !important; }
.flag { max-width: 100%; width: 100%; }
li.sub a { width: 100%; }
.error-msg { font-size: 6rem; color: var(--hk-gold-light); text-align: center; }
.error-icon { font-size: 9.6rem; color: var(--hk-gold); text-align: center; }
.error-text { font-size: 3.2rem; color: #eee; text-align: center; }
.df-lightbox-close { color: #eee !important; }


/* ---------- tablet / mobile (legacy: the slicknav bar up to 720px, skeleton columns stacked below 550px) ---------- */
@media (max-width: 720px) {
  .border-top { display: none; }
  .hk-board { margin-top: 25px; }
}
@media (max-width: 549px) {
  .hk-header-top { display: block; }
  .hk-header-top > div { width: 100%; margin-left: 0; }
  .hk-logo-link { max-width: none; }
}

/* ---------- lighter copies of the textures (same look): the chalkboard as WebP (5 KB instead of 70 KB), the wood as a
   960px WebP on phones (97 KB instead of 241 KB) and a 1400px WebP above that (118 KB); the header wood is the
   largest paint on most pages ---------- */
.hk-board { background-image: image-set(url(../img/bord.webp) type('image/webp'), url(../img/bord.png) type('image/png')); }
header, footer, .main-content > section:has(.hk-book) { background-image: image-set(url(../img/wood2-1400.webp) type('image/webp'), url(../img/wood2.jpg) type('image/jpeg')); }
@media (max-width: 700px) {
  header, footer, .main-content > section:has(.hk-book) { background-image: image-set(url(../img/wood2-960.webp) type('image/webp'), url(../img/wood2.jpg) type('image/jpeg')); }
}
