body {
  font-family: sans-serif;
  background: #f0fdfc;
  margin: 0;
  padding: 20px;
  text-align: center;
}

.title {
  color: #222;
  margin-bottom: 20px;
}

.slider-container {
  position: relative;
  max-width: 800px;
  margin: auto;
  overflow: hidden;
  border-radius: 8px;
}

.slider img {
  width: 100%;
  display: none;
  cursor: pointer;
}

.slider img.active {
  display: block;
  animation: fade 1s ease-in-out;
}

@keyframes fade {
  from { opacity: 0.4 }
  to { opacity: 1 }
}

.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  padding: 10px;
  font-size: 30px;
  color: white;
  background-color: rgba(0,0,0,0.4);
  user-select: none;
  transform: translateY(-50%);
  z-index: 1;
}

.prev { left: 10px; }
.next { right: 10px; }

.prev:hover, .next:hover {
  background-color: rgba(0,0,0,0.8);
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 100;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.9);
  padding-top: 60px;
}

.modal-content {
  margin: auto;
  display: block;
  width: 80%;
  max-height: 80vh;
  object-fit: contain;
}

.caption {
  color: #ccc;
  text-align: center;
  padding: 10px;
}

.close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  cursor: pointer;
}
