.yj-ps {
    --yj-ps-accent: #ffa600;
    --yj-ps-accent-end: #ffb900;
    --yj-ps-text: #151515;
    --yj-ps-muted: #dedede;
    --yj-ps-active-width: 500px;
    --yj-ps-inactive-width: 290px;
    --yj-ps-gap: 26px;
    --yj-ps-duration: 450ms;

    width: 100%;
    max-width: 100%;
    color: var(--yj-ps-text);
    box-sizing: border-box;
    outline-offset: 5px;
}

.yj-ps * {
    box-sizing: border-box;
}

/* Viewport and slide track */
.yj-ps__viewport {
    height: 414px;
    /* overflow: hidden; */
    position: relative;
    touch-action: pan-y;
}

.yj-ps__track {
    gap: var(--yj-ps-gap);
    width: max-content;
    will-change: transform;
    transition: transform var(--yj-ps-duration) cubic-bezier(.22, .61, .36, 1);
}

/* Individual slides */
.yj-ps__slide {
    position: relative;
    flex: 0 0 var(--yj-ps-inactive-width);
    width: var(--yj-ps-inactive-width);
    height: 320px;
    background: #24262b;
    transition: width var(--yj-ps-duration) ease, flex-basis var(--yj-ps-duration) ease, height var(--yj-ps-duration) ease;
    isolation: isolate;
}

/* Active slide */
.yj-ps__slide.active {
    flex-basis: var(--yj-ps-active-width);
    width: var(--yj-ps-active-width);
    height: 414px;
    padding: 4px;
    background: linear-gradient(120deg, #d72e40 0%, #ffb500 100%);
}

/* Slide content container */
.yj-ps__slide-inner {
    padding: 16px;
    position: relative;
    background: #252525;
}

.yj-ps__slide.active .yj-ps__slide-inner {
    background: #fff;
    align-items: stretch;
}

/* Slide media and image overlay */
.yj-ps__media {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.yj-ps__media img {
    display: block;
	filter: blur(4px);
}

.yj-ps__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, var(--yj-ps-overlay, .2));
    transition: opacity var(--yj-ps-duration) ease;
}

/* Slide title and description */
h3.yj-ps__title {
    position: relative;
    z-index: 1;
    margin: 0;
    max-width: 100%;
	text-shadow: 0 4px 4px rgba(0, 0, 0, 0.5);
    overflow-wrap: break-word;
}

.yj-ps__description {
    display: none;
    margin: 0;
}

/* Active slide title */
.yj-ps__slide.active .yj-ps__title {
	background: linear-gradient(135deg, #FF9F1A 0%, #FF7A00 50%, #FF4D6D 100%);
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
	text-shadow: unset;
    flex: 0 0 auto;
}

/* Active slide media */
.yj-ps__slide.active .yj-ps__media {
    position: relative;
    inset: auto;
    flex: 1 1 auto;
    min-height: 0;
}

.yj-ps__slide.active .yj-ps__media img {
	filter: blur(0);
}

.yj-ps__slide.active .yj-ps__media::after {
    opacity: 0;
}

/* Active slide description */
.yj-ps__slide.active .yj-ps__description {
    display: block;
    flex: 0 0 auto;
}

/* Navigation container */
.yj-ps__navigation {
    margin: 0 auto;
	width: min(calc(100% - 32px), 720px);
}

/* Navigation arrows */
.yj-ps__arrow {
    height: 42px;
    width: 42px;
    display: grid;
    place-items: center;
    cursor: pointer;
    flex: 0 0 42px;
    padding: 9px;
    transition: opacity .2s, border-color .2s, transform .2s;
}

.yj-ps__arrow:hover:not(:disabled) {
    border-color: var(--yj-ps-accent);
    transform: translateY(-1px);
}

.yj-ps__arrow:disabled {
    opacity: .25;
    cursor: not-allowed;
}

.yj-ps__arrow img {
    display: block;
}

/* Progress indicators */
.yj-ps__indicators {
    width: min(100%, 610px);
    min-width: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    isolation: isolate;
}

.yj-ps__indicators::before,
.yj-ps__progress {
    content: "";
    position: absolute;
    left: 10px;
    top: 50%;
    height: 7px;
    transform: translateY(-50%);
    border-radius: 999px;
    z-index: -1;
}

.yj-ps__indicators::before {
    right: 10px;
    background: var(--yj-ps-muted);
}

.yj-ps__progress {
    width: 0;
    background: var(--yj-ps-accent);
    transition: width var(--yj-ps-duration) ease;
}

/* Indicator dots */
.yj-ps__dot {
    appearance: none;
    border: none;
    display: block;
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    background: var(--yj-ps-muted);
    cursor: pointer;
    transition:
        background var(--yj-ps-duration) ease,
        transform .15s;
}

.yj-ps__dot.active,
.yj-ps__dot.completed {
    background: var(--yj-ps-accent);
}

.yj-ps__dot:hover {
    transform: scale(1.15);
}

/* Keyboard focus states */
.yj-ps__dot:focus-visible,
.yj-ps__arrow:focus-visible {
    outline: 2px solid #333;
    outline-offset: 3px;
}

/* Mobile responsive styles */
@media (max-width: 599px) {
    .yj-ps__viewport {
        height: 390px;
    }

    .yj-ps__slide {
        height: 270px;
    }

    .yj-ps__slide.active {
        height: 390px;
    }

    .yj-ps__arrow {
        height: 36px;
        width: 36px;
        flex-basis: 36px;
        padding: 7px;
    }

    .yj-ps__dot {
        width: 16px;
        height: 16px;
        flex-basis: 16px;
    }

    .yj-ps__indicators::before,
    .yj-ps__progress {
        left: 8px;
        height: 5px;
    }

    .yj-ps__indicators::before {
        right: 8px;
    }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
    .yj-ps__track,
    .yj-ps__slide,
    .yj-ps__media::after,
    .yj-ps__progress,
    .yj-ps__dot {
        transition-duration: 0ms !important;
    }
}

/* Allow an instant geometry update on initial render or viewport resize only. */
.yj-ps.yj-ps--no-motion .yj-ps__track,
.yj-ps.yj-ps--no-motion .yj-ps__slide,
.yj-ps.yj-ps--no-motion .yj-ps__progress {
    transition: none !important;
}
