/* General Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

body {
  background-color: #000000;
}

/* Wrapper - Increase Height to Fit Bigger Videos */
.wrapper {
  margin-top: 2rem;
  width: 100%;
  max-width: 1536px;
  margin-inline: auto;
  height: 600px; /* Increase height */
  position: relative;
  overflow: hidden;
}

/* Infinite Scroll Animation */
@keyframes scrollLeft {
  to {
    left: -350px;
  }
}

.itemLeft {
  width: 350px;
  height: 600px; /* Make videos taller */
  border-radius: 10px;
  position: absolute;
  animation-timing-function: linear;
  animation-duration: 60s;
  animation-iteration-count: infinite;
  background-size: cover;
  background-position: center;
}

/* Video Styling - Full Size Like TikTok */
.video-item {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensures full coverage without stretching */
  border-radius: 10px;
}

/* Scroll Positioning */
.itemLeft {
  left: max(calc(350px * 5), 100%);
  animation-name: scrollLeft;
}

.itemLeft:nth-child(1) {
  animation-delay: calc(60s / 5 * (5 - 1) * -1);
}

.itemLeft:nth-child(2) {
  animation-delay: calc(60s / 5 * (5 - 2) * -1);
}

.itemLeft:nth-child(3) {
  animation-delay: calc(60s / 5 * (5 - 3) * -1);
}

.itemLeft:nth-child(4) {
  animation-delay: calc(60s / 5 * (5 - 4) * -1);
}

.itemLeft:nth-child(5) {
  animation-delay: calc(60s / 5 * (5 - 5) * -1);
}
