/* 전시 안내(Linked Exhibition) 서브페이지 전용 스타일 —
   개최정보/부대행사/관람정보는 forum.css·notice.css의 기존 컴포넌트를
   그대로 재사용하고, 여기서는 이 페이지에만 있는 참여 작가 그리드·작가 모달과
   공용 정보 박스에 대한 소폭 보정만 담당한다. */

.forum-exhibition-coming-soon {
    margin: 0;
    font-size: clamp(18px, 1.4vw, 21px);
    line-height: 1.8;
    color: var(--sub-gray, #4b5563);
    word-break: keep-all;
}

/* 전시 소개 키 비주얼(notice.css의 network-meeting-visual) 아래 안내 문구 간격 */
.network-meeting-visual + .forum-exhibition-coming-soon {
    margin-top: 24px;
}

/* =========================================================
    HOST INFO (개최정보) — forum.css의 마크업/구조는 그대로 두고,
    이 페이지에서만 제목(개최 정보)과 라벨(개최국가/개최장소/개최일정)을
    --sub-red(#E33131)로 표시한다. 값(필리핀, 마닐라 아얄라 뮤지엄 등)은
    forum.css 기본값인 검은색을 그대로 둔다.
========================================================= */

.page-forum-exhibition .forum-fact-group__title {
    color: var(--sub-red);
}

.page-forum-exhibition .forum-fact-strip__item dt {
    color: var(--sub-red);
}

/* 개최일정은 일자별 운영시간까지 3줄이라, 데스크톱에서는 국가·장소 칸을 줄이고
   일정 칸에 내용 폭을 그대로 확보해 지정한 줄이 다시 꺾이지 않게 한다.
   (forum.css의 html[lang="en"] 규칙보다 우선하도록 html을 붙인다.) */
@media (min-width: 1321px) {
    html .page-forum.page-forum-exhibition .forum-fact-strip__row--event {
        grid-template-columns: minmax(0, 0.7fr) minmax(0, 1fr) max-content;
    }
}

/* 좁은 폭에서 줄이 꺾여도 날짜 범위·시간 범위가 중간에서 끊기지 않게 묶는다. */
.page-forum-exhibition .forum-fact-nowrap {
    white-space: nowrap;
}

/* =========================================================
    ARTISTS (참여 작가) — 사진 카드 그리드(4→3→2열).
    카드를 누르면 작가 소개·작품 모달(아래 ARTIST MODAL)이 열린다.
========================================================= */

.exhibition-artist-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(28px, 3vw, 44px) clamp(16px, 2vw, 28px);
    margin: 0;
    padding: 0;
    list-style: none;
}

.exhibition-artist-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.exhibition-artist-card__photo {
    position: relative;
    display: block;
    margin-bottom: 14px;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 10px;
    background: var(--sub-cream);
}

.exhibition-artist-card__photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    transition: transform 0.4s ease;
}

/* 우측 하단 + 표시 — 눌러서 상세를 볼 수 있다는 단서 */
.exhibition-artist-card__more {
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--sub-black);
    transition: background-color 0.25s ease;
}

.exhibition-artist-card__more::before,
.exhibition-artist-card__more::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 2px;
    background: var(--sub-white);
    transform: translate(-50%, -50%);
}

.exhibition-artist-card__more::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.exhibition-artist-card:hover .exhibition-artist-card__photo img {
    transform: scale(1.04);
}

.exhibition-artist-card:hover .exhibition-artist-card__more,
.exhibition-artist-card:focus-visible .exhibition-artist-card__more {
    background: var(--sub-red);
}

.exhibition-artist-card:focus-visible {
    outline: none;
}

.exhibition-artist-card:focus-visible .exhibition-artist-card__photo {
    outline: 3px solid var(--sub-black);
    outline-offset: 3px;
}

.exhibition-artist-card__name {
    font-size: 21px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--sub-black);
    word-break: keep-all;
}

.exhibition-artist-card__country {
    font-size: 15px;
    color: var(--sub-muted);
}

/* =========================================================
    ARTIST MODAL (sub-modal--exhibition-artist) — 공용 sub-modal 틀 위에
    작가 헤더, 작가 소개, 작품(이미지 + 캡션) 목록을 한 줄기로 쌓고 본문만 스크롤한다.
========================================================= */

.sub-modal--exhibition-artist .sub-modal__dialog {
    display: flex;
    flex-direction: column;
    width: min(1040px, calc(100vw - 80px));
    max-height: min(880px, calc(100vh - 80px));
    background: var(--sub-charcoal);
    border-radius: 24px;
}

