.axh-parallax-hero {
  position: relative;
  display: grid;
  min-height: calc(100svh - 64px);
  padding: 0;
  place-items: center;
  overflow: hidden;
}

.axh-parallax-hero .axh-hero-inner {
  position: relative;
  z-index: 50;
  width: 100%;
  padding: 120px 24px;
}

.axh-parallax-field {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.axh-parallax-item {
  position: absolute;
  overflow: hidden;
  border-radius: 0;
  will-change: transform;
}

/* Гитарист поверх перекрывающего его vlogger (nth-child 9) — иначе не видно лица. */
.axh-parallax-item:nth-child(5) { z-index: 1; }

.axh-parallax-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.axh-parallax-item:nth-child(1) { top: 8%; left: 11%; width: 4rem; height: 4rem; }
.axh-parallax-item:nth-child(2) { top: 10%; left: 32%; width: 5rem; height: 5rem; }
.axh-parallax-item:nth-child(3) { top: 2%; left: 53%; width: 7rem; height: 10rem; }
.axh-parallax-item:nth-child(4) { top: 0; left: 83%; width: 6rem; height: 6rem; }
.axh-parallax-item:nth-child(5) { top: 40%; left: 2%; width: 7rem; height: 7rem; }
.axh-parallax-item:nth-child(6) { top: 70%; left: 77%; width: 7rem; height: 7rem; }
.axh-parallax-item:nth-child(7) { top: 73%; left: 15%; width: 10rem; height: 12rem; }
.axh-parallax-item:nth-child(8) { top: 80%; left: 50%; width: 6rem; height: 6rem; }
.axh-parallax-item:nth-child(9),
.axh-parallax-item:nth-child(10) { display: none; }

@media (min-width: 768px) {
  .axh-parallax-item:nth-child(1) { top: 3%; left: 8%; width: 6rem; height: 6rem; }
  .axh-parallax-item:nth-child(2) { top: 0; left: 31%; width: 7rem; height: 7rem; }
  .axh-parallax-item:nth-child(3) { top: 0; left: 55%; width: 7rem; height: 7rem; }
  .axh-parallax-item:nth-child(4) { top: 0; left: 83%; width: 7rem; height: 7rem; }
  .axh-parallax-item:nth-child(5) { top: auto; bottom: 2%; left: 2%; width: 9rem; height: 9rem; }
  .axh-parallax-item:nth-child(6) { top: auto; bottom: 0; left: 77%; width: 9rem; height: 12rem; }
  .axh-parallax-item:nth-child(7) { top: auto; bottom: -3%; left: 15%; width: 11rem; height: 13rem; }
  .axh-parallax-item:nth-child(8) { top: auto; bottom: 0; left: 50%; width: 6rem; height: 6rem; }
}

@media (min-width: 1280px) {
  .axh-parallax-item:nth-child(9) {
    display: block;
    top: 34%;
    left: 4%;
    width: 12rem;
    height: 15rem;
  }

  .axh-parallax-item:nth-child(10) {
    display: block;
    top: 36%;
    right: 4%;
    width: 10rem;
    height: 12rem;
  }
}

/* The page canvas grows from 1280px to 1920px on large desktops, so the
   floating photographs keep the same visual weight at that format. */
@media (min-width: 1600px) {
  .axh-parallax-item:nth-child(1) { width: 9rem; height: 9rem; }
  .axh-parallax-item:nth-child(2) { width: 10.5rem; height: 10.5rem; }
  .axh-parallax-item:nth-child(3) { width: 10.5rem; height: 10.5rem; }
  .axh-parallax-item:nth-child(4) { width: 10.5rem; height: 10.5rem; }
  .axh-parallax-item:nth-child(5) { width: 13.5rem; height: 13.5rem; }
  .axh-parallax-item:nth-child(6) { width: 13.5rem; height: 18rem; }
  .axh-parallax-item:nth-child(7) { width: 16.5rem; height: 19.5rem; }
  .axh-parallax-item:nth-child(8) { width: 9rem; height: 9rem; }
  .axh-parallax-item:nth-child(9) { width: 18rem; height: 22.5rem; }
  .axh-parallax-item:nth-child(10) { width: 15rem; height: 18rem; }
}

@media (max-width: 640px) {
  .axh-parallax-hero .axh-hero-inner { padding: 180px 20px 170px; }
  .axh-parallax-item:nth-child(1) { top: 7%; left: 5%; }
  .axh-parallax-item:nth-child(2) { top: 4%; left: 31%; }
  .axh-parallax-item:nth-child(3) { top: 0; left: 55%; width: 6rem; height: 7.5rem; }
  .axh-parallax-item:nth-child(4) { top: 7%; left: 82%; }
  .axh-parallax-item:nth-child(5) { top: auto; bottom: 3%; left: 2%; width: 4rem; height: 5.5rem; }
  .axh-parallax-item:nth-child(6) { top: auto; bottom: 4%; left: 75%; width: 5rem; height: 7rem; }
  .axh-parallax-item:nth-child(7) { top: auto; bottom: 0; left: 24%; width: 5.75rem; height: 7.5rem; }
  .axh-parallax-item:nth-child(8) { top: auto; bottom: 2%; left: 53%; width: 4rem; height: 5.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .axh-parallax-item { will-change: auto; }
}
