/**
 * Gallery Slideshow Styles
 * 
 * @package TablyClub
 */

/* ===== GALLERY SLIDESHOW SECTION ===== */
.tc-gallery-slideshow {
  /* Padding controlled by .tc-section in style.css */
  overflow: hidden;
}

.tc-gallery-slideshow .tc-section-header {
  margin-bottom: clamp(2rem, 5vw, 4rem);
}

.tc-gallery-slideshow .tc-section-subtitle {
  text-align: center;
  margin: 1rem auto 0;
  max-width: 600px;
}

/* ===== SLIDESHOW CONTAINER ===== */
.tc-slideshow {
  position: relative;
  /* max-width is set inline from Customizer */
  margin: 0 auto;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.tc-slideshow__track {
  position: relative;
  width: 100%;
  /* aspect-ratio is set inline from Customizer */
  background: #f5f5f5;
}

.tc-slideshow__slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  pointer-events: none;
}

.tc-slideshow__slide--active {
  opacity: 1;
  pointer-events: auto;
}

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

/* ===== CAPTION ===== */
.tc-slideshow__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: #fff;
  padding: 2rem 1.5rem 1.5rem;
  font-size: 1.125rem;
  text-align: center;
}

/* ===== NAVIGATION ARROWS ===== */
.tc-slideshow__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.tc-slideshow__nav--prev {
  left: 1.5rem;
}

.tc-slideshow__nav--next {
  right: 1.5rem;
}

.tc-slideshow__nav:hover {
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.tc-slideshow__nav svg {
  width: 24px;
  height: 24px;
  stroke-width: 2.5;
}

/* ===== DOT INDICATORS ===== */
.tc-slideshow__dots {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.75rem;
  z-index: 10;
}

.tc-slideshow__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.tc-slideshow__dot:hover {
  transform: scale(1.2);
  opacity: 0.8;
}

.tc-slideshow__dot--active {
  width: 32px;
  border-radius: 6px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  /* Full-width gallery on mobile */
  .tc-gallery-slideshow .tc-container {
    padding-left: 0;
    padding-right: 0;
  }
  
  .tc-slideshow {
    border-radius: 0;
  }
  
  .tc-slideshow__nav {
    width: 40px;
    height: 40px;
  }
  
  .tc-slideshow__nav--prev {
    left: 1rem;
  }
  
  .tc-slideshow__nav--next {
    right: 1rem;
  }
  
  .tc-slideshow__nav svg {
    width: 20px;
    height: 20px;
  }
  
  .tc-slideshow__caption {
    font-size: 1rem;
    padding: 1.5rem 1rem 1rem;
  }
  
  .tc-slideshow__dots {
    bottom: 1rem;
    gap: 0.5rem;
  }
  
  .tc-slideshow__dot {
    width: 10px;
    height: 10px;
  }
  
  .tc-slideshow__dot--active {
    width: 24px;
  }
}

@media (max-width: 480px) {
  .tc-slideshow__track {
    border-radius: 0.5rem;
  }
  
  .tc-slideshow__nav {
    width: 36px;
    height: 36px;
  }
  
  .tc-slideshow__nav--prev {
    left: 0.5rem;
  }
  
  .tc-slideshow__nav--next {
    right: 0.5rem;
  }
}
