/* Fixes for the static copy (same as the HRB migration, HRB/assets/css/hrb-layout.css). */

/* Section background images fill their section at any screen width: the snapshot froze them at the
   pixel size measured in a 1440px window (Wix's JavaScript resized them on load). */
[id^="bgLayers_"] img,
[id^="bgLayers_"] video {
  width: 100% !important;
  height: 100% !important;
}

/* Photo slider that replaces Wix's frozen "slider" gallery (assets/js/mor.js) */
.mor-slider { position: relative; width: 100%; }
.mor-slider__track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  overscroll-behavior-x: contain; gap: 0;
}
.mor-slider__track::-webkit-scrollbar { display: none; }
.mor-slider__track img {
  flex: 0 0 100%; width: 100%; aspect-ratio: var(--ratio, 16 / 9); object-fit: cover;
  scroll-snap-align: start; border-radius: var(--radius, 0);
}
.mor-slider__btn {
  position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .85); color: #111; cursor: pointer;
}
.mor-slider__btn[hidden] { display: none; }
.mor-slider__btn--prev { left: 12px; }
.mor-slider__btn--next { right: 12px; }

/* About page (/studio): the archived About text in a readable column inside each Wix section
   (tools/wix/about.js). Each block copies its original Wix block's font, size and colour rules
   (.mor-copy-<id>); here they lose that block's grid position and fixed width. */
.mor-flow {
  grid-area: 1 / 1 / -1 / -1;
  justify-self: center;
  align-self: start;
  width: min(820px, calc(100% - 40px));
  margin-left: auto; margin-right: auto;
  padding: clamp(56px, 8vw, 120px) 0;
  position: relative;
  display: block;
}
.mor-flow > .wixui-rich-text {
  width: auto !important; max-width: none !important; height: auto !important;
  margin: 0 0 1.1em !important; grid-area: auto !important; justify-self: auto !important;
  align-self: auto !important; position: relative !important; display: block !important;
}
.mor-flow > .mor-h2 { margin-top: 1.4em !important; margin-bottom: .8em !important; }
.mor-flow > .mor-label { margin-top: 1.2em !important; margin-bottom: .7em !important; }
.mor-flow > :first-child { margin-top: 0 !important; }
.mor-flow .mor-p :is(p, ul, li) { text-align: left !important; }
.mor-flow .mor-p p { margin: 0 0 1em !important; }
.mor-flow .mor-p a { color: inherit; text-decoration: underline; }
.mor-about-list { padding-left: 1.3em; margin: 0; }
.mor-about-list li { list-style: disc; margin: 0 0 .7em; }
.mor-about-list li p { margin: 0 !important; }
.mor-about-video { margin: .4em 0 1.4em; }
.mor-about-video video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 8px; }
/* hero: two paragraphs where Wix had one */
#comp-lzl356bt8 p + p { margin-top: 1em; }

/* Mission Statement, Values and Vision: a row of cards on MOR blue (the home page hero colour) */
.mor-flow--wide { width: min(1240px, calc(100% - 40px)); }
.mor-cards { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 24px; align-items: stretch; }
.mor-card {
  background: rgb(53, 56, 118); border-radius: 16px; padding: 36px 30px 22px;
  display: flex; flex-direction: column;
}
.mor-card > .wixui-rich-text {
  width: auto !important; max-width: none !important; height: auto !important; margin: 0 0 1em !important;
  grid-area: auto !important; position: relative !important; display: block !important;
}
.mor-card > * { order: 0 !important; }  /* the copied Wix rules carry a flex order */
.mor-card > .mor-h2 { margin-bottom: .7em !important; }
.mor-card > .mor-label { margin-top: .4em !important; }
.mor-card .mor-label h3 { text-align: center !important; }
.mor-card .mor-p :is(p, ul, li) { text-align: left !important; }
.mor-card .mor-p p { margin: 0 0 1em !important; }
@media (max-width: 1000px) { .mor-cards { grid-template-columns: minmax(0, 1fr); gap: 18px; } .mor-card { padding: 28px 22px 14px; } }

