

.wbpro-love-story {
    --wb-story-acc: var(--wbpro-story-primary, var(--wb-color-primary, #b5a46d));
    --wb-story-acc-dark: var(--wbpro-story-accent, var(--wb-color-sec, #8a6d3b));
    --wb-story-card: var(--wbpro-story-card-bg, var(--wb-color-card, #ffffff));
    --wb-story-border: var(--wb-border-color, rgba(181, 164, 109, 0.25));
    --wb-story-radius: var(--wb-radius, 16px);
    --wb-story-text: var(--wbpro-story-card-text, var(--wb-color-text, #3d362b));
    font-family: var(--wb-font-body, inherit);
    color: var(--wb-story-text);
    box-sizing: border-box;
}

.wbpro-love-story *,
.wbpro-love-story *::before,
.wbpro-love-story *::after {
    box-sizing: border-box;
}

.wbpro-love-story .wbpro-love-story-empty {
    text-align: center;
    opacity: 0.65;
    font-style: italic;
    padding: 24px 0;
}

.wbpro-love-story .wbpro-love-story-list {
    position: relative;
    margin: 0 auto;
    width: 100%;
}

.wbpro-love-story .wbpro-story-item {
    position: relative;
}

.wbpro-love-story--timeline .wbpro-love-story-list {
    max-width: 880px;
    padding: 10px 0;
}

.wbpro-love-story--timeline .wbpro-love-story-list::before {
    content: "";
    position: absolute;
    top: 24px;
    bottom: 24px;
    left: 50%;
    width: 2px;
    transform: translateX(-50%);
    background: linear-gradient(180deg,
            transparent 0%,
            var(--wb-story-acc) 8%,
            var(--wb-story-acc) 92%,
            transparent 100%);
    opacity: 0.5;
    z-index: 1;
}

.wbpro-love-story--timeline .wbpro-story-item {
    width: 50%;
    padding: 16px 36px 16px 0;
    float: left;
    clear: both;
}

.wbpro-love-story--timeline .wbpro-story-item:nth-child(even) {
    float: right;
    clear: both;
    padding: 16px 0 16px 36px;
}

.wbpro-love-story--timeline .wbpro-love-story-list::after {
    content: "";
    display: table;
    clear: both;
}

.wbpro-love-story .wbpro-story-marker {
    position: absolute;
    top: 36px;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
}

.wbpro-love-story--timeline .wbpro-story-item .wbpro-story-marker {
    right: -13px;
    left: auto;
}

.wbpro-love-story--timeline .wbpro-story-item:nth-child(even) .wbpro-story-marker {
    left: -13px;
    right: auto;
}

.wbpro-love-story .wbpro-story-marker__dot {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--wb-story-card);
    border: 2px solid var(--wb-story-acc);
    color: var(--wb-story-acc);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--wb-story-acc) 20%, transparent), 0 4px 12px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.wbpro-love-story .wbpro-story-marker__icon {
    display: block;
    width: 12px;
    height: 12px;
}

.wbpro-love-story .wbpro-story-item:hover .wbpro-story-marker__dot {
    transform: scale(1.22);
    background: var(--wb-story-acc);
    color: #ffffff;
    box-shadow: 0 0 0 5px color-mix(in srgb, var(--wb-story-acc) 30%, transparent), 0 6px 16px rgba(0, 0, 0, 0.2);
}

.wbpro-love-story--vertical .wbpro-love-story-list {
    max-width: 100%;
    padding: 10px 0;
}

.wbpro-love-story--vertical .wbpro-love-story-list::before {
    content: "";
    position: absolute;
    top: 24px;
    bottom: 24px;
    left: 17px;
    width: 2px;
    background: linear-gradient(180deg,
            transparent 0%,
            var(--wb-story-acc) 8%,
            var(--wb-story-acc) 92%,
            transparent 100%);
    opacity: 0.5;
    z-index: 1;
}

.wbpro-love-story--vertical .wbpro-story-item {
    padding: 14px 0 14px 45px;
}

.wbpro-love-story--vertical .wbpro-story-marker {
    left: 5px;
    top: 34px;
}

.wbpro-love-story--grid .wbpro-love-story-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 24px;
}

.wbpro-love-story--grid .wbpro-story-marker {
    display: none;
}

.wbpro-love-story .wbpro-story-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--wb-story-radius);
    border: 1px solid var(--wb-story-border);
    background: var(--wb-story-card);
    background: linear-gradient(165deg,
            var(--wb-story-card) 0%,
            color-mix(in srgb, var(--wb-story-card) 95%, var(--wb-story-acc) 5%) 100%);
    box-shadow: 0 4px 16px -4px rgba(0, 0, 0, 0.05), 0 10px 28px -10px rgba(0, 0, 0, 0.09);
    transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1),
        box-shadow 0.35s cubic-bezier(0.25, 1, 0.5, 1),
        border-color 0.35s ease;
}

.wbpro-love-story .wbpro-story-card__accent {
    height: 3px;
    width: 100%;
    background: linear-gradient(90deg, var(--wb-story-acc), color-mix(in srgb, var(--wb-story-acc) 30%, transparent));
    opacity: 0.85;
}

.wbpro-love-story .wbpro-story-card:hover {
    transform: translateY(-5px);
    border-color: color-mix(in srgb, var(--wb-story-acc) 60%, transparent);
    box-shadow: 0 10px 24px -4px rgba(0, 0, 0, 0.08),
        0 20px 40px -10px color-mix(in srgb, var(--wb-story-acc) 22%, transparent);
}

.wbpro-love-story .wbpro-story-card__media {
    margin: 0;
    padding: 10px 10px 0;
    overflow: hidden;
}

.wbpro-love-story .wbpro-story-card__media img {
    display: block;
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: calc(var(--wb-story-radius) - 6px);
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.wbpro-love-story .wbpro-story-card:hover .wbpro-story-card__media img {
    transform: scale(1.05);
}

.wbpro-love-story .wbpro-story-card__body {
    padding: 18px 20px 22px;
    position: relative;
}

.wbpro-love-story .wbpro-story-index {
    position: absolute;
    top: 18px;
    right: 18px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--wb-story-acc);
    font-family: var(--wb-font-heading, inherit);
    background: color-mix(in srgb, var(--wb-story-acc) 10%, transparent);
    padding: 3px 8px;
    border-radius: 6px;
    line-height: 1;
}

.wbpro-love-story .wbpro-story-title {
    margin: 0 0 8px;
    padding-right: 46px;
    font-family: var(--wb-font-heading, inherit);
    font-size: 1.12rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--wb-story-text);
    justify-self: baseline;
}

.wbpro-love-story .wbpro-story-heading {
    font-family: var(--wb-font-heading, inherit);
    font-size: var(--wbpro-story-title-size, 1.5rem);
    font-weight: 700;
    line-height: 1.3;
    color: var(--wb-story-text);
    margin: 0 0 24px;
    text-align: var(--wbpro-story-title-align, center);
}

@media (max-width: 768px) {
    .wbpro-love-story .wbpro-story-heading {
        font-size: var(--wbpro-story-title-size, 1.25rem);
        margin: 0 0 18px;
    }
}

.wbpro-love-story .wbpro-story-date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 12px;
    padding: 4px 12px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--wb-story-acc) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--wb-story-acc) 20%, transparent);
    color: var(--wb-story-acc-dark);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1.2;
}

