/* Static replacements for Weebly's runtime pieces (menus, columns, audio, search). */

/* logo image sized like the Weebly original */
.wsite-logo img.wsite-logo-img { max-height: 90px; width: auto; display: inline-block; }

/* ---------- desktop navigation with dropdowns ---------- */
#navigation { overflow: visible; }
#navigation ul { list-style: none; margin: 0; padding: 0; }
#navigation > ul > li { position: relative; }
#navigation li.active > a { background-color: #f6f6f6; color: #484848; }
#navigation .submenu {
  display: none; position: absolute; left: 0; top: 100%; z-index: 50;
  min-width: 240px; text-align: left; text-transform: none; white-space: normal;
  background: #f6f6f6; box-shadow: 0 2px 6px rgba(0,0,0,.12);
}
#navigation .submenu .submenu { left: 100%; top: 0; }
#navigation li:hover > .submenu,
#navigation li:focus-within > .submenu { display: block; }
#navigation .submenu li { display: block; position: relative; background: #f6f6f6; }
#navigation .submenu a { display: block; padding: 8px 14px; color: #484848; font-size: 13px; }
#navigation .submenu a:hover { background: #e8e8e8; color: #484848; }
#navigation .submenu .wsite-menu-arrow { float: right; }
#navigation .submenu { max-height: 75vh; overflow-y: auto; }
#navigation .submenu .submenu { max-height: none; overflow: visible; }

/* ---------- mobile navigation ---------- */
.nav-trigger { display: none; background: none; border: 0; cursor: pointer; padding: 10px; position: absolute; left: 15px; top: 20px; }
.nav-trigger span { display: block; width: 24px; height: 2px; margin: 5px 0; background: #484848; }
.navmobile-wrapper { display: none; }
#navmobile ul { list-style: none; margin: 0; padding: 0; }
#navmobile li { position: relative; border-bottom: 1px solid #e8e8e8; }
#navmobile a { display: block; padding: 12px 44px 12px 15px; color: #484848; }
#navmobile .submenu { display: none; padding-left: 15px; }
#navmobile li.open > .submenu { display: block; }
#navmobile .sub-toggle { position: absolute; right: 0; top: 0; width: 44px; height: 44px; border: 0; background: none; font-size: 20px; color: #484848; cursor: pointer; }
#navmobile .wsite-menu-arrow { display: none; }

/* vertical divider add-on: a plain line (editor placeholder text removed) */
.waddons_vert_divider { font-size: 0 !important; padding: 0 !important; background: none !important; width: 0; min-height: 160px; margin: 0 auto; border-left: 1px solid #d0d0d0; }
a.back-to-top { background-size: 24px 24px !important; }

@media (max-width: 992px) {
  .container, #footer-content, #navigation { width: 100%; }
  #navigation { display: none; }
  .nav-trigger { display: block; z-index: 1001; }
  #header { position: relative; padding-top: 30px; }
  .navmobile-wrapper { display: block; z-index: 1000; pointer-events: none; }
  body.menu-open .navmobile-wrapper { pointer-events: auto; box-shadow: 2px 0 12px rgba(0,0,0,.15); }
  body.menu-open .nav-trigger { position: fixed; }
  .wsite-multicol-row { display: block !important; margin: 0 !important; }
  .wsite-multicol-col { max-width: 100% !important; padding: 0 !important; }
  .container { padding: 2em 1em; }
  img { max-width: 100%; height: auto; }
  #content-wrapper table { max-width: 100%; }
}

/* ---------- multi-column layout (replaces Weebly's table layout) ---------- */
.wsite-multicol-row { display: flex; flex-wrap: nowrap; }
.wsite-multicol-col { min-width: 0; }

/* ---------- elements ---------- */
.wsite-spacer { display: block; }
.wsite-image { display: block; }
.wsite-image img { max-width: 100%; height: auto; }
hr.styled-hr { height: 1px; border: 0; }
.wsite-button { display: inline-block; text-decoration: none; }
.wsite-button-large .wsite-button-inner { font-size: 16px; }
.wsite-html5audio audio { width: 100%; max-width: 560px; margin: 4px 0 14px; }
.audio-label { font-size: 13px; color: #484848; margin-top: 8px; }
.imgPusher { float: left; }

/* search box (element + search page) */
.wsite-search-element { position: relative; max-width: 360px; }
.wsite-search-element-input, #q {
  width: 100%; box-sizing: border-box; padding: 8px 10px; border: 1px solid #d0d0d0; font: inherit;
}
.wsite-search-element-submit { display: none; }
#results .result { margin: 1.2em 0; }
#results .result a { font-size: 1.1em; }
#results .snip { color: #8e8e8e; font-size: 14px; }

/* blog */
#blogTable { table-layout: auto !important; }
.blog-sidebar { display: none; }
.blog-title { margin-bottom: .2em; }
.blog-date { font-size: 13px; margin-bottom: 1em; }

/* audio players: Weebly styled these with its own player; give the native one a real size */
.wsite-html5audio audio { display: block; height: 40px !important; min-width: 260px; }
@media (max-width: 992px) { body.menu-open .nav-trigger { background: #fff; border-radius: 4px; } }

/* photo galleries & slideshows (replace Weebly's gallery scripts) */
.gallery { display: grid; grid-template-columns: repeat(var(--cols, 3), 1fr); gap: var(--gap, 5px); margin: 10px 0; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; height: auto; display: block; border: 1px solid #d0d0d0; }
.gallery figcaption { font-size: 13px; text-align: center; padding: 4px 0; }
.slideshow { margin: 10px auto; max-width: 700px; }
.ss-main { position: relative; text-align: center; background: #f6f6f6; }
.ss-main img { display: none; max-width: 100%; max-height: 600px; margin: 0 auto; }
.ss-main img.on { display: block; }
.ss-prev, .ss-next { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; background: rgba(0,0,0,.45); color: #fff; border: 0; font-size: 32px; width: 40px; height: 60px; cursor: pointer; }
.ss-prev { left: 0; } .ss-next { right: 0; }
.ss-thumbs { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; margin-top: 6px; }
.ss-thumbs button { border: 2px solid transparent; padding: 0; background: none; cursor: pointer; }
.ss-thumbs button.on { border-color: #5199a8; }
.ss-thumbs img { height: 60px; width: auto; display: block; }
@media (max-width: 600px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