/* Nev D. and Joh M.: boxed like the archived page (thin MOR-blue border), on the grey section */
.mor-card--outline { background: #fff; border: 1px solid rgb(53, 56, 118); }
.mor-card--outline .mor-about-video { margin: auto 0 18px; }  /* videos line up at the bottom of both cards */

/* Home page on tablets and phones (below 1000px): every text centred. Wix's design breaks here (on the
   live site too): text blocks keep fixed widths wider than their columns (641px, 887px), and the
   "We share translated video testimonies…" text, video and READ MORE button share one grid cell, so
   they overlap. Desktop is unchanged. */
@media (max-width: 1000px) {
  /* horizontal only: in Wix's grids align-self would also move blocks vertically */
  html[data-mor-page="home"] :is(main, footer) .wixui-rich-text {
    max-width: 100% !important;
    margin-left: auto !important; margin-right: auto !important;
    justify-self: center !important;
  }
  html[data-mor-page="home"] :is(main, footer) .wixui-rich-text :is(p, h1, h2, h3, h4, h5, h6, li, span, a) {
    text-align: center !important;
  }
  /* buttons (READ MORE, OTHER PROJECTS) centred under their text */
  html[data-mor-page="home"] :is(#comp-mgpg4dz5, #comp-lzkyusve) {
    margin-left: auto !important; margin-right: auto !important; justify-self: center !important;
  }
  /* "We share translated video testimonies…": text, video, button stacked */
  html[data-mor-page="home"] #comp-mgpg4duw > .comp-mgpg4duw-container {
    display: flex !important; flex-direction: column !important; align-items: center !important;
    gap: 28px; padding: 64px 24px !important;
  }
  html[data-mor-page="home"] #comp-mgpg4duw :is(#comp-mgpgi7gy, #comp-mgpg4dz5, #comp-mgpg8zgu) {
    margin: 0 auto !important; grid-area: auto !important; position: relative !important;
    max-width: 100% !important; align-self: center !important; justify-self: center !important;
  }
  html[data-mor-page="home"] #comp-mgpg4duw #comp-mgpgi7gy { order: 1; width: min(620px, 100%) !important; }
  html[data-mor-page="home"] #comp-mgpg4duw #comp-mgpg8zgu { order: 2; }
  html[data-mor-page="home"] #comp-mgpg4duw #comp-mgpg4dz5 { order: 3; }
  html[data-mor-page="home"] #comp-mgpg4duw #comp-mgpg4dyt { width: 100% !important; }
  /* footer: menu items, form labels and the form's text centred too */
  html[data-mor-page="home"] footer :is(nav, ul, li, [data-part="menu-item"], [data-part="menu-item-content"]) {
    text-align: center !important; justify-content: center !important; align-items: center !important;
  }
  html[data-mor-page="home"] footer label, html[data-mor-page="home"] footer [data-hook^="form-field-"] {
    text-align: center !important; justify-content: center !important;
  }
  html[data-mor-page="home"] footer label { display: flex !important; width: 100% !important; }
  /* contact details and menu: one full-width row each (Wix puts them side by side in one row) */
  html[data-mor-page="home"] .comp-kbgakxmn_r_comp-kbgakgyt-container { grid-template-rows: repeat(5, auto) !important; }
  html[data-mor-page="home"] :is(#comp-kbgakxmn_r_comp-lxnufrqa, #comp-kbgakxmn_r_comp-lzgnvgmh) {
    grid-column: 1 / 3 !important; width: 100% !important; justify-self: stretch !important;
    margin-left: 0 !important; margin-right: 0 !important; height: auto !important;
  }
  html[data-mor-page="home"] :is(#comp-kbgakxmn_r_comp-lxnufrqa, #comp-kbgakxmn_r_comp-lzgnvgmh) > [data-testid="responsive-container-content"],
  html[data-mor-page="home"] :is(#comp-kbgakxmn_r_comp-lxnufrqa, #comp-kbgakxmn_r_comp-lzgnvgmh) > div[class$="-container"] {
    justify-items: center !important; justify-content: center !important; align-items: center !important;
  }
  html[data-mor-page="home"] #comp-kbgakxmn_r_comp-lzgnvgmh :is([id$="m8h3mfr7"], [id$="m8h3mfr7-menu-content"]) {
    margin-left: auto !important; margin-right: auto !important; justify-self: center !important;
  }
  html[data-mor-page="home"] #comp-kbgakxmn_r_comp-lzgnvgmh :is(nav, ul) { margin: 0 auto !important; }
  /* desktop page (tablets): title, contact, menu, form, Enjoy Not Endure */
  html[data-mor-page="home"][data-mor-device="desktop"] #comp-kbgakxmn_r_comp-lxnufrqa { grid-row: 2 !important; }
  html[data-mor-page="home"][data-mor-device="desktop"] #comp-kbgakxmn_r_comp-lzgnvgmh { grid-row: 3 !important; }
  html[data-mor-page="home"][data-mor-device="desktop"] #comp-kbgakxmn_r_comp-lxp0ae1d { grid-row: 4 !important; }
  html[data-mor-page="home"][data-mor-device="desktop"] #comp-kbgakxmn_r_comp-lxp0dbdc { grid-row: 5 !important; }
  /* phone page: title, form, contact, menu, Enjoy Not Endure (Wix's phone order) */
  html[data-mor-page="home"][data-mor-device="phone"] #comp-kbgakxmn_r_comp-lxnufrqa { grid-row: 3 !important; }
  html[data-mor-page="home"][data-mor-device="phone"] #comp-kbgakxmn_r_comp-lzgnvgmh { grid-row: 4 !important; padding-top: 4px; }
  html[data-mor-page="home"][data-mor-device="phone"] #comp-kbgakxmn_r_comp-lxp0dbdc { grid-row: 5 !important; }
  html[data-mor-page="home"] footer :is(input, textarea)::placeholder { text-align: center; }
  html[data-mor-page="home"] footer :is(input, textarea) { text-align: center !important; }
  /* "Enjoy Not Endure", the round logo and the social icons share one grid cell, so centred text ran
     into the logo: stack them, centred */
  html[data-mor-page="home"] .comp-kbgakxmn_r_comp-lxp0dbdc-container {
    display: flex !important; flex-direction: column !important; align-items: center !important;
    gap: 18px; padding: 28px 16px 36px !important;
  }
  html[data-mor-page="home"] .comp-kbgakxmn_r_comp-lxp0dbdc-container > :is(#comp-kbgakxmn_r_comp-mgphpdsi, #comp-kbgakxmn_r_comp-mgphcqnz, #comp-kbgakxmn_r_comp-mgph5p2f) {
    grid-area: auto !important; margin: 0 auto !important; position: relative !important;
    max-width: 100% !important; left: auto !important; top: auto !important; inset: auto !important;
  }
  html[data-mor-page="home"] #comp-kbgakxmn_r_comp-mgphpdsi { order: 1; height: auto !important; }
  html[data-mor-page="home"] #comp-kbgakxmn_r_comp-mgphcqnz { order: 2; }
  html[data-mor-page="home"] #comp-kbgakxmn_r_comp-mgph5p2f { order: 3; }
  /* the contact box had its own dark-blue fill (beside the menu in Wix's design); full width it made
     a stray band, so it shows the footer's background like the menu box below it */
  html[data-mor-page="home"] #comp-kbgakxmn_r_comp-lxnufrqa,
  html[data-mor-page="home"] #comp-kbgakxmn_r_comp-lxnufrqa > .inner-box { background: transparent !important; }
  /* form title ("READY TO COLLABORATE?") and subtitle */
  html[data-mor-page="home"] footer :is(h1, h2, h3, h4, p):not(.wixui-rich-text__text) { text-align: center !important; }
  /* "Supported by" logo wall: Wix placed the 20 logos at fixed pixel positions for one width (a 900px
     box on the desktop page, 350px on the phone page), so other widths cut columns off. Below 1000px
     it is a real grid: Wix's 5 columns, shrinking with the screen, every logo whole. */
  html[data-mor-page="home"] :is(#comp-mgq8wmqu, #gallery-wrapper-comp-mgq8wmqu, #pro-gallery-comp-mgq8wmqu, #pro-gallery-container-comp-mgq8wmqu) {
    height: auto !important; width: 100% !important; max-width: 100% !important; overflow: visible !important;
  }
  html[data-mor-page="home"] #pro-gallery-margin-container-comp-mgq8wmqu {
    display: grid !important; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px 10px;
    width: 100% !important; height: auto !important; box-sizing: border-box; padding: 0 4px;
  }
  html[data-mor-page="home"] #pro-gallery-margin-container-comp-mgq8wmqu .gallery-item-container {
    position: relative !important; inset: auto !important; width: 100% !important; height: auto !important;
    aspect-ratio: 1 / 1; transform: none !important; margin: 0 !important;
  }
  html[data-mor-page="home"] #pro-gallery-margin-container-comp-mgq8wmqu .gallery-item-container > div:not(.item-action),
  html[data-mor-page="home"] #pro-gallery-margin-container-comp-mgq8wmqu :is(.gallery-item-wrapper, .gallery-item-content, .item-hover-flex-container, .gallery-item-hover, picture) {
    display: block;
    width: 100% !important; height: 100% !important; margin: 0 !important;
  }
  html[data-mor-page="home"] #pro-gallery-margin-container-comp-mgq8wmqu img {
    width: 100% !important; height: 100% !important; object-fit: contain !important;
  }
}

