/* Add class="permyak-background" to a hero section or the page body.
   A fixed decorative layer prevents stretching on long pages. */
.permyak-background {
  --permyak-image: url('./permyak-desktop.svg');
  position: relative;
  isolation: isolate;
  background-color: #ffc80b;
  min-height: 100vh;
  min-height: 100svh;
}

.permyak-background::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-color: #ffc80b;
  background-image: var(--permyak-image);
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
}

body.permyak-background {
  margin: 0;
}

body.permyak-background::before {
  position: fixed;
  inset: 0 auto auto 0;
  width: 100%;
  height: 100vh;
  height: 100lvh;
  background-size: cover;
}

@media (max-width: 767px) and (orientation: portrait) {
  .permyak-background {
    --permyak-image: url('./permyak-mobile.svg');
  }
}
