@charset "utf-8";

/* Parent CSS: exhibit.css */

.ex-view {
    position: relative;
    min-height: calc(100vh - var(--ex-site-header-h, 72px));
    display: flex;
    flex-direction: column;
    background: var(--ex-bg);
}

.ex-view-body {
    flex: 1;
    display: flex;
    min-height: calc(100vh - var(--ex-site-header-h, 72px));
    height: calc(100vh - var(--ex-site-header-h, 72px));
}

.ex-sidebar {
    position: relative;
    width: var(--ex-sidebar-w);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--ex-line);
    padding: 0;
    overflow: hidden;
    background: #fff;
}

.ex-sidebar::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--ex-black);
}

.ex-sidebar-head {
    flex-shrink: 0;
    padding: 32px 28px 24px;
}

.ex-place {
    display: inline-block;
    margin: 0 0 16px;
    padding: 5px 10px;
    border: 1px solid #e4e4e4;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #666;
}

.ex-title {
    margin: 0 0 18px;
    color: var(--ex-black);
    font-family: var(--ex-serif);
    font-size: clamp(28px, 2.4vw, 38px);
    line-height: 1.15;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.ex-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0 0 18px;
    padding: 14px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.ex-info-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: #333;
}

.ex-info-row i {
    width: 14px;
    margin-top: 2px;
    flex-shrink: 0;
    color: #999;
    text-align: center;
}

.ex-summary {
    margin: 0 0 18px;
    padding-left: 12px;
    border-left: 2px solid var(--ex-black);
    font-size: 14px;
    line-height: 1.7;
    color: #555;
}

.ex-overview-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 3px;
    border-bottom: 1px solid var(--ex-black);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--ex-black);
}

.ex-overview-link i {
    font-size: 11px;
}

.ex-overview-link:hover {
    opacity: 0.65;
}

.ex-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    flex-shrink: 0;
    margin: 0 20px 16px;
    background: #ececec;
    border: 1px solid #ececec;
}

.ex-stat {
    padding: 14px 14px 12px;
    background: #fff;
}

.ex-stat strong {
    display: block;
    margin: 0 0 4px;
    color: var(--ex-black);
    font-family: var(--ex-serif);
    font-size: 20px;
    line-height: 1.15;
    font-weight: 600;
    letter-spacing: -0.02em;
    word-break: keep-all;
}

.ex-stat span {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: #888;
}

.ex-index-wrap {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    margin: 0 20px 16px;
    padding: 0;
    background: #fff;
    border: 1px solid #ececec;
    overflow: hidden;
}

.ex-index-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0;
    padding: 12px 14px;
    border-bottom: 1px solid #ececec;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #888;
}

.ex-index-total {
    font-variant-numeric: tabular-nums;
    color: #111;
}

.ex-index {
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
    overflow: auto;
}

.ex-index li {
    margin: 0;
    padding: 0;
    list-style: none;
}

.ex-index-item {
    display: grid;
    grid-template-columns: 48px 1fr;
    align-items: stretch;
    gap: 0;
    width: 100%;
    min-height: 48px;
    padding: 0;
    text-align: left;
    border: 0;
    border-bottom: 1px solid #f0f0f0;
    color: #333;
}

.ex-index li:last-child .ex-index-item {
    border-bottom: 0;
}

.ex-index-item:hover {
    background: #fafafa;
    color: var(--ex-black);
}

.ex-index-item.is-active {
    background: var(--ex-black);
    color: #fff;
}

.ex-index-item.is-active .ex-index-num {
    color: #fff;
    background: #111;
    border-right-color: #222;
}

.ex-index-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    margin: 0;
    border-right: 1px solid #f0f0f0;
    font-family: var(--ex-serif);
    font-size: 16px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: #111;
    background: #fafafa;
}

.ex-index-label {
    display: flex;
    align-items: center;
    min-width: 0;
    padding: 12px 14px;
    font-size: 13px;
    line-height: 1.4;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    overflow: hidden;
}

.ex-sidebar-foot {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 28px 20px;
    border-top: 1px solid #eee;
}

.ex-social {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: var(--ex-black);
    font-size: 13px;
}

.ex-social span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid #e4e4e4;
}

.ex-social span:hover {
    background: var(--ex-black);
    border-color: var(--ex-black);
    color: #fff;
}

.ex-copy {
    margin: 0;
    font-size: 11px;
    letter-spacing: 0.06em;
    color: #999;
    white-space: nowrap;
}

