/* Compatibility layer for the preserved Squarespace layout, without its runtime. */
html { scroll-behavior: smooth; }
body { margin: 0; }
#bannerImage { margin-bottom: 91px; }
.fade-in, .logo, .image-block-wrapper, .sqs-block-image img { opacity: 1 !important; }
img { max-width: 100%; }
.sqs-image-shape-container-element > img { position: absolute; inset: 0; }
.sqs-block-image .image-block-wrapper:not(:has(.sqs-image-shape-container-element)) img { position: relative; width: 100%; height: auto; }
[hidden] { display: none !important; }
.skip-link { position: absolute; top: -100px; left: 10px; background: #fff; color: #000; padding: 12px; z-index: 1000; }
.skip-link:focus { top: 10px; }
a:focus-visible, button:focus-visible, [role=button]:focus-visible { outline: 3px solid #1e16f8; outline-offset: 4px; }
#header #topNav nav .folder:focus-within .subnav,
#header #topNav nav .folder.is-open .subnav { height: auto; overflow: visible; }
#header #topNav nav .folder .subnav { transform: translateX(-50%); }
#header #topNav nav .folder > a { cursor: pointer; }
.church-gallery { position: relative; width: 100%; margin: 0 auto; }
.church-gallery figure { margin: 0; }
.church-slides { aspect-ratio: 16 / 9; background: #f3f3f3; }
.church-slides figure { height: 100%; }
.church-gallery img { display: block; width: 100%; height: 100%; object-fit: contain; }
.collection-type-gallery .church-slides { aspect-ratio: 3 / 2; }
.church-gallery figcaption { margin-top: 8px; font-size: 18px; text-align: center; }
.gallery-controls { position: absolute; inset: 0; display: flex; align-items: center; justify-content: space-between; pointer-events: none; }
.gallery-controls button { pointer-events: auto; background: #0003 !important; color: white !important; border: none !important; border-radius: 0 !important; padding: 14px !important; font-size: 22px !important; }
.gallery-controls button, .calendar-toolbar button { border: 1px solid #d6d6d6; background: #fafafa; color: #222; cursor: pointer; padding: 7px 13px; border-radius: 2px; font: inherit; }
#canvas .gallery-controls [data-count] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
#canvas .calendar-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
#canvas .calendar-toolbar h1 { text-align: center; margin: 0 10px; font-size: 23px; }
#calendar-grid { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); border-left: 1px solid #ccc; }
#canvas #calendar-grid > div { border-right: 1px solid #ccc; border-bottom: 1px solid #ccc; padding: 7px; min-height: 95px; font: 16px Georgia,serif; overflow-wrap: anywhere; }
#canvas #calendar-grid .weekday { min-height: auto; text-align: center; font-weight: bold; border-top: 1px solid #ccc; }
#canvas #calendar-grid .empty-day { background: #f5f5f5; }
#calendar-grid a { display: block; padding: 5px 0; font-size: 13px; line-height: 1.25; }
#calendar-grid .today { background: #edf4e9; }
#calendar-list { margin-top: 20px; }
#canvas #calendar-list p, #canvas #calendar-list li { font-size: 19px; line-height: 1.4; }
#calendar-list li { margin-bottom: 10px; }
.social-links-inner { display: flex; justify-content: center; gap: 24px; }
#footer .social-links a { width: auto; height: auto; font-size: 16px; }
#footer .social-links svg { position: static; display: block; width: 28px; height: 28px; }
.contact-fallback { padding: 20px; border: 1px solid #ddd; }
@media (max-width: 900px) {
  #header #topNav nav li + li { margin-left: 18px; }
}
@media (max-width: 767px) {
  #canvas { padding: 20px; }
  #bannerImage { height: 220px; }
  .logo-subtitle { font-size: 24px; line-height: 1.2; padding: 8px 20px 0; }
  #header #topNav { top: 0; }
  .sqs-layout .sqs-row > [class*="sqs-col-"] { width: 100%; float: none; }
  #canvas .sqs-block-html { overflow-wrap: anywhere; }
  #header #topNav nav #mobileMenuLink { display: block; }
  #header #topNav nav > ul > li:not(#mobileMenuLink) { display: none; }
  #header #topNav nav.menu-open > ul > li:not(#mobileMenuLink) { display: block; margin: 0; padding: 8px 0; }
  #header #topNav nav .folder .subnav { position: static; transform: none; text-indent: 0; }
  #header #topNav nav .folder ul { border: 0; }
  #header #topNav nav .folder ul li { width: auto; }
  #header #topNav nav .folder ul li a { white-space: normal; }
  #canvas p, body #canvas div:not(#header):not(.logo-subtitle) { font-size: 23px; }
  #canvas #calendar-grid > div { min-height: 45px; padding: 4px; font-size: 12px; }
  #calendar-grid a { font-size: 10px; }
  #canvas .calendar-toolbar h1 { font-size: 18px; }
  .church-gallery img { max-height: 500px; }
}
