body {
  font-family: Arial, sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  margin: 0;
  background-color: #f4f4f4;
}

.slider-container {
  position: relative;
  width: 100%;
  max-width: 700px;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  text-align: center;
}

/* Header bar with Back Link */
.header-bar {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  background: #ffffff;
  border-bottom: 1px solid #eee;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #0066cc;
  text-decoration: none;
  font-weight: bold;
  font-size: 14px;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
}

.back-btn:hover {
  text-decoration: underline;
  color: #004080;
}

/* Dark frame to cleanly pad images of varying aspect ratios */
.image-wrapper {
  width: 100%;
  height: 450px;
  background-color: #1e1e1e;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hide images by default */
.slide {
  display: none;
}

/* Display full image without cropping */
.slide img {
  max-width: 100%;
  max-height: 450px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.caption {
  padding: 12px;
  font-weight: bold;
  color: #333;
  background: #fff;
}

/* Navigation buttons */
.btn {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  padding: 12px 16px;
  cursor: pointer;
  font-size: 20px;
  border-radius: 4px;
  transition: background-color 0.3s;
  z-index: 10;
}

.btn:hover {
  background-color: rgba(0, 0, 0, 0.9);
}

.prev { 
  left: 10px; 
}

.next { 
  right: 10px; 
}

/* Indicator dots */
.dots-container {
  padding: 10px 0 15px;
  background: #fff;
}

.dot {
  height: 12px;
  width: 12px;
  margin: 0 4px;
  background-color: #ccc;
  border-radius: 50%;
  display: inline-block;
  cursor: pointer;
  transition: background-color 0.3s;
}

.dot.active, 
.dot:hover {
  background-color: #333;
}
