.npn-b9c2c339-wrap {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
}

.npn-b9c2c339-item {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.npn-b9c2c339-prev {
    justify-content: flex-start;
}

.npn-b9c2c339-next {
    justify-content: flex-end;
    text-align: right;
}

.npn-b9c2c339-arrow {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.npn-b9c2c339-arrow svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
}

.npn-b9c2c339-prev:hover .npn-b9c2c339-arrow {
    transform: translateX(-4px);
}

.npn-b9c2c339-next:hover .npn-b9c2c339-arrow {
    transform: translateX(4px);
}

.npn-b9c2c339-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.npn-b9c2c339-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #999;
}

.npn-b9c2c339-title {
    position: relative;
    display: inline-block;
}

.npn-b9c2c339-title a {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.npn-b9c2c339-title a:hover {
    color: #6366f1;
}

/* Preview tooltip */
.npn-b9c2c339-preview {
    position: absolute;
    bottom: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    width: 260px;
    height: 180px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s ease;
    pointer-events: none;
    z-index: 100;
    background: #000;
}

.npn-b9c2c339-preview img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Title overlay centered on image */
.npn-b9c2c339-preview-title {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 16px;
    box-sizing: border-box;
    background: var(--npn-overlay-bg, rgba(0, 0, 0, 0.5));
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    white-space: normal;
    word-break: break-word;
}

.npn-b9c2c339-title:hover .npn-b9c2c339-preview {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Next item: align preview to the right */
.npn-b9c2c339-next .npn-b9c2c339-preview {
    left: auto;
    right: 0;
    transform: translateX(0) translateY(8px);
}

.npn-b9c2c339-next .npn-b9c2c339-title:hover .npn-b9c2c339-preview {
    transform: translateX(0) translateY(0);
}

/* Prev item: align preview to the left */
.npn-b9c2c339-prev .npn-b9c2c339-preview {
    left: 0;
    transform: translateX(0) translateY(8px);
}

.npn-b9c2c339-prev .npn-b9c2c339-title:hover .npn-b9c2c339-preview {
    transform: translateX(0) translateY(0);
}

/* Editor demo placeholder */
.npn-b9c2c339-preview-demo {
    display: none;
}

.npn-b9c2c339-title:hover .npn-b9c2c339-preview-demo {
    display: flex;
    flex-direction: column;
    opacity: 1;
    visibility: visible;
}

.npn-b9c2c339-preview-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
    color: #6366f1;
    font-size: 13px;
    font-weight: 500;
}

.npn-b9c2c339-preview-demo .npn-b9c2c339-preview-title {
    background: rgba(0, 0, 0, 0.5);
}

/* Empty state */
.npn-b9c2c339-empty {
    flex: 1;
}

/* Responsive */
@media (max-width: 767px) {
    .npn-b9c2c339-wrap {
        flex-direction: column;
    }

    .npn-b9c2c339-next {
        text-align: left;
        justify-content: flex-start;
        flex-direction: row-reverse;
    }

    .npn-b9c2c339-preview {
        display: none !important;
    }
}
