/* Owl Web CMS 4.6 / Owlet CMS 2.1 - section styles and text box spacing (includes/sections.php).
   Only pages that use them load this file. */

/* a background photo behind a section (the same layer as background videos) */
.osx-bg { position: relative !important; isolation: isolate; overflow: hidden; }
.osx-bgp { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.osx-bgp img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; display: block; margin: 0; border-radius: 0; }
.osx-bgp .bgv__shade { position: absolute; inset: 0; }
section.osx-bg.hero, .osx-bg.hero { background-image: none !important; }
.osx-bg.bgv-nophoto .hero__media { display: none !important; }
.osx-bg.bgv-nophoto .hero__grid { grid-template-columns: minmax(0, 1fr) !important; min-height: clamp(420px, 68vh, 760px); align-items: center; }
/* "Words over it" chosen: plain text turns white or dark (a design's own colours for cards and buttons still win) */
.osx-tl { color: #fff; }
.osx-tl :where(h1, h2, h3, h4, p, li, blockquote, figcaption, dt, dd) { color: #fff; }
.osx-td { color: #111; }
.osx-td :where(h1, h2, h3, h4, p, li, blockquote, figcaption, dt, dd) { color: #111; }

/* parallax: sections.js moves the background; these keep it still when it's switched off */
.osx-nopx, .osx-nopx * { background-attachment: scroll !important; }
.osx-px.osx-pxl-on { background-image: none !important; }
.osx-pxl { position: absolute; left: 0; right: 0; z-index: -1; pointer-events: none; background-size: cover; background-position: center; background-repeat: no-repeat; will-change: transform; }
.osx-px-moving { will-change: transform; }

/* full width: the content spreads across the screen, with a small margin at the sides */
.osx-full { max-width: none !important; border-radius: 0 !important; }
.osx-full > :is([data-wrap], .wrap, .wrap--narrow, .container, .container-fluid, .container-sm, .container-md, .container-lg, .container-xl, .container-xxl, .inner, .section__inner, .site-width, .content-width),
.osx-full > * > :is([data-wrap], .wrap, .wrap--narrow, .container, .container-fluid, .container-sm, .container-md, .container-lg, .container-xl, .container-xxl, .inner, .section__inner, .site-width, .content-width),
.osx-full .osx-unwrap {
  width: auto !important; max-width: none !important;
  margin-left: var(--osx-gut, clamp(1rem, 3vw, 2.5rem)) !important; margin-right: var(--osx-gut, clamp(1rem, 3vw, 2.5rem)) !important;
}
.osx-full.osx-nogut { --osx-gut: 0px; }
.osx-full .owl-page__wrap, .osx-full .post__body, .osx-full .rich-html { max-width: none; }

/* padding chosen for a section or a text box (blank sides keep the design's own) */
.osx-pt { padding-top: var(--osx-pt) !important; }
.osx-pr { padding-right: var(--osx-pr) !important; }
.osx-pb { padding-bottom: var(--osx-pb) !important; }
.osx-pl { padding-left: var(--osx-pl) !important; }
.osx-box { box-sizing: border-box; }
.osx-box--inline { display: inline-block; }
div.osx-box > :first-child { margin-top: 0; }
div.osx-box > :last-child { margin-bottom: 0; }
/* on phones, big spaces get smaller so the words keep room */
@media (max-width: 640px) {
  .osx-pt { padding-top: calc(var(--osx-pt) * .6) !important; }
  .osx-pb { padding-bottom: calc(var(--osx-pb) * .6) !important; }
  .osx-pl { padding-left: min(var(--osx-pl), 6vw) !important; }
  .osx-pr { padding-right: min(var(--osx-pr), 6vw) !important; }
}

/* 4.7: margin chosen for a section (space outside it). Below 0 pulls it over its neighbour, so it comes to the front. */
.osx-mt { margin-top: var(--osx-mt) !important; }
.osx-mr { margin-right: var(--osx-mr) !important; }
.osx-mb { margin-bottom: var(--osx-mb) !important; }
.osx-ml { margin-left: var(--osx-ml) !important; }
.osx-mneg { position: relative; z-index: 2; }
@media (max-width: 640px) {
  .osx-mt { margin-top: calc(var(--osx-mt) * .6) !important; }
  .osx-mb { margin-bottom: calc(var(--osx-mb) * .6) !important; }
  .osx-ml { margin-left: min(var(--osx-ml), 5vw) !important; }
  .osx-mr { margin-right: min(var(--osx-mr), 5vw) !important; }
}
@media print { .osx-bgp, .osx-pxl { display: none; } }

/* 4.23 / Owlet 2.18: a section's parts the other way round, on computers (d) and/or phones (m). sections.js adds
   .osx-rev-col to a box that only stacks its parts, so they can change places there too. */
@media (min-width: 761px) {
  [data-osx-rev~="d"] > * { order: var(--osx-o, 0) !important; }
  [data-osx-rev~="d"].osx-rev-col { display: flex !important; flex-direction: column !important; }
}
@media (max-width: 760px) {
  [data-osx-rev~="m"] > * { order: var(--osx-o, 0) !important; }
  [data-osx-rev~="m"].osx-rev-col { display: flex !important; flex-direction: column !important; }
}
