.story-scroller-wrapper {
    position: relative;
    width: 100%;
}

.story-scroller-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    gap: 20px;
    padding-bottom: 20px;
}

.story-scroller-track::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

/* Mobile defaults: 1 card visible */
.story-card {
    /* Mobile: exactly 1 card visible minus any needed padding */
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    background-color: #1a1511; 
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.1);
    overflow: hidden;
    position: relative;
}

@media (min-width: 768px) {
    .story-card {
        /* Desktop: 1.5 cards visible */
        width: calc((100% - 20px) / 1.5);
        max-width: calc((100% - 20px) / 1.5);
        flex: 0 0 calc((100% - 20px) / 1.5);
    }
}

.story-card-image {
    position: relative;
    width: 100%;
    height: 350px; /* fixed height for image part */
    flex-shrink: 0;
}

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

.story-card-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px; /* larger gradient to smoothly transition into dark bg */
    background: linear-gradient(to bottom, rgba(26,21,17,0) 0%, rgba(26,21,17,0.8) 50%, #1a1511 100%);
    z-index: 1;
}

.story-content {
    position: relative;
    z-index: 2;
    padding: 0 30px 40px 30px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background-color: #1a1511;
    flex-grow: 1;
    /* overlap text slightly over the gradient */
    margin-top: -40px; 
}

.story-label {
    border: 1px solid rgba(199, 169, 115, 0.3);
    border-radius: 20px;
    padding: 8px 16px;
    color: #c7a973;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 25px;
}

.story-name {
    margin: 0 0 10px 0;
    font-size: 2rem;
    font-weight: 400;
    color: #f5f0e6;
    font-family: serif;
}

.story-info {
    font-size: 0.9rem;
    color: #a89471;
    margin-bottom: 20px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.story-divider {
    width: 40px;
    height: 1px;
    background-color: rgba(199, 169, 115, 0.4);
    margin-bottom: 20px;
}

.story-quote-icon {
    color: rgba(199, 169, 115, 0.4);
    font-size: 3rem;
    line-height: 1;
    font-family: serif;
    margin-bottom: 10px;
    margin-top: -10px;
}

.story-text {
    margin: 0;
    line-height: 1.8;
    color: #b8b0a6;
    font-size: 1rem;
    font-weight: 300;
}

.story-scroller-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
}

.story-scroller-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #333;
    opacity: 0.3;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.story-scroller-dot.active {
    opacity: 1;
}