/* special-exhibition.html — 기획전 목록 (상영작 ti-np-list 톤) */

.right.se-right.np-list {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  align-self: stretch;
}

@media (min-width: 821px) {
  .ti .np-list.se-right {
    height: 100%;
    min-height: 0;
    max-height: 100dvh;
  }
}

.se-right-inner {
  --se-thumb-rows: 2;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  width: 100%;
  max-width: var(--np-max, 1120px);
  margin: 0 auto;
  padding: 0 0 48px;
  box-sizing: border-box;
}

.ti .np-list.se-right .se-right-inner > .page-pager--bottom,
.ti .np-list.se-right .se-right-inner > .se-foot {
  flex: 0 0 auto;
}

.ti .np-list.se-right .se-head {
  flex: 0 0 auto;
}

.ti .np-list.se-right .se-title-page {
  text-transform: none;
  letter-spacing: 0;
}

.se-swipe-viewport {
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  width: 100%;
  height: auto;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  scrollbar-width: thin;
  scrollbar-color: #9a9a9a #f0f0f0;
}

.se-swipe-viewport::-webkit-scrollbar {
  height: 6px;
}

.se-swipe-viewport::-webkit-scrollbar-track {
  background: #f0f0f0;
}

.se-swipe-viewport::-webkit-scrollbar-thumb {
  background: #9a9a9a;
  border-radius: 0;
}

.se-swipe-track {
  display: flex;
  height: 100%;
  min-height: 0;
  align-items: stretch;
}

.se-slide {
  flex: 0 0 auto;
  width: auto;
  max-width: none;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  padding: 0;
  box-sizing: border-box;
}

/* card_list — 상영작 np-grid 톤 */
.ti .np-list.se-right .se-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(var(--se-thumb-rows, 2), minmax(0, auto));
  gap: 40px 24px;
  align-content: start;
  align-items: stretch;
}

.ti .np-list.se-right .se-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  align-self: stretch;
  min-width: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transition: none;
}

.ti .np-list.se-right .se-card:hover,
.ti .np-list.se-right .se-card:focus-within {
  background: transparent;
  outline: none;
}

.ti .np-list.se-right .se-thumb-link {
  display: block;
  width: 100%;
  line-height: 0;
  border: none;
  background: #f2f2f2;
}

.ti .np-list.se-right .se-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 510 / 740;
  object-fit: cover;
  border: none;
  border-radius: 0;
}

.ti .np-list.se-right .se-title-wrap {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  width: 100%;
  margin: 0;
  padding: 16px 0;
  border-top: none;
  border-right: none;
  border-bottom: 1px solid #595959;
  border-left: none;
  background: transparent;
}

.ti .np-list.se-right .se-item-title {
  margin: 0;
  width: 100%;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 0;
  color: #111111;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: keep-all;
}

.ti .np-list.se-right .se-title-link {
  color: inherit;
  text-decoration: none;
}

.ti .np-list.se-right .se-title-link:hover .se-item-title {
  color: #111111;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* 모바일 캐러셀 푸터 */
.se-foot {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 14px;
  margin-top: 10px;
  border-top: 1px solid #e2e2e2;
}

.se-page-btn {
  padding: 7px 14px;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  border: 1px solid #595959;
  background: #fff;
  color: #111;
  cursor: pointer;
  border-radius: 0;
}

.se-page-btn:hover:not(:disabled) {
  background: #f7f7f7;
  border-color: #111;
  color: #111;
}

.se-page-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.se-page-dots {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  max-width: min(100%, 280px);
}

.se-dot {
  width: 8px;
  height: 8px;
  border: 1px solid #595959;
  background: transparent;
  padding: 0;
  cursor: pointer;
  border-radius: 0;
}

.se-dot.is-active {
  background: #111111;
  border-color: #111111;
}

.se-fraction {
  font-size: 0.72rem;
  font-weight: 600;
  color: #595959;
  font-variant-numeric: tabular-nums;
  min-width: 3.25rem;
  text-align: center;
}

.se-hint {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
  color: #595959;
  text-transform: none;
  letter-spacing: 0;
}

@media (min-width: 900px) {
  .ti .np-list.se-right .se-hint {
    display: none;
  }

  .ti .np-list.se-right .se-swipe-viewport {
    overflow-x: hidden;
    scrollbar-width: none;
  }

  .ti .np-list.se-right .se-swipe-viewport::-webkit-scrollbar {
    display: none;
  }
}

.ti .np-list.se-right .se-grid .np-list-status {
  grid-column: 1 / -1;
  width: 100%;
}

.ti .np-list.se-right .se-grid .np-list-status.is-loading,
.ti .np-list.se-right .se-grid .np-list-status.is-empty {
  min-height: min(360px, 50vh);
}

@media (max-width: 899px) {
  .right.se-right.np-list {
    padding-top: clamp(24px, 6vw, 48px);
    padding-inline: clamp(14px, 4vw, 24px);
  }

  .ti .np-list.se-right .np-title,
  .ti .np-list.se-right .se-title-page {
    font-size: clamp(22px, 5vw, 28px);
  }

  .ti .np-list.se-right .se-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 16px;
  }

  .ti .np-list.se-right .se-item-title {
    font-size: 16px;
    line-height: 1.25;
  }

  .ti .np-list.se-right .se-title-wrap {
    padding: 12px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .se-swipe-viewport {
    scroll-behavior: auto;
  }
}
