
/* Override W3.CSS padding if needed */
.w3-row-padding .slideshow-container,
.w3-container .slideshow-container {
  margin-left: 0;
  margin-right: 0;
  width: 100%;
}

/* Ensure content container doesn't add extra margins */
.w3-content .slideshow-container {
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.slideshow-container {
  position: relative;
  width: 100%;
  max-width: none;
  height: 601px; /* 551px for images + 50px for nav */
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  background-color: #fff;
}


.nav-container {
  position: absolute;
  top: 0;
  width: 100%;
  height: 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 10px;
  background-color: #f0f0f0;
  z-index: 10;
}


.slide {
  position: absolute;
  top: 50px;
  width: 100%;
  height: 551px; /* Exact height needed for 16:9 at 980px width */
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
  display: none;
  flex-direction: column;
}

.slide.active {
  display: flex;
  opacity: 1;
}


.slide-image-container {
  flex-grow: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  width: 100%;
  height: calc(100% - 40px); /* Account for title height */
}


.slide img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* Changed to contain to prevent cropping */
  object-position: center;
}



.image-title {
  width: 100%;
  height: 40px;
  background-color: #f0f0f0;
  color: #333;
  padding: 10px;
  text-align: center;
  font-weight: bold;
}


.dots-container {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 0;
  background-color: transparent;
  margin-top: 10px;
}

.dot {
  width: 12px;
  height: 12px;
  margin: 0 5px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.dot.active {
  background-color: #555;
}