.pl-story-slide-auto-first {
    height: 100%;
}

.pl-story-reader {
    --pl-story-auto-accent: var(--pl-color-primary, var(--pl-accent, #129de2));
    --pl-story-auto-accent-soft: var(--pl-color-primary-soft, var(--pl-accent-soft, #cbe9f9));
}

.pl-story-reader[data-pl-home-style="secondary"] {
    --pl-story-auto-accent: var(--pl-color-secondary, #0f766e);
    --pl-story-auto-accent-soft: var(--pl-color-secondary-soft, #bfe9e5);
}

.pl-story-reader[data-pl-home-style="tertiary"] {
    --pl-story-auto-accent: var(--pl-color-tertiary, #7a2e9f);
    --pl-story-auto-accent-soft: var(--pl-color-tertiary-soft, #e4cdee);
}

.pl-story-auto-cover {
    position: relative;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-color: var(--pl-story-bg-surface, #bdbdbd);
    overflow: hidden;
}

.pl-story-auto-cover::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 58%;
    background: linear-gradient(
        to top,
        color-mix(in srgb, #000 52%, transparent) 0%,
        color-mix(in srgb, #000 24%, transparent) 40%,
        transparent 100%
    );
    z-index: 1;
    pointer-events: none;
}

.pl-story-slide-auto-first.is-bg-dark .pl-story-auto-cover::after {
    background: linear-gradient(
        to top,
        color-mix(in srgb, #000 42%, transparent) 0%,
        color-mix(in srgb, #000 18%, transparent) 42%,
        transparent 100%
    );
}

.pl-story-slide-auto-first.is-bg-light .pl-story-auto-cover::after {
    background: linear-gradient(
        to top,
        color-mix(in srgb, #000 70%, transparent) 0%,
        color-mix(in srgb, #000 38%, transparent) 42%,
        transparent 100%
    );
}

.pl-story-slide-auto-first.is-bg-unknown .pl-story-auto-cover::after {
    background: linear-gradient(
        to top,
        color-mix(in srgb, #000 52%, transparent) 0%,
        color-mix(in srgb, #000 24%, transparent) 40%,
        transparent 100%
    );
}

.pl-story-auto-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.pl-story-auto-toprow {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px 14px 0 14px;
}

.pl-story-auto-logo-link {
    display: inline-block;
}

.pl-story-auto-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
    background: none;
    padding: 0;
    border-radius: 6px;
}

.pl-story-auto-site,
.pl-story-auto-date {
    padding: 8px 10px;
    background: color-mix(in srgb, var(--pl-story-bg-canvas, #fff) 75%, transparent);
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    color: var(--pl-story-on-dark-secondary, rgba(255, 255, 255, 0.75));
}

.pl-story-auto-date {
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    background: color-mix(in srgb, #000 52%, transparent);
    color: var(--pl-story-on-dark-primary, #fff);
}

.pl-story-auto-bottom {
    position: relative;
    z-index: 3;
    padding: 22px 22px 60px 22px;
}

.pl-story-auto-heading {
    position: relative;
    z-index: 3;
    padding-right: 56px;
}

.pl-story-reader .pl-story-slide-auto-first .pl-story-auto-heading .pl-story-auto-category {
    color: var(--pl-story-auto-accent, var(--pl-color-primary, #129de2));
    display: inline-block;
    width: fit-content;
    padding: 0.08em 0.5em 0.18em;
    font-size: var(--pl-story-auto-category-font-size, 37px) !important;
    font-weight: 600;
    line-height: 1;
    text-transform: lowercase;
    letter-spacing: 0.02em;
    background: color-mix(in srgb, #fff 92%, transparent);
    border: 1px solid color-mix(in srgb, #fff 78%, transparent);
    border-radius: 999px;
    box-shadow: 0 1px 6px color-mix(in srgb, #000 24%, transparent);
    text-shadow:
        0 1px 2px color-mix(in srgb, #000 72%, transparent),
        0 0 10px color-mix(in srgb, #000 42%, transparent);
}

.pl-story-reader .pl-story-slide-auto-first .pl-story-auto-heading .pl-story-auto-category::first-letter {
    text-transform: uppercase;
}

.pl-story-reader .pl-story-slide-auto-first .pl-story-auto-heading .pl-story-auto-title {
    display: inline;
    margin: 0;
    color: var(--pl-story-on-dark-primary, #fff);
    font-size: var(--pl-story-auto-title-font-size, 36px) !important;
    font-weight: 700;
    line-height: var(--pl-story-auto-title-line-height, 1.15);
    text-shadow:
        0 1px 2px color-mix(in srgb, #000 78%, transparent),
        0 0 12px color-mix(in srgb, #000 46%, transparent);
}

.pl-story-reader .pl-story-slide-auto-first.is-copy-compact .pl-story-auto-heading .pl-story-auto-category {
    font-size: 32px;
}

.pl-story-reader .pl-story-slide-auto-first.is-copy-compact .pl-story-auto-heading .pl-story-auto-title {
    font-size: 31px;
    line-height: 1.18;
}

.pl-story-reader .pl-story-slide-auto-first.is-copy-tight .pl-story-auto-heading .pl-story-auto-category {
    font-size: 27px;
}

.pl-story-reader .pl-story-slide-auto-first.is-copy-tight .pl-story-auto-heading .pl-story-auto-title {
    font-size: 26px;
    line-height: 1.2;
}

.pl-story-auto-info {
    position: absolute;
    right: 16px;
    bottom: 16px;
    z-index: 4;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    border: none;
    background: var(--pl-bg-surface, #f5f5f5);
    color: var(--pl-accent, #2563eb);
    font-weight: 700;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.pl-story-auto-excerpt {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 9999;
    background: color-mix(in srgb, #000 45%, transparent);
    padding: 20px;
    align-items: center;
    justify-content: center;
}

.pl-story-slide-auto-first.is-excerpt-open .pl-story-auto-excerpt {
    display: flex;
}

.pl-story-auto-excerpt-inner {
    max-width: 760px;
    width: 92%;
    max-height: 75vh;
    background: var(--pl-story-bg-surface, #f5f5f5);
    color: var(--pl-story-text-primary, #111);
    border-radius: 14px;
    padding: 28px 24px;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 30px color-mix(in srgb, #000 20%, transparent);
}

.pl-story-auto-excerpt-close {
    position: absolute;
    top: 10px;
    right: 10px;
    border: none;
    background: color-mix(in srgb, var(--pl-story-bg-surface, #f5f5f5) 85%, #000 15%);
    color: var(--pl-story-text-primary, #111);
    border-radius: 8px;
    padding: 6px 10px;
    cursor: pointer;
}

@media (hover: hover) and (pointer: fine) {
    .pl-story-auto-toprow {
        padding: calc(40px * var(--pl-story-height-scale)) calc(14px * var(--pl-story-height-scale)) 0 calc(14px * var(--pl-story-height-scale));
    }

    .pl-story-auto-site,
    .pl-story-auto-date {
        padding: calc(8px * var(--pl-story-height-scale)) calc(10px * var(--pl-story-height-scale));
        font-size: calc(14px * var(--pl-story-height-scale));
    }

    .pl-story-auto-date {
        padding: calc(6px * var(--pl-story-height-scale)) calc(10px * var(--pl-story-height-scale));
        font-size: var(--pl-story-auto-meta-font-size, 13px);
        line-height: var(--pl-story-auto-meta-line-height, 1);
    }

    .pl-story-auto-bottom {
        padding: calc(22px * var(--pl-story-height-scale)) calc(22px * var(--pl-story-height-scale)) calc(60px * var(--pl-story-height-scale)) calc(22px * var(--pl-story-height-scale));
    }

    .pl-story-auto-heading {
        padding-right: calc(56px * var(--pl-story-height-scale));
    }

    .pl-story-reader .pl-story-slide-auto-first .pl-story-auto-heading .pl-story-auto-category {
        font-size: var(--pl-story-auto-category-font-size, 37px) !important;
        font-weight: 600;
        line-height: var(--pl-story-auto-title-line-height, 1.15);
        display: inline-block;
        width: fit-content;
        padding: 0.08em 0.5em 0.18em;
        line-height: 1;
        letter-spacing: 0.02em;
        text-transform: lowercase;
        background: color-mix(in srgb, #fff 92%, transparent);
        border: 1px solid color-mix(in srgb, #fff 78%, transparent);
        border-radius: 999px;
        box-shadow: 0 1px 6px color-mix(in srgb, #000 24%, transparent);
        text-shadow:
            0 1px 2px color-mix(in srgb, #000 72%, transparent),
            0 0 10px color-mix(in srgb, #000 42%, transparent);
    }

    .pl-story-reader .pl-story-slide-auto-first .pl-story-auto-heading .pl-story-auto-category::first-letter {
        text-transform: uppercase;
    }

    .pl-story-reader .pl-story-slide-auto-first .pl-story-auto-heading .pl-story-auto-title {
        font-size: var(--pl-story-auto-title-font-size, 36px) !important;
        font-weight: 600;
        line-height: var(--pl-story-auto-title-line-height, 1.15);
        text-shadow:
            0 1px 2px color-mix(in srgb, #000 78%, transparent),
            0 0 12px color-mix(in srgb, #000 46%, transparent);
    }

    .pl-story-reader .pl-story-slide-auto-first.is-copy-compact .pl-story-auto-heading .pl-story-auto-category {
        font-size: calc(32px * var(--pl-story-height-scale)) !important;
    }

    .pl-story-reader .pl-story-slide-auto-first.is-copy-compact .pl-story-auto-heading .pl-story-auto-title {
        font-size: calc(32px * var(--pl-story-height-scale));
        line-height: calc(1.18 - (0.06 * (1 - var(--pl-story-height-scale))));
    }

    .pl-story-reader .pl-story-slide-auto-first.is-copy-tight .pl-story-auto-heading .pl-story-auto-category {
        font-size: calc(27px * var(--pl-story-height-scale)) !important;
    }

    .pl-story-reader .pl-story-slide-auto-first.is-copy-tight .pl-story-auto-heading .pl-story-auto-title {
        font-size: calc(27px * var(--pl-story-height-scale));
        line-height: calc(1.2 - (0.07 * (1 - var(--pl-story-height-scale))));
    }

    .pl-story-auto-info {
        font-size: calc(12px * var(--pl-story-height-scale));
    }

    .pl-story-auto-excerpt {
        padding: calc(20px * var(--pl-story-height-scale));
    }

    .pl-story-auto-excerpt-inner {
        padding: calc(28px * var(--pl-story-height-scale)) calc(24px * var(--pl-story-height-scale));
    }

    .pl-story-auto-excerpt-close {
        padding: calc(6px * var(--pl-story-height-scale)) calc(10px * var(--pl-story-height-scale));
    }
}

@media (max-width: 480px) {
    .pl-story-reader .pl-story-slide-auto-first .pl-story-auto-heading .pl-story-auto-title {
        font-size: 26px !important;
    }

    .pl-story-reader .pl-story-slide-auto-first .pl-story-auto-heading .pl-story-auto-category {
        font-size: 26px !important;
    }

    .pl-story-reader .pl-story-slide-auto-first.is-copy-compact .pl-story-auto-heading .pl-story-auto-category {
        font-size: 24px !important;
    }

    .pl-story-reader .pl-story-slide-auto-first.is-copy-compact .pl-story-auto-heading .pl-story-auto-title {
        font-size: 24px !important;
    }

    .pl-story-reader .pl-story-slide-auto-first.is-copy-tight .pl-story-auto-heading .pl-story-auto-category {
        font-size: 22px !important;
    }

    .pl-story-reader .pl-story-slide-auto-first.is-copy-tight .pl-story-auto-heading .pl-story-auto-title {
        font-size: 22px !important;
    }
}
