/* Desktop rules remain in style.css. Only narrow layouts are overridden. */
.menu-toggle { display: none; }
.responsive-slider-frame { margin: 0 0 20px; clear: both; }
.responsive-slider-frame .box_skitter { margin-bottom: 0; transform-origin: top left; }

@media (max-width: 1039px) {
  .skitter-round .prev_button { left: 0; }
  .skitter-round .next_button { right: 0; }
  #top, #wrapper { width: calc(100% - 32px); }
  #top { height: auto; display: flow-root; }
  #top h1 { float: none; }
  #top h1 a { float: none; display: block; margin: 0 auto; }
  .main_menu { float: none; display: flex; flex-wrap: wrap; justify-content: center; border-right: 0; }
  .main_menu li { float: none; flex: 1 1 120px; border: 0; }
  .main_menu li a { float: none; display: block; height: auto; min-height: 44px; box-sizing: border-box; padding: 14px 10px; text-align: center; }
  #content, #footer, .main_boxb { width: 100%; box-sizing: border-box; }
  .main_box { float: none; width: 100%; box-sizing: border-box; margin: 0 0 24px; }
  #one_content, #one_content.full_size { width: 100%; padding: 32px 24px; box-sizing: border-box; }
  #one_content .entry-header { padding-left: 0; margin-left: 0; }
  #one_content .entry-thumbnail { position: static; display: flow-root; margin-bottom: 16px; }
  #content img { max-width: 100%; height: auto; box-sizing: border-box; }
  #content img.alignright, #content img.alignleft { max-width: calc(100% - 20px); }
  #content iframe, #content video, #content embed, #content object { max-width: 100%; }
  #content input, #content textarea, #content select { max-width: 100%; box-sizing: border-box; }
  #content textarea { width: 100%; }
  #content table { display: block; max-width: 100%; overflow-x: auto; }
  #content, .main_boxb { overflow-wrap: anywhere; }
  #content h1, #content h2 { font-size: clamp(26px, 5vw, 58px); }
  .full_content_picture { width: 100%; height: auto; aspect-ratio: 1000 / 426; background-size: 100% auto; }
  #sub, #main { float: none; width: 100%; height: auto; }
  #footer { display: flow-root; }
  #footer ul.nav_menu { float: none; display: flex; flex-wrap: wrap; gap: 12px 0; margin-bottom: 16px; }
  #footer p { float: none; overflow-wrap: anywhere; }
  #simplecookienotification_v01 { max-width: calc(100% - 20px); box-sizing: border-box; }
}

@media (max-width: 767px) {
  #top { position: relative; }
  #top.menu-ready h1 a { margin-left: 0; }
  .menu-ready .menu-toggle { display: flex; align-items: center; gap: 8px; position: absolute; top: 22px; right: 0; min-height: 44px; padding: 8px 10px; border: 1px solid #737172; border-radius: 4px; background: #3e3e3e; color: #e3e3e3; font: 12px Verdana, Arial, sans-serif; cursor: pointer; }
  .menu-toggle:focus-visible { outline: 2px solid #f0333a; outline-offset: 3px; }
  .menu-toggle-icon { display: flex; flex-direction: column; gap: 4px; width: 20px; }
  .menu-toggle-icon span { display: block; width: 20px; height: 2px; background: #e3e3e3; }
  .menu-open .menu-toggle-icon span:first-child { transform: translateY(6px) rotate(45deg); }
  .menu-open .menu-toggle-icon span:nth-child(2) { opacity: 0; }
  .menu-open .menu-toggle-icon span:last-child { transform: translateY(-6px) rotate(-45deg); }
  #top.menu-ready .main_menu { display: none; }
  #top.menu-ready.menu-open .main_menu { display: flex; flex-direction: column; padding-bottom: 12px; }
  #top.menu-ready .main_menu li { flex: none; width: 100%; }
  #top.menu-ready .main_menu li a { text-align: left; border-top: 1px solid #505050; padding: 14px 10px; }
}

@media (max-width: 480px) {
  #wrapper { padding-top: 24px; padding-bottom: 24px; }
  .main_menu li { flex-basis: 50%; }
  #main_header { margin-bottom: 28px; }
  #main_header h1 { font-size: 210%; }
  #one_content, #one_content.full_size { padding: 24px 16px; }
  #content img { float: none; margin: 0 0 16px; }
  #content .alignright, #content .alignleft { float: none; margin: 0 0 16px; }
}

@media (max-width: 359px) {
  .menu-toggle > span:last-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
}
