/* The original Gleam theme remains the visual foundation. */
html { min-height: 100%; }
body { min-height: 100vh; font-size: 1rem; line-height: 1.5; isolation: isolate; }
#main_header, #main_content, #et_backgrounds { display: block; }
#et_backgrounds li { display: none; }
#et_backgrounds li:first-child { display: block; }
#et_backgrounds { z-index: -2; }
#pattern_overlay { z-index: -1; }
#et_backgrounds img { width: 100%; height: 100%; object-fit: cover; object-position: left top; }
#main_content.home_content { top: 50%; transform: translate(-50%, -50%); }
.static-home #main_menu { display: block; max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.static-home #main_content:hover #main_menu, .static-home #main_content:focus-within #main_menu, .static-home #main_content.menu-open #main_menu { max-height: 200px; }
#main_menu ul { display: grid; grid-template-columns: 1fr 1fr; }
#main_menu li { float: none; width: auto; }
#main_menu li:nth-child(even) { border-right: 0; }
#main_menu a { float: none; padding: 0 15px 0 30px; line-height: 45px; font-size: .875rem; }
#main_content.static-panel { top: 77px; transform: translateX(-50%); height: calc(100vh - 200px); overflow-y: auto; scrollbar-color: #586569 #273237; scrollbar-width: thin; }
.static-panel #et_page_content { box-sizing: border-box; }
#footer_menu { display: block; opacity: 1; bottom: 0; }
#secondary_menu { display: block; width: auto; }
#secondary_menu > ul { display: flex; flex-wrap: wrap; }
#secondary_menu li { float: none; }
#secondary_menu a { display: block; height: auto; padding: 12px 16px; line-height: 1.5; font-size: 1.125rem; }
#secondary_menu li.current_page_item a, #secondary_menu li.current_page_ancestor a { color: #a4e4df; }
#secondary_menu li ul { display: none; }
#logo_area p { font-size: .8125rem; }
img { max-width: 100%; height: auto; }
video, embed { display: block; max-width: 100%; }
video { width: 100%; height: auto; background: #000; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid #a4e4df; outline-offset: 3px; }
#et_contact_left { width: 100%; float: none; }
#et_contact_form .input { box-sizing: border-box; width: 100%; font-size: 1rem; }
#et_contact_form label { display: block; font-size: .875rem; }
#et_contact_form input[type="email"] { background: #fff; border: 1px solid #bbb; padding: 10px; color: #333; }
#et_contact_submit, #et_contact_reset { cursor: pointer; font-size: .875rem; padding: 8px 16px; }
#et_contact_submit, #et_contact_reset { width: auto !important; min-width: 100px; height: auto !important; line-height: 1.5; background: linear-gradient(#f3f5f5, #c0c7c8); border: 1px solid #7a898d; border-radius: 4px; color: #344247; }
#et_contact_submit { min-width: 130px; margin-left: 8px; }
.static-contact-note { clear: both; padding-top: 20px; font-size: .875rem; }
.static-gallery { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.static-gallery a { display: block; aspect-ratio: 4/5; overflow: hidden; border: 1px solid #0b0d0e; box-shadow: 1px 1px 0 #353f41; }
.static-gallery img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .2s; }
.static-gallery a:hover img { transform: scale(1.025); }
#photo-viewer { position: fixed; inset: 0; width: min(1100px, 95vw); height: 90vh; padding: 0; border: none; background: #151b1e; color: #fff; overflow: hidden; }
#photo-viewer::backdrop { background: rgba(0,0,0,.9); }
#photo-viewer img { display: block; width: 100%; height: calc(100% - 44px); object-fit: contain; }
#photo-viewer button { position: absolute; z-index: 1; border: 1px solid #68777c; border-radius: 0; color: #fff; background: rgba(24,32,36,.9); cursor: pointer; min-width: 44px; min-height: 44px; font-size: 28px; }
.viewer-close { right: 12px; top: 12px; }
.viewer-previous { left: 12px; top: 50%; }
.viewer-next { right: 12px; top: 50%; }
.viewer-count { padding: 8px; text-align: center; font-size: .875rem; }
@media (hover: none) { .static-home #main_menu { max-height: 200px; } }
@media (max-width: 860px) {
  #main_content.static-panel { width: calc(100% - 32px); top: 24px; height: calc(100dvh - 140px); }
  #et_page_content { padding: 30px 24px 40px; }
  #secondary_menu a { padding: 10px 12px; font-size: 1.05rem; }
  #secondary_menu > ul { justify-content: center; }
  .page .post-image { width: auto; }
  table { max-width: 100%; }
  .static-gallery { gap: 10px; }
}
@media (max-width: 520px) {
  #main_content.home_content { width: min(352px, calc(100% - 32px)); }
  #logo_area h1 { font-size: clamp(44px, 13vw, 60px); }
  .static-home #main_menu { max-height: 200px; }
  #main_content.static-panel { top: 16px; height: calc(100dvh - 132px); }
  #et_page_content { padding: 26px 18px 36px; }
  h1.main_title, #top_title h1 { font-size: 3rem; }
  .static-gallery { grid-template-columns: repeat(2,minmax(0,1fr)); }
  #secondary_menu a { padding: 9px 13px; font-size: 1rem; }
  embed { height: 350px; }
  #content { overflow-wrap: anywhere; }
  .static-panel table { font-size: .875rem; display: block; overflow-x: auto; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
