/* Carousel Container */
.story-carousel {
    position: relative;
    max-width: 800px;
    margin: 2rem auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    background: #000; /* Backdrop for images */
    aspect-ratio: 800/533; /* Exact size of images */
}

/* Progress Bar in Next Button */
.btn-next {
    right: 0;
    border-radius: 4px 0 0 4px;
    overflow: hidden;
}

.btn-next .progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: rgba(0,0,0,0.1);
    z-index: 1;
    transition: width 6s ease-in;
}

.carousel-btn .btn-text {
    position: relative;
    z-index: 2;
}

.slide {
    display: none;
    position: relative;
    animation: fade 0.8s ease-in-out;
}

.slide.active {
    display: block;
}

.slide img {
    width: 100%;
    max-height: 550px;
    object-fit: scale-down;
    display: block;
}

/* Navigation Arrows */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    border: none;
    padding: 1rem;
    cursor: pointer;
    font-size: 1.5rem;
    z-index: 10;
    transition: 0.3s;
}

.carousel-btn:hover {
    background: var(--white);
    color: var(--primary);
}

.btn-prev { left: 0; border-radius: 0 4px 4px 0; }

/* Story Text */
.story-content {
    max-width: 700px;
    margin: 4rem auto;
    text-align: left;
}

.story-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: #444;
}

@keyframes fade {
    from { opacity: 0.4; }
    to { opacity: 1; }
}