.ex-stage {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.ex-grid-wrap {
    flex: 1;
    overflow: auto;
    padding: 10px;
}

.ex-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.ex-grid-item {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f3f3f3;
    cursor: pointer;
    container-type: size;
}

.ex-grid-item.is-wide {
    grid-column: span 2;
    aspect-ratio: 2 / 1;
}

.ex-grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ex-grid-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: clamp(16px, 6cqmin, 28px);
    background: var(--ex-overlay);
    color: #fff;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.ex-grid-item:hover .ex-grid-overlay,
.ex-grid-item.is-active .ex-grid-overlay,
.ex-grid-item:focus-visible .ex-grid-overlay {
    opacity: 1;
}

.ex-overlay-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: clamp(8px, 3cqmin, 16px);
    width: 100%;
    padding-bottom: clamp(10px, 3.5cqmin, 16px);
    margin-bottom: clamp(10px, 3.5cqmin, 16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}

.ex-overlay-name {
    margin: 0;
    color: #fff;
    font-size: clamp(16px, 6cqmin, 28px);
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ex-overlay-search {
    flex-shrink: 0;
    font-size: clamp(14px, 4.5cqmin, 20px);
    color: #fff;
    opacity: 0.95;
}

.ex-overlay-bottom {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    width: 100%;
}

.ex-overlay-counts {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: clamp(8px, 2.8cqmin, 14px);
    width: 100%;
    padding-bottom: clamp(12px, 4cqmin, 18px);
    margin-bottom: clamp(12px, 4cqmin, 18px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
    font-size: clamp(13px, 4.2cqmin, 18px);
    font-weight: 500;
    letter-spacing: 0.04em;
    color: #fff;
}

.ex-overlay-count {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
}

.ex-overlay-count i {
    width: 1.1em;
    text-align: center;
}

.ex-overlay-count em,
.ex-overlay-count strong {
    font-style: normal;
    font-weight: 500;
    color: #fff;
}

.ex-overlay-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: clamp(12px, 3.8cqmin, 16px);
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #fff;
}

.ex-grid-empty {
    grid-column: 1 / -1;
    padding: 80px 20px;
    text-align: center;
    color: var(--ex-muted);
}

.ex-bottom {
    height: var(--ex-bottom-h);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 0 16px 0 20px;
    border-bottom: 1px solid var(--ex-line);
    background: #fff;
    z-index: 4;
}

.ex-bottom-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    flex: 1;
    overflow: hidden;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #555;
}

.ex-page-num {
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    gap: 6px;
    min-width: 78px;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    flex-shrink: 0;
    color: var(--ex-black);
}

.ex-page-now {
    font-family: var(--ex-serif);
    font-size: 20px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0;
}

.ex-page-mark {
    font-size: 12px;
    color: #bbb;
}

.ex-page-max {
    font-size: 13px;
    font-weight: 600;
    color: #888;
}

.ex-bottom-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    flex: 1;
    overflow: hidden;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #555;
}

.ex-bottom-place,
.ex-bottom-period,
.ex-bottom-venue {
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ex-bottom-place {
    flex-shrink: 0;
    font-weight: 700;
    color: var(--ex-black);
}

.ex-bottom-sep {
    display: inline-block;
    width: 1px;
    height: 12px;
    flex-shrink: 0;
    background: #d0d0d0;
}

.ex-bottom-nav {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    white-space: nowrap;
}

.ex-bottom-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: var(--ex-black);
    font-size: 13px;
    line-height: 1;
}

.ex-bottom-btn:hover {
    background: #f4f4f4;
}

.ex-bottom-grid {
    margin-left: 8px;
    border: 1px solid var(--ex-line);
}

.ex-drawer-dim {
    position: fixed;
    inset: 0;
    z-index: 1200;
    background: rgba(17, 17, 17, 0.28);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s ease;
}

.ex-view.is-drawer-open .ex-drawer-dim {
    opacity: 1;
    pointer-events: auto;
}

.ex-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 1210;
    width: var(--ex-drawer-w);
    max-width: 100%;
    background: #fff;
    border-left: 1px solid var(--ex-line);
    display: flex;
    flex-direction: column;
    transform: translate3d(100%, 0, 0);
    transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
}

.ex-view.is-drawer-open .ex-drawer {
    transform: translate3d(0, 0, 0);
    pointer-events: auto;
}

.ex-drawer-inner {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 0;
    background: #fff;
}

.ex-drawer-head {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    padding: 20px 32px 0;
    font-size: 13px;
    color: var(--ex-muted);
    white-space: nowrap;
}

.ex-drawer-close {
    width: 32px;
    height: 32px;
    font-size: 22px;
    line-height: 1;
    color: var(--ex-black);
}

.ex-drawer-body {
    flex: 1;
    overflow: auto;
    padding: 8px 32px 20px;
}

.ex-drawer-hero {
    padding: 10px 0 24px;
    margin-bottom: 4px;
    border-bottom: 1px solid var(--ex-line);
}

.ex-drawer-section {
    margin: 0;
    padding: 24px 0;
    border: 0;
    border-bottom: 1px solid var(--ex-line);
    background: transparent;
}

