/* ==========================================================================
   Exhibition Page Styles
   Based on src/pages/2025/exhibition/index.page.tsx
   ========================================================================== */

/* Page Title */
.page-title {
  font-size: 100px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: #fff;
  padding: 220px 60px 40px;
  background: #000
    url('../../img/key-visuals/img_sub_key_visual_exhibition.jpg') center
    right/auto 100% no-repeat;
}

/* Exhibition Section */
.exhibition-section {
  padding: 140px 0 100px;
  background-color: #e7e7e7;
}

.exhibition-section__inner {
  max-width: 1190px;
  margin: 0 auto;
  word-break: keep-all;
}

.exhibition-section__title {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.4;
  color: #000;
  white-space: pre-line;
}

/* Swiper Map */
.swiper_map {
  margin-top: 80px;
  width: 100%;
}

.swiper_map .swiper-slide {
  width: 100%;
}

.swiper_map img {
  overflow: hidden;
  border-radius: 20px;
  width: 100%;
  height: auto;
}

/* Exhibition List */
.exhibition-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 60px;
  counter-reset: item;
}

.exhibition-list__item {
  padding: 54px 60px;
  border-radius: 20px;
  background: #fff;
  counter-increment: item;
}

.exhibition-list__item-title {
  display: flex;
  align-items: center;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.4;
  color: #000;
  gap: 10px;
}

.exhibition-list__item-title::before {
  content: counter(item);
  width: 24px;
  height: 24px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  color: #fff;
  background-color: #000; /* Default, will be overridden by JS */
}

/* Badge colors - set via JS using data-badge-color */
.exhibition-list__item[data-badge-color] .exhibition-list__item-title::before {
  background-color: var(--badge-color);
}

.exhibition-list__item-desc {
  margin-top: 13px;
  font-family: '42dotSansOTF', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: #808080;
  /* white-space: pre-line; */
}

/* ==========================================================================
   Tablet Responsive (768px - 1200px)
   ========================================================================== */
@media screen and (max-width: 1200px) and (min-width: 768px) {
  .page-title {
    font-size: calc(100 / 1200 * 100vw);
    padding: calc(220 / 1200 * 100vw) calc(60 / 1920 * 100vw)
      calc(40 / 1200 * 100vw);
  }

  .exhibition-section {
    padding: calc(140 / 1200 * 100vw) calc(60 / 1920 * 100vw)
      calc(100 / 1200 * 100vw);
  }

  .exhibition-section__title {
    font-size: calc(36 / 1200 * 100vw);
  }

  .swiper_map {
    margin-top: calc(80 / 1200 * 100vw);
  }

  .swiper_map img {
    border-radius: calc(20 / 1200 * 100vw);
  }

  .exhibition-list {
    gap: calc(30 / 1200 * 100vw);
    margin-top: calc(60 / 1200 * 100vw);
  }

  .exhibition-list__item {
    padding: calc(54 / 1200 * 100vw) calc(60 / 1200 * 100vw);
    border-radius: calc(20 / 1200 * 100vw);
  }

  .exhibition-list__item-title {
    font-size: calc(24 / 1200 * 100vw);
    gap: calc(10 / 1200 * 100vw);
  }

  .exhibition-list__item-title::before {
    width: calc(24 / 1200 * 100vw);
    height: calc(24 / 1200 * 100vw);
    border-radius: calc(5 / 1200 * 100vw);
    font-size: calc(16 / 1200 * 100vw);
  }

  .exhibition-list__item-desc {
    margin-top: calc(13 / 1200 * 100vw);
    font-size: calc(16 / 1200 * 100vw);
  }
}

/* ==========================================================================
   Mobile Responsive (max-width: 767px)
   ========================================================================== */
@media screen and (max-width: 767px) {
  .page-title {
    font-size: 50px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: -0.01em;
    padding: 155px 20px 10px;
    background: #000
      url('../../img/key-visuals/img_sub_key_visual_exhibition_mo.jpg')
      center/auto 100% no-repeat;
  }

  .exhibition-section {
    padding: 60px 20px;
  }

  .exhibition-section__title {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.4;
    white-space: normal;
  }

  .swiper_map {
    margin: 40px -20px 0;
    padding: 0 20px 30px;
    width: calc(100% + 40px);
  }

  .swiper_map .swiper-slide {
    width: auto;
  }

  .swiper_map .swiper-scrollbar {
    left: 20px !important;
    right: 20px !important;
    width: auto !important;
    height: 2px;
  }

  .swiper_map .swiper-scrollbar-drag {
    background-color: #000;
  }

  .swiper_map img {
    width: auto;
    border-radius: 14px;
    height: 420px;
  }

  .exhibition-list {
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
  }

  .exhibition-list__item {
    border-radius: 14px;
    padding: 36px;
  }

  .exhibition-list__item-title {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.4;
  }

  .exhibition-list__item-title::before {
    width: 20px;
    height: 20px;
    font-size: 15px;
  }

  .exhibition-list__item-desc {
    margin-top: 20px;
    font-family: '42dotSansOTF', sans-serif;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.5;
    white-space: normal;
  }
}

/* ========================================
   Footer Background Color Override
   ======================================== */
.footer-container {
  background-color: #e7e7e7;
}
