.background-video-container {
  margin-top: -5rem;
  z-index: 2000000;
  flex-flow: column;
  justify-content: center;
  align-items: center;
  display: flex;
}

.background-video {
  box-sizing: border-box;
  aspect-ratio: 1;
  object-fit: cover;
  width: auto;
  min-width: auto;
  max-width: none;
  height: 100svh;
  min-height: auto;
  display: block;
  overflow: auto;
}

.w-background-video {
  color: #fff;
  height: 500px;
  position: absolute;
  overflow: hidden;
}

.w-background-video > video {
  object-fit: cover;
  z-index: -100;
  background-position: 50%;
  background-size: cover;
  width: 100%;
  height: 100%;
  margin: auto;
  position: absolute;
  inset: -100%;
}

.w-background-video > video::-webkit-media-controls-start-playback-button {
  -webkit-appearance: none;
  display: none !important;
}

.w-background-video--control {
  background-color: #0000;
  padding: 0;
  position: absolute;
  bottom: 1em;
  right: 1em;
}

.w-background-video--control > [hidden] {
  display: none !important;
}

.portfolio-vid-1 {
  box-sizing: border-box;
  aspect-ratio: 1;
  object-fit: cover;
  width: 100%;
  min-width: auto;
  max-width: none;
  height: auto;
  min-height: auto;
  max-height: 100svh;
  display: block;
  overflow: auto;
}

.custom-strock {
  border-color: #fff;
  border-width: 1px;
  border-style: solid;
}

.body-font-custom {
  font-family: "Cormorant Garamond", sans-serif;
  font-size: 1rem;
  line-height: 1;
}

.margin-top-kal {
  margin-top: 2.3rem;
}

.custom-home-two-photo {
  margin: 0 2rem;
}

.custom-background-portfolio {
  z-index: -999;
  position: fixed;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 30%;
}

.portfolio-gltf-loader {
  min-width: 500px;
  margin-top: 2rem;
  margin-bottom: 2rem;
  min-width: 50%;
  display: flex;
  justify-self: center;
  flex-direction: row;
}

#progress-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

#progress {
  font-size: 3em;
  color: white;
}

/* HTML: <div class="loader"></div> */
.loader {
  width: 50px;
  aspect-ratio: 1;
  display: grid;
}
.loader::before,
.loader::after {    
  content:"";
  grid-area: 1/1;
  --c:no-repeat radial-gradient(farthest-side,#f6fffe 92%,#0000);
  background: 
    var(--c) 50%  0, 
    var(--c) 50%  100%, 
    var(--c) 100% 50%, 
    var(--c) 0    50%;
  background-size: 12px 12px;
  animation: l12 1s infinite;
}
.loader::before {
  margin: 4px;
  filter: hue-rotate(45deg);
  background-size: 8px 8px;
  animation-timing-function: linear
}

@keyframes l12 { 
  100%{transform: rotate(.5turn)}
}

@media screen and (max-width: 991px) {
  .background-video {
    width: 90%;
    height: 90%;
    display: flex;
  }

  .portfolio-vid-1 {
    width: 100%;
    height: 100%;
    display: flex;
  }

  .custom-home-two-photo {
    margin: 0 1rem;
  }
}
