.slider {
  display: flex;
  justify-content: center;
  padding: 20px;
  background-color: var(--bg);
}

.slideshow-container {
  width: 80%;
  max-width: 800px;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: #000;
}

.slide {
  display: none;
  width: 100%;
  transition: transform 0.5s ease-in-out;
}

.slide img {
  width: 100%;
  height: auto;
  display: block;
}

.active {
  display: block;
}

.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 10px;
  color: white;
  font-weight: bold;
  font-size: 24px;
  transform: translateY(-50%);
  background-color: rgba(0,0,0,0.5);
  user-select: none;
  z-index: 10;
}

.prev { left: 10px; }
.next { right: 10px; }

.fade {
  animation: fade 0.5s ease-in-out;
}

@keyframes fade {
  from {opacity: 0.4;}
  to {opacity: 1;}
}

@media screen and (max-width: 600px) {
  .slideshow-container {
    width: 100%;
    border-radius: 0;
  }

  .prev, .next {
    font-size: 18px;
    padding: 8px;
  }

  .slider {
    padding: 10px;
  }
}