.sub-modal--exhibition-artist .sub-modal__inner {
    flex: 1 1 auto;
    min-height: 0;
    padding: 48px 56px 56px;
    overflow-y: auto;
    overscroll-behavior: contain;
    /* 연사 모달(speakers-current-modal.css)과 같은 얇은 스크롤바 */
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.35) transparent;
    color: rgba(255, 255, 255, 0.86);
    font-size: 16px;
    line-height: 1.75;
}

.exhibition-artist-modal__head {
    display: flex;
    align-items: flex-end;
    gap: 28px;
    padding-right: 64px;
}

.exhibition-artist-modal__photo {
    flex: none;
    width: 150px;
    aspect-ratio: 3 / 4;
    margin: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 16px;
    background: color-mix(in srgb, var(--sub-charcoal) 85%, #000);
}

.exhibition-artist-modal__photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
}

.exhibition-artist-modal__heading {
    min-width: 0;
}

.exhibition-artist-modal__country {
    margin: 0;
    color: var(--sub-modal-accent);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.exhibition-artist-modal__heading h2 {
    margin: 8px 0 0;
    color: #ffffff;
    font-size: clamp(26px, 2.6vw, 38px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.03em;
    word-break: keep-all;
}

.exhibition-artist-modal__credit {
    margin: 8px 0 0;
    color: rgba(255, 255, 255, 0.55);
    font-size: 13px;
}

.exhibition-artist-modal__section {
    margin-top: 40px;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.exhibition-artist-modal__label {
    margin: 0 0 16px;
    color: var(--sub-modal-accent);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.exhibition-artist-modal__bio p {
    margin: 0;
    word-break: keep-all;
}

.exhibition-artist-modal__bio p + p {
    margin-top: 1em;
}

.exhibition-artist-modal__note {
    margin: 0 0 28px;
    color: rgba(255, 255, 255, 0.72);
    word-break: keep-all;
}

.exhibition-artwork {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(220px, 2fr);
    align-items: start;
    gap: 28px;
}

.exhibition-artwork + .exhibition-artwork {
    margin-top: 36px;
    padding-top: 36px;
    border-top: 1px dashed rgba(255, 255, 255, 0.14);
}

.exhibition-artwork__main {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    overflow: hidden;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.25);
}

.exhibition-artwork__main img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: min(520px, 60vh);
}

.exhibition-artwork__thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.exhibition-artwork__thumb {
    width: 64px;
    height: 64px;
    padding: 0;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: 8px;
    background: none;
    cursor: pointer;
    opacity: 0.6;
    transition:
        opacity 0.2s ease,
        border-color 0.2s ease;
}

.exhibition-artwork__thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.exhibition-artwork__thumb:hover,
.exhibition-artwork__thumb[aria-pressed="true"] {
    opacity: 1;
}

.exhibition-artwork__thumb[aria-pressed="true"] {
    border-color: var(--sub-modal-accent);
}

.exhibition-artwork__thumb:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

.exhibition-artwork__title {
    margin: 0;
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
    word-break: keep-all;
}

.exhibition-artwork__title-en {
    margin: 2px 0 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: 15px;
}

.exhibition-artwork__meta {
    margin: 10px 0 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 15px;
    line-height: 1.6;
    word-break: keep-all;
}

.exhibition-artwork__meta + .exhibition-artwork__meta {
    margin-top: 4px;
}

.exhibition-artwork__credit {
    margin: 14px 0 0;
    color: rgba(255, 255, 255, 0.55);
    font-size: 13px;
    line-height: 1.6;
}

@media (prefers-reduced-motion: reduce) {
    .exhibition-artist-card__photo img,
    .exhibition-artist-card__more,
    .exhibition-artwork__thumb {
        transition: none;
    }

    .exhibition-artist-card:hover .exhibition-artist-card__photo img {
        transform: none;
    }
}

/* =========================================================
    EVENT (부대행사 안내) — network-meeting-info의 dl 행 하나가
    불릿 목록(주요 내용)을 담을 때는 위쪽 정렬로 보정한다.
========================================================= */

.forum-exhibition-event .network-meeting-info__row--multiline {
    align-items: flex-start;
}

/* 라벨 열을 가장 긴 라벨 폭에 맞추고 구분 기호를 한 줄로 세운다.
   국문 라벨은 균등 배분해 "장      소"처럼 글자 끝을 맞춘다.
   관람 정보(VISITOR INFORMATION)도 같은 정보 박스라 동일한 정렬을 공유한다. */
.forum-exhibition-event .network-meeting-info__list,
.forum-exhibition-visitor .network-meeting-info__list {
    grid-template-columns: max-content minmax(0, 1fr);
    gap: 10px 14px;
}

.forum-exhibition-event .network-meeting-info__row,
.forum-exhibition-visitor .network-meeting-info__row {
    display: contents;
}

.forum-exhibition-event .network-meeting-info__row dt,
.forum-exhibition-visitor .network-meeting-info__row dt {
    position: relative;
    padding-right: 0.7em;
    font-size: 21px;
    line-height: 1.6;
    text-align-last: justify;
    text-justify: inter-character;
}

html[lang="en"] .forum-exhibition-event .network-meeting-info__row dt,
html[lang="en"] .forum-exhibition-visitor .network-meeting-info__row dt {
    text-align-last: auto;
}

.forum-exhibition-event .network-meeting-info__row dt::after,
.forum-exhibition-visitor .network-meeting-info__row dt::after,
html[lang="en"] .forum-exhibition-event .network-meeting-info__row dt::after,
html[lang="en"] .forum-exhibition-visitor .network-meeting-info__row dt::after {
    position: absolute;
    top: 0;
    right: 0;
    margin: 0;
}

html[lang="en"] .forum-exhibition-event .network-meeting-info__row dt::after,
html[lang="en"] .forum-exhibition-visitor .network-meeting-info__row dt::after {
    content: '|';
}

.forum-exhibition-event .network-meeting-info__row dd,
.forum-exhibition-visitor .network-meeting-info__row dd {
    min-width: 0;
    font-size: 21px;
    line-height: 1.6;
    word-break: keep-all;
}

.forum-exhibition-event-list {
    display: grid;
    gap: 4px;
    margin: 0;
    padding-left: 0;
}

.forum-exhibition-event-list li {
    font-size: 21px;
    line-height: 1.6;
    color: var(--sub-gray, #4b5563);
    word-break: keep-all;
}

/* =========================================================
    RESPONSIVE
========================================================= */

/* 연사 모달과 같이 1000px 이하에서는 스크롤바를 숨긴다(스크롤 자체는 유지). */
@media (max-width: 1000px) {
    .sub-modal--exhibition-artist .sub-modal__inner {
        scrollbar-width: none;
    }

    .sub-modal--exhibition-artist .sub-modal__inner::-webkit-scrollbar {
        display: none;
    }
}

@media (max-width: 1100px) {
    .exhibition-artist-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .exhibition-artwork {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
    }
}

@media (max-width: 768px) {
    .exhibition-artist-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* 공용 sub-modal.css의 767px 하단 시트 배치를 이 변형의 폭·높이 지정보다 우선시킨다. */
@media (max-width: 767px) {
    .sub-modal--exhibition-artist .sub-modal__dialog {
        width: 100%;
        max-height: calc(100vh - 24px);
        max-height: calc(100dvh - 24px);
        border-radius: 22px 22px 0 0;
    }

    .sub-modal--exhibition-artist .sub-modal__inner {
        padding: 32px 20px 36px;
        font-size: 15px;
    }

    .exhibition-artist-modal__head {
        gap: 18px;
        padding-right: 52px;
    }

    .exhibition-artist-modal__photo {
        width: 96px;
        border-radius: 12px;
    }

    .exhibition-artist-modal__section {
        margin-top: 28px;
        padding-top: 22px;
    }

    .exhibition-artwork__main img {
        max-height: 56vh;
    }
}

@media (max-width: 500px) {
    /* 영문 라벨은 좁은 폭에서 값 열을 너무 좁히므로 라벨 위, 값 아래로 쌓는다. */
    html[lang="en"] .forum-exhibition-event .network-meeting-info__list,
    html[lang="en"] .forum-exhibition-visitor .network-meeting-info__list {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 2px;
    }

    html[lang="en"] .forum-exhibition-event .network-meeting-info__row dt,
    html[lang="en"] .forum-exhibition-visitor .network-meeting-info__row dt {
        padding-right: 0;
    }

    html[lang="en"] .forum-exhibition-event .network-meeting-info__row:not(:first-child) dt,
    html[lang="en"] .forum-exhibition-visitor .network-meeting-info__row:not(:first-child) dt {
        margin-top: 10px;
    }

    html[lang="en"] .forum-exhibition-event .network-meeting-info__row dt::after,
    html[lang="en"] .forum-exhibition-visitor .network-meeting-info__row dt::after {
        content: none;
    }

    .exhibition-artist-card__photo {
        margin-bottom: 10px;
    }

    .exhibition-artist-card__more {
        right: 8px;
        bottom: 8px;
        width: 32px;
        height: 32px;
    }

    .exhibition-artist-card__name {
        font-size: 17px;
    }

    .exhibition-artist-card__country {
        font-size: 14px;
    }
}
