/* Static-restore layer for the Wix pages.
   Part 1 (all widths): states the Wix runtime used to set after hydration.
   Part 2 (max-width:767px): mobile layout. */

/* events list: item expanded by click (runtime added .ooRgmi and measured the height) */
.FwdPeD.ooRgmi .fgI7nm{height:auto!important}
/* events list: items revealed in batches by the "load more" button */
.FwdPeD.rs-more{display:none!important}

/* event pages: the box behind the events widget was sized in the editor for the widget INCLUDING the Google map
   (JS-only, not restorable); let the box follow the widget's real height instead of leaving an empty band */
[data-mesh-id$="-gridContainer"]>[id="comp-j64ne835"]{align-self:stretch!important}
[data-mesh-id="comp-j64ne835inlineContent-gridContainer"]{min-height:0!important}

/* fluid-columns repeater (custom element upgraded by the Wix runtime): gaps from its horizontal-gap/vertical-gap="15" */
fluid-columns-repeater{--item-margin:7.5px;--margin-top:-7.5px;--margin-bottom:-7.5px;--margin-inline-start:-7.5px;--margin-inline-end:-7.5px;--justify-content:center;--direction:ltr}

/* pro gallery: hydrated layout fits the real container width (SSR assumed 1450px) */
.pro-gallery-parent-container .pro-gallery,
.pro-gallery-parent-container .pro-gallery-margin-container{width:100%!important;height:auto!important;overflow:visible!important}
.pro-gallery-parent-container .pro-gallery-margin-container{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));column-gap:40px;row-gap:40px}
.pro-gallery-margin-container>.item-link-wrapper{display:block;min-width:0}
.pro-gallery-margin-container .gallery-item-container{position:relative!important;top:auto!important;left:auto!important;width:100%!important;height:auto!important}
.pro-gallery-margin-container .gallery-item-wrapper,
.pro-gallery-margin-container .gallery-item-content{width:100%!important;height:auto!important;aspect-ratio:457/456}
.pro-gallery-margin-container .gallery-item-content img{width:100%!important;height:100%!important;object-fit:cover;display:block}
.pro-gallery-margin-container .item-hover-flex-container,
.pro-gallery-margin-container .gallery-item-hover{width:100%!important;height:100%!important}
.pro-gallery-margin-container a.rs-gal-full{display:block;color:inherit}

/* ---------------- mobile (<=767px): the Wix mobile layout was a separate JS-rendered DOM, never archived;
   the desktop mesh layout is re-flowed into one column here. Desktop (>=768px) is untouched. ---------------- */
