* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  background: #111;
  font-family: Arial, sans-serif;
  padding: 30px;
  color: white;
}

.carousel-wrap {
  max-width: 1000px;
  margin: 0 auto;
}

.carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  gap: 24px;

  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;

  border-radius: 18px;

  cursor: grab;
  user-select: none;

  scrollbar-width: none; /* Firefox */
}

.carousel::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.carousel.dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  scroll-behavior: auto;
}

.slide {
  scroll-snap-align: center;
  background: #1a1a1a;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.slide img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.slide-info {
  padding: 22px 24px 26px;
  background: linear-gradient(to bottom, #181818, #101010);
}

.slide-info h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.slide-info p {
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
}

/* Optional: show part of next slide on wider screens */
@media (min-width: 900px) {
  .carousel {
    grid-auto-columns: 88%;
  }
}

@media (max-width: 700px) {
  body {
    padding: 15px;
  }

  .slide img {
    height: 340px;
  }

  .slide-info h2 {
    font-size: 1.5rem;
  }
}