body.wpbw-festival-archive-page .wp-block-post-title,
body.wpbw-festival-archive-page main > .wp-block-group > .wp-block-post-title {
  display: none !important;
}

body.wpbw-festival-archive-page .wp-block-post-content {
  margin-block-start: 0 !important;
}

body.wpbw-festival-archive-page .nav-memo-page-header {
  display: none !important;
}

body.wpbw-festival-archive-page main.nav-memo-main {
  margin-block-start: 0 !important;
}

body.wpbw-festival-archive-page .nav-memo-page-shell {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html,
body.wpbw-festival-archive-page {
  overflow-x: clip;
}

.wpbw-festival-archive {
  --wpbw-festival-page: #ffffff;
  --wpbw-festival-surface: #f5f7f8;
  --wpbw-festival-surface-strong: #e9f1f5;
  --wpbw-festival-ink: #17222c;
  --wpbw-festival-muted: #667683;
  --wpbw-festival-line: #dce4e8;
  --wpbw-festival-blue: #126d93;
  --wpbw-festival-blue-deep: #123952;
  box-sizing: border-box;
  width: 100vw;
  max-width: none !important;
  margin: 0 calc(50% - 50vw) !important;
  background: var(--wpbw-festival-page);
  color: var(--wpbw-festival-ink);
  font-family: Pretendard, "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.wpbw-festival-archive *,
.wpbw-festival-archive *::before,
.wpbw-festival-archive *::after {
  box-sizing: border-box;
}

.wpbw-festival-archive a {
  color: inherit;
  text-decoration: none;
}

.wpbw-festival-archive-inner,
.wpbw-festival-archive-content {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.wpbw-festival-archive-hero {
  border-bottom: 1px solid var(--wpbw-festival-line);
  background: linear-gradient(135deg, var(--wpbw-festival-surface-strong), var(--wpbw-festival-page));
}

.wpbw-festival-archive-hero .wpbw-festival-archive-inner {
  padding-block: 34px 31px;
}

.wpbw-festival-archive-eyebrow {
  margin: 0 0 12px;
  color: var(--wpbw-festival-blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .18em;
}

.wpbw-festival-archive-hero h1 {
  margin: 0;
  color: var(--wpbw-festival-ink);
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.04em;
}

.wpbw-festival-archive-hero .wpbw-festival-archive-inner > p:last-child {
  max-width: 720px;
  margin: 14px 0 0;
  color: var(--wpbw-festival-muted);
  font-size: 16px;
  line-height: 1.7;
}

.wpbw-festival-archive-content {
  padding-block: 30px 60px;
}

.wpbw-festival-archive-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.wpbw-festival-archive-heading .wpbw-festival-archive-eyebrow {
  margin-bottom: 8px;
}

.wpbw-festival-archive-heading h2 {
  margin: 0;
  color: var(--wpbw-festival-ink);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -.03em;
}

.wpbw-festival-archive-heading > p {
  margin: 0;
  color: var(--wpbw-festival-muted);
  font-size: 14px;
}

.wpbw-festival-region-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 28px;
}

.wpbw-festival-region-filter button {
  min-width: 52px;
  min-height: 38px;
  padding: 8px 15px;
  border: 1px solid var(--wpbw-festival-line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--wpbw-festival-muted);
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color .18s ease, background-color .18s ease, color .18s ease;
}

.wpbw-festival-region-filter button:hover {
  border-color: #8db7c8;
  color: var(--wpbw-festival-blue);
}

.wpbw-festival-region-filter button[aria-pressed="true"] {
  border-color: var(--wpbw-festival-blue-deep);
  background: var(--wpbw-festival-blue-deep);
  color: #ffffff;
}

.wpbw-festival-region-filter button:disabled {
  cursor: wait;
  opacity: .58;
}

.wpbw-festival-list-section--unknown,
.wpbw-festival-list-section--past {
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid var(--wpbw-festival-line);
}

.wpbw-festival-list-section--past .wpbw-festival-archive-eyebrow {
  color: #71808b;
}

.wpbw-festival-list-section--past .wpbw-festival-post-card {
  opacity: .94;
}

.wpbw-festival-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 56px 20px;
  border: 1px solid var(--wpbw-festival-line);
  color: var(--wpbw-festival-muted);
  text-align: center;
}

.wpbw-festival-post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 38px 24px;
}

.wpbw-festival-post-card {
  min-width: 0;
  margin: 0;
}

.wpbw-festival-post-image {
  position: relative;
  display: grid;
  min-height: 224px;
  overflow: hidden;
  align-items: end;
  padding: 26px;
  background: linear-gradient(145deg, #123952, #267493 58%, #85bfd2);
  color: #ffffff !important;
}

.wpbw-festival-post-image img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
  transition: transform .28s ease;
}

.wpbw-festival-post-status {
  position: absolute;
  z-index: 2;
  top: 16px;
  left: 16px;
  display: inline-flex;
  min-width: 51px;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border: 1px solid #dce3e5;
  border-radius: 8px;
  background: rgba(255, 255, 252, .96);
  color: #1f2f43;
  box-shadow: 0 4px 14px rgba(23, 34, 44, .10);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.015em;
  white-space: nowrap;
}

.wpbw-festival-post-status--dday {
  border-color: #e49a56;
  background: #fff0e2;
  color: #a84b08;
  box-shadow: 0 4px 14px rgba(115, 62, 13, .10);
  font-weight: 900;
}

.wpbw-festival-post-status--ongoing {
    min-width: 57px;
}

.wpbw-festival-post-status--unknown {
    color: #6d501e;
    border-color: #ddc89e;
    background: #fff7e5;
}

.wpbw-festival-schedule-note {
    margin: 0 0 24px;
    color: #6d501e;
    font-size: 14px;
    line-height: 1.7;
}

.wpbw-festival-post-image:hover img {
  transform: scale(1.025);
}

.wpbw-festival-post-image > span:not(.wpbw-festival-post-status) {
  position: relative;
  z-index: 1;
  display: block;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -.03em;
}

.wpbw-festival-placeholder-2 { background: linear-gradient(145deg, #311d55, #7551a1 58%, #b28bd6); }
.wpbw-festival-placeholder-3 { background: linear-gradient(145deg, #4c8c72, #c7bda9 56%, #806b91); }
.wpbw-festival-placeholder-4 { background: linear-gradient(145deg, #9e4c32, #d18c56 52%, #334c62); }
.wpbw-festival-placeholder-5 { background: linear-gradient(145deg, #176e82, #37a9a0 52%, #d8a841); }

.wpbw-festival-post-body {
  padding-top: 18px;
}

.wpbw-festival-post-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 13px;
  color: var(--wpbw-festival-muted);
  font-size: 12px;
  line-height: 1.45;
}

.wpbw-festival-post-meta span {
  color: var(--wpbw-festival-blue);
  font-weight: 800;
}

.wpbw-festival-post-meta time {
  text-align: right;
}

.wpbw-festival-post-card h2 {
  margin: 0;
  color: var(--wpbw-festival-ink);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: -.03em;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.wpbw-festival-post-card h2 a:hover {
  color: var(--wpbw-festival-blue);
}

.wpbw-festival-post-excerpt {
  margin: 13px 0 18px;
  color: var(--wpbw-festival-muted);
  font-size: 14px;
  line-height: 1.75;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.wpbw-festival-post-read {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 6px;
  color: var(--wpbw-festival-blue) !important;
  font-size: 14px;
  font-weight: 800;
}

.wpbw-festival-load-more-area {
  display: grid;
  justify-items: center;
  padding-top: 48px;
}

.wpbw-festival-load-more {
  min-width: 220px;
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid var(--wpbw-festival-blue);
  border-radius: 0;
  background: var(--wpbw-festival-page);
  color: var(--wpbw-festival-blue);
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.wpbw-festival-load-more:disabled {
  cursor: wait;
  opacity: .55;
}

.wpbw-festival-load-more-area > p {
  min-height: 1.5em;
  margin: 10px 0 0;
  color: var(--wpbw-festival-muted);
  font-size: 13px;
}

@media (max-width: 980px) {
  .wpbw-festival-post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wpbw-festival-list-section--past {
    margin-top: 48px;
    padding-top: 38px;
  }
}

@media (max-width: 620px) {
  .wpbw-festival-archive-inner,
  .wpbw-festival-archive-content {
    width: min(100% - 32px, 1180px);
  }

  .wpbw-festival-archive-hero .wpbw-festival-archive-inner {
    padding-block: 26px 24px;
  }

  .wpbw-festival-archive-hero .wpbw-festival-archive-inner > p:last-child {
    margin-top: 12px;
    font-size: 15px;
  }

  .wpbw-festival-archive-hero br {
    display: none;
  }

  .wpbw-festival-archive-content {
    padding-block: 25px 48px;
  }

  .wpbw-festival-archive-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 17px;
  }

  .wpbw-festival-region-filter {
    flex-wrap: nowrap;
    gap: 7px;
    margin: 0 -16px 22px;
    padding: 0 16px 4px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .wpbw-festival-region-filter::-webkit-scrollbar {
    display: none;
  }

  .wpbw-festival-post-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .wpbw-festival-post-image {
    min-height: 210px;
    padding: 23px;
  }

  .wpbw-festival-post-status {
    top: 14px;
    left: 14px;
    min-width: 47px;
    min-height: 26px;
    padding: 5px 9px;
    border-radius: 7px;
    font-size: 10px;
  }

  .wpbw-festival-post-meta {
    align-items: flex-start;
  }

  .wpbw-festival-load-more {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wpbw-festival-post-image img {
    transition: none;
  }
}