@media (max-width:767px){
  html,body{min-width:0!important}
  #SITE_CONTAINER{overflow-x:clip}
  #SITE_CONTAINER,#main_MF,#site-root,#masterPage,#SITE_HEADER,#SITE_FOOTER,#PAGES_CONTAINER,#SITE_PAGES,#SITE_PAGES_TRANSITION_GROUP,#soapAfterPagesContainer,#soapBeforePagesContainer{min-width:0!important;width:100%!important;max-width:100%!important;left:0!important;margin-left:0!important}
  #SITE_PAGES_TRANSITION_GROUP>div,#SITE_PAGES_TRANSITION_GROUP>div>div,[id^="Container"]{min-width:0!important;width:100%!important;left:0!important;margin-left:0!important}
  [id^="pageBackground_"],[id^="pageBackground_"] [data-hook="bgLayers"],[id^="pageBackground_"] wow-image{min-width:0!important;width:100%!important;left:0!important}
  [data-testid="screenWidthContainerBg"],[data-testid="screenWidthContainerBgCenter"],[data-testid="page-bg"]{left:0!important;width:100%!important;min-width:0!important;margin-left:0!important}

  /* mesh grid -> single column */
  [data-mesh-id$="-gridContainer"]{display:flex!important;flex-direction:column!important;align-items:stretch!important;height:auto!important;min-height:0!important}
  [data-mesh-id$="-gridContainer"]>*,
  [data-mesh-id$="-gridContainer"]>interact-element>*{position:relative!important;left:0!important;top:0!important;margin:16px 16px 0!important;min-width:0!important;max-width:calc(100% - 32px)!important;align-self:stretch!important;justify-self:stretch!important;grid-area:auto!important;transform:none!important}
  [data-mesh-id$="-gridContainer"]>*:not(.wixui-vector-image),
  [data-mesh-id$="-gridContainer"]>interact-element>*:not(.wixui-vector-image){width:auto!important;height:auto}
  [data-mesh-id$="-gridContainer"]>.wixui-vector-image{align-self:center!important;margin-bottom:16px!important}
  [data-mesh-id$="-gridContainer"]>section,
  [data-mesh-id$="-gridContainer"]>.wixui-section,
  [data-mesh-id$="-gridContainer"]>.wixui-column-strip,
  [data-mesh-id$="-gridContainer"]>[id^="TPAMultiSection"],
  [data-mesh-id$="-gridContainer"]>.wixui-horizontal-line{margin:0!important;width:100%!important;max-width:100%!important}
  [data-mesh-id$="-gridContainer"]>[id^="TPAMultiSection"],[data-mesh-id$="-gridContainer"]>[id^="TPASection"]{margin:16px 0 0!important}
  [data-mesh-id$="-gridContainer"]>:empty{display:none!important}
  [data-mesh-id$="-gridContainer"]>[data-mesh-id*="-wedge-"]{display:none!important}
  section.wixui-section,.wixui-column-strip{min-width:0!important;width:100%!important;left:0!important;margin-left:0!important;height:auto!important}
  [data-mesh-id$="inlineContent"]{width:100%!important;height:auto!important;min-height:0!important}
  [data-mesh-id$="-gridContainer"]>:last-child{margin-bottom:24px!important}
  .wixui-rich-text,.wixui-rich-text *{overflow-wrap:break-word}

  /* images: intrinsic aspect ratio, never wider than the column */
  .wixui-image{width:auto!important;height:auto!important;align-self:center!important}
  .wixui-image [data-testid="linkElement"],.wixui-image wow-image,.wixui-image img{position:static!important;width:auto!important;height:auto!important;max-width:100%!important;display:block;margin:0 auto}

  /* header */
  #SITE_HEADER [data-mesh-id$="-gridContainer"]>*{align-self:center!important}
  #SITE_HEADER .wixui-button span{white-space:nowrap}
  #SITE_HEADER a.wixui-button{position:relative!important}
  .wixui-horizontal-menu ul{flex-wrap:wrap!important;justify-content:center!important;width:100%!important;margin:0!important;height:auto!important}
  .wixui-horizontal-menu [data-testid^="scrollPage"]{display:none!important}
  nav.wixui-horizontal-menu,div:has(>nav.wixui-horizontal-menu){height:auto!important;min-height:0!important}
  #SITE_HEADER,#SITE_FOOTER{height:auto!important;min-height:0!important}

  /* forms */
  .wixui-form,.wixui-form *{max-width:100%}
  .wixui-text-input,.wixui-text-input input{width:100%!important}
  .wixui-button{max-width:100%}

  div:has(>[data-testid="screenWidthContainerBgCenter"]){left:0!important;width:100%!important;min-width:0!important;margin-left:0!important}

  /* Wix Events: side-by-side list (home) */
  div:has(>[data-hook="side-by-side-items"]){min-width:0!important}
  [data-hook="side-by-side-items"]{display:flex!important;flex-direction:column!important;height:auto!important;gap:16px}
  [data-hook="side-by-side-item"]{height:auto!important;max-height:none!important;min-height:0!important;width:100%!important}
  [data-hook="side-by-side-item"] div:has(>div>[data-hook="title"]){padding:0 16px!important}
  [data-hook="side-by-side-item"]>div{flex-direction:column!important;height:auto!important}
  [data-hook="side-by-side-item"]>div>div{width:100%!important;max-width:100%!important;flex:none!important}
  [data-hook="side-by-side-item"]>div>div:has([data-hook="image"]){aspect-ratio:429/498;height:auto!important}
  [data-hook="side-by-side-item"]>div>div:not(:has([data-hook="image"])){padding:28px 0}

  /* Wix Events: event details page */
  [data-hook="event-details"] [data-hook="header"]{height:auto!important;margin-bottom:0!important}
  [data-hook="event-details"] [data-hook="header"]>div:first-child,[data-hook="event-details"] [data-hook="content-container"]>div{padding-left:16px!important;padding-right:16px!important}
  [data-hook="event-details"] div:has(>[data-hook="event-image"]){height:auto!important}
  [data-hook="event-details"] [data-hook="event-image"]{position:relative!important;top:0!important;left:0!important;width:100%!important;height:auto!important;aspect-ratio:844/552}
  [data-hook="event-details"] [data-hook="content-container"]{margin-top:0!important;padding-top:24px!important;top:0!important}
  [data-hook="event-details"]>div:first-child{display:none}

  /* negative top offsets that tuck the first section under the desktop header */
  [data-mesh-id$="-gridContainer"]{margin-top:0!important}

  /* column strips: columns one under another */
  [data-testid="columns"]{flex-direction:column!important;height:auto!important;min-height:0!important}
  [data-testid="columns"]>*{width:100%!important;max-width:100%!important;min-width:0!important;flex:none!important;height:auto!important;margin:0!important;left:0!important}
  [data-testid="columns"]>*:has(>[data-hook="bgLayers"] wow-image){min-height:0!important;aspect-ratio:4/3}

  /* very large rich-text headings */
  [data-testid="richTextElement"] :is(h1,h2,h3):is(.font_0,.font_2,.font_3,[style*="font-size:60px"],[style*="font-size:56px"],[style*="font-size:40px"],[style*="font-size:38px"]),
  [data-testid="richTextElement"] :is(h1,h2,h3) :is([style*="font-size:60px"],[style*="font-size:56px"],[style*="font-size:40px"],[style*="font-size:38px"]){font-size:clamp(28px,10.5vw,40px)!important}

  /* Wix Events: compact list (past events) */
  [data-hook="event-list-item"]{flex-wrap:nowrap!important;align-items:flex-start!important}
  [data-hook="event-list-item"]>div:last-child,[data-hook="event-list-item"]>div:last-child div,[data-hook="event-list-item"]>div:last-child a{min-width:0!important;max-width:100%!important}
  [data-hook="event-list-item"]>div:first-child{flex:none!important}
  [data-hook="event-list-item"]>div:last-child{flex:1 1 0!important;width:auto!important}
  [data-hook="ev-list-item-title"]{white-space:normal!important;overflow:visible!important;text-overflow:clip!important;font-size:22px!important;line-height:1.3!important;overflow-wrap:anywhere}
  [data-hook="event-list-item"]>div:last-child>div:first-child{flex-wrap:wrap!important}
  [data-hook="event-list-item"]>div:last-child>div:first-child>div{flex:1 1 100%!important;width:auto!important}
  [data-hook="event-list-item"] div:has(>[data-hook="ev-list-item-location"]){flex-wrap:wrap!important}

  /* pro gallery: two columns, captions not clipped */
  .pro-gallery-parent-container .pro-gallery-margin-container{grid-template-columns:repeat(2,minmax(0,1fr))!important;column-gap:16px!important;row-gap:24px!important}
  .pro-gallery-margin-container .gallery-item-common-info-outer,.pro-gallery-margin-container .gallery-item-common-info,.pro-gallery-margin-container .info-element-text{height:auto!important}

  /* rotated decorative stripes sit off-canvas on desktop (x<0); keep them out of the mobile column too */
  [data-mesh-id$="-rotated-wrapper"]:has(>.wixui-vector-image){display:none!important}

  /* touch targets >= 44px: an invisible centred hit area, the element itself keeps its display and size */
  .wixui-rich-text a,[data-hook="ev-rsvp-button"],[data-hook="title"],[data-hook="event-list-item"] a[role="button"],[data-hook^="social-bar-icon"],[data-hook^="social-share-icon"],[data-hook="RSVP_INFO_BUTTON"],[data-hook="web-link"]{position:relative}
  .wixui-rich-text a::after,[data-hook="ev-rsvp-button"]::after,[data-hook="title"]::after,[data-hook="event-list-item"] a[role="button"]::after,[data-hook^="social-bar-icon"]::after,[data-hook^="social-share-icon"]::after,[data-hook="RSVP_INFO_BUTTON"]::after,[data-hook="web-link"]::after{content:"";position:absolute;left:50%;top:50%;width:max(100%,44px);height:max(100%,44px);transform:translate(-50%,-50%)}
  .wixui-text-input,.wixui-text-input input{height:44px!important;min-height:44px!important}
  [data-mesh-id$="-gridContainer"]>div:has(>button.wixui-button),[data-mesh-id$="-gridContainer"]>div:has(>a.wixui-button){height:auto!important;min-height:44px!important}
  [data-mesh-id$="-gridContainer"]>div>button.wixui-button,[data-mesh-id$="-gridContainer"]>div>a.wixui-button{min-height:44px!important}
  #SITE_FOOTER [data-mesh-id$="-gridContainer"]>[data-testid="richTextElement"]{padding:12px 0!important}
}