.ex-drawer-section:last-child {
    border-bottom: 0;
}

.ex-section-label {
    display: block;
    margin: 0 0 10px;
    padding: 0;
    border: 0;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ex-black);
}

.ex-section-value {
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
    font-weight: 400;
    color: #333;
}

.ex-work-artist {
    margin: 0 0 10px;
    color: var(--ex-black);
    font-size: 30px;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.ex-work-title {
    margin: 0 0 8px;
    color: var(--ex-black);
    font-size: 18px;
    line-height: 1.35;
    font-weight: 700;
}

.ex-work-year {
    margin: 0;
    font-size: 14px;
    color: var(--ex-muted);
}

.ex-spec {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
    margin: 0;
}

.ex-spec > div {
    min-width: 0;
    padding: 0;
    background: transparent;
    border: 0;
}

.ex-spec .ex-section-label {
    margin-bottom: 8px;
}

.ex-about-text {
    margin: 0;
    line-height: 1.8;
}

.ex-artist-card {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
}

.ex-artist-card + .ex-artist-card {
    margin-top: 16px;
}

.ex-artist-photo {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    border-radius: 50%;
    object-fit: cover;
    background: #eee;
}

.ex-artist-meta {
    min-width: 0;
    flex: 1;
    padding-top: 4px;
}

.ex-artist-name {
    margin: 0 0 6px;
    color: var(--ex-black);
    font-size: 16px;
    font-weight: 700;
}

.ex-artist-role,
.ex-artist-location {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: #666;
}

.ex-artist-role {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.ex-artist-link {
    display: inline-block;
    margin: 10px 0 0;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--ex-black);
}

.ex-related-list {
    display: flex;
    gap: 18px;
    margin: 4px 0 0;
}

.ex-related-item {
    width: 96px;
    text-align: center;
    color: #333;
}

.ex-related-item img {
    width: 88px;
    height: 88px;
    margin: 0 auto 10px;
    border-radius: 50%;
    object-fit: cover;
    background: #eee;
}

.ex-related-item span {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-size: 11px;
    line-height: 1.4;
    letter-spacing: 0.02em;
    color: #333;
}

.ex-drawer-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
    padding: 16px 32px;
    border-top: 1px solid var(--ex-line);
    background: #fff;
}

.ex-drawer-actions[hidden] {
    display: none;
}

.ex-inquire {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    background: var(--ex-black);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.ex-view a.ex-save {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    padding: 0;
    border: 1px solid var(--ex-line);
    background: #fff;
    color: var(--ex-black);
    line-height: 1;
    text-align: center;
}

.ex-save i {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    width: 18px;
    height: 18px;
    font-size: 18px;
    line-height: 1;
}

.ex-save i::before {
    display: block;
    line-height: 1;
}

.ex-drawer-foot {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 16px;
    height: var(--ex-bottom-h);
    padding: 0 32px;
    border-top: 1px solid var(--ex-line);
    background: #f7f7f7;
    font-size: 13px;
    color: var(--ex-black);
    white-space: nowrap;
}

.ex-drawer-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    font-size: 16px;
    line-height: 1;
    color: var(--ex-black);
}

.ex-overview-panel {
    display: none;
    position: absolute;
    left: var(--ex-sidebar-w);
    top: 16px;
    width: min(480px, calc(100% - var(--ex-sidebar-w) - 24px));
    max-height: calc(100% - 40px);
    overflow: auto;
    padding: 28px;
    background: #fff;
    border: 1px solid var(--ex-line);
    box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.04);
    z-index: 30;
}

.ex-overview-panel.is-open {
    display: block;
}

.ex-overview-panel h2 {
    margin: 0 0 12px;
    color: var(--ex-black);
    font-size: 18px;
    letter-spacing: 0.08em;
}

.ex-overview-panel p {
    margin: 0;
    font-size: 15px;
    line-height: 1.75;
    color: #333;
}

@media (max-width: 1400px) {
    :root {
        --ex-drawer-w: 500px;
        --ex-sidebar-w: 360px;
    }

    .ex-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1100px) {
    .ex-view-body {
        height: auto;
        min-height: calc(100vh - var(--ex-site-header-h, 72px) - 80px);
        flex-direction: column;
    }

    .ex-sidebar {
        width: 100%;
        border-right: 0;
        border-bottom: 1px solid var(--ex-line);
        max-height: none;
    }

    .ex-index-wrap {
        display: none;
    }

    .ex-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ex-grid-item.is-wide {
        grid-column: span 2;
        aspect-ratio: 16 / 9;
    }

    .ex-drawer {
        width: min(100%, 560px);
    }

    .ex-overview-panel {
        left: 12px;
        right: 12px;
        width: auto;
    }
}

@media (max-width: 640px) {
    .ex-grid {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }

    .ex-bottom-place {
        display: none;
    }
}
