/*
TABLE OF CONTENTS | 목차
1) Page Base | 서브 페이지 기본 구조
2) Shared Sub Header | 서브 공통 헤더
3) Shared Decor | 공통 장식 요소
4) About Sections | 소개 페이지 섹션
5) Exhibition Sections | 전시 페이지 섹션
6) Event Sections | 이벤트 페이지 섹션
MAINTENANCE NOTES | 유지보수 메모
- 이 파일은 서브 페이지(about/*, exhibition/*, event/*, notice/*)의 페이지 전용 스타일만 유지
- data-js 훅 변경 시 js/sub.js와 선택자 동기화 필수
*/

/* 1) Page Base | 서브 페이지 기본 구조 */
/* 역할: 서브 페이지 공통 컨테이너 여백/레이어 기준 설정 */
.container {
    padding-bottom: 7.778em;
    isolation: isolate;
}

@media all and (max-width: 1023px) {
    .container {
        padding-bottom: 5.556em;
    }
}

.wrapper {
    z-index: 20;
}

/* 2) Shared Sub Header | 서브 공통 헤더 */
/* 의존: [data-js="page-subheader"] 공통 마크업과 연결 */
.page-subheader {
    text-align: center;
    margin-top: 4.444em;
    position: relative;
    z-index: 2;
}

