/* Story Image Carousel */
.story-carousel {
    position: relative;
    max-width: 100%;
    margin: 24px 0;
    user-select: none;
}

.story-carousel__viewport {
    overflow: hidden;
    border-radius: 8px;
    background: #f5f5f5;
}

.story-carousel__track {
    display: flex;
    transition: transform 0.4s ease;
    will-change: transform;
}

.story-carousel__slide {
    min-width: 100%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.story-carousel__image {
    display: block;
    width: 100%;
    max-height: 500px;
    object-fit: contain;
    cursor: pointer;
}

/* Navigation buttons */
.story-carousel__prev,
.story-carousel__next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.5);
    cursor: pointer;
    z-index: 2;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.story-carousel__prev:hover,
.story-carousel__next:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

.story-carousel__prev:disabled,
.story-carousel__next:disabled {
    opacity: 0.3;
    cursor: default;
}

.story-carousel__prev svg,
.story-carousel__next svg {
    width: 12px;
    height: 18px;
    fill: #fff;
}

.story-carousel__prev {
    left: 10px;
}

.story-carousel__next {
    right: 10px;
}

/* Counter */
.story-carousel__counter {
    text-align: center;
    margin-top: 8px;
    font-size: 14px;
    color: #666;
    direction: ltr;
}

/* Dot indicators */
.story-carousel__dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
}

.story-carousel__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: #ccc;
    cursor: pointer;
    padding: 0;
    transition: background-color 0.2s;
}

.story-carousel__dot:hover {
    background: #999;
}

.story-carousel__dot--active {
    background: #333;
}

/* Thumbnail strip */
.story-carousel__thumbs {
    display: flex;
    gap: 6px;
    margin-top: 12px;
    overflow-x: auto;
    padding: 4px 0;
    scrollbar-width: thin;
    justify-content: center;
}

.story-carousel__thumb {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.6;
    transition: opacity 0.2s, border-color 0.2s;
    flex-shrink: 0;
}

.story-carousel__thumb:hover {
    opacity: 0.9;
}

.story-carousel__thumb--active {
    border-color: #333;
    opacity: 1;
}

/* Mobile */
@media (max-width: 768px) {
    .story-carousel__image {
        max-height: 300px;
    }

    .story-carousel__prev,
    .story-carousel__next {
        width: 36px;
        height: 36px;
    }

    .story-carousel__prev svg,
    .story-carousel__next svg {
        width: 9px;
        height: 14px;
    }

    .story-carousel__prev {
        left: 6px;
    }

    .story-carousel__next {
        right: 6px;
    }

    .story-carousel__thumbs {
        display: none;
    }
}
