/**
 * Content with Slideshow Section Component
 * Two-column layout with auto-sliding photo carousel
 */

.content-slideshow {
  padding-top: var(--space-80);
  padding-bottom: var(--space-80);
}

@media (min-width: 1024px) {
  .content-slideshow {
    padding-top: var(--space-96);
    padding-bottom: var(--space-96);
  }
}

/* Background Color Modifiers */
.content-slideshow--bg-white {
  background-color: #fff;
}

.content-slideshow--bg-light {
  background-color: #f5f5f5;
}

.content-slideshow--bg-gray {
  background-color: #e8e8e8;
}

/* Grid Layout */
.content-slideshow__grid {
  display: grid;
  gap: var(--space-48);
  align-items: stretch;
  max-width: 100%;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .content-slideshow__grid {
    gap: var(--space-64);
  }
  
  /* Layout Options */
  .content-slideshow--layout-25-75 .content-slideshow__grid {
    grid-template-columns: 1fr 3fr;
  }
  
  .content-slideshow--layout-50-50 .content-slideshow__grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .content-slideshow--layout-75-25 .content-slideshow__grid {
    grid-template-columns: 3fr 1fr;
  }
}

/* Content (Left Column) */
.content-slideshow__content {
  max-width: 100%;
}

.content-slideshow__subtitle {
  font-size: 1em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #666;
  margin-bottom: var(--space-12);
}

.content-slideshow__subtitle--small {
  font-size: 0.875em;
}

.content-slideshow__subtitle--default {
  font-size: 1em;
}

.content-slideshow__subtitle--large {
  font-size: 1.125em;
}

.content-slideshow__title {
  font-size: 2em;
  font-weight: 700;
  line-height: var(--lh-tight);
  color: var(--color-text);
  margin-bottom: var(--space-24);
}

@media (min-width: 768px) {
  .content-slideshow__title {
    font-size: 2.5em;
  }
  
  .content-slideshow__title--small {
    font-size: 2em;
  }
  
  .content-slideshow__title--default {
    font-size: 2.5em;
  }
  
  .content-slideshow__title--large {
    font-size: 3em;
  }
  
  .content-slideshow__title--xlarge {
    font-size: 3.5em;
  }
}

.content-slideshow__text {
  font-size: 1em;
  line-height: var(--lh-normal);
  color: var(--color-text);
}

.content-slideshow__text--small,
.content-slideshow__text--small p {
  font-size: 0.875em;
}

.content-slideshow__text--default,
.content-slideshow__text--default p {
  font-size: 1em;
}

.content-slideshow__text--large,
.content-slideshow__text--large p {
  font-size: 1.125em;
}

.content-slideshow__text--xlarge,
.content-slideshow__text--xlarge p {
  font-size: 1.25em;
}

.content-slideshow__text p {
  margin-bottom: var(--space-16);
  line-height: var(--lh-normal);
}

.content-slideshow__text p:last-child {
  margin-bottom: 0;
}

/* Slideshow Container */
.content-slideshow__slider {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 500px;
}

.slideshow {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #f0f0f0;
  border-radius: var(--radius-8);
}

/* Slideshow Track */
.slideshow__track {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 500px;
}

/* Individual Slides */
.slideshow__slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.slideshow__slide--active {
  opacity: 1;
  z-index: 2;
}

.slideshow__slide--exit {
  opacity: 0;
  z-index: 1;
}

/* Slide Images */
.slideshow__image {
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  display: block;
}

/* Navigation Dots */
.slideshow__dots {
  position: absolute;
  bottom: var(--space-24);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: var(--space-12);
  z-index: 10;
}

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

.slideshow__dot:hover {
  background-color: rgba(255, 255, 255, 0.8);
  transform: scale(1.2);
}

.slideshow__dot--active {
  background-color: #fff;
  border-color: #fff;
}

/* Mobile Order */
@media (max-width: 1023px) {
  .content-slideshow {
    padding-top: var(--space-48);
    padding-bottom: var(--space-48);
  }
  
  .content-slideshow__grid {
    grid-template-columns: 1fr;
    gap: var(--space-32);
  }
  
  .content-slideshow__slider {
    order: -1;
    min-height: 300px;
    max-width: 100%;
  }
  
  .slideshow {
    max-width: 100%;
  }
  
  .slideshow__track {
    aspect-ratio: 16 / 9;
    min-height: 300px;
    max-width: 100%;
  }
  
  .slideshow__slide {
    max-width: 100%;
  }
  
  .slideshow__image {
    max-width: 100%;
    height: auto;
    min-height: 300px;
    object-fit: cover;
  }
  
  .content-slideshow__title {
    font-size: 1.75em;
  }
  
  .content-slideshow__subtitle {
    font-size: 0.875em;
  }
  
  .content-slideshow__text {
    font-size: 0.9375em;
  }
}

/* Accessibility: Reduce Motion */
@media (prefers-reduced-motion: reduce) {
  .slideshow__slide {
    transition: opacity 0.3s ease;
  }
}

