@charset "UTF-8";
/* CSS Document */
.slider {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: auto;
  overflow: hidden;
}

.slides {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.slide {
  min-width: 100%;
  position: relative;
}

.slide img {
  width: 100%;
  height: clamp(220px, 50vw, 500px);
  object-fit: cover;
}

.caption {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 0.75rem 1rem;
  font-size: clamp(0.9rem, 2.5vw, 1.2rem);
  border-radius: 4px;
}

button {
  position: absolute;
  top: 40%;
  /* Causing issue witth TBMega Menu Mobile
	transform: translateY(-50%);*/
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  border: none;
  padding: 0.75rem;
  cursor: pointer;
  font-size: 1.2rem;
  min-width: 44px;
  min-height: 44px;
}

button:hover {
  background: rgba(0, 0, 0, 1);
}

button:focus {
  outline: 3px solid #ffd700;
}

.prev {
  left: 0.5rem;
}
.next {
  right: 0.5rem;
}

.controls {
  text-align: center;
  margin: 1rem 0;
}

.controls button {
  position: static;
  transform: none;
  background: #000;
}

/* Mobile adjustments */
@media (max-width: 600px) {
  .caption {
    font-size: 0.9rem;
    padding: 0.5rem;
  }

  button {
    font-size: 1rem;
    padding: 0.5rem;
  }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  .slides {
    transition: none;
  }
}