/* tablets (desktop page below 1000px): "SUPPORTED BY" and the logo grid shared one grid cell, so the
   grid sat over the heading. Stack them. */
@media (max-width: 1000px) {
  html[data-mor-page="home"][data-mor-device="desktop"] .comp-lzfvxak0-container {
    display: flex !important; flex-direction: column !important; align-items: center !important;
    gap: 44px; padding: 56px 24px 72px !important; height: auto !important;
  }
  html[data-mor-page="home"][data-mor-device="desktop"] .comp-lzfvxak0-container > :is(#comp-lzfvxj476, #comp-mgq8wmqu) {
    grid-area: auto !important; margin: 0 !important; position: relative !important;
  }
  html[data-mor-page="home"][data-mor-device="desktop"] #comp-lzfvxj476 { order: 1; }
  html[data-mor-page="home"][data-mor-device="desktop"] #comp-mgq8wmqu { order: 2; width: min(760px, 100%) !important; }
  html[data-mor-page="home"][data-mor-device="desktop"] :is(#comp-lzfvxak0, #comp-lxnaivs3) { height: auto !important; min-height: 0 !important; }
}

/* "Supported by" logos (home): no animation at any width (the user's call, 17 Nov 2026): no slide-up,
   no zoom on hover, no fades. They're simply there. */
html[data-mor-page="home"] #pro-gallery-comp-mgq8wmqu .gallery-item-container {
  transform: none !important; opacity: 1 !important;
}
html[data-mor-page="home"] #pro-gallery-comp-mgq8wmqu *,
html[data-mor-page="home"] #pro-gallery-comp-mgq8wmqu *::before,
html[data-mor-page="home"] #pro-gallery-comp-mgq8wmqu *::after {
  transition: none !important; animation: none !important;
}
html[data-mor-page="home"] #pro-gallery-comp-mgq8wmqu .gallery-item-container:hover :is(img, picture, .gallery-item-content, .gallery-item-wrapper) {
  transform: none !important;
}

