/* special/exhibition/exhibition_detail.html — 본문 그리드·필름·라이트박스 (상단 md-page는 now-playing-movie-detail.css) */

.ti .md-theme .exhibition-detail-root {
  width: 100%;
  padding-top: 24px;
}

.ti .exhibition-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px 40px;
  align-items: stretch;
}

.ti .exhibition-detail-section,
.ti .exhibition-detail-film {
  min-width: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-sizing: border-box;
}

.ti .exhibition-detail-section__inner {
  padding: 0;
  height: 100%;
  box-sizing: border-box;
}

.ti .exhibition-detail-section--hero .exhibition-detail-section__inner {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 0;
  min-height: 0;
}

.ti .exhibition-detail-poster-btn {
  display: block;
  width: 100%;
  max-width: 567px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

@media (hover: hover) and (pointer: fine) {
  .ti .exhibition-detail-poster-btn {
    cursor: zoom-in;
  }

  .ti .exhibition-detail-poster-btn:hover .exhibition-detail-poster {
    opacity: 0.92;
  }
}

.ti .exhibition-detail-poster-btn:focus-visible {
  outline: 2px solid #333;
  outline-offset: 3px;
}

.ti .exhibition-detail-poster {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 0;
  pointer-events: none;
  user-select: none;
}

.exhibition-poster-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 3vw, 28px);
  box-sizing: border-box;
}

.exhibition-poster-lightbox[hidden] {
  display: none !important;
}

.exhibition-poster-lightbox__backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.92);
  cursor: pointer;
}

.exhibition-poster-lightbox__img {
  position: relative;
  z-index: 1;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  pointer-events: none;
  user-select: none;
}

.exhibition-poster-lightbox__close {
  position: absolute;
  top: clamp(10px, 2vw, 18px);
  right: clamp(10px, 2vw, 18px);
  z-index: 2;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 0;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-family: inherit;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
}

.exhibition-poster-lightbox__close:hover {
  background: rgba(0, 0, 0, 0.8);
  border-color: #fff;
}

.exhibition-poster-lightbox__close:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

body.exhibition-poster-lightbox-open {
  position: fixed;
  width: 100%;
  overflow: hidden;
}

.ti .exhibition-detail-intro {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: #404040;
  white-space: pre-line;
  text-align: justify;
}

.ti .exhibition-detail-info-lead {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  width: 100%;
}

.ti .exhibition-detail-section--info .exhibition-detail-section__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0;
  min-height: 0;
}

.ti .exhibition-detail-section--info .md-booking-btn--inline {
  margin-top: 0;
  flex: 0 0 auto;
}

.ti .exhibition-detail-films {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px 40px;
  align-items: stretch;
  padding-top: 8px;
  border-top: 1px solid #e2e2e2;
}

.ti .exhibition-detail-film {
  height: 100%;
}

.ti .exhibition-detail-film .exhibition-detail-section__inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
}

.ti .exhibition-detail-film.exhibition-film-empty .exhibition-detail-section__inner--empty-film {
  min-height: 0;
}

.ti .exhibition-film-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  box-sizing: border-box;
  width: 100%;
}

.ti .exhibition-film-head-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}

.ti .exhibition-detail-film .exhibition-detail-section__inner > *:not(:last-child) {
  padding-bottom: 16px;
  border-bottom: 1px solid #e2e2e2;
  box-sizing: border-box;
}

.ti .exhibition-detail-film .exhibition-detail-section__inner > .exhibition-film-poster {
  padding-bottom: 0;
  border-bottom: none;
}

.ti .exhibition-film-title {
  margin: 0;
  width: 100%;
  font-size: 18px;
  font-weight: 700;
  color: #111111;
  line-height: 1.35;
}

.ti .exhibition-film-section-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  align-self: center;
  justify-content: center;
  box-sizing: border-box;
  max-width: 46%;
  padding: 4px 10px;
  border-radius: 6px;
  background: #f0f0f0;
  color: #222;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  white-space: normal;
  word-break: keep-all;
  overflow: hidden;
}

