.slideshow {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px var(--container-padding);
}

.slideshow__stage {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  background: #111;
  overflow: hidden;
  border-radius: 4px;
}

.slideshow__slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

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

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

.slideshow__caption {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 8px 14px;
  background: rgba(0, 0, 0, 0.55);
  color: #ffffff;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

.slideshow__play {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: none;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.55);
  color: #ffffff;
  font-size: 0.8rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.slideshow__play:hover {
  background: rgba(0, 0, 0, 0.75);
}

.slideshow__play svg {
  width: 12px;
  height: 12px;
}

.slideshow__icon-pause {
  display: none;
}

.slideshow--playing .slideshow__icon-play {
  display: none;
}

.slideshow--playing .slideshow__icon-pause {
  display: inline-block;
}

.slideshow__nav {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: flex;
  gap: 6px;
}

.slideshow__arrow {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.55);
  color: #ffffff;
  cursor: pointer;
  transition: background 0.2s ease;
}

.slideshow__arrow:hover {
  background: rgba(0, 0, 0, 0.75);
}

.slideshow__arrow svg {
  width: 18px;
  height: 18px;
}

.slideshow__thumbs {
  display: flex;
  margin-top: 4px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.25) transparent;
}

.slideshow__thumbs::-webkit-scrollbar {
  height: 4px;
}

.slideshow__thumbs::-webkit-scrollbar-track {
  background: transparent;
}

.slideshow__thumbs::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.25);
  border-radius: 4px;
}

.slideshow__thumb {
  flex: 0 0 auto;
  width: 72px;
  height: 48px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 2px;
  background: none;
  cursor: pointer;
  opacity: 0.65;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}

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

.slideshow__thumb:hover {
  opacity: 1;
}

.slideshow__thumb--active {
  opacity: 1;
  border-color: var(--color-brand-green);
}

@media (max-width: 767px) {
  .slideshow__thumb {
    width: 56px;
    height: 38px;
  }
}