/* Home page hero and collage (tools/wix/home.py, 2 Dec 2026).
   Hero: as on the live site now, the "MOR PROJECT" photo at 39% opacity over MOR blue, under Wix's dot
   overlay, and the hero scrolls away (the 17 Nov capture had it pinned, with the collage sliding over it). */
html[data-mor-page="home"] #comp-kbgaghri { position: relative !important; top: auto !important; }
html[data-mor-page="home"] #bgLayers_comp-kbgaghri img.mor-bg--hero {
  position: absolute; inset: 0; width: 100% !important; height: 100% !important;
  object-fit: cover; object-position: 49% 10%; opacity: .39;
}
/* Collage (2nd section) and About (3rd): the black-and-white motorcycle photo as one fixed backdrop behind
   both, so the collage photos appear over it as you scroll and About continues it without a seam. Each
   section clips the fixed photo to its own box. */
html[data-mor-page="home"] :is(#bgLayers_comp-lzehumb8, #bgLayers_comp-lzfu2mbi) { clip-path: inset(0); contain: none !important; }
html[data-mor-page="home"] :is(#bgLayers_comp-lzehumb8, #bgLayers_comp-lzfu2mbi) [data-motion-part^="BG_MEDIA"],
html[data-mor-page="home"] #bgLayers_comp-lzfu2mbi wow-image { transform: none !important; will-change: auto !important; }
html[data-mor-page="home"] :is(#bgLayers_comp-lzehumb8, #bgLayers_comp-lzfu2mbi) img {
  position: fixed !important; inset: 0 !important; width: 100vw !important; height: 100vh !important;
  object-fit: cover !important; object-position: 50% 50% !important;
}
/* the collage gets About's look: the photo at 26% over black (Wix's settings for the About background) */
html[data-mor-page="home"] #bgLayers_comp-lzehumb8 [data-testid="colorUnderlay"] { background-color: #000 !important; }
html[data-mor-page="home"] #bgLayers_comp-lzehumb8 img.mor-bg--fixed { opacity: .26; }
/* Projects: more room between OTHER PROJECTS and the photos below it; the new Holistic Recovery Bali
   photo (tools/wix/home.py) is cropped to its tile like the others */
/* (above 750px only: below it Wix puts the button under the photos) */
@media (min-width: 751px) { html[data-mor-page="home"] #comp-lzfvag3q { margin-top: 48px !important; } }
html[data-mor-page="home"] #comp-lzfvag3q img[src*="52a3fc94c67d45129226adda5012c13e"] { object-fit: cover !important; }

/* Blog (worker/src/blog.js, 2 Dec 2026): article cards on /blog and /blank, in place of Wix's frozen card,
   styled like it (dark card, Madefor Display, white text) */
.mor-post-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; width: 100%; padding-bottom: 48px; }
.mor-post-cards__empty { color: inherit; font: 16px/1.5 madefor-display, sans-serif; }
.mor-post-card { background: #000; color: #fff; border: 1px solid rgba(255, 255, 255, .18); overflow: hidden; }
.mor-post-card__link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.mor-post-card__img { aspect-ratio: 4 / 3; background: #353876; overflow: hidden; }
.mor-post-card__img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.mor-post-card__img img.mor-post-card__logo { object-fit: contain; padding: 18%; }
.mor-post-card__link:hover .mor-post-card__img img { transform: scale(1.03); }
.mor-post-card__body { padding: 22px 24px 26px; font-family: madefor-display, helveticaneuew01-45ligh, sans-serif; }
.mor-post-card__meta { display: flex; gap: 10px; align-items: center; font-size: 12px; line-height: 1.4; margin-bottom: 14px; }
.mor-post-card__meta img { width: 32px; height: 32px; border-radius: 50%; background: #353876; flex: none; }
.mor-post-card__meta span { display: block; }
.mor-post-card__title { font: 400 20px/1.4 madefor-display, helveticaneuew01-45ligh, sans-serif; margin: 0 0 10px; color: #fff; }
.mor-post-card__link:hover .mor-post-card__title { color: #f39a3d; }
.mor-post-card__excerpt {
  font-size: 14px; line-height: 1.6; margin: 0; color: #fff;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
/* Wix gave its list a fixed height for one card: let it grow with the cards */
[data-hook="post-list-pro-gallery-container"]:has(.mor-post-cards),
[data-hook="post-list"]:has(.mor-post-cards) { height: auto !important; min-height: 0 !important; }

/* An article written in the editor, inside the copied post page: inset like the post title */
section[data-hook="post-description"] > .mor-article__cover,
section[data-hook="post-description"] > .mor-article { margin-left: var(--mor-inset, 60px); margin-right: var(--mor-inset, 60px); }
@media (max-width: 750px) { section[data-hook="post-description"] { --mor-inset: 0px; } }
.mor-article__cover { margin: 0 0 28px; }
.mor-article__cover img { display: block; width: 100%; height: auto; }
.mor-article { font: 18px/1.7 madefor-text, helveticaneuew01-45ligh, sans-serif; color: inherit; }
.mor-article p { margin: 0 0 1.1em; }
.mor-article h2 { font: 700 28px/1.3 madefor-display, sans-serif; margin: 1.4em 0 .5em; color: #353876; }
.mor-article h3 { font: 700 22px/1.35 madefor-display, sans-serif; margin: 1.3em 0 .4em; color: #353876; }
.mor-article h4 { font: 700 18px/1.4 madefor-display, sans-serif; margin: 1.2em 0 .4em; }
.mor-article ul, .mor-article ol { margin: 0 0 1.1em; padding-left: 1.4em; }
.mor-article li { margin: 0 0 .4em; }
.mor-article blockquote { margin: 1.4em 0; padding-left: 18px; border-left: 3px solid #f39a3d; font-size: 21px; }
.mor-article a { color: #353876; text-decoration: underline; }
.mor-article figure { margin: 1.4em 0; }
.mor-article img { display: block; max-width: 100%; height: auto; }
.mor-article figcaption { font-size: 14px; opacity: .75; margin-top: 6px; }

/* Footer email (admin@, a little longer than Wix's info@): shrinks slightly on narrower desktop screens so it
   doesn't run into the menu column next to it (2 Dec 2026) */
@media (min-width: 751px) {
  footer a[href^="mailto:ADMIN@"] { font-size: clamp(11px, 1.22vw, 14px) !important; }
}