.ti .exhibition-film-info {
  margin: 0;
  width: 100%;
  flex: 0 0 auto;
  min-width: 0;
  min-height: 0;
  height: auto;
  font-size: 13px;
  font-weight: 500;
  color: #808080;
  line-height: 1.4;
}

.ti .exhibition-film-poster {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  padding-bottom: 0;
  aspect-ratio: 390 / 220;
  object-fit: contain;
  /* TEMP 2026-07-18: 상영작 포스터 섹션 중앙 정렬 — 롤백 시 left center / flex-start */
  object-position: center center;
  border: none;
  background: transparent;
  box-sizing: border-box;
  align-self: center;
  margin-inline: auto;
}

.ti .exhibition-film-meta {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: #404040;
  box-sizing: border-box;
}

.ti .exhibition-film-meta dt {
  display: inline;
  margin: 0;
  font-weight: 700;
  color: #808080;
}

.ti .exhibition-film-meta dt::after {
  content: " ";
}

.ti .exhibition-film-meta dd {
  display: inline;
  margin: 0;
  font-weight: 400;
  overflow-wrap: break-word;
  word-break: keep-all;
}

.ti .exhibition-film-meta .meta-block {
  margin: 0 0 8px;
}

.ti .exhibition-film-meta .meta-block:last-child {
  margin-bottom: 0;
}

.ti .exhibition-film-description {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: #404040;
  box-sizing: border-box;
  text-align: justify;
}

.ti .exhibition-film-schedule-title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #111111;
  box-sizing: border-box;
}

.ti .exhibition-detail-badge-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
  width: 100%;
  box-sizing: border-box;
}

.ti .exhibition-detail-time-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  justify-self: stretch;
  text-align: center;
  padding: 12px 10px;
  border-radius: 0;
  border: 1px solid #595959;
  background: #ffffff;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  color: #111111;
  text-decoration: none;
  box-sizing: border-box;
  transition:
    border-color 0.15s ease,
    background 0.15s ease;
}

.ti a.exhibition-detail-time-badge:hover {
  border-color: #111111;
  background: #f7f7f7;
}

.ti a.exhibition-detail-time-badge:focus-visible {
  outline: 2px solid #333;
  outline-offset: 2px;
}

.ti .exhibition-detail-time-badge.is-past {
  border-color: #d4d4d4;
  background: #f5f5f5;
  color: #111111;
  cursor: default;
  pointer-events: none;
}

.ti .exhibition-detail-time-badge.is-past .badge-date,
.ti .exhibition-detail-time-badge.is-past .badge-time {
  color: #111111;
}

.ti .exhibition-detail-time-badge.is-past .badge-gv {
  background: #bdbdbd;
  border-color: #bdbdbd;
  color: #fff;
}

.ti .exhibition-detail-time-badge .badge-date-row {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 4px;
}

.ti .exhibition-detail-time-badge .badge-date {
  font-weight: 700;
  color: #111111;
}

.ti .exhibition-detail-time-badge .badge-gv {
  display: inline-block;
  padding: 1px 6px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
  background: #111111;
  border: 1px solid #111111;
  line-height: 1.35;
}

.ti .exhibition-detail-time-badge .badge-time {
  font-variant-numeric: tabular-nums;
  color: #808080;
  font-weight: 400;
}

@media (min-width: 900px) {
  .ti .md-theme .exhibition-detail-grid {
    gap: 40px;
  }

  .ti .exhibition-detail-poster {
    max-width: 567px;
  }
}

@media (max-width: 900px) {
  .ti .md-theme .exhibition-detail-root {
    padding-top: 8px;
  }

  .ti .exhibition-detail-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .ti .exhibition-detail-films {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .ti .exhibition-film-info {
    min-height: 0;
    height: auto;
  }

  .ti .exhibition-detail-film.exhibition-film-empty {
    display: none;
  }
}