.wbpro-love-story .wbpro-story-date__icon {
    display: inline-block;
    flex-shrink: 0;
}

.wbpro-love-story .wbpro-story-text {
    margin: 0;
    line-height: 1.7;
    font-size: 0.91rem;
    opacity: 0.88;
    color: var(--wb-story-text);
}

.wbpro-love-story-locked {
    padding: 20px;
    border: 1px dashed color-mix(in srgb, var(--wb-story-acc) 40%, transparent);
    border-radius: 12px;
    color: #666;
    text-align: center;
    background: rgba(0, 0, 0, 0.02);
}

@media (max-width: 768px) {

    
    .wbpro-love-story--timeline .wbpro-love-story-list {
        max-width: 100%;
    }

    .wbpro-love-story--timeline .wbpro-love-story-list::before {
        left: 17px;
        transform: none;
    }

    .wbpro-love-story--timeline .wbpro-story-item,
    .wbpro-love-story--timeline .wbpro-story-item:nth-child(even) {
        width: 100%;
        float: none;
        clear: both;
        margin-left: 0 !important;
        padding: 12px 0 14px 54px !important;
    }

    .wbpro-love-story--timeline .wbpro-story-item .wbpro-story-marker,
    .wbpro-love-story--timeline .wbpro-story-item:nth-child(even) .wbpro-story-marker {
        left: 5px !important;
        right: auto !important;
        top: 30px;
    }

    .wbpro-love-story--grid .wbpro-love-story-list {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .wbpro-love-story .wbpro-story-card__media img {
        height: 190px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .wbpro-love-story .wbpro-story-card,
    .wbpro-love-story .wbpro-story-card__media img,
    .wbpro-love-story .wbpro-story-marker__dot {
        transition: none !important;
    }

    .wbpro-love-story .wbpro-story-card:hover {
        transform: none !important;
    }
}

.wbpro-love-story-editor .wbpro-love-story-empty {
    border: 1px dashed #bbb;
    border-radius: 8px;
    padding: 20px;
    color: #777;
}

.wbpro-love-story-editor-disabled {
    margin: 14px 0 0;
    padding: 12px 14px;
    border: 1px dashed #d63638;
    border-radius: 8px;
    color: #d63638;
    background: #fcf0f1;
    font-size: 0.9em;
    text-align: center;
}

.wbpro-story-empty-hint-editor {
    margin: 14px 0 0;
    padding: 12px 14px;
    border: 1px dashed #bbb;
    border-radius: 8px;
    color: #777;
    font-size: 0.9em;
    text-align: center;
}

.wbpro-add-chapter-btn {
    width: 100%;
    justify-content: center;
    margin-top: 10px;
}