/**
 * @file
 * Styles for SlidesJS Slider.
 */

.slidesjs-slider-container {
  position: relative;
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
  max-width: 100%;
}

/* Responsive sizing */
.slidesjs-slider-container[data-size] {
  width: var(--slider-size, 50%);
  margin-left: auto;
  margin-right: auto;
  transition: width 0.3s ease;
}

.slidesjs-slider {
  position: relative;
  display: flex;
  width: 100%;
  height: auto;
  transition: transform 0.5s ease;
  aspect-ratio: 16/9; /* Maintain aspect ratio */
}

.slidesjs-slide {
  flex: 0 0 100%;
  position: relative;
  width: 100%;
  min-width: 100%;
  overflow: hidden;
}

.slidesjs-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.slidesjs-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
}

.slidesjs-title {
  margin: 0 0 0.5rem;
  font-size: 2rem;
  font-weight: bold;
}

.slidesjs-description {
  margin: 0;
  font-size: 1rem;
}

.slidesjs-navigation {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  z-index: 10;
}

.slidesjs-prev,
.slidesjs-next {
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 1rem;
}

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

.slidesjs-pagination {
  position: absolute;
  bottom: 1rem;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  z-index: 10;
}

.slidesjs-pagination-item {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background-color 0.3s;
}

.slidesjs-pagination-item:hover,
.slidesjs-pagination-item.active {
  background: #fff;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
  .slidesjs-slider-container[data-size] {
    width: 100% !important; /* Full width on mobile */
  }
  
  .slidesjs-title {
    font-size: 1.5rem;
  }
  
  .slidesjs-description {
    font-size: 0.875rem;
  }
  
  .slidesjs-content {
    padding: 1rem;
  }
  
  .slidesjs-prev,
  .slidesjs-next {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }
}

@media screen and (max-width: 480px) {
  .slidesjs-content {
    position: relative;
    background: #333;
  }
  
  .slidesjs-title {
    font-size: 1.25rem;
  }
} 
