/* RJS WA — 项目详情页轻量 carousel
   视觉对齐 photo-gallery (主图 3:2 + 缩略图条)，纯 CSS + 少量 JS */

.rjs-project-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 32px 24px 64px;
}

.rjs-project-meta {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 8px 24px;
    margin: 28px 0 36px;
    font-size: 1rem;
    line-height: 1.7;
    max-width: 900px;
}
.rjs-project-meta dt {
    font-weight: 700;
    color: #1a1a1a;
}
.rjs-project-meta dd { margin: 0; color: #444; }

.rjs-project-title {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 600;
    margin: 18px 0 4px;
    color: #1a1a1a;
}

.rjs-video {
    width: 100%;
    aspect-ratio: 16 / 9;
    margin: 32px 0;
    background: #000;
    border-radius: 4px;
    overflow: hidden;
}
.rjs-video iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}
.rjs-video__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #ccc;
    font-size: 0.95rem;
    background: #1a1a1a;
}

.rjs-project-section {
    margin-top: 48px;
}
.rjs-project-section__title {
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.95rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e5e5e5;
}

.rjs-carousel {
    width: 100%;
    margin-top: 8px;
}

.rjs-carousel__main {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 2;
    background: #f0f0f0;
    overflow: hidden;
    min-height: 360px;
}
@media (min-width: 1024px) {
    .rjs-carousel__main { min-height: 480px; }
}

.rjs-carousel__slides {
    position: absolute;
    inset: 0;
}
.rjs-carousel__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}
.rjs-carousel__slide--active {
    opacity: 1;
    pointer-events: auto;
}
.rjs-carousel__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.rjs-carousel__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.86);
    border: 0;
    border-radius: 50%;
    color: #1a1a1a;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}
.rjs-carousel__arrow:hover {
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
}
.rjs-carousel__arrow--prev { left: 16px; }
.rjs-carousel__arrow--next { right: 16px; }

.rjs-carousel__filmstrip {
    margin-top: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.rjs-carousel__filmstrip-track {
    flex: 1;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: #1a1a1a #f0f0f0;
}
.rjs-carousel__filmstrip-track::-webkit-scrollbar { height: 6px; }
.rjs-carousel__filmstrip-track::-webkit-scrollbar-thumb { background: #1a1a1a; border-radius: 3px; }

.rjs-carousel__thumb {
    flex: 0 0 auto;
    width: 140px;
    height: 90px;
    padding: 0;
    border: 2px solid transparent;
    background: #f0f0f0;
    cursor: pointer;
    overflow: hidden;
    transition: border-color 0.2s ease, opacity 0.2s ease;
    opacity: 0.78;
}
.rjs-carousel__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.rjs-carousel__thumb:hover { opacity: 1; }
.rjs-carousel__thumb--active {
    border-color: #1a1a1a;
    opacity: 1;
}

.rjs-carousel__filmstrip-arrow {
    flex: 0 0 auto;
    width: 32px;
    height: 90px;
    border: 0;
    background: transparent;
    color: #1a1a1a;
    font-size: 1.4rem;
    cursor: pointer;
    transition: color 0.2s ease;
}
.rjs-carousel__filmstrip-arrow:hover { color: #1a1a1a; }

@media (max-width: 640px) {
    .rjs-carousel__thumb { width: 96px; height: 64px; }
    .rjs-carousel__arrow { width: 40px; height: 40px; }
}
