/* Curiouswala — non-Mobirise layout helpers */
html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

section[data-bg-video],
section.mbr-parallax-background {
  position: relative;
  overflow: hidden;
}

.cw-bg-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.cw-bg-video-wrap iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 177.78vh;
  min-width: 100%;
  height: 100%;
  min-height: 56.25vw;
  transform: translate(-50%, -50%) scale(1.15);
  border: 0;
}

.cw-icon {
  font-size: 2rem;
  line-height: 1;
  vertical-align: middle;
}

section[data-bg-video] > .mbr-overlay {
  position: relative;
  z-index: 1;
}

section[data-bg-video] > .container,
section[data-bg-video] > .align-center.container,
section[data-bg-video] > .container-fluid {
  position: relative;
  z-index: 2;
}

.modalWindow {
  position: fixed;
  inset: 0;
  z-index: 1050;
  background: rgba(0, 0, 0, 0.85);
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modalWindow:not(.cw-modal-open) {
  display: none !important;
}

.modalWindow.cw-modal-open {
  display: flex !important;
}

.modalWindow-container {
  position: relative;
  width: 100%;
  max-width: 960px;
}

.modalWindow-video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  background: #000;
}

.modalWindow-video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.modalWindow .close {
  position: absolute;
  top: -2.5rem;
  right: 0;
  color: #fff;
  font-size: 1.75rem;
  text-decoration: none;
  cursor: pointer;
  z-index: 2;
}

.modalWindow .close:hover {
  opacity: 0.85;
}
