.naviocore-pc {
    --naviocore-pc-desktop-visible: 5;
    --naviocore-pc-tablet-visible: 3;
    --naviocore-pc-mobile-visible: 1;
    --naviocore-pc-gap: 18px;
    --naviocore-pc-radius: 12px;
    --naviocore-pc-fit: contain;
    --naviocore-pc-aspect: 9 / 16;
    width: 100%;
    position: relative;
    isolation: isolate;
}

.naviocore-pc-viewport {
    width: 100%;
    overflow: visible;
    box-sizing: border-box;
    touch-action: pan-y;
}

.naviocore-pc-track {
    display: flex;
    align-items: flex-start;
    gap: var(--naviocore-pc-gap);
    width: max-content;
    will-change: transform;
    transform: translate3d(0, 0, 0);
    user-select: none;
}

.naviocore-pc-card {
    flex: 0 0 500px;
    width: 500px;
    height: 540px;
    min-width: 0;
    overflow: hidden;
    border-radius: var(--naviocore-pc-radius);
    background: #fff;
    line-height: 0;
    aspect-ratio: auto;
    cursor: default;
    position: relative;
}

.naviocore-pc-card::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 33.3333%;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.98) 0%,
        rgba(0, 0, 0, 0.78) 45%,
        rgba(0, 0, 0, 0.28) 82%,
        rgba(0, 0, 0, 0) 100%
    );
}

.naviocore-pc-image {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: var(--naviocore-pc-fit);
    pointer-events: none;
    -webkit-user-drag: none;
}

.naviocore-pc.naviocore-pc--dragging .naviocore-pc-track {
    transition: none !important;
}

.naviocore-pc.naviocore-pc--dragging .naviocore-pc-viewport {
    cursor: grabbing;
}

.naviocore-pc:not(.naviocore-pc--dragging) .naviocore-pc-track {
    transition: transform var(--naviocore-pc-speed, 550ms) cubic-bezier(.22,.61,.36,1);
}

.naviocore-pc--fade::before,
.naviocore-pc--fade::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 80px;
    z-index: 2;
    pointer-events: none;
}

.naviocore-pc--fade::before {
    left: 0;
    background: linear-gradient(to right, var(--e-global-color-background, #fff), transparent);
}

.naviocore-pc--fade::after {
    right: 0;
    background: linear-gradient(to left, var(--e-global-color-background, #fff), transparent);
}

.naviocore-pc-empty {
    padding: 30px;
    border: 1px dashed #bbb;
    text-align: center;
}

@media (max-width: 1024px) {
    .naviocore-pc {
        --naviocore-pc-gap: 14px;
    }

    .naviocore-pc-viewport {
        }

    .naviocore-pc-card {
        flex-basis: calc((100vw - (var(--naviocore-pc-gap) * (var(--naviocore-pc-tablet-visible) - 1))) / var(--naviocore-pc-tablet-visible));
        width: calc((100vw - (var(--naviocore-pc-gap) * (var(--naviocore-pc-tablet-visible) - 1))) / var(--naviocore-pc-tablet-visible));
        height: auto;
        aspect-ratio: 500 / 540;
    }
}

@media (max-width: 767px) {
    .naviocore-pc {
        --naviocore-pc-gap: 12px;
    }

    .naviocore-pc-viewport {
        }

    .naviocore-pc-card {
        flex-basis: calc(100vw / var(--naviocore-pc-mobile-visible));
        width: calc(100vw / var(--naviocore-pc-mobile-visible));
        height: auto;
        aspect-ratio: 500 / 540;
    }

    .naviocore-pc--fade::before,
    .naviocore-pc--fade::after {
        width: 35px;
    }
}

/* v1.2.13 desktop layout: exact 500x540 cards, 3.5-card viewport. */
@media (min-width: 1025px) {
    .naviocore-pc {
        width: calc(1500px + (var(--naviocore-pc-gap) * 3) + 250px);
        max-width: none;
    }

    .naviocore-pc-viewport {
        width: calc(1500px + (var(--naviocore-pc-gap) * 3) + 250px);
        max-width: none;
        overflow: visible;
    }

    .naviocore-pc-track {
        width: max-content;
    }
}

/* v1.2.13 editable portfolio title */
.naviocore-pc-title {
    position: absolute;
    left: 30px;
    bottom: 30px;
    z-index: 2;
    max-width: calc(100% - 60px);
    margin: 0;
    color: #fff;
    font-size: 22px;
    line-height: 1.2;
    font-weight: 600;
    letter-spacing: 0;
    text-align: left;
    pointer-events: none;
}
