.slideshow {
    --stitch: oklch(0.2 0.06 40);
    --accent: oklch(0.45 0.08 30);
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 12px;
    --space-lg: 16px;
    --space-xl: 24px;
    --space-2xl: 32px;

    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.slideshow .main-image-wrapper {
    position: relative;
    padding: var(--space-lg);
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

.slideshow .main-image-wrapper::before,
.slideshow .main-image-wrapper::after {
    content: '';
    position: absolute;
    border: 2px dashed var(--stitch);
    pointer-events: none;
}

.slideshow .main-image-wrapper::before {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 4px;
}

.slideshow .main-image-wrapper::after {
    top: var(--space-sm);
    left: var(--space-sm);
    right: var(--space-sm);
    bottom: var(--space-sm);
    border-radius: 2px;
}

.slideshow .main-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 2px;
    display: block;
    opacity: 1;
    transition: opacity 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@media (max-width: 768px) {
    .slideshow .main-image {
        height: 300px;
    }

    .slideshow .main-image-wrapper {
        padding: var(--space-md);
    }
}

.slideshow .main-image.fade-out {
    opacity: 0;
}

.slideshow .thumbnail-container {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    max-width: 1100px;
    margin: 0 auto;
    padding: var(--space-sm) 0;
    justify-content: center;
}

.slideshow .thumbnail {
    width: var(--thumb-size, 80px);
    height: var(--thumb-size, 80px);
    border-radius: 50%;
    object-fit: cover;
    cursor: pointer;
    border: 2px dashed var(--stitch);
    padding: var(--space-xs);
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.3s;
    flex-shrink: 0;
}

.slideshow .thumbnail:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.slideshow .thumbnail.active {
    border-color: var(--accent);
    transform: scale(1.05);
}

@media (prefers-reduced-motion: reduce) {
    .slideshow .main-image,
    .slideshow .thumbnail {
        transition: none !important;
    }
}