/* generated by scripts/mobile-fit.mjs */
:root{--e3pm-bar:#3d3222;--e3pm-panel:#241d14;--e3pm-fg:#DCD1B8;--e3pm-accent:#ff9900;--e3pm-accent-fg:#241d14}
/* E-3 phone menu (mobile/menu.js). Same look as the WP Responsive Menu sites: 42 px bar, hamburger + MENU, list
   sliding in from the left at 80% (max 400 px). Colours come from each site's own palette (sites/mobile.json).
   Outside the phone breakpoint nothing shows; scripts/mobile-fit.mjs replaces 940 with the site's breakpoint. */
.e3pm-bar, .e3pm-panel, .e3pm-shade { display: none; }
@media only screen and (max-width: 940px) {
  html.e3pm-on { padding-top: 42px !important; } /* set by menu.js once the bar exists */
  .e3pm-bar { display: block; position: fixed; top: 0; left: 0; right: 0; height: 42px; z-index: 99990; background: var(--e3pm-bar); }
  .e3pm-toggle { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 14px; cursor: pointer; color: var(--e3pm-fg); font: 400 20px/1 var(--e3pm-font, Arial, Helvetica, sans-serif); }
  .e3pm-toggle:focus-visible { outline: 2px solid var(--e3pm-fg); outline-offset: -4px; }
  .e3pm-burger { position: relative; width: 28px; height: 20px; }
  .e3pm-burger i, .e3pm-burger::before, .e3pm-burger::after { content: ""; position: absolute; left: 0; width: 28px; height: 3px; border-radius: 2px; background: var(--e3pm-fg); transition: transform .2s, opacity .2s, top .2s; }
  .e3pm-burger::before { top: 0; } .e3pm-burger i { top: 8.5px; } .e3pm-burger::after { top: 17px; }
  .e3pm-open .e3pm-burger::before { top: 8.5px; transform: rotate(45deg); }
  .e3pm-open .e3pm-burger i { opacity: 0; }
  .e3pm-open .e3pm-burger::after { top: 8.5px; transform: rotate(-45deg); }
  .e3pm-shade { position: fixed; inset: 42px 0 0 0; z-index: 99991; background: rgba(0,0,0,.55); }
  .e3pm-panel { position: fixed; top: 42px; bottom: 0; left: 0; z-index: 99992; width: 80%; max-width: 400px; overflow-y: auto; background: var(--e3pm-panel); transform: translateX(-100%); transition: transform .25s ease; visibility: hidden; }
  .e3pm-open .e3pm-shade { display: block; }
  .e3pm-panel { display: block; }
  .e3pm-open .e3pm-panel { transform: none; visibility: visible; }
  .e3pm-panel ul { list-style: none; margin: 0; padding: 0; text-align: left; }
  .e3pm-panel li { position: relative; margin: 0; padding: 0; border-bottom: 1px solid rgba(255,255,255,.12); }
  .e3pm-panel a { display: block; min-height: 48px; box-sizing: border-box; padding: 15px 56px 13px 14px; color: var(--e3pm-fg) !important; font: 400 15px/20px var(--e3pm-font, Arial, Helvetica, sans-serif) !important; text-transform: uppercase; text-decoration: none !important; background: none; }
  .e3pm-panel li.e3pm-current > a { background: var(--e3pm-accent); color: var(--e3pm-accent-fg, #fff) !important; }
  .e3pm-panel ul ul a { padding-left: 30px; font-size: 14px !important; }
  .e3pm-sub { all: unset; position: absolute; top: 0; right: 0; width: 48px; height: 48px; cursor: pointer; }
  .e3pm-sub::after { content: ""; position: absolute; top: 18px; left: 19px; width: 9px; height: 9px; border-right: 2px solid var(--e3pm-fg); border-bottom: 2px solid var(--e3pm-fg); transform: rotate(45deg); transition: transform .2s; }
  .e3pm-sub[aria-expanded="true"]::after { top: 22px; transform: rotate(-135deg); }
  .e3pm-sub:focus-visible { outline: 2px solid var(--e3pm-fg); outline-offset: -4px; }
}
@media only screen and (max-width: 940px) {
  .e3pm-panel a[role="button"] { cursor: pointer; }
}

/* boerandboer.com on phones and tablets: the fixed 920 px (home, text pages) and 718 px (galleries) layouts become one
   column in the site's own colours, images and backgrounds. Desktop (wider than the breakpoint) is untouched. */
@media only screen and (max-width: 940px) {
  body { padding-top: 0 !important; -webkit-text-size-adjust: 100%; }
  /* Text pages + home (style.css template) */
  #wrapper { width: auto !important; padding: 12px 16px !important; box-sizing: border-box; }
  #header { height: auto !important; position: static !important; }
  #header #logo { position: static !important; display: block; max-width: 100%; margin: 6px 0 12px; }
  #homeBox, #homeNav, #smallNav, ul.cssMenu, div[style*="height: 90px"] { display: none !important; }
  table, tbody, tr, td { display: block !important; width: auto !important; max-width: 100% !important; box-sizing: border-box; }
  img { max-width: 100% !important; height: auto !important; }
  iframe { max-width: 100% !important; }
  iframe[src="slider.html"] { width: 100% !important; height: auto !important; aspect-ratio: 920 / 448; }
  #indexContent, .content, #pressLeft, #pressRight, #box1, #block1, #block2, #block3, #block4, #notes, #sub, #sub2, #acc,
  #filler, #filler2, #filler3, #subnavigation, #copyright {
    width: auto !important; max-width: 100% !important; float: none !important; height: auto !important; margin-left: 0 !important; margin-right: 0 !important; box-sizing: border-box;
  }
  #pressRight { border-left: 0 !important; padding-left: 0 !important; }
  div[style*="margin-left: 50px"] { margin-left: 0 !important; }
  #wrapper p, #wrapper li, #wrapper td, #wrapper div, #indexContent, .content { font-size: 15px !important; line-height: 1.55 !important; }
  .tabberlive ul.tabbernav { padding: 0 !important; }
  .tabberlive ul.tabbernav li a { display: inline-block; padding: 10px 8px !important; font-size: 14px !important; }
  #footerNav li, #footerNav li.none { float: none !important; display: block; font-size: 14px !important; line-height: 32px !important; padding: 0 !important; background: none !important; }
  #copyright { margin: 16px 0 24px !important; font-size: 13px !important; line-height: 1.5 !important; }
  /* Gallery pages (lightbox.css template): logo box, "Portfolio" panel, thumbnail grid */
  #container { width: auto !important; margin: 16px 10px 0 !important; }
  #left, #right { float: none !important; width: auto !important; margin: 0 !important; text-align: left !important; }
  #left #menu { display: none !important; }
  #left #logo { margin: 0 0 12px !important; }
  #maincontent { width: auto !important; padding: 0 10px 14px !important; background-size: 100% auto !important; }
  #subnav { width: auto !important; margin-bottom: 10px !important; padding: 55px 0 0 !important; }
  #subnav ul.cssMenu { display: none !important; }
  .thumbnails { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 10px; overflow: visible !important; }
  .thumb { float: none !important; width: auto !important; height: auto !important; margin: 0 !important; }
  .thumb a { display: block; }
  .thumb img { width: 100% !important; height: auto !important; aspect-ratio: 1; object-fit: cover; display: block; }
  #maincontent p, #maincontent h1, #maincontent h2, #maincontent h3 { margin-left: 0 !important; margin-right: 0 !important; }
  #maincontent p { font-size: 15px !important; line-height: 1.55 !important; margin-bottom: 20px !important; }
  #footer { margin-left: 0 !important; background-size: 100% auto !important; height: auto !important; min-height: 60px; }
  .credits, .credits a { padding: 10px 0 !important; text-align: center !important; font-size: 13px !important; }
  /* Lightbox: the large picture fits the screen */
  #outerImageContainer { max-width: calc(100vw - 16px) !important; height: auto !important; box-sizing: border-box; }
  #imageDataContainer { max-width: calc(100vw - 16px) !important; }
  #lightboxImage { max-width: calc(100vw - 36px) !important; height: auto !important; }
  #lightbox { top: 20px !important; }
  /* Contact form */
  .formfield, .textarea, #block4 input, #block4 select, #block4 textarea { width: 100% !important; max-width: 100% !important; font-size: 16px !important; height: auto !important; min-height: 44px; line-height: 1.4 !important; box-sizing: border-box; }
  .textarea, #block4 textarea { min-height: 140px; }
  #submit { min-width: 88px; min-height: 44px; }
}

