/*
 * Vvveb sections - theme-agnostic structural CSS for page-builder sections.
 *
 * Contract with public/js/vvvebjs/section.js: direct body children
 * (section/header/footer/main/nav) may carry, in order:
 *   1. content (.container)      - normal flow
 *   2. .separator.top/.bottom    - absolute svg dividers, z-index 2
 *   3. .overlay                  - empty tint div, z-index -1
 *   4. .background-container     - bg img/video/youtube (.iframe-container), z-index -2, ALWAYS LAST
 *
 * This file is structural only (positioning/layout). Colors, opacities and
 * gradients are theme-owned: set them inline on .overlay or in theme css so
 * themes keep full visual control and the editor Color/Opacity inputs work.
 *
 * Usage in a theme <head>, BEFORE the theme stylesheet so themes can override:
 *   <link href="/css/vvveb-sections.css" rel="stylesheet" media="screen">
 *
 * Compiled equivalent of public/themes/landing/scss/sections/_common.scss
 * (minus landing-specific skin: overlay default bg, sticky/dark logos).
 */
body > section,
body > footer,
body > header,
body > main,
body > nav {
  position: relative;
}
body > section .background-container,
body > footer .background-container,
body > header .background-container,
body > main .background-container,
body > section .overlay,
body > footer .overlay,
body > header .overlay,
body > main .overlay {
  position: absolute;
  top: 0;
  left: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
body > section .overlay,
body > footer .overlay,
body > header .overlay,
body > main .overlay {
  z-index: -1;
}
body > section .background-container img,
body > footer .background-container img,
body > header .background-container img,
body > main .background-container img,
body > section .background-container video,
body > footer .background-container video,
body > header .background-container video,
body > main .background-container video {
  position: absolute;
  left: 50%;
  top: 50%;
  height: 100%;
  width: auto;
  min-width: 100%;
  min-height: 100%;
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  object-fit: cover;
}
body > section .background-container .iframe-container,
body > footer .background-container .iframe-container,
body > header .background-container .iframe-container,
body > main .background-container .iframe-container {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
}
body > section .background-container .iframe-container iframe,
body > footer .background-container .iframe-container iframe,
body > header .background-container .iframe-container iframe,
body > main .background-container .iframe-container iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 100vh;
  transform: translate(-50%, -50%);
}
@media (min-aspect-ratio: 16/9) {
  body > section .background-container .iframe-container iframe,
  body > footer .background-container .iframe-container iframe,
  body > header .background-container .iframe-container iframe,
  body > main .background-container .iframe-container iframe {
    height: 56.25vw;
  }
}
@media (max-aspect-ratio: 16/9) {
  body > section .background-container .iframe-container iframe,
  body > footer .background-container .iframe-container iframe,
  body > header .background-container .iframe-container iframe,
  body > main .background-container .iframe-container iframe {
    width: 177.78vh;
  }
}
body > section .background-container.parallax,
body > footer .background-container.parallax,
body > header .background-container.parallax,
body > main .background-container.parallax {
  clip-path: inset(0 0 0 0);
}
body > section .background-container.parallax > *,
body > footer .background-container.parallax > *,
body > header .background-container.parallax > *,
body > main .background-container.parallax > * {
  position: fixed;
}
body > section .separator,
body > footer .separator,
body > header .separator,
body > main .separator {
  z-index: 2;
  position: absolute;
  width: 100%;
}
body > section .separator > svg,
body > footer .separator > svg,
body > header .separator > svg,
body > main .separator > svg,
body > section .separator > img,
body > footer .separator > img,
body > header .separator > img,
body > main .separator > img {
  width: 100%;
  height: 100%;
}
body > section .separator.bottom,
body > footer .separator.bottom,
body > header .separator.bottom,
body > main .separator.bottom {
  bottom: 0;
}
body > section .separator.top,
body > footer .separator.top,
body > header .separator.top,
body > main .separator.top {
  top: 0;
}
