html, body {
  height: 100%;
  margin: 0;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-y: hidden;
}

.containervideo.art-wall {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  background: transparent;
  overflow: visible;
  z-index: 10;
}

.containervideo.art-wall::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.art-wall__row {
  position: absolute;
  left: 0;
  right: 0;
  display: flex;
  padding: 10px;
  overflow: visible;
  z-index: 1;
  transition: z-index 1s;
}

.art-wall__row:nth-child(1) { top: 0; height: 34%; }
.art-wall__row:nth-child(2) { top: 33%; height: 34%; }
.art-wall__row:nth-child(3) { top: 66%; height: 34%; }

.art-wall__track {
  display: flex;
  gap: 10px;
  width: max-content;
  will-change: transform;
  animation: artWallScrollX var(--dur, 24s) linear infinite;
}

.art-wall__row[data-reverse="1"] .art-wall__track {
  animation-name: artWallScrollXReverse;
}

.art-wall__tile {
  flex: 0 0 auto;
  height: 100%;
  width: auto;
  border-radius: 1vh;
  overflow: hidden;
  background: transparent;
  transform: scale(1);
  transition: transform 0.5s, border-radius 1s, z-index 0.5s;
  z-index: 1;
  position: relative;
}

.art-wall__tile.wide {}
.art-wall__tile.tall {}

.art-wall__tile img {
  height: 100%;
  width: auto;
  display: block;
  object-fit: contain;
  position: static;
}

.art-wall__row:hover {
  z-index: 999;
}

.art-wall__row:hover .art-wall__track {
  animation-play-state: paused;
}

.art-wall__tile:hover {
  transform: scale(1.5);
  z-index: 999;
  border-radius: 2px;
}

@keyframes artWallScrollX {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-1 * var(--shift, 0px))); }
}

@keyframes artWallScrollXReverse {
  from { transform: translateX(calc(-1 * var(--shift, 0px))); }
  to { transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
  .art-wall__track {
    animation: none !important;
  }
}
