/* Portfolio grid and shared design tokens. */
.yj-project {
    --yj-orange: #ff7700;
    --yj-gradient: linear-gradient(120deg,#ff9900 0%,#ff7700 45%,#ff4d68 100%);
    width: 100%;
}

.yj-project,.yj-project * {
    box-sizing: border-box;
}

.yj-project__grid {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 32px;
}

.yj-project__card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.yj-project__viewport {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1.46;
    border: 3px solid var(--yj-orange);
    border-radius: 12px;
    background: #f5f5f5;
}

.yj-project .yj-project__image {
    display: block;
    width: 100%;
    max-width: none;
    height: auto;
    min-height: 100%;
    object-fit: cover;
    margin: 0;
    border: 0;
    border-radius: 0;
    transform: translateY(0);
    transition: transform var(--yj-scroll-duration,6s) linear;
    will-change: transform;
}

@media(hover:hover) {
    .yj-project__viewport:hover .yj-project__image {
        transform: translateY(calc(-1 * var(--yj-scroll-distance,0px)));
    }
}

.yj-project__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}

.yj-project__text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
}

.yj-project .yj-project__title {
    font-family: 'Teachers',sans-serif;
    font-weight: 700;
    font-size: 20px;
    line-height: 1.3;
    margin: 0;
    padding: 0;
    color: #000;
}

.yj-project .yj-project__description {
    font-family: 'Noto Sans',sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 1.4;
    margin: 0;
    padding: 0;
    color: #202020;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    min-height: 2.8em;
}

.yj-project .yj-project__button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    align-self: center;
    padding: 9px 16px;
    border: 0;
    border-radius: 18px;
    background: var(--yj-gradient);
    font-family: 'Teachers',sans-serif;
    font-weight: 700;
    font-size: 18px;
    line-height: 1.3;
    color: #fff;
    text-decoration: none;
    box-shadow: none;
}

.yj-project__button:focus-visible,.yj-project__pagination a:focus-visible {
    outline: 3px solid #222;
    outline-offset: 4px;
}

.yj-project__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    inset: 0;
    font-family: 'Teachers',sans-serif;
}

.yj-project__pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.yj-project__pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 4px;
    border: 2px solid var(--yj-orange);
    border-radius: 50%;
    font: 700 18px/1 'Teachers',sans-serif;
    text-decoration: none;
    color: #202020;
    background: transparent;
    box-shadow: none;
}

.yj-project__pagination .current {
    background: var(--yj-gradient);
    color: #fff;
}

.yj-project__pagination .dots {
    border-color: transparent;
}

@media(max-width:1440px) {
    .yj-project__grid {
        gap: 24px;
    }
}

@media(max-width:1024px) {
    .yj-project__grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }
    .yj-project .yj-project__title {
        font-size: 18px;
    }
    .yj-project .yj-project__description,.yj-project .yj-project__button {
        font-size: 16px;
    }
}

@media(max-width:640px) {
    .yj-project__grid {
        grid-template-columns: minmax(0,1fr);
		gap: 16px;
    }
}

@media(prefers-reduced-motion:reduce) {
    .yj-project .yj-project__image {
        transition: none;
        transform: none!important;
    }
    .yj-project__viewport {
        overflow-y: auto;
    }
    .yj-project .yj-project__image {
        will-change: auto;
    }
}

