/* ─────────────────────────────────────────────────────────────────────────────
   CUTIB 2026 — Detail pages (Works · Originals · News)
   Hero follows LOCOMOTION single.css (.portfolio-hero).
───────────────────────────────────────────────────────────────────────────── */

.detail-page {
    display: flex;
    flex-direction: column;
}


/* ══════════════════════════════════════════════════════════════════════════
   HERO — full-bleed image, then title (left) / info (right)
══════════════════════════════════════════════════════════════════════════ */

.detail-hero {
    display: flex;
    flex-direction: column;
    gap: var(--gap-md);
    background-color: var(--color-white);
    color: var(--color-black);
}

.detail-hero__img {
    --hero-h: clamp(360px, 46vw, 720px);
    position: relative;
    width: 100%;
    height: var(--hero-h);
    overflow: hidden;
    background-color: var(--color-dark);
}

.detail-hero__img img,
.detail-hero__video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* YouTube / Vimeo background: 16:9 frame covering the hero */
.detail-hero__embed {
    position: absolute;
    top: 50%;
    left: 50%;
    width: max(100%, calc(var(--hero-h) * 16 / 9));
    aspect-ratio: 16 / 9;
    height: auto;
    border: 0;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.detail-hero__info {
    display: flex;
    align-items: flex-start;
    gap: var(--gap-sm);
    padding: 0 var(--section-px) var(--gap-lg);
}

.detail-hero__title {
    width: 50%;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: var(--gap-sm);
}

.detail-hero__label {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-family: var(--font-ui);
    font-size: var(--text-small);
    line-height: var(--lh-normal);
    text-transform: uppercase;
}

.detail-hero__h1 {
    font-family: var(--font-body);
    font-size: var(--text-section-head);
    font-weight: var(--fw-regular);
    line-height: var(--lh-normal);
    text-transform: uppercase;
    word-break: keep-all;
}

.detail-hero__right {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: var(--gap-md);
}

.detail-hero__desc {
    font-family: var(--font-body);
    font-size: var(--text-body);
    line-height: var(--lh-normal);
}

.detail-hero__desc p + p {
    margin-top: 0.5em;
}


/* ══════════════════════════════════════════════════════════════════════════
   DETAIL ROWS — line / subtitle (left 50%) | text (right)
══════════════════════════════════════════════════════════════════════════ */

.detail-rows {
    display: flex;
    flex-direction: column;
    gap: var(--gap-md);
}

/* 작품 정보 — half width, right-aligned */
.detail-rows--half {
    width: calc(50% - var(--gap-sm));
    margin-left: auto;
}

.detail-row {
    display: flex;
    flex-direction: column;
    gap: var(--gap-sm);
}

.detail-row__body {
    display: flex;
    gap: var(--gap-sm);
    align-items: flex-start;
}

.detail-row__label {
    width: 50%;
    flex-shrink: 0;
    font-family: var(--font-body);
    font-size: var(--text-item-title);
    font-weight: var(--fw-medium);
    line-height: var(--lh-normal);
}

.detail-row__text {
    flex: 1;
    min-width: 0;
    font-family: var(--font-body);
    font-size: var(--text-body);
    line-height: 1.6;
}

.detail-row__text p + p {
    margin-top: 0.6em;
}

.detail-media {
    gap: var(--gap-md);
}

.detail-related .works-grid {
    margin-top: var(--gap-md);
}


/* ══════════════════════════════════════════════════════════════════════════
   NEWS
══════════════════════════════════════════════════════════════════════════ */

.news-hero {
    padding-bottom: 0;
}

.news-hero__row {
    display: flex;
    gap: var(--gap-sm);
    align-items: flex-start;
}

.news-hero__title {
    width: 50%;
    flex-shrink: 0;
    font-family: var(--font-body);
    font-size: var(--text-section-head);
    font-weight: var(--fw-medium);
    line-height: var(--lh-normal);
    word-break: keep-all;
}

.news-hero__summary {
    flex: 1;
    min-width: 0;
    font-family: var(--font-body);
    font-size: var(--text-body);
    line-height: var(--lh-normal);
}

.news-body {
    padding-top: var(--gap-md);
}

/* Body column: max 960px, centered on the screen */
.news-body__inner {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--gap-lg);
}

.news-body__thumb {
    margin: 0;
    border-radius: var(--radius-nav);
    overflow: hidden;
}

.news-body__thumb img {
    width: 100%;
    height: auto;
}

.news-body .entry-content {
    max-width: none;
    font-size: 17px;
    line-height: 1.8;
}

.news-body .entry-content h2 {
    font-size: var(--text-section-head);
    font-weight: var(--fw-medium);
    margin-top: 2.2em;
}

.news-body .entry-content h3 {
    margin-top: 1.8em;
}

.news-body .entry-content figure {
    margin: 2em 0;
}

.news-body .entry-content figure img {
    width: 100%;
}

.news-body .entry-content figcaption {
    margin-top: 10px;
    font-size: var(--text-small);
    opacity: 0.6;
}

.news-body .entry-content blockquote {
    margin: 2em 0;
    padding-left: var(--gap-sm);
    border-left: 2px solid var(--color-key);
    font-size: var(--text-item-title);
    line-height: var(--lh-normal);
}

.news-files-wrap {
    display: flex;
    flex-direction: column;
    gap: var(--gap-sm);
}

.news-files {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.news-recent__header {
    display: flex;
    flex-direction: column;
    gap: var(--gap-sm);
}

.news-recent__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--gap-sm);
}

.news-recent__title {
    font-family: var(--font-body);
    font-size: var(--text-section-head);
    font-weight: var(--fw-regular);
    line-height: var(--lh-normal);
}



/* ══════════════════════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════════════════════ */

@media screen and (max-width: 980px) {
    .detail-rows--half {
        width: 100%;
    }


    .detail-hero__info,
    .detail-row__body,
    .news-hero__row {
        flex-direction: column;
    }

    .detail-hero__info {
        padding-bottom: var(--gap-md);
    }

    .detail-hero__title,
    .detail-row__label,
    .news-hero__title {
        width: 100%;
    }

    .detail-hero__img {
        --hero-h: 64vw;
    }

    .news-body .entry-content {
        font-size: var(--text-body);
    }
}
