@charset "utf-8";

/******************************************
    전시품목
******************************************/

/* 상위 탭과 콘텐츠 간격 */
.display__tab > .tab__list {
    margin-bottom: 100px;
}

/* 2단: 공간 탭 (균등 분할 박스형) */
/* 보더 겹침 방지: 컨테이너가 위/왼쪽, 버튼이 오른쪽/아래 선을 담당 (줄바꿈돼도 1px 유지) */
.display__subtab > .tab__list {
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    margin-bottom: 40px;
    border: 0;
    border-top: 1px solid var(--neutral-400);
    border-left: 1px solid var(--neutral-400);
}

.display__subtab > .tab__list .tab__button {
    min-height: 50px;
    padding: 0 8px;
    margin: 0;
    color: var(--label-neutral);
    background: var(--white);
    border: 0;
    border-right: 1px solid var(--neutral-400);
    border-bottom: 1px solid var(--neutral-400);
    font-size: 16px;
    word-break: keep-all;
}

.display__subtab > .tab__list .tab__button.is-active,
.display__subtab > .tab__list .tab__button[aria-selected="true"] {
    position: relative;
    color: var(--white);
    background: #B2A8A2;
}

.display__figure {
    margin: 0;
    background: var(--neutral-400);
}

/* 모바일 크게보기 버튼 (.m-only: 1024px 이하에서만 노출) */
.display__zoom {
    text-align: center;
    padding: clamp(20px, calc(40 / 640 * 100vw), 40px) 0;
}

.display__zoom_btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: clamp(10px, calc(15 / 640 * 100vw), 15px) clamp(20px, calc(40 / 640 * 100vw), 40px);
    color: #fff;
    background: #004F50;
    border-radius: clamp(20px, calc(30 / 640 * 100vw), 30px);
    font-size: clamp(14px, calc(18 / 640 * 100vw), 18px);
    transition: all .3s;
}

/* common.css의 a:hover/a:visited/a:active { color: inherit } 보다 우선 */
.display__zoom_btn:link,
.display__zoom_btn:visited,
.display__zoom_btn:hover,
.display__zoom_btn:active,
.display__zoom_btn:focus-visible {
    color: #fff;
}

.page_content .page_container .display__figure img {
    display: block;
    width: 100%;
    height: auto;
}

@media screen and (max-width: 1024px) {
    .display__tab > .tab__list {
        margin-bottom: calc(40 / var(--width) * var(--device-width));
    }


    .display__subtab > .tab__list {
        grid-template-columns: repeat(3, 1fr);
        margin-bottom: calc(24 / var(--width) * var(--device-width));
    }

    .display__subtab > .tab__list .tab__button {
        min-height: calc(40 / var(--width) * var(--device-width));
        font-size: calc(13 / var(--width) * var(--device-width));
    }
}