/* 3) Shared Decor | 공통 장식 요소 */
/* 의존: [data-js="page-decor"] + [data-decor] 값(a/e/p/i)을 js/sub.js가 참조 */
.page-decor {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.page-decor-item {
    position: absolute;
    will-change: transform, opacity;
    z-index: 10;
}

.page-decor-item.is-back {
    z-index: 10;
}

.page-decor-item.is-front {
    z-index: 30;
}

.page-decor-item.page-decor-a {
    z-index: 9;
}

.page-decor-a {
    width: 10.573%;
    top: 0;
    right: 9.844%;
}

.page-decor-a path {
    fill: #3f3f3f;
}

.page-decor-e {
    width: 18.698%;
    top: 2.889em;
    left: -2.813%;
}

.page-decor-p {
    width: 17.822%;
    top: 69.833em;
    right: 2.647%;
}

.page-decor-i {
    width: 5.052%;
    top: 91.778em;
    left: 10.938%;
}

/* 반응형 */
@media all and (max-width: 1439px) {
    .page-decor-a {
        width: 8.946%;
    }

    .page-decor-e {
        width: 15.821%;
    }

    .page-decor-p {
        width: 15.08%;
        right: 0;
    }

    .page-decor-i {
        width: 4.275%;
        left: 3.938%;
    }
}
@media all and (max-width: 1023px) {
    .page-decor-a {
        width: 17.143%;
        top: 0;
        right: 0;
    }

    .page-decor-e {
        width: 31.857%;
        top: 10.389em;
        left: -10.143%;
    }

    .page-decor-p,
    .page-decor-i {
        display: none;
    }
}

/* 4) About Sections | 소개 페이지 섹션 */
/* 유지보수: about-intro/vision/location 구조 변경 시 애니메이션 대상 선택자 함께 점검 */
.about-intro {
    margin-top: 4.444em;
    position: relative;
}

.about-intro-image {
    width: 81%;
    position: absolute;
    top: 3.333em;
    left: -30%;
    z-index: 2;
}

.about-intro-content {
    letter-spacing: -0.02em;
    color: #000;
    padding: 13.667em 0 13.667em 54.417%;
    position: relative;
    z-index: 1;
}

.about-intro-content:before {
    content: "";
    position: absolute;
    top: 0;
    left: -30%;
    width: 100vw;
    height: 100%;
    background: linear-gradient(to right, #fef5e9, #5cb7e8);
    z-index: -1;
}

.about-intro-headline {
    font-size: 1.778em;
    font-weight: 700;
    color: #000;
}

.about-intro-decoration {
    width: 42.576%;
    position: absolute;
    top: 12.167em;
    right: -45.826%;
    z-index: 2;
}

.about-vision {
    margin-top: 10em;
}

.about-vision-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.889em;
    padding: 4.444em 0;
    border-block: 1px solid rgba(255,255,255,0.2);
    margin-top: 4.444em;
}

.about-vision-item {
    overflow: hidden;
    margin: 0;
    position: relative;
}

.about-vision-item > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-vision-copyright {
    font-size: 0.778em;
    color: #bdbdbd;
    padding: 0.429em 0.571em;
    background: var(--color-surface);
    position: absolute;
    bottom: 0;
    left: 0;
}

.about-goal {
    font-size: 2em;
    line-height: 1.333;
    letter-spacing: -0.02em;
    text-align: center;
}

.about-location {
    margin-top: 4.444em;
}

.about-location-header {
    letter-spacing: -0.02em;
    text-align: center;
}

.about-location-title {
    font-size: 1.778em;
    font-weight: 700;
}

.about-location-description {
    font-size: 1.111em;
    margin-top: 0.8em;
}

.about-location-map {
    aspect-ratio: 600 / 209;
    margin-top: 1.333em;
}

.about-location-detail {
    letter-spacing: 0.05em;
    margin-top: 1.333em;
}

.about-location-detail > dt {
    color: #919191;
}

.about-location-detail > dt:not(:first-of-type) {
    margin-top: 0.889em;
}

.about-location-detail > dd {
    margin-top: 0.444em;
}

.about-location-list > li {
    position: relative;
    padding-left: 1em;
}

.about-location-list > li:before {
    content: "•";
    position: absolute;
    top: 0;
    left: 0;
}

/* 반응형 */
@media all and (max-width: 1439px) {
    .about-intro-content:before {
        left: -14%;
    }

    .about-intro-decoration {
        width: 36.026%;
        top: 20em;
        right: -27%;
    }

    .about-vision {
        margin-top: 20em;
    }
}
@media all and (max-width: 1279px) {
    .about-vision {
        margin-top: 15em;
    }

    .about-intro-image {
        top: 7em;
    }
}
@media all and (max-width: 1023px) {
    .about-intro-image {
        position: relative;;
        top: auto;
        left: auto;
        width: 100vw;
        margin-left: calc(50% - 50vw);
        transform: none;
    }

    .about-intro-content {
        text-align: center;
        word-break: keep-all;
        padding: 7.111em 1.5em;
    }

    .about-intro-content:before {
        left: 50%;
        transform: translateX(-50%);
    }

    .about-intro-decoration {
        width: 40.248%;
        top: 35.421%;
        right: -12.848%;
    }

    .about-vision {
        margin-top: 5.556em;
    }

    .about-goal {
        word-break: keep-all;
    }

    .about-vision-grid {
        grid-template-columns: repeat(1, minmax(0, 1fr));
        margin-top: 5.556em;
        padding: 4.444em 1.5em;
    }

    .about-location-map {
        aspect-ratio: 350 / 209;
    }
}

@media all and (max-width: 767px) {
    .about-intro-decoration {
        top: 34.421%;
    }
}

/* 5) Exhibition Sections | 전시 페이지 섹션 */
/* 유지보수: exhibition-switcher 클래스/상태(is-open)는 sub.js 인터랙션과 강결합 */
.exhibition-path {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 5.556em;
    position: relative;
    z-index: 50;
}

.exhibition-title {
    font-size: 2.667em;
    font-weight: 700;
    overflow: hidden;
}

.exhibition-switcher {
    position: relative;
    width: 33.333%;
    will-change: transform, opacity;
    z-index: 51;
}

.exhibition-switcher-native {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
}

.exhibition-switcher-trigger {
    width: 100%;
    font-size: 1.333em;
    line-height: 3.417;
    text-align: left;
    padding: 0 1.083em;
    background: #1e1e1e;
    border: 2px solid #353535;
    border-radius: 20px;
    cursor: pointer;
    position: relative;
}

.exhibition-switcher-trigger::after {
    content: "";
    width: 1em;
    height: 1em;
    background: var(--theme-dropdown-anchor-icon) center / cover no-repeat;
    position: absolute;
    top: 50%;
    right: 1em;
    transform: translateY(-50%);
    transition: transform 0.2s ease;
}

.exhibition-switcher.is-open .exhibition-switcher-trigger {
    border-color: #666;
}

.exhibition-switcher.is-open .exhibition-switcher-trigger::after {
    transform: translateY(-50%) rotate(180deg);
}

.exhibition-switcher-list {
    position: absolute;
    top: calc(100% + 0.444em);
    left: 0;
    width: 100%;
    z-index: 52;
    border: 2px solid #666;
    border-radius: 10px;
    background: #1e1e1e;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-0.278em);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
    overflow: hidden;
}

.exhibition-switcher.is-open .exhibition-switcher-list {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
    transition-delay: 0s;
}

.exhibition-switcher-option {
    width: 100%;
    text-align: left;
    padding: 0.9em 1em;
    background: transparent;
    border: 0;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.exhibition-switcher-option:hover,
.exhibition-switcher-option:focus-visible,
.exhibition-switcher-option[aria-selected="true"] {
    background: #666;
}

.exhibition-current {
    width: 100vw;
    margin-top: 1.333em;
    position: relative;
    left: calc(50% - 50vw);
    overflow: hidden;
}

.exhibition-current:before {
    content: "";
    width: 100%;
    height: 100%;
    background: var(--exhibition-current-bg, url("/img/sub/exhibition_current_img01.jpg")) center / cover no-repeat;
    filter: blur(70px);
    position: absolute;
    top: 0;
    left: 0;
    transform: translateZ(0) scale(1.1);
    z-index: 0;
}

.exhibition-current:after {
    content: "";
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    filter: blur(70px);
    position: absolute;
    top: 0;
    left: 0;
    transform: scale(1.1);
    z-index: 1;
}

.exhibition-current-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 62.5%;
    min-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.exhibition-current-header {
    max-width: 40%;
}

.exhibition-current-title {
    font-size: 2.667em;
    font-weight: 500;
    word-break: break-all;
}

.exhibition-current-period {
    font-size: 1.111em;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #fabf00;
    margin-top: 0.75em;
}

.exhibition-current-period-text {
    --ui-underline-current-duration: var(--ui-underline-duration, 0.36s);
    display: inline;
    padding-bottom: 0.08em;
    background-image: linear-gradient(currentColor, currentColor);
    background-repeat: no-repeat;
    background-position: left 100%;
    background-size: 0 1px;
    transition: background-size var(--ui-underline-current-duration) ease;
    transition-delay: 0s;
}

.exhibition-current > a:is(:hover, :focus, :focus-visible) .exhibition-current-period-text {
    background-size: 100% 1px;
    transition-delay: calc(var(--ui-underline-group-line-count, 1) * var(--ui-underline-current-duration));
}

.exhibition-current > a:not(:is(:hover, :focus, :focus-visible)) .exhibition-current-title .ui-underline-line {
    transition-delay: calc(var(--ui-underline-line-delay-out, 0s) + var(--ui-underline-current-duration));
}

.exhibition-current-image {
    width: 58.333%;
    box-shadow: 0 34px 34px 0 rgba(0, 0, 0, 0.15);
}

.page-exhibition-current .container {
    padding-bottom: 0;
}

.page-exhibition-current .wrapper {
    z-index: auto !important;
}

.page-exhibition-current .page-decor {
    z-index: auto;
}

main.page-exhibition-current .exhibition-current {
    z-index: 100 !important;
    transform: none !important;
    isolation: isolate;
}

main.page-exhibition-current .page-decor-item:not(.page-decor-p) {
    z-index: 99 !important;
}

main.page-exhibition-current .exhibition-current:before {
    z-index: 100 !important;
}

main.page-exhibition-current .exhibition-current:after {
    z-index: 101 !important;
}

main.page-exhibition-current .page-decor.is-current .page-decor-p {
    z-index: -1 !important;
    opacity: 0 !important;
}

main.page-exhibition-current .page-decor.is-soon .page-decor-p {
    z-index: 99 !important;
    opacity: 1 !important;
}

main.page-exhibition-current .exhibition-current-content {
    z-index: 103 !important;
}

main.page-exhibition-current .page-subheader {
    z-index: 110 !important;
}

main.page-exhibition-current .exhibition-path {
    z-index: 120 !important;
}

main.page-exhibition-current .exhibition-switcher {
    z-index: 121 !important;
}

main.page-exhibition-current .exhibition-switcher-list {
    z-index: 122 !important;
}

.exhibition-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: 0.889em;
    row-gap: 2.222em;
    margin-top: 1.333em;
}

.exhibition-item > article > a {
    display: block;
}

.exhibition-list-image {
    overflow: hidden;
}

.exhibition-list-image > img {
    display: block;
    width: 100%;
    transition: transform 0.8s ease;
}

.exhibition-list-title {
    line-height: 1.2;
    font-size: 1.111em;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    word-break: keep-all;
    overflow-wrap: break-word;
    min-height: 2.4em;
    overflow: hidden;
    margin-top: 1.2em;
    text-overflow: ellipsis;
}

.exhibition-list-title .ui-underline-line {
    padding-bottom: 0;
    background-position: left calc(100% - 0.04em);
}

.exhibition-list-period {
    font-size: 0.889em;
    letter-spacing: 0.05em;
    color: #8a8a8a;
    margin-top: 1em;
}

.exhibition-item > article > a:is(:hover, :focus, :focus-visible) .exhibition-list-image > img {
    transform: scale(1.1);
}

.exhibition-soon {
    display: flex;
    flex-flow: column;
    align-items: center;
    margin-top: 3.556em;
}

.exhibition-soon img {
    width: 15.733%;
}

.exhibition-soon h3 {
    font-size: 1.778em;
    font-weight: 500;
    margin-top: 2em;
}

.exhibition-soon p {
    letter-spacing: 0.05em;
    color: #8a8a8a;
    margin-top: 0.889em;
}

.exhibition-post {
    margin-top: 5.556em;
    position: relative;
}

.page-exhibition-post .exhibition-post-category {
    width: 21.042%;
    margin-bottom: 1.111em;
    position: relative;
    z-index: 3;
}

.page-exhibition-post .exhibition-post-category .exhibition-post-category-select {
    width: 100%;
    height: 3.417em;
    font-size: 1.111em;
    color: #fff;
    line-height: 1;
    text-align: left;
    padding: 0 2.6em 0 1.083em;
    background: #1e1e1e;
    border: 2px solid #353535;
    border-radius: 20px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
}

.page-exhibition-post .exhibition-post-category::after {
    content: "";
    width: 1em;
    height: 1em;
    background: var(--theme-dropdown-anchor-icon, url("/img/ui/ico_dropdown_anchor.svg")) center / cover no-repeat;
    position: absolute;
    top: 50%;
    right: 1em;
    transform: translateY(-50%);
    pointer-events: none;
}

.page-exhibition-post .exhibition-post-category .exhibition-post-category-select:focus {
    border-color: #666;
    outline: none;
}

.exhibition-post-header {
    width: 42.083%;
    color: #000;
    padding: 3.556em 0;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.exhibition-post-header:before {
    content: "";
    width: 62.5vw;
    height: 100%;
    background: linear-gradient(to right, #FEF5E9 9%, #5cb7e8 100%);
    position: absolute;
    top: 0;
    left: -6.667vw;
    z-index: -1;
}

.exhibition-post-share-list {
    display: flex;
    align-items: center;
    gap: 0.333em;
}

.exhibition-post-share-icon {
    display: block;
    width: 2em;
    height: 2em;
}

.exhibition-post-title {
    display: flex;
    flex-flow: column wrap;
    gap: 0.889em;
    font-weight: 700;
    margin-top: 1.778em;
}

.exhibition-post-title-line:first-child {
    font-size: 1.778em;
}

.exhibition-post-title-line:last-child {
    font-size: 1.333em;
    letter-spacing: 0.05em;
}

.exhibition-post-title-line button {
    font-size: 0.889rem;
}

.exhibition-post-period {
    letter-spacing: 0.05em;
    margin-top: 1.333em;
}

.exhibition-post-ticket {
    display: flex;
    gap: 0.389em;
    margin-top: 1.778em;
}

.exhibition-post-ticket-link {
    padding: 0.896em 2.311em;
}

.exhibition-post-ticket-link-text {
    display: block;
    white-space: nowrap;
}

.exhibition-post-info {
    display: flex;
    justify-content: space-between;
    padding: 3.556em 0 4.611em 2.222em;
    position: relative;
}

.exhibition-post-info:before {
    content: "";
    width: 129.917%;
    height: calc(100% - 3.556em);
    background: #3f3f3f;
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: -2;
}

.exhibition-post-info-list {
    display: flex;
    flex-flow: column;
    gap: 0.667em;
    max-width: calc(50% - 0.667em);
    letter-spacing: 0.05em;
    word-break: break-all;
    margin-top: 24.111em;
}

.exhibition-post-info-list > dd + dt {
    margin-top: 0.667em;
}

.exhibition-post-info-term {
    font-weight: 700;
}

.exhibition-post-info-description {
    word-break: keep-all;
    color: #bdbdbd;
}

.exhibition-post-hero {
    width: 50%;
    position: relative;
    right: 0;
    z-index: 3;
}

@media all and (max-width: 1023px) {
    .exhibition-path {
        flex-flow: column wrap;
        justify-content: center;
        align-items: center;
    }

    .exhibition-title {
        font-size: 2.222em;
        line-height: 1;
    }

    .exhibition-switcher {
        width: 100%;
    }

    .exhibition-switcher-trigger {
        width: 100%;
        padding: 0 1.125em;
        margin-top: 2.083em;
    }

    .exhibition-current {
        margin-top: 2.778em;
    }

    .exhibition-current-content {
        flex-flow: column-reverse wrap;
        width: 100% !important;
        padding: 1.389em 0 7.222em 0;
    }

    .exhibition-current-image {
        width: 92.286%;
    }

    .exhibition-current-header {
        max-width: 92.286%;
        text-align: center;
    }

    .exhibition-current-title {
        margin-top: 2.083em;
    }

    .exhibition-post-header {
        width: 100%;
    }

    .exhibition-post-header:before {
        width: 100vw;
        padding: 3.333em 0;
        left: 50%;
        transform: translateX(-50%);
    }

    .exhibition-post-title {
        word-break: keep-all;
    }

    .exhibition-post-ticket {
        width: 100%;
        gap: 0.556em;
        margin-top: 1.833em;
    }

    .exhibition-post-ticket-link {
        display: flex;
        justify-content: center;
        align-items: center;
        width: calc(50% - 0.278em);
        min-height: 100%;
        text-align: center;
        word-break: keep-all;
    }

    .exhibition-post-ticket.is-ticket-link-wrapped {
        align-items: stretch;
    }

    .exhibition-post-ticket.is-ticket-link-wrapped .exhibition-post-ticket-link {
        line-height: 1.25;
    }

    .exhibition-post-ticket.is-ticket-link-wrapped .exhibition-post-ticket-link-text {
        max-width: 6.4ch;
        white-space: normal;
    }

    .exhibition-post-info {
        display: flex;
        flex-flow: column-reverse wrap;
        justify-content: center;
        align-items: center;
        padding: 0;
    }

    .exhibition-post-info:before {
        width: 100vw;
        height: 100%;
        left: 50%;
        transform: translateX(-50%);
    }

    .exhibition-post-info-list {
        max-width: none;
        width: 100%;
        gap: 0.722em;
        padding-bottom: 3.889em;
    }

    .exhibition-post-info-term:first-child {
        margin-top: 3.889em;
    }

    .exhibition-post-hero {
        width: 90.712%;
    }

    .exhibition-post-board-body {
        margin-top: 1.5em !important;
    }

    .exhibition-soon {
        margin-top: 17.111em;
    }

    .exhibition-soon img {
        width: 29.226%;
    }
}

/* Exhibition Post Board Body | 전시 상세 본문/목록 버튼 */
/* 역할: 전시 상세 페이지 전용 본문 영역과 목록 링크 UI를 정의합니다. */
.exhibition-post-footer {
    text-align: center;
    border-top: 1px solid #4a4a4a;
    margin-top: 7.222em;
}

.exhibition-post-footer .ui-board-list-link {
    margin-top: 1.333em;
}

.exhibition-post-board-body {
    margin-top: 4.444em;
}

.exhibition-post-board-body-inner {
    width: 100%;
}

/* 반응형 */
@media all and (max-width: 1439px) {
    .exhibition-current-content {
        width: 78.125%;
        min-width: auto;
    }
}

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

@media all and (max-width: 1023px) {
    .exhibition-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 3.889em;
    }
}

@media all and (max-width: 1023px) {
    .exhibition-post-footer {
        margin-top: 2.778em;
    }
}

/* 6) Event Sections | 이벤트 페이지 섹션 */
/* 역할: 홈 이벤트 카드 룩을 이벤트 페이지에서 4열 그리드로 재사용 */
.page-event .event-content {
    margin-top: 5.556em;
}

.page-event .event-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    row-gap: 2.222em;
}

.page-event .event-list-title {
    min-height: 3em;
    font-size: 1.111em;
    line-height: 1.5;
}

@media all and (max-width: 1279px) {
    .page-event .event-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media all and (max-width: 1023px) {
    .page-event-post .container {
        padding-bottom: 0;
    }
    
    .page-event .event-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .page-event .event-list-title {
        min-height: 4.5em;
        max-height: 4.5em;
        -webkit-line-clamp: 3;
        line-clamp: 3;
    }
}
