.pfps-slider {
    position: relative;
    width: 100%;
    max-width: 900px;
    aspect-ratio: 16 / 9;
    margin: 0 auto 2rem;
    overflow: hidden;
    border-radius: 8px;
    background: #111;
}

.pfps-slide {
    position: absolute;
    inset: 0;
    display: block;
    text-decoration: none;
    color: #fff;
    opacity: 0;
    z-index: 0;
    transition: opacity 0.8s ease-in-out;
}

.pfps-slide.active {
    opacity: 1;
    z-index: 1;
}

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

.pfps-no-image {
    width: 100%;
    height: 100%;
    background: #333;
}

.pfps-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 24px 20px 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
}

.pfps-category {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: #c0392b; /* swap for your site's accent color */
    color: #fff;
    padding: 3px 10px;
    border-radius: 3px;
    margin-bottom: 8px;
}

.pfps-title {
    font-size: 1.4rem;
    line-height: 1.3;
    margin: 0;
    color: #fff;
}

.pfps-dots {
    position: absolute;
    bottom: 10px;
    right: 16px;
    z-index: 2;
    display: flex;
    gap: 6px;
}

.pfps-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transition: background 0.3s ease;
}

.pfps-dot.active {
    background: #fff;
}

@media (max-width: 600px) {
    .pfps-title {
        font-size: 1.1rem;
    }
}

/* Inside the block editor's live preview, the slides are plain divs
   (not links), so show a normal cursor instead of a pointer. */
.pfps-block-preview .pfps-slide {
    cursor: default;
}

/* Category feature image, shown at the top of a category archive page. */
.pfps-category-feature {
    position: relative;
    margin-bottom: 2rem;
}

.pfps-category-feature-image {
    width: 100%;
    max-height: 360px;
    object-fit: cover;
    display: block;
    border-radius: 8px;
}

.pfps-category-feature-title {
    margin: 12px 0 0;
}

/* Category Feature Box: hero + 2 stacked runner-ups */
.pfps-feature-box {
    display: flex;
    gap: 4px;
    align-items: stretch;
    margin-bottom: 2rem;
}

.pfps-fb-hero {
    position: relative;
    flex: 1 1 50%;
    display: block;
    text-decoration: none;
    color: #fff;
    border-radius: 0;
    overflow: hidden;
    min-height: 320px;
}

.pfps-fb-hero .pfps-fb-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
}

.pfps-fb-hero-title {
    font-size: 1.6rem;
    line-height: 1.3;
    margin: 0;
    color: #fff;
}

.pfps-fb-runnerups {
    flex: 1 1 25%;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pfps-fb-runnerup {
    position: relative;
    flex: 1 1 50%;
    display: block;
    text-decoration: none;
    color: #fff;
    border-radius: 0;
    overflow: hidden;
    min-height: 140px;
}

.pfps-fb-runnerup .pfps-fb-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
}

.pfps-fb-runnerup-title {
    font-size: 1rem;
    line-height: 1.3;
    margin: 0;
    color: #fff;
}

.pfps-fb-hero .pfps-fb-overlay,
.pfps-fb-runnerup .pfps-fb-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
    z-index: 1;
}

.pfps-fb-runnerup .pfps-fb-overlay {
    padding: 12px;
}

.pfps-fb-image.pfps-no-image {
    background: #333;
}

@media (max-width: 782px) {
    .pfps-feature-box {
        flex-direction: column;
    }
    .pfps-fb-hero,
    .pfps-fb-runnerups {
        flex: 1 1 auto;
    }
}

/* Category Showcase: category-image slider on top, synced feature box below */
.pfps-cs {
    margin-bottom: 2rem;
}

.pfps-cs.alignfull .pfps-cs-slider,
.pfps-cs.alignwide .pfps-cs-slider {
    border-radius: 0;
}

.pfps-cs-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 21 / 8;
    min-height: 220px;
    overflow: hidden;
    border-radius: 0;
    background: #111;
    touch-action: pan-y;
    cursor: grab;
}

.pfps-cs-slider:active {
    cursor: grabbing;
}

.pfps-cs-track {
    width: 100%;
    height: 100%;
}

/* Slide mode (default): all slides sit in a row, the track shifts
   horizontally via transform. */
.pfps-cs--slide .pfps-cs-track {
    display: flex;
    height: 100%;
    transition: transform 0.6s ease;
}

.pfps-cs--slide .pfps-cs-slide {
    position: relative;
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    display: block;
    text-decoration: none;
    color: #fff;
    user-select: none;
}

/* Fade mode: slides stack on top of each other, opacity crossfades. */
.pfps-cs--fade .pfps-cs-track {
    position: relative;
}

.pfps-cs--fade .pfps-cs-slide {
    position: absolute;
    inset: 0;
    display: block;
    text-decoration: none;
    color: #fff;
    opacity: 0;
    z-index: 0;
    transition: opacity 0.8s ease-in-out;
    user-select: none;
}

.pfps-cs--fade .pfps-cs-slide.active {
    opacity: 1;
    z-index: 1;
}

.pfps-cs-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pfps-cs-image.pfps-no-image {
    background: #333;
}

.pfps-cs-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 24px 28px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0));
}

.pfps-cs-category-name {
    margin: 0;
    color: #fff;
    font-size: 1.6rem;
}

.pfps-cs-dots {
    position: absolute;
    bottom: 14px;
    right: 20px;
    z-index: 2;
    display: flex;
    gap: 8px;
}

.pfps-cs-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: background 0.3s ease;
}

.pfps-cs-dot.active {
    background: #fff;
}

.pfps-cs-boxes {
    margin-top: 4px;
}

.pfps-cs-box {
    display: none;
}

.pfps-cs-box.active {
    display: block;
}

/* Inside the editor preview, the slides are plain divs, not links. */
.pfps-block-preview .pfps-cs-slide {
    cursor: default;
}

@media (max-width: 600px) {
    .pfps-cs-category-name {
        font-size: 1.2rem;
    }
}
