/* 디바이스 해상도별 미디어 쿼리 반응형 스타일시트 */
/* ===== Responsive ===== */

/* 태블릿 (~1320px) */
@media screen and (max-width: 1320px) {
  .section-hero__inner {
    padding-left: 60px;
    padding-right: 60px;
  }

  .carousel-nav__btn--lg {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
  .section-hero__arrow--prev {
    left: 10px;
  }

  .section-hero__arrow--next {
    right: 10px;
  }

  .section-speakers__slider-wrap {
    --speakers-arrow-size: 52px;
    --speakers-arrow-gap: 16px;
  }

  .section-speakers__viewport {
    padding-left: 0;
    padding-right: 0;
  }

  .section-hero {
    min-height: clamp(640px, 85vh, 860px);
  }
  .section-hero__title {
    font-size: 48px;
  }
  .section-about__brand {
    font-size: 34px;
  }
  .section-speakers__slider-wrap {
    --speakers-visible: 3;
    --speakers-gap: 14px;
  }

  .site-flow {
    max-height: none;
    overflow: visible;
  }

  .site-flow__inner {
    flex-direction: column;
    gap: 10px;
    min-width: 0;
  }

  .site-flow__group {
    flex-direction: row;
    gap: 10px;
    width: 100%;
    min-width: 0;
  }

  .site-flow__card,
  .site-flow__card--wide {
    flex: 1;
    width: auto;
    min-width: 0;
    flex-wrap: nowrap;
    overflow: hidden;
  }

  .site-flow__text,
  .site-flow__badge {
    flex: 1 1 auto;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .site-flow__btn {
    flex-shrink: 0;
  }

  .section-hero {
    padding: 0;
    min-height: max(
      780px,
      calc(100svh - var(--site-sticky-offset, 100px) + 60px)
    );
  }

  .section-hero__inner {
    align-items: flex-start;
    justify-content: flex-start;
    top: calc(
      var(--site-sticky-offset, var(--site-header-height, 100px)) + 20px
    );
    bottom: 96px;
  }
  .section-hero__title {
    font-size: 44px;
  }
  .section-about__brand {
    font-size: 32px;
  }
  .section-hero__slide {
    padding: 0;
    justify-content: center;
  }
  .section-hero__layout,
  .section-hero__layout.is-media-hidden {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
  .section-hero__media {
    display: none !important;
  }
  .section-hero__content {
    max-width: none;
  }
  .section-hero__arrow {
    width: 44px;
    height: 44px;
    font-size: 20px;
  }
  .section-hero__arrow--prev {
    left: 15px;
  }
  .section-hero__arrow--next {
    right: 15px;
  }
  .section-about__grid {
    grid-template-columns: 1fr;
    gap: 36px;
    align-items: start;
  }
  .section-speakers__forum {
    margin-bottom: 56px;
    padding-bottom: 44px;
  }
  .section-speakers__forum-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .section-speakers__forum-intro {
    margin-bottom: 56px;
  }

  .section-speakers__forum-title {
    font-size: 40px;
  }

  .section-speakers__forum-topic {
    font-size: 28px;
  }

  .section-speakers__forum-block {
    grid-template-columns: minmax(130px, 180px) minmax(0, 1fr);
    gap: 24px;
  }
  .section-speakers__forum-label-col {
    min-width: 0;
    max-width: none;
  }
  .section-speakers__forum-topic,
  .section-speakers__forum-schedule {
    margin-top: 0;
    gap: 28px;
  }
  .section-speakers__slider-wrap {
    --speakers-visible: 3;
    --speakers-gap: 14px;
  }
  .section-speakers__viewport {
    padding: 24px 0;
  }
  .section-speakers__card {
    transform: scale(0.95);
    border-radius: 16px;
  }
  .section-speakers__card.is-center {
    transform: scale(1.03);
  }
  .section-programs {
    min-height: unset;
  }
  .section-programs__schedule {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .section-programs__schedule::before {
    display: none;
  }
  .section-programs__col {
    padding: 0;
  }
  .section-programs__col + .section-programs__col {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px dashed rgba(var(--color-point-rgb), 0.22);
  }
  .section-programs__table th,
  .section-programs__table td {
    padding: 14px 12px;
    font-size: 15px;
  }
  .section-exhibition__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .section-register__box,
  .section-board__box {
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
  }

  .section-register__actions,
  .section-board__actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .site-footer__aside {
    align-items: flex-start;
    padding-top: 0;
  }
  .site-footer__sponsors-list {
    justify-content: flex-start;
  }

  /* Horizontal padding consistency (header/footer & main sections) — 서브페이지
     컨테이너 여백(15px)과 통일. */
  .site-header > .container,
  .site-footer > .container,
  .section-speakers > .container,
  .section-about > .container,
  .section-programs > .container,
  .section-exhibition > .container,
  .section-register > .container,
  .section.is-visible > .container {
    padding-left: 15px;
    padding-right: 15px;
  }
  .site-main {
    max-width: 100%;
    overflow-x: clip;
  }

  .site-sticky {
    max-width: 100%;
    overflow: visible;
  }

  .container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .site-flow .container {
    padding: 10px 12px;
  }

  .site-flow {
    max-height: none;
    overflow: visible;
  }

  .site-flow__inner {
    flex-direction: column;
    gap: 8px;
    padding: 10px 0;
    min-width: 0;
  }

  .site-flow__group {
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    width: 100%;
  }

  .site-flow__card,
  .site-flow__card--wide {
    flex: 1;
    width: auto;
    min-width: 0;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    overflow: hidden;
  }

  .site-flow__text,
  .site-flow__badge {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 15px;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .site-flow__btn {
    flex-shrink: 0;
    padding: 6px 10px;
    font-size: 15px;
  }

  .site-header__inner {
    height: 72px;
    gap: 12px;
  }

  .site-header__logo-img {
    height: 50px;
  }

  .site-header__actions {
    gap: 8px;
  }

  .site-header__language-switch {
    grid-template-columns: repeat(2, 32px);
    padding: 2px;
  }

  .site-header__language-switch::before {
    top: 2px;
    left: 2px;
    width: 32px;
    height: 28px;
  }

  .site-header__language-option {
    height: 28px;
    font-size: 12px;
  }

  .site-header__lang {
    min-width: 40px;
    height: 30px;
    padding: 0 10px;
    font-size: 15px;
    font-weight: 600;
  }

  .site-header__menu-btn {
    width: 40px;
    height: 40px;
  }

  .section-hero {
    min-height: clamp(640px, 82svh, 760px);
  }

  .section-hero__title {
    font-size: 36px;
    line-height: 1.3;
  }

  .section-hero__subtitle {
    font-size: 18px;
  }

  .section-hero__meta {
    font-size: 15px;
    line-height: 1.75;
    margin-bottom: 24px;
  }

  .section-hero__desc {
    font-size: 15px;
    letter-spacing: 0.02em;
  }

  .section-hero__inner {
    padding-left: 20px;
    padding-right: 20px;
    align-items: flex-start;
    justify-content: flex-start;
    top: calc(
      var(--site-sticky-offset, var(--site-header-height, 72px)) + 20px
    );
    bottom: calc(48px + env(safe-area-inset-bottom));
  }

  .section-hero__layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .section-hero__media {
    display: none !important;
  }

  .section-hero__desc br {
    display: none;
  }

  .section-about__desc br {
    display: none;
  }

  .section-about__title {
    font-size: 36px;
  }

  .section-programs__col {
    padding: 0;
  }

  .section-programs__date {
    font-size: 16px;
    padding: 12px 16px;
  }

  .section-programs__table {
    min-width: 560px;
  }

  .section-programs__table th,
  .section-programs__table td {
    padding: 14px 10px;
    font-size: 15px;
  }

  .section-speakers {
    min-height: unset;
    overflow: visible;
  }

  .section-speakers__slider-wrap {
    --speakers-visible: 3;
    --speakers-gap: 14px;
    --speakers-arrow-size: 36px;
    --speakers-arrow-gap: 12px;
    min-width: 0;
  }

  .section-speakers__viewport {
    width: 100%;
    padding: 24px 0;
  }
  /* 
    .section-speakers__arrow {
        width: var(--speakers-arrow-size);
        height: var(--speakers-arrow-size);
    } */

  .section-speakers__card {
    transform: scale(0.95);
    border-radius: 16px;
  }

  .section-speakers__card.is-center {
    transform: scale(1.03);
  }

  .section-speakers__body {
    padding: 12px;
    margin-top: 0;
  }

  .section-speakers__tabs {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    gap: 2px;
    overflow: hidden;
    padding: 0;
    margin-bottom: 20px;
    width: 100%;
    max-width: 100%;
  }

  .section-speakers__tab {
    flex: 0.95 1 0px;
    min-width: 0;
    min-height: 36px;
    padding: 6px 1px;
    font-size: clamp(9px, 2.55vw, 11.5px);
    font-weight: 600;
    letter-spacing: -0.05em;
    white-space: nowrap;
    text-align: center;
    border-radius: 999px;
  }
  .section-speakers__tab[data-tab="opening"],
  .section-speakers__tab[data-tab="keynote"],
  .section-speakers__tab[data-tab="closing"] {
    flex: 1.25 1 0px;
  }

  .section-speakers__forum {
    margin-bottom: 48px;
    padding-bottom: 36px;
  }

  .section-speakers__forum-title {
    font-size: 36px;
  }

  .section-speakers__forum-desc {
    font-size: clamp(19px, 4.5vw, 23px);
    line-height: 1.35;
  }

  .section-speakers__forum-topic {
    font-size: 28px;
  }

  .section-exhibition__grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 32px;
  }

  .section-exhibition__photo {
    display: grid;
    grid-template-columns: minmax(180px, 0.42fr) minmax(0, 0.58fr);
    align-items: stretch;
  }

  .section-exhibition__item:hover .section-exhibition__image {
    transform: none;
  }

  .section-exhibition__body {
    position: relative;
    inset: auto;
    padding: 20px;
    background: #141414;
  }

  .section-exhibition__image {
    height: 100%;
    min-height: 100%;
    aspect-ratio: auto;
  }

  .section-exhibition__year,
  .section-exhibition__detail {
    opacity: 1;
    transform: none;
    max-height: none;
    margin-top: 14px;
    overflow: visible;
  }

  .section-exhibition__name {
    text-shadow: none;
  }

  .site-footer {
    padding: 72px 0 32px;
  }

  .site-footer__logo-img {
    height: 100px;
  }

  .section-partners__group {
    gap: 32px;
    padding-right: 32px;
  }

  .section-moment__video {
    pointer-events: none;
  }

  .section-moment__archive {
    right: 12px;
    bottom: 12px;
    gap: 10px;
    padding: 10px 16px;
  }

  .section-moment__archive-text {
    font-size: clamp(20px, 4vw, 24px);
  }

  .section-moment__archive-sub {
    font-size: 12px;
  }

  .section-moment__archive-arrow {
    font-size: 18px;
  }

  .section-moment__video-cover {
    display: none;
  }

  .section-moment__video::-webkit-media-controls,
  .section-moment__video::-webkit-media-controls-enclosure,
  .section-moment__video::-webkit-media-controls-panel,
  .section-moment__video::-webkit-media-controls-start-playback-button,
  .section-moment__video::-webkit-media-controls-overlay-play-button,
  .section-moment__video::-webkit-media-controls-overlay-enclosure {
    display: none !important;
    -webkit-appearance: none;
    opacity: 0 !important;
    pointer-events: none !important;
    width: 0 !important;
    height: 0 !important;
  }

  .section-register__btn {
  }

  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .site-flow .container {
    padding: 8px 10px;
  }

  .site-flow {
    max-height: none;
  }

  .site-flow__inner {
    gap: 6px;
    min-width: 0;
  }

  .site-flow__group {
    gap: 6px;
    min-width: 0;
  }

  .site-flow__card,
  .site-flow__card--wide {
    gap: 6px;
    padding: 8px;
    flex-wrap: nowrap;
    overflow: hidden;
  }

  .site-flow__label {
    display: none;
  }

  .site-flow__text,
  .site-flow__badge {
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .site-flow__btn {
    padding: 6px 10px;
    font-size: 14px;
  }

  .section-hero {
    padding: 0;
    min-height: clamp(600px, 82svh, 760px);
  }

  .section-hero__slide {
    padding: 0;
    justify-content: center;
  }
  /*
    .section-hero__inner {
        top: calc(var(--site-sticky-offset, var(--site-header-height, 64px)) + 20px);
        bottom: 88px;
    } */

  .section-hero__title {
    font-size: 30px;
    line-height: 1.32;
  }

  .section-hero__label {
    font-size: 15px;
  }

  .section-hero__meta {
    font-size: 15px;
    margin-bottom: 20px;
  }

  .section-hero__btns {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }

  .section-hero__btn {
    width: 100%;
    max-width: 280px;
  }

  .section-hero__arrow {
    display: inline-flex !important;
    width: 38px;
    height: 38px;
    font-size: 18px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #ffffff;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  }
  .section-hero__arrow--prev {
    left: 8px !important;
  }
  .section-hero__arrow--next {
    right: 8px !important;
  }

  .section-hero__pagination {
    right: auto;
    bottom: auto;
  }

  .section-hero__controls {
    right: 16px;
    bottom: calc(24px + env(safe-area-inset-bottom));
  }

  .section-about__desc {
    font-size: 15px;
    line-height: 1.75;
  }

  .section-about__copy {
    width: 100%;
  }

  .section-about__copy,
  .section-speakers__forum-schedule {
    margin-top: 0;
  }

  .section-speakers__forum-block {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .section-speakers__forum-event {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .section-about__brand {
    font-size: 32px;
  }

  .section-speakers__arrow {
    display: inline-flex;
    width: var(--speakers-arrow-size);
    height: var(--speakers-arrow-size);
    font-size: 16px;
  }

  .section-speakers__card {
    transform: none;
    opacity: 1;
    border-radius: 16px;
  }

  .section-speakers__card.is-center {
    transform: none;
    box-shadow:
      0 16px 32px rgba(0, 0, 0, 0.36),
      0 0 0 1px rgba(var(--speaker-accent-rgb), 0.18);
  }

  .section-speakers__body {
    margin-top: 0;
    padding: 14px 14px 14px;
  }

  .section-programs__table {
    min-width: 520px;
  }

  .section-exhibition__lead {
    font-size: 15px;
    padding: 0 8px;
  }

  .section-exhibition__name {
    font-size: 17px;
  }

  .section-register__box,
  .section-board__box {
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    padding: 20px 16px;
  }

  .section-register__actions,
  .section-board__actions {
    justify-content: flex-end;
    flex-wrap: wrap;
  }

  .section-register__desc,
  .section-board__desc {
    word-break: keep-all;
  }

  .site-footer__inner {
    gap: 24px;
  }

  .site-footer__sponsors-list {
    flex-wrap: wrap;
  }

  .site-footer__sponsor-img {
    max-width: 220px;
  }
}

/* 모바일 (~500px) */
@media screen and (max-width: 500px) {
  .site-header > .container,
  .site-footer > .container,
  .section-speakers > .container,
  .section-about > .container,
  .section-programs > .container,
  .section-exhibition > .container,
  .section-register > .container,
  .section.is-visible > .container {
    padding-left: 15px;
    padding-right: 15px;
  }

  .section-hero__inner {
    padding-left: 20px;
    padding-right: 20px;
  }

  .section-programs__table {
    min-width: 0;
    table-layout: auto;
  }

  .section-programs__table tbody th {
    white-space: normal;
  }

  .section-programs__table th,
  .section-programs__table td {
    padding: 10px 8px;
    font-size: 14px;
  }

  .section-speakers__forum-title {
    font-size: 28px;
  }

  .section-speakers__forum-topic {
    font-size: 22px;
  }

  .section-exhibition__grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .section-exhibition__photo {
    grid-template-columns: 1fr;
  }

  .section-exhibition__image {
    height: auto;
    min-height: 0;
    aspect-ratio: 210 / 297;
  }

  .section-partners__group {
    gap: 24px;
    padding-right: 24px;
  }

  .section-hero__inner {
    padding-right: 16px;
    padding-left: 16px;
  }

  .section-hero__title {
    font-size: 24px;
    line-height: 1.3;
    letter-spacing: -0.04em;
    word-break: normal;
    overflow-wrap: anywhere;
  }

  .section-hero__label {
    font-size: 14px;
  }

  .section-hero__meta {
    font-size: 14px;
  }

  /* 좁은 모바일에서는 슬라이더를 1장씩만 보여준다 (기존 640px 기준을 그대로 흡수). */
  .section-speakers__slider-wrap {
    --speakers-visible: 1;
    --speakers-gap: 12px;
    --speakers-arrow-size: 32px;
    --speakers-arrow-gap: 10px;
  }

  /* 헤더는 768px대 값(72px/40px)을 태블릿 전체에서 유지하고, 진짜 좁은
     모바일에서만 이만큼 더 줄인다. */
  .site-header__inner {
    height: 64px;
  }

  .site-header__logo-img {
    height: 50px;
  }

  .site-header__actions {
    gap: 6px;
  }

  .site-header__admin-login {
    min-width: 0;
    padding: 0 8px;
    font-size: 13px;
    border-radius: 999px;
  }
}

/* 모바일에서 히어로 좌우 화살표 숨김 */
@media screen and (max-width: 768px) {
  #heroPrev,
  #heroNext,
  .section-hero__arrow {
    display: none !important;
  }

  /* 첫 번째 슬라이드 제목: "상상력의 경제화 :" 뒤(2번째 줄바꿈)에서만 줄바꿈하고
     나머지 줄바꿈은 공백으로 처리해 자연스럽게 흐르도록 한다. */
  .section-hero__panel[data-hero-panel="0"] .section-hero__title-br:not(.section-hero__title-br--2) {
    display: none;
  }

  /* 첫 번째 슬라이드 배경: 모바일에서는 비디오 대신 이미지 노출 */
  .section-hero__image--mobile {
    display: block;
  }

  /* 파트너 로고: 모바일에서는 PC보다 조금 작게 */
  .section-partners__group {
    height: 72px;
  }
  .section-partners__logo {
    height: 40px;
  }
  .section-partners__logo--national-art-gallery-malaysia {
    height: 72px;
  }
  .section-partners__logo--india-artnow {
    height: 34px;
  }

  /* 푸터: 모바일에서는 로고 숨김 (빈 그리드 행/여백까지 제거) */
  .site-footer__brand {
    display: none;
  }
  .site-footer {
    padding-top: 36px;
  }

  /* 푸터 연락처: 모바일에서는 우편번호 숨기고 주소/이메일을 한 줄씩 */
  .site-footer__zip,
  .site-footer__contact-sep {
    display: none;
  }
  .site-footer__address,
  .site-footer__email {
    display: block;
    white-space: normal;
  }
